.editor-content-view {
  padding: 0 10px;
  margin-top: 10px;
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: auto;
}

.editor-content-view a {
  color: #318ef4;
  text-decoration: none;
  word-break: break-all;
}

.editor-content-view a:hover {
  text-decoration: underline;
}

.editor-content-view b,
.editor-content-view strong {
  font-weight: 700;
}

.editor-content-view em,
.editor-content-view i {
  font-style: italic;
}

.editor-content-view u {
  text-decoration: underline;
}

.editor-content-view s,
.editor-content-view del {
  text-decoration: line-through;
}

.editor-content-view mark {
  background-color: #fff3bf;
  padding: 1px 4px;
  border-radius: 2px;
}

.editor-content-view small {
  font-size: 80%;
}

.editor-content-view sub,
.editor-content-view sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

.editor-content-view sub {
  bottom: -0.25em;
}

.editor-content-view sup {
  top: -0.5em;
}

.editor-content-view abbr[title] {
  text-decoration: underline dotted;
}

.editor-content-view img {
  max-width: 100%;
  height: auto;
}

.editor-content-view h1,
.editor-content-view h2,
.editor-content-view h3,
.editor-content-view h4,
.editor-content-view h5,
.editor-content-view h6 {
  margin: 0.8em 0 0.4em;
  font-weight: 700;
  line-height: 1.35;
}

.editor-content-view h1 { font-size: 2em; }
.editor-content-view h2 { font-size: 1.5em; }
.editor-content-view h3 { font-size: 1.25em; }
.editor-content-view h4 { font-size: 1.125em; }
.editor-content-view h5 { font-size: 1em; }
.editor-content-view h6 { font-size: 0.875em; }

.editor-content-view p {
  white-space: pre-wrap;
  margin: 8px 0;
}

.editor-content-view hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 20px 0;
}

.editor-content-view pre {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.9em;
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f7f7f8;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  line-height: 1.6;
  margin: 0.8em 0;
}

.editor-content-view code {
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  word-break: break-all;
  overflow-wrap: break-word;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

.editor-content-view pre code {
  word-break: normal;
  overflow-wrap: normal;
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.editor-content-view video,
.editor-content-view iframe {
  max-width: 100%;
  height: auto;
}

.editor-content-view blockquote {
  border-left: 4px solid #d0e5f2;
  padding: 10px 16px;
  margin: 16px 0;
  background-color: #f8f9fa;
  color: #555;
}

.editor-content-view blockquote blockquote {
  margin: 8px 0;
}

.editor-content-view blockquote p {
  margin: 6px 0;
}

.editor-content-view table {
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  margin: 0.8em 0;
}

.editor-content-view td,
.editor-content-view th {
  border: 1px solid #ccc;
  padding: 12px 16px;
  min-width: 50px;
}

.editor-content-view th {
  background-color: #f1f1f1;
}

.editor-content-view tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.editor-content-view ul,
.editor-content-view ol {
  padding-left: 1.5em;
  margin: 0.8em 0;
}

.editor-content-view ul {
  list-style-type: disc;
}

.editor-content-view ol {
  list-style-type: decimal;
}

.editor-content-view li {
  display: list-item;
  margin: 0.25em 0;
}

.editor-content-view ul ul { list-style-type: circle; }
.editor-content-view ul ul ul { list-style-type: square; }
.editor-content-view ol ol { list-style-type: lower-alpha; }
.editor-content-view ol ol ol { list-style-type: lower-roman; }

.editor-content-view ul ul,
.editor-content-view ul ol,
.editor-content-view ol ul,
.editor-content-view ol ol {
  margin: 0.2em 0;
}

.editor-content-view li > p {
  margin: 2px 0;
  display: inline;
}

.editor-content-view input[type="checkbox"] {
  margin-right: 5px;
}

.editor-content-view [data-w-e-type="todo"] {
  list-style: none;
  padding-left: 0;
}

.editor-content-view [data-w-e-type="todo"] li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.editor-content-view [data-w-e-type="todo"] input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.editor-content-view [data-w-e-type="attachment"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #318ef4;
  text-decoration: none;
  font-size: 14px;
  word-break: break-all;
}

.editor-content-view [data-w-e-type="attachment"]:hover {
  background: #eef5ff;
}

.editor-content-view [data-w-e-type="link-card"] {
  display: block;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  color: #333;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.editor-content-view [data-w-e-type="link-card"]:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editor-content-view [data-w-e-type="mention"] {
  color: #318ef4;
  background: #eef5ff;
  padding: 1px 4px;
  border-radius: 3px;
}

@media (max-width: 768px) {
  .editor-content-view {
    padding: 0 6px;
    font-size: 15px;
    line-height: 1.7;
  }

  .editor-content-view h1 { font-size: 1.5em; margin: 0.5em 0; }
  .editor-content-view h2 { font-size: 1.3em; margin: 0.5em 0; }
  .editor-content-view h3 { font-size: 1.1em; margin: 0.6em 0; }
  .editor-content-view h4,
  .editor-content-view h5,
  .editor-content-view h6 { font-size: 1em; margin: 0.6em 0; }

  .editor-content-view img {
    display: block;
  }

  .editor-content-view pre {
    font-size: 13px;
    padding: 10px 12px;
    -webkit-overflow-scrolling: touch;
  }

  .editor-content-view code {
    font-size: 0.85em;
  }

  .editor-content-view blockquote {
    padding: 8px;
    margin: 8px 0;
  }

  .editor-content-view table {
    font-size: 13px;
    -webkit-overflow-scrolling: touch;
  }

  .editor-content-view td,
  .editor-content-view th {
    min-width: 40px;
    padding: 6px 8px;
  }

  .editor-content-view p {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .editor-content-view {
    padding: 0 4px;
    font-size: 14px;
  }

  .editor-content-view h1 { font-size: 1.35em; }
  .editor-content-view h2 { font-size: 1.2em; }
  .editor-content-view h3 { font-size: 1.05em; }

  .editor-content-view pre {
    font-size: 12px;
    padding: 8px 10px;
  }

  .editor-content-view td,
  .editor-content-view th {
    padding: 5px 6px;
    font-size: 12px;
  }
}
