/* Document Editor - Notebook style */

.editor-view {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.doc-editor {
  --editor-paper: #ffffff;
  --editor-ink: #111827;
  --editor-muted: #6b7280;
  --editor-accent: #0b3b73;
  --editor-outline: rgba(15, 23, 42, 0.08);
  --editor-wash: rgba(72, 169, 255, 0.08);
  --editor-highlight-color: #ffff00;
  --selection-highlight: rgba(72, 169, 255, 0.3);
  --selection-wave-peak: rgba(255, 255, 255, 0.95);
  --selection-processing-duration: 0.8s;

  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.doc-editor-header {
  display: flex;
  align-items: center;
  padding: 10px;
  background: var(--editor-paper);
  border-bottom: 1px solid var(--editor-outline);
  z-index: 10;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0, 0, 0, 0.03);
  padding: 2px;
  border-radius: 18px;
}

.toolbar-separator {
  width: 1px;
  height: 24px;
  background: var(--editor-outline);
  margin: 0 6px;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 18px;
  color: var(--editor-ink);
  cursor: pointer;
  transition: all 0.2s;
}

.toolbar-btn:hover {
  background: var(--editor-wash);
  color: var(--editor-accent);
}

.toolbar-btn b { font-weight: 800; }
.toolbar-btn i { font-style: italic; font-weight: 600; font-family: serif; }
.toolbar-btn u { text-decoration: underline; font-weight: 600; }
.toolbar-btn s { text-decoration: line-through; }

.toolbar-select {
  height: 32px;
  padding: 0 8px;
  border: none;
  background: transparent;
  color: var(--editor-ink);
  font-size: 14px;
  border-radius: 18px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.toolbar-select:hover,
.toolbar-select:focus {
  background: var(--editor-wash);
  color: var(--editor-accent);
}

.toolbar-color-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
}

.toolbar-color-wrapper:hover {
  background: var(--editor-wash);
}

.color-icon {
  font-weight: bold;
  font-family: serif;
  font-size: 15px;
  line-height: 1;
}

.color-icon.text-color {
  border-bottom: 3px solid currentColor;
  color: #000;
}

.color-icon.highlight-color {
  background: yellow;
  color: black;
  padding: 0 2px;
}

.toolbar-color-wrapper input[type="color"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border-radius: 18px;
}

.btn-sm {
  padding: 0 16px;
  height: 32px;
  font-size: 14px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}


.doc-editor-canvas {
  flex: 1;
  overflow-y: auto;
  padding: 40px 0px 120px 22px;
  background: var(--editor-paper);
  position: relative;
  width: 100%;
  font-family: var(--font-default);
  font-size: var(--main_font);
  scroll-behavior: auto;
  box-sizing: border-box;
  z-index: 0;
  pointer-events: auto;
  scrollbar-gutter: stable;
  overflow-x: hidden;
  overflow-anchor: none;
  overscroll-behavior-y: contain;
}

.doc-editor-canvas::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.doc-editor-canvas::-webkit-scrollbar-thumb {
  background: #dbe1ea;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.15s ease;
}

.doc-editor-canvas::-webkit-scrollbar-thumb:hover {
  background: #c5cdd8;
}

.doc-editor-canvas::-webkit-scrollbar-thumb:active {
  background: #a8b3c2;
}

.doc-editor-canvas::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 22px;
}

.editor-canvas-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, 700px);
  margin: 0 auto;
  min-height: 60vh;
  padding: 7px 12px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: none;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  font-family: var(--font-default) !important;
  font-size: 15px;
  color: var(--text);
  cursor: text;
}

.editor-canvas-content code,
.editor-canvas-content pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}


.editor-canvas-content.markdown-content {
  white-space: normal;
}

.editor-canvas-content::selection {
  background: rgba(72, 169, 255, 0.3);
  color: inherit;
}

.editor-canvas-content *::selection {
  background: rgba(72, 169, 255, 0.3);
  color: inherit;
}


@keyframes drafting-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.editor-canvas-content:empty::before {
  content: attr(data-placeholder);
  color: #9aa3b2;
  font-style: normal;
}

.editor-canvas-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

.editor-canvas-content table {
  margin: 14px 0;
  width: 100%;
  border-collapse: collapse;
  font-size: inherit;
  line-height: inherit;
  table-layout: fixed;
}

.editor-canvas-content table th,
.editor-canvas-content table td {
  border: 1px solid #c5ccd6;
  padding: 8px 12px;
  vertical-align: top;
  text-align: left;
  /* override pre-wrap from parent contenteditable — table cells need normal whitespace */
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.editor-canvas-content table th {
  background: #f4f6f9;
  font-weight: 600;
}

/* Equal columns by default */
.editor-canvas-content table th,
.editor-canvas-content table td {
  width: auto;
}

.llm-edit-pending {
  background: color-mix(in oklab, var(--file-item-active) 20%, transparent);
  padding: 2px 0;
  border-radius: 2px;
  animation: shimmer-text 4s linear infinite;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-delay: 0s;
  animation-iteration-count: infinite;
  animation-direction: normal;
  animation-fill-mode: none;
  animation-play-state: running;
  animation-name: shimmer-text;
  animation-timeline: auto;
  animation-range-start: normal;
  animation-range-end: normal;
}


.editor-canvas-content.style-bold {
  font-weight: 600;
}

.editor-canvas-content.style-italic {
  font-style: italic;
}

.editor-canvas-content.style-underline {
  text-decoration: underline;
}

.editor-canvas-content.style-highlight {
  background: #fff7d1;
}

.doc-editor .placeholder-marker {
  background: var(--editor-highlight-color);
  color: #000;
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.editor-canvas-content.style-quote {
  border-left: 3px solid rgba(15, 23, 42, 0.2);
  padding-left: 14px;
  background: var(--surface-2);
}



.llm-selection-target {
  background: rgba(72, 169, 255, 0.2);
  border-radius: var(--padding-xs);
  padding: 2px 1px;
}

.selection-highlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.selection-highlight-layer.selection-highlight-layer-visible {
  opacity: 1;
}

.selection-highlight {
  position: absolute;
  background: rgba(72, 169, 255, 0.3);
}

.llm-change-applied {
  background: rgba(16, 185, 129, 0.2);
}

.doc-find-hit {
  background: rgba(250, 204, 21, 0.35);
  border-radius: var(--padding-xs);
  padding: 1px 0;
}

.selection-bubble {
  position: absolute;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  padding: var(--padding-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
  font-size: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.selection-bubble.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.selection-actions {
  display: flex;
  gap: 6px;
}

.selection-bubble .selection-actions button {
  flex: 1;
  height: 35px;
  border-radius: 18px;
  border: none;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--text);
}

.selection-bubble .selection-actions button:hover {
  background: var(--hover_transparent_btns);
  color: var(--editor-ink);
}

.selection-bubble .selection-actions button:active {
  background: var(--active_transparent_btns);
}

.selection-bubble .selection-actions button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2px;
}

.selection-bubble input {
  height: 40px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0 48px 0 12px;
  font-size: 14px;
  width: 100%;
}

.selection-bubble input:focus {
  outline: none;
  border-color: rgba(148, 163, 184, 0.7);
  border-width: 1px;
}

.selection-input {
  position: relative;
  display: flex;
  width: 100%;
}

.selection-bubble .selection-apply {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--main_color);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  transform: translateY(-50%);
}

.selection-bubble .selection-apply:hover {
  background: var(--hover_main_color);
  box-shadow: 0 1px 8px var(--main_color_shadow);
}

.selection-bubble .selection-apply:active {
  filter: brightness(0.95);
  transform: translateY(calc(-50% + 1px)) scale(0.96);
  box-shadow: 0 1px 3px rgba(15,23,42,.116) inset;
}

.selection-bubble .selection-apply:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}

.selection-bubble .selection-apply:disabled:hover,
.selection-bubble .selection-apply:disabled:active {
  background: var(--main_color);
  box-shadow: none;
  transform: translateY(-50%);
  filter: none;
}

.doc-editor .send-btn.is-streaming svg {
  display: none;
}

.doc-editor .send-btn.is-streaming::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: var(--surface);
  display: block;
}


.doc-editor .editor-composer-input {
  width: 100%;
  min-height: 38px;
  max-height: calc(22.4px * 15 + 8px);
  resize: none;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 8px 6px 0;
  font: inherit;
  color: #000;
  font-size: 16px;
  overflow-y: hidden;
  line-height: 1.4;
  pointer-events: auto !important;
  transition: height 0.24s cubic-bezier(0.2, 0, 0.2, 1);
}

.doc-editor .editor-composer-input::-webkit-scrollbar {
  width: 6px;
}

.doc-editor .editor-composer-input::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.doc-editor .editor-composer-input::-webkit-scrollbar-track {
  background: transparent;
}

.doc-editor .editor-composer-input::placeholder {
  color: rgba(0,0,0,.5);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}

.table th,
.table td {
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  padding: 10px;
  font-size: 14px;
  vertical-align: top;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: none;
}

.table th:last-child,
.table td:last-child {
  border-right: none;
}

.table th {
  background: var(--surface-2);
  text-align: left;
}


.table td[contenteditable="true"] {
  outline: none;
  background: var(--surface);
}


.editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.editor-modal.open {
  opacity: 1;
  visibility: visible;
}

.editor-modal-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
  width: min(420px, 90vw);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.editor-modal-card h3 {
  font-size: 16px;
  margin: 0;
}

.editor-modal-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-modal-fields label {
  font-size: 12px;
  color: var(--editor-muted);
  display: flex;
  flex-direction: column;
  gap: var(--padding-xs);
}

.editor-modal-fields input,
.editor-modal-fields select {
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0 8px;
  font-size: 12px;
}

.editor-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.editor-modal-actions button {
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: var(--surface);
  padding: 0 12px;
  font-size: 12px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .doc-editor-canvas {
    padding: 18px var(--padding-xs) 120px 14px;
  }

  .doc-editor-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes llm-edit-flash {
  0%   { background-color: rgba(59, 130, 246, 0.18); }
  100% { background-color: transparent; }
}
.llm-edit-flash {
  animation: llm-edit-flash 1.5s ease-out forwards;
  border-radius: 3px;
}

/* ── AI toolbar buttons ─────────────────────────────────────────────────── */

.toolbar-group-ai .toolbar-btn {
  position: relative;
}

.toolbar-group-ai .toolbar-btn.active {
  background: var(--editor-wash);
  color: var(--editor-accent);
}

.toolbar-group-ai .toolbar-btn.loading {
  pointer-events: none;
  opacity: 0.5;
}

/* Issue count badge on review button */
[data-action="review"][data-issue-count]::after {
  content: attr(data-issue-count);
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  line-height: 1;
  pointer-events: none;
}

/* ── Track Changes ───────────────────────────────────────────────────────── */

.tc-pending {
  position: relative;
}

.tc-insert {
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.06);
}

.tc-replace {
  border-left: 3px solid #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.tc-delete {
  border-left: 3px solid #ef4444;
  background: rgba(239, 68, 68, 0.06);
  text-decoration: line-through;
  opacity: 0.65;
}

.tc-controls {
  position: absolute;
  top: 4px;
  right: -64px;
  display: flex;
  gap: 4px;
  z-index: 10;
}

.tc-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: background 0.15s;
}

.tc-accept {
  background: #dcfce7;
  color: #15803d;
}
.tc-accept:hover { background: #bbf7d0; }

.tc-reject {
  background: #fee2e2;
  color: #b91c1c;
}
.tc-reject:hover { background: #fecaca; }

/* ── Review markers ─────────────────────────────────────────────────────── */

.review-markers-layer {
  position: absolute;
  top: 0;
  right: 4px;
  width: 26px;
  pointer-events: none;
  z-index: 20;
}

.review-marker {
  position: absolute;
  right: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--mc, #6b7280);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.85;
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.review-marker:hover {
  opacity: 1;
  transform: scale(1.15);
}

@keyframes review-highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.25); }
}

.review-highlight {
  animation: review-highlight-pulse 1s ease-in-out 2;
  border-radius: 4px;
}

/* ── Bilingual table ────────────────────────────────────────────────────── */

.bilingual-table-caption {
  caption-side: top;
  text-align: right;
  padding: 4px 6px 2px;
  font-size: 12px;
  user-select: none;
}

.auto-translate-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border: 1px solid rgba(11, 59, 115, 0.25);
  border-radius: 20px;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.auto-translate-toggle-btn:hover {
  background: #f0f5ff;
  color: #0b3b73;
  border-color: #0b3b73;
}

.auto-translate-toggle-btn.active {
  background: #dbeafe;
  color: #0b3b73;
  border-color: #0b3b73;
  font-weight: 600;
}

.bilingual-table td {
  position: relative;
}

/* Wrapper so the translate button sits independently of text */
.bilingual-table td .cell-content {
  display: block;
  padding-right: 26px;
}

.cell-translate-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(11, 59, 115, 0.25);
  border-radius: 6px;
  background: #f0f5ff;
  color: #0b3b73;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.7;
  z-index: 1;
}

.bilingual-table td:hover .cell-translate-btn {
  display: flex;
}

.cell-translate-btn:hover {
  background: #dbeafe;
  opacity: 1;
}

@keyframes cell-translate-spin {
  to { transform: rotate(360deg); }
}

.cell-translate-btn.loading {
  pointer-events: none;
  opacity: 0.5;
  animation: cell-translate-spin 0.7s linear infinite;
}

/* ── Slash palette ──────────────────────────────────────────────────────── */

.slash-palette {
  position: absolute;
  z-index: 10500;
  background: var(--surface, #fff);
  border: 1px solid var(--editor-outline);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 4px;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.slash-palette[hidden] { display: none; }

.slash-palette button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--editor-ink, #111827);
  cursor: pointer;
  transition: background 0.12s;
}

.slash-palette button:hover,
.slash-palette button.active {
  background: var(--editor-wash, rgba(72, 169, 255, 0.1));
  color: var(--editor-accent, #0b3b73);
}

/* ── Find & Replace panel ───────────────────────────────────────────────── */

.find-replace-panel {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--editor-outline);
  flex-wrap: wrap;
}

.find-replace-panel[hidden] { display: none; }

.find-replace-panel .fr-find,
.find-replace-panel .fr-replace {
  height: 30px;
  border: 1px solid var(--editor-outline);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  min-width: 140px;
  background: transparent;
  color: var(--editor-ink, #111827);
  outline: none;
  transition: border-color 0.15s;
}

.find-replace-panel .fr-find:focus,
.find-replace-panel .fr-replace:focus {
  border-color: var(--editor-accent, #0b3b73);
}

.fr-btn {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--editor-outline);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  color: var(--editor-ink, #111827);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.fr-btn:hover {
  background: var(--editor-wash, rgba(72, 169, 255, 0.1));
  color: var(--editor-accent, #0b3b73);
}

.fr-btn-ai {
  background: var(--editor-wash, rgba(72, 169, 255, 0.08));
  color: var(--editor-accent, #0b3b73);
  border-color: rgba(11, 59, 115, 0.25);
  font-weight: 600;
}

.fr-btn-close {
  border-color: transparent;
  color: var(--editor-muted, #6b7280);
  padding: 0 8px;
}

.fr-count {
  font-size: 12px;
  color: var(--editor-muted, #6b7280);
  white-space: nowrap;
  min-width: 70px;
}

mark.fr-hl {
  background: rgba(250, 204, 21, 0.45);
  border-radius: 2px;
  color: inherit;
}

mark.fr-hl.fr-current {
  background: rgba(249, 115, 22, 0.45);
  outline: 1px solid rgba(249, 115, 22, 0.7);
}

/* ── Document Outline panel ─────────────────────────────────────────────── */

.outline-panel {
  position: absolute;
  top: 40px;
  right: 10px;
  width: 220px;
  max-height: calc(100% - 60px);
  background: var(--surface, #fff);
  border: 1px solid var(--editor-outline);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 500;
}

.outline-panel[hidden] { display: none; }

.outline-header {
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--editor-muted, #6b7280);
  border-bottom: 1px solid var(--editor-outline);
  flex-shrink: 0;
}

.outline-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  flex: 1;
}

.outline-list li {
  padding: 5px 14px;
  font-size: 13px;
  color: var(--editor-ink, #111827);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
  margin: 0 4px;
  transition: background 0.12s;
}

.outline-list li:hover {
  background: var(--editor-wash, rgba(72, 169, 255, 0.1));
  color: var(--editor-accent, #0b3b73);
}
