/* v3.10.1 小说无限画布：语义徽标、新建菜单、筛选图例、资料卡 */

.canvas-surface-actions { position: relative; }
.novel-surface-create svg { width: 17px; height: 17px; }
.novel-surface-filter { position: relative; }
.novel-surface-filter.is-active { color: #fff; border-color: rgba(139,124,255,.58); background: rgba(67,56,202,.34); }
.novel-filter-count {
  position: absolute; right: -5px; top: -5px; min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-grid; place-items: center; border-radius: 999px; background: #8b7cff; color: #fff;
  font-size: 10px; line-height: 1; font-weight: 800; border: 1px solid rgba(10,12,18,.9);
}

.novel-popover,
.novel-filter-panel {
  position: absolute; z-index: 1250; color: #dce2f0;
  border: 1px solid rgba(255,255,255,.105); border-radius: 15px;
  background: linear-gradient(180deg, rgba(24,27,36,.98), rgba(15,18,25,.98));
  box-shadow: 0 24px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(16px); overflow: hidden;
}
.novel-popover { max-height: calc(100% - 128px); overflow-y: auto; padding: 10px; }
.directory-novel-dot { box-shadow: 0 0 0 3px rgba(255,255,255,.045); }
.novel-menu-group + .novel-menu-group { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.07); }
.novel-menu-title { padding: 2px 6px 7px; color: #8f99ad; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.novel-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; }
.novel-menu-item {
  min-width: 0; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 9px;
  border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.035);
  color: #d7ddec; font-size: 12px; font-weight: 620; text-align: left; cursor: pointer; transition: .15s ease;
}
.novel-menu-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.novel-menu-item i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.035); }
.novel-menu-item:hover { border-color: rgba(139,124,255,.38); background: rgba(139,124,255,.14); color: #fff; transform: translateY(-1px); }

.novel-filter-panel { display: flex; flex-direction: column; width: 338px; max-height: calc(100% - 112px); }
.nf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nf-head strong { display: block; font-size: 13px; color: #f0f3ff; }
.nf-head span { display: block; margin-top: 3px; color: #8590a5; font-size: 10.5px; }
.nf-clear { height: 27px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #cfd6e6; font-size: 11px; cursor: pointer; }
.nf-clear:hover { background: rgba(229,72,77,.16); border-color: rgba(229,72,77,.34); color: #ffd7d9; }
.nf-body { padding: 12px 14px 14px; overflow-y: auto; }
.nf-search { width: 100%; height: 34px; }
.nf-label { margin: 13px 0 7px; color: #929db1; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.nf-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.nf-chip { height: 27px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); color: #b8c1d3; font-size: 11px; cursor: pointer; }
.nf-chip.is-active { color: #fff; border-color: rgba(139,124,255,.55); background: rgba(139,124,255,.22); }
.nf-field { display: grid; gap: 6px; margin-top: 10px; color: #aab4c7; font-size: 11px; }
.nf-field .select, .nf-field .input { width: 100%; height: 33px; font-size: 12px; }
.nf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nf-check { display: flex; align-items: center; gap: 8px; margin-top: 11px; color: #c6cede; font-size: 12px; cursor: pointer; }
.nf-check input { accent-color: #8b7cff; }
.nf-legend { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.nf-legend-group + .nf-legend-group { margin-top: 8px; }
.nf-legend-title { display: block; margin-bottom: 5px; color: #8792a7; font-size: 10.5px; }
.nf-legend-items { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.nf-legend-items span { display: inline-flex; align-items: center; gap: 5px; color: #b5bfd1; font-size: 10.5px; }
.nf-legend-items i { width: 7px; height: 7px; border-radius: 50%; }

/* 节点卡片语义层 */
.studio-v3 .node-novel-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 7px; min-width: 0; }
.node-kind-badge,
.node-status-chip,
.node-tag-chip {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 19px; padding: 0 7px;
  border-radius: 999px; font-size: 10px; line-height: 1; white-space: nowrap;
}
.node-kind-badge { color: var(--novel-accent, #c8cfff); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); font-weight: 750; }
.node-kind-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--novel-accent, #8b7cff); }
.node-status-chip { color: #d9e1f2; background: rgba(110,168,254,.13); border: 1px solid rgba(110,168,254,.22); }
.node-tag-chip { color: #8f9bb2; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.055); }
.studio-v3 .node-inspector-corner {
  position: static; top: auto; right: auto; width: 27px; height: 27px; flex: 0 0 auto;
  border-radius: 9px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07);
}
.studio-v3 .node-inspector-corner svg { width: 14px; height: 14px; }
.studio-v3 .node-inspector-corner:hover { background: rgba(139,124,255,.2); border-color: rgba(139,124,255,.38); color: #fff; }
.studio-v3 .node.focused .node-inspector-corner { width: 30px; height: 30px; }
.node.is-filtered-out { display: none !important; }

/* 资料卡弹层 */
.novel-inspector-overlay {
  position: fixed; inset: 0; z-index: 3200; display: grid; place-items: center; padding: 18px;
  background: rgba(4,6,11,.64); backdrop-filter: blur(8px); animation: ni-fade .16s ease;
}
@keyframes ni-fade { from { opacity: 0; } to { opacity: 1; } }
.novel-inspector-modal {
  width: min(880px, calc(100vw - 32px)); max-height: min(88vh, 940px); display: grid; grid-template-rows: auto 1fr;
  border: 1px solid rgba(255,255,255,.11); border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #191d27, #10131a); box-shadow: 0 34px 120px rgba(0,0,0,.62);
}
.ni-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ni-header-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ni-accent-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #8b7cff; box-shadow: 0 0 0 5px rgba(139,124,255,.12); }
.ni-heading-text { min-width: 0; }
.ni-heading-text strong { display: block; color: #f3f5ff; font-size: 15px; }
.ni-subtitle { display: block; margin-top: 3px; color: #8490a6; font-size: 11px; }
.ni-close { width: 32px; height: 32px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.05); color: #cfd6e6; font-size: 22px; line-height: 1; cursor: pointer; }
.ni-close:hover { color: #fff; background: rgba(229,72,77,.18); border-color: rgba(229,72,77,.35); }
.ni-content { padding: 16px 18px 20px; overflow-y: auto; }
.ni-section { padding: 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 15px; background: rgba(255,255,255,.028); }
.ni-section + .ni-section { margin-top: 13px; }
.ni-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.ni-section-title span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--ni-accent) 18%, transparent); color: var(--ni-accent); font-size: 10px; font-weight: 850; }
.ni-section-title h3 { margin: 0; color: #eef2ff; font-size: 13px; }
.ni-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.ni-field { display: grid; gap: 6px; min-width: 0; color: #aab5c8; font-size: 11px; }
.ni-field-full { grid-column: 1 / -1; }
.ni-field input:not([type="checkbox"]):not([type="range"]),
.ni-field select,
.ni-field textarea {
  width: 100%; border-radius: 10px; color: #e8edf9; background: #10141d;
  border: 1px solid rgba(255,255,255,.11); padding: 8px 10px; outline: none;
}
.ni-field select option, .ni-field select optgroup { background: #151a24; color: #e8edf9; }
.ni-field input::placeholder, .ni-field textarea::placeholder { color: #68748a; }
.ni-field input:focus, .ni-field select:focus, .ni-field textarea:focus { border-color: rgba(139,124,255,.58); box-shadow: 0 0 0 3px rgba(139,124,255,.13); }
.ni-field textarea { resize: vertical; min-height: 88px; line-height: 1.65; }
.ni-score-row input[type="range"] { padding: 0; border: 0; background: transparent; box-shadow: none; }
.ni-score-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 16px; }
.ni-score-row { display: grid; grid-template-columns: 82px minmax(0,1fr) 48px; align-items: center; gap: 9px; color: #b7c0d2; font-size: 11.5px; }
.ni-score-row input { width: 100%; accent-color: var(--ni-accent, #8b7cff); }
.ni-score-row em { color: #8994a9; font-style: normal; font-size: 10.5px; text-align: right; }
.ni-foreshadow-grid { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.ni-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 7px; }
.ni-check { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; border: 1px solid rgba(255,255,255,.075); border-radius: 10px; background: rgba(0,0,0,.12); color: #c7cfdf; font-size: 11.5px; cursor: pointer; }
.ni-check input { accent-color: var(--ni-accent, #8b7cff); }
.ni-check span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ni-empty-inline { padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.035); color: #8490a6; font-size: 11.5px; }
.ni-edge-list { display: grid; gap: 7px; }
.ni-edge-item { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(0,0,0,.13); }
.ni-edge-dir { color: var(--ni-accent, #8b7cff); font-weight: 900; }
.ni-edge-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #d8deec; font-size: 12px; }
.ni-edge-label { padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.055); color: #9faac0; font-size: 10.5px; }

@media (max-width: 760px) {
  .novel-inspector-overlay { padding: 10px; }
  .novel-inspector-modal { width: 100%; max-height: 92vh; border-radius: 16px; }
  .ni-grid, .ni-score-grid { grid-template-columns: 1fr; }
  .ni-field-full { grid-column: auto; }
  .novel-filter-panel { width: min(338px, calc(100vw - 24px)); }
  .novel-menu-grid { grid-template-columns: 1fr; }
}

body.shell-high-scale-compact .node-novel-bar { gap: 3px; margin-bottom: 5px; }
body.shell-high-scale-compact .node-kind-badge,
body.shell-high-scale-compact .node-status-chip,
body.shell-high-scale-compact .node-tag-chip { height: 17px; padding: 0 6px; font-size: 9px; }
body.shell-high-scale-compact .node-tag-chip { display: none; }
body.shell-high-scale-compact .studio-v3 .node-inspector-corner { width: 23px; height: 23px; }

/* v3.10.2 大纲台与泳道 */
.novel-view-switch {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px;
  margin: 0 14px 10px; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
  backdrop-filter: blur(18px) saturate(145%); -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.05), 0 12px 30px rgba(0,0,0,.18);
}
.novel-view-switch button {
  position: relative; z-index: 2; height: 28px; padding: 0 4px; border: 0; border-radius: 999px; background: transparent; color: #9aa4b8;
  font-size: 11.5px; line-height: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: color .18s ease, background .18s ease;
}
.novel-view-switch button:hover { color: #eef2ff; background: rgba(255,255,255,.07); }
.novel-view-switch button.is-active { color: #fff; background: transparent; }
.novel-view-pill {
  position: absolute; top: 0; left: 0; z-index: 1; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(124,108,255,.30) 48%, rgba(91,119,255,.24));
  backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), inset 0 -1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(91,100,255,.22);
  will-change: transform; pointer-events: none;
}
@media (max-width: 1366px) {
  .novel-view-switch { margin-left: 10px; margin-right: 10px; gap: 2px; padding: 2px; }
  .novel-view-switch button { height: 26px; padding: 0 2px; font-size: 10.5px; }
}

.novel-studio-view {
  position: absolute; inset: 0; z-index: 22; overflow: hidden; color: #dfe5f3;
  border-radius: inherit; background:
    radial-gradient(circle at 18% 0%, rgba(112,96,255,.13), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(55,189,248,.08), transparent 30%),
    #0d1018;
}
.canvas-viewport.novel-studio-active #world,
.canvas-viewport.novel-studio-active .canvas-minimap,
.canvas-viewport.novel-studio-active .canvas-hint,
.canvas-viewport.novel-studio-active .canvas-zoom-bar,
.canvas-viewport.novel-studio-active .edge-editor,
.canvas-viewport.novel-studio-active .emotion-card,
.canvas-viewport.novel-studio-active .emotion-reopen,
.canvas-viewport.novel-studio-active .novel-filter-panel { display: none !important; }
.canvas-viewport.novel-studio-active #novel-studio-view { display: block; }
.canvas-viewport.novel-studio-active .canvas-surface-bar { z-index: 60; pointer-events: none; }
.canvas-viewport.novel-studio-active .canvas-surface-left-actions { z-index: 1260; pointer-events: auto; }
.canvas-viewport.novel-studio-active #reopen-right { display: none !important; }
.canvas-viewport.novel-studio-active .novel-popover:not(.hidden) { display: block; z-index: 1260; }

/* v3.12.0：全类型菜单直接创建、卡片快捷字段与创建高亮 */
.novel-quick-grid { margin: 0 0 2px; flex: 0 0 auto; }
.novel-quick-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.novel-quick-grid .novel-quick-control {
  width: 100%; min-width: 0; height: 30px; box-sizing: border-box;
  border-radius: 9px; border: 1px solid rgba(255,255,255,.075);
  background: rgba(0,0,0,.18); color: #dce2f0;
}
.novel-quick-grid select.novel-quick-control { padding: 0 8px; cursor: pointer; }
.novel-quick-grid input.novel-quick-control { padding: 6px 9px; font-size: 12px; }
.novel-quick-grid input.novel-quick-control:focus,
.novel-quick-grid select.novel-quick-control:focus {
  outline: none; border-color: rgba(139,124,255,.58); box-shadow: 0 0 0 2px rgba(139,124,255,.13);
}
.studio-v3 .node.node-created-pulse {
  animation: novel-created-pulse 1.65s cubic-bezier(.22,.8,.28,1);
}
@keyframes novel-created-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139,124,255,.0), 0 18px 54px rgba(0,0,0,.34); }
  18% { box-shadow: 0 0 0 3px rgba(139,124,255,.34), 0 24px 72px rgba(20,16,60,.56); }
  100% { box-shadow: 0 0 0 0 rgba(139,124,255,0), 0 18px 54px rgba(0,0,0,.34); }
}

.nv-shell { height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr); gap: 10px; padding: 14px 16px 14px; min-width: 0; }
.nv-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 0; }
.nv-title-wrap { min-width: 210px; flex: 1 1 260px; }
.nv-kicker { color: #7f8cff; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.nv-title { margin: 2px 0 2px; font-size: 17px; line-height: 1.25; color: #f4f6ff; }
.nv-subtitle { color: #8490a6; font-size: 11px; }
.nv-tabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.nv-tab { height: 30px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #94a0b6; font-size: 12px; font-weight: 750; cursor: pointer; }
.nv-tab.is-active { color: #fff; background: rgba(139,124,255,.34); box-shadow: inset 0 0 0 1px rgba(169,158,255,.22); }
.nv-header-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nv-btn { height: 31px; padding: 0 11px; border-radius: 10px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.045); color: #dce3f2; font-size: 11.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nv-btn:hover:not(:disabled) { border-color: rgba(139,124,255,.42); background: rgba(139,124,255,.14); color: #fff; }
.nv-btn:disabled { opacity: .42; cursor: not-allowed; }
.nv-btn-primary { border-color: rgba(139,124,255,.48); background: linear-gradient(135deg, rgba(124,108,255,.82), rgba(87,112,255,.7)); color: #fff; }
.nv-btn-ghost { background: transparent; }

.nv-toolbar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nv-search { flex: 1 1 220px; min-width: 140px; height: 34px; }
.nv-toolbar .nv-filter-plotline, .nv-toolbar .nv-filter-status { width: 154px; height: 34px; flex: 0 0 auto; }
.nv-toolbar-hint { color: #748097; font-size: 10.5px; white-space: nowrap; }
.nv-body { min-height: 0; overflow: hidden; }

.nv-outline { height: 100%; display: grid; grid-template-columns: 246px minmax(0,1fr); gap: 12px; min-height: 0; }
.nv-tree-pane, .nv-board-pane { min-height: 0; border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: rgba(15,19,28,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.nv-tree-pane { overflow: auto; padding: 11px; }
.nv-tree-section + .nv-tree-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.nv-tree-title { margin: 0 5px 8px; color: #8994aa; font-size: 10.5px; font-weight: 850; letter-spacing: .08em; }
.nv-tree-item { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 31px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: #c8d0e1; font-size: 11.5px; text-align: left; cursor: pointer; }
.nv-tree-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nv-tree-item.is-active { background: rgba(139,124,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,124,255,.2); }
.nv-tree-label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nv-tree-item em, .nv-lane-row-head em { margin-left: auto; font-style: normal; color: #7f8ba1; font-size: 10px; }
.nv-tree-dot, .nv-row-dot, .nv-card-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.035); }
.nv-tree-children { margin: 1px 0 5px 18px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.07); }
.nv-tree-subitem { width: 100%; display: flex; align-items: center; gap: 7px; padding: 5px 7px; border: 0; border-radius: 8px; background: transparent; color: #9ea9bd; font-size: 10.8px; text-align: left; cursor: pointer; }
.nv-tree-subitem:hover, .nv-tree-subitem.is-active { color: #fff; background: rgba(255,255,255,.05); }
.nv-mini-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.nv-tree-more, .nv-tree-orphan { padding: 6px 8px; color: #77839a; font-size: 10.5px; }

.nv-board-pane { overflow: auto; padding: 12px; background: transparent; border: 0; box-shadow: none; }
.nv-summary-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: 9px; margin-bottom: 12px; }
.nv-summary-strip > div { display: flex; align-items: baseline; gap: 7px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(17,22,32,.82); }
.nv-summary-strip strong { font-size: 18px; color: #fff; }
.nv-summary-strip span { color: #8490a6; font-size: 10.5px; }
.nv-volume-block { margin-bottom: 14px; padding: 12px; border: 1px solid rgba(139,133,255,.18); border-radius: 18px; background: linear-gradient(180deg, rgba(31,32,55,.72), rgba(15,19,28,.62)); box-shadow: 0 16px 38px rgba(0,0,0,.16); }
.nv-volume-block.is-ungrouped { border-color: rgba(255,255,255,.08); background: rgba(15,19,28,.58); }
.nv-volume-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.nv-volume-head.is-ungrouped strong { color: #e8ecf8; font-size: 13.5px; }
.nv-volume-title-input { flex: 1 1 220px; min-width: 170px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #f2efff; font-size: 14.5px; font-weight: 850; outline: none; }
.nv-volume-title-input:hover, .nv-volume-title-input:focus { background: rgba(255,255,255,.055); border-color: rgba(139,133,255,.28); }
.nv-volume-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nv-volume-chapters { display: flex; flex-direction: column; gap: 10px; }
.nv-volume-chapters .nv-chapter-block { margin-bottom: 0; background: linear-gradient(180deg, rgba(20,25,37,.92), rgba(14,18,27,.92)); }
.nv-empty-cell { padding: 14px; border: 1px dashed rgba(255,255,255,.12); border-radius: 13px; color: #7f8aa1; font-size: 12px; text-align: center; }
.nv-chapter-block { margin-bottom: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: linear-gradient(180deg, rgba(23,28,40,.94), rgba(15,19,28,.94)); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.nv-chapter-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nv-chapter-title-input { flex: 1 1 210px; min-width: 160px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #f1f4ff; font-size: 14px; font-weight: 800; outline: none; }
.nv-chapter-title-input:hover { background: rgba(255,255,255,.04); }
.nv-chapter-title-input:focus { border-color: rgba(139,124,255,.45); background: rgba(10,13,20,.72); }
.nv-chapter-no { display: inline-flex; align-items: center; gap: 4px; color: #8994a8; font-size: 11px; white-space: nowrap; }
.nv-chapter-no input { width: 54px; height: 28px; padding: 0 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.09); background: #10151f; color: #e8edf9; }
.nv-chapter-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.nv-mini-btn { height: 27px; padding: 0 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.085); background: rgba(255,255,255,.04); color: #c5cde0; font-size: 10.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nv-mini-btn:hover { color: #fff; border-color: rgba(139,124,255,.38); background: rgba(139,124,255,.13); }
.nv-mini-select { width: auto; min-width: 88px; height: 28px; padding: 0 7px; font-size: 10.5px; border-radius: 8px; }
.nv-card-list { display: flex; flex-direction: column; gap: 8px; min-height: 54px; margin-top: 10px; padding: 6px; border-radius: 13px; transition: background .15s ease, box-shadow .15s ease; }
.nv-card-list.is-drag-over, .nv-lane-cell.is-drag-over { background: rgba(139,124,255,.1); box-shadow: inset 0 0 0 1px dashed rgba(169,158,255,.55); }
.nv-empty-cell { padding: 12px; border: 1px dashed rgba(255,255,255,.09); border-radius: 11px; color: #748097; font-size: 11px; text-align: center; }
.nv-card { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; gap: 9px; align-items: start; padding: 9px 10px; border: 1px solid rgba(255,255,255,.075); border-radius: 13px; background: rgba(13,17,26,.88); }
.nv-card.is-selected, .nv-lane-card.is-selected { border-color: rgba(139,124,255,.55); box-shadow: 0 0 0 2px rgba(139,124,255,.12); }
.nv-card.is-dragging, .nv-lane-card.is-dragging { opacity: .55; }
.nv-card-main { min-width: 0; }
.nv-card-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nv-card-title-input { flex: 1 1 170px; min-width: 130px; height: 28px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #eef2ff; font-size: 12.5px; font-weight: 750; outline: none; }
.nv-card-title-input:focus { border-color: rgba(139,124,255,.42); background: #0f1420; }
.nv-kind-badge, .nv-status-chip, .nv-tag-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.nv-kind-badge { color: var(--nv-accent); background: color-mix(in srgb, var(--nv-accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nv-accent) 28%, transparent); }
.nv-status-chip { color: #b9c3d7; background: rgba(255,255,255,.06); }
.nv-tag-chip { color: #9fd8ff; background: rgba(56,189,248,.1); }
.nv-card-controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 7px; }
.nv-card-controls label { display: inline-flex; align-items: center; gap: 5px; color: #7f8ba1; font-size: 10px; }
.nv-card-actions { display: flex; gap: 5px; }
.nv-orphan-block { border-style: dashed; border-color: rgba(139,149,167,.3); }

.nv-lanes-scroll { height: 100%; overflow: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(13,17,25,.72); }
.nv-lane-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.nv-lane-corner, .nv-lane-column-head, .nv-lane-row-head { position: sticky; z-index: 2; background: #151b27; color: #dce3f2; }
.nv-lane-corner { left: 0; top: 0; z-index: 4; min-width: 205px; width: 205px; padding: 11px 12px; border-right: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.09); font-size: 11.5px; text-align: left; }
.nv-lane-column-head { top: 0; min-width: 232px; padding: 9px 10px; border-right: 1px solid rgba(255,255,255,.075); border-bottom: 1px solid rgba(255,255,255,.09); text-align: left; }
.nv-lane-col-title { margin-bottom: 6px; font-size: 12px; font-weight: 850; }
.nv-lane-row-head { left: 0; z-index: 3; width: 205px; min-width: 205px; padding: 10px 12px; border-right: 1px solid rgba(255,255,255,.09); border-bottom: 1px solid rgba(255,255,255,.075); text-align: left; font-size: 11.5px; }
.nv-row-dot { display: inline-block; margin-right: 8px; background: var(--nv-accent); }
.nv-row-title { font-weight: 800; }
.nv-lane-cell { width: 232px; min-width: 232px; min-height: 98px; vertical-align: top; padding: 8px; border-right: 1px solid rgba(255,255,255,.065); border-bottom: 1px solid rgba(255,255,255,.065); background: rgba(255,255,255,.014); transition: background .15s ease; }
.nv-lane-card { display: grid; grid-template-columns: 8px minmax(0,1fr) 22px; gap: 7px; align-items: start; margin-bottom: 7px; padding: 8px; border: 1px solid rgba(255,255,255,.075); border-radius: 11px; background: #101621; cursor: grab; }
.nv-lane-card.is-mirrored { border-style: dashed; opacity: .88; background: rgba(18,24,36,.82); }
.nv-lane-card-title { overflow: hidden; color: #e8edfb; font-size: 11.5px; font-weight: 750; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nv-lane-card-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #7f8ba1; font-size: 9.5px; }
.nv-mirror-flag { margin-left: 3px; padding: 1px 5px; border-radius: 999px; color: #f4d58a; background: rgba(245,158,11,.12); }
.nv-lane-card-inspector { width: 22px; height: 22px; border: 0; border-radius: 7px; background: rgba(255,255,255,.05); color: #9aa6bc; cursor: pointer; }
.nv-lane-add { width: 100%; height: 25px; border: 1px dashed rgba(255,255,255,.11); border-radius: 9px; background: transparent; color: #758198; font-size: 10px; cursor: pointer; }
.nv-lane-add:hover { color: #fff; border-color: rgba(139,124,255,.4); background: rgba(139,124,255,.08); }

.nv-empty-state { height: 100%; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 30px; text-align: center; }
.nv-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; font-size: 24px; font-weight: 900; background: linear-gradient(135deg, rgba(124,108,255,.8), rgba(56,189,248,.45)); box-shadow: 0 18px 44px rgba(83,72,220,.28); }
.nv-empty-state h3 { margin: 4px 0 0; color: #f1f4ff; font-size: 17px; }
.nv-empty-state p { max-width: 560px; margin: 0; color: #8995aa; font-size: 12px; line-height: 1.7; }
.nv-empty-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

body.shell-high-scale-compact .nv-shell { padding: 8px 9px; gap: 7px; }
body.shell-high-scale-compact .nv-subtitle, body.shell-high-scale-compact .nv-toolbar-hint { display: none; }
body.shell-high-scale-compact .nv-title { font-size: 14px; }
body.shell-high-scale-compact .nv-header { gap: 7px; }
body.shell-high-scale-compact .nv-title-wrap { flex-basis: 180px; min-width: 170px; }
body.shell-high-scale-compact .nv-tab, body.shell-high-scale-compact .nv-btn { height: 27px; padding: 0 9px; font-size: 10.5px; }
body.shell-high-scale-compact .nv-toolbar { flex-wrap: wrap; }
body.shell-high-scale-compact .nv-search { flex-basis: 100%; height: 30px; }
body.shell-high-scale-compact .nv-toolbar .nv-filter-plotline,
body.shell-high-scale-compact .nv-toolbar .nv-filter-status {
  width: calc(50% - 4px); height: 34px; line-height: 34px; padding-top: 0; padding-bottom: 0;
}
body.shell-high-scale-compact .nv-outline { grid-template-columns: minmax(0,1fr); gap: 8px; }
body.shell-high-scale-compact .nv-tree-pane { display: none; }
body.shell-high-scale-compact .nv-board-pane { padding: 8px; }
body.shell-high-scale-compact .nv-summary-strip { gap: 6px; margin-bottom: 8px; }
body.shell-high-scale-compact .nv-summary-strip > div { padding: 7px 8px; }
body.shell-high-scale-compact .nv-volume-block { padding: 9px; }
body.shell-high-scale-compact .nv-volume-actions { margin-left: 0; width: 100%; }
body.shell-high-scale-compact .nv-chapter-block { padding: 9px; }
body.shell-high-scale-compact .nv-card { grid-template-columns: 8px minmax(0,1fr); }
body.shell-high-scale-compact .nv-card-actions { grid-column: 2; justify-content: flex-end; }
body.shell-high-scale-compact .nv-lane-corner,
body.shell-high-scale-compact .nv-lane-row-head { min-width: 158px; width: 158px; }
body.shell-high-scale-compact .nv-lane-column-head,
body.shell-high-scale-compact .nv-lane-cell { min-width: 178px; width: 178px; }

@media (max-width: 900px) {
  .nv-shell { padding: 10px; }
  .nv-outline { grid-template-columns: 1fr; }
  .nv-tree-pane { max-height: 190px; }
  .nv-toolbar { flex-wrap: wrap; }
  .nv-search { flex-basis: 100%; }
}

/* v3.10.3 节奏时间线、伏笔看板、连续性检查 */
.nv-rhythm { height: 100%; min-height: 0; overflow: auto; padding: 1px 5px 18px 1px; display: grid; align-content: start; gap: 12px; }
.nv-rhythm-tabs { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(17,21,31,.94); backdrop-filter: blur(12px); }
.nv-rhythm-tab { height: 30px; padding: 0 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #98a4ba; font-size: 12px; font-weight: 760; cursor: pointer; }
.nv-rhythm-tab:hover { color: #fff; background: rgba(255,255,255,.055); }
.nv-rhythm-tab.is-active { color: #fff; border-color: rgba(139,124,255,.35); background: rgba(139,124,255,.22); }
.nv-rhythm-health { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nv-rhythm-health em { font-style: normal; font-size: 11px; font-weight: 750; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); color: #b9c3d6; }
.nv-rhythm-health .is-error { color: #ffc6c9; border-color: rgba(255,99,110,.28); background: rgba(229,72,77,.13); }
.nv-rhythm-health .is-warning { color: #ffe0a3; border-color: rgba(245,181,71,.26); background: rgba(245,181,71,.12); }
.nv-rhythm-health .is-info { color: #b9dcff; border-color: rgba(110,168,254,.24); background: rgba(110,168,254,.11); }
.nv-rhythm-health .is-overdue { color: #ffb4c4; border-color: rgba(255,111,145,.3); background: rgba(255,111,145,.13); }

.nv-rhythm-panel { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: linear-gradient(180deg, rgba(25,29,41,.92), rgba(17,21,31,.92)); padding: 14px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.nv-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.nv-panel-head h3 { margin: 0; color: #f1f4ff; font-size: 14px; font-weight: 850; }
.nv-panel-head p { margin: 5px 0 0; color: #8792a8; font-size: 11.5px; line-height: 1.55; max-width: 760px; }
.nv-metric-toggles { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.nv-metric-toggle { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); color: #7f8aa0; font-size: 11px; font-weight: 750; cursor: pointer; }
.nv-metric-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--metric-color); opacity: .42; }
.nv-metric-toggle.is-on { color: #e8edfa; border-color: color-mix(in srgb, var(--metric-color) 42%, transparent); background: color-mix(in srgb, var(--metric-color) 13%, transparent); }
.nv-metric-toggle.is-on i { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--metric-color) 15%, transparent); }
.nv-chart-scroll { width: 100%; overflow-x: auto; padding-bottom: 4px; }
.nv-rhythm-chart { width: 100%; min-width: 760px; height: auto; display: block; }
.nv-chart-grid { stroke: rgba(255,255,255,.075); stroke-width: 1; }
.nv-chart-zero { stroke: rgba(103,215,245,.28); stroke-width: 1.2; stroke-dasharray: 5 5; }
.nv-chart-axis { fill: #78849b; font-size: 10.5px; }
.nv-inline-empty { padding: 24px 14px; border: 1px dashed rgba(255,255,255,.1); border-radius: 13px; color: #8792a8; font-size: 12px; line-height: 1.6; text-align: center; background: rgba(255,255,255,.025); }
.nv-inline-empty.compact { padding: 10px; font-size: 11px; text-align: left; }

.nv-rhythm-chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 10px; }
.nv-rhythm-chapter-card { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(20,24,34,.88); padding: 11px; min-width: 0; }
.nv-rhythm-chapter-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.nv-rhythm-chapter-card header button { border: 0; background: transparent; color: #eef2ff; font-size: 12.5px; font-weight: 830; cursor: pointer; text-align: left; padding: 0; }
.nv-rhythm-chapter-card header small { color: #758198; font-size: 10.5px; white-space: nowrap; }
.nv-score-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.nv-score-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 23px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #98a4ba; font-size: 10.5px; }
.nv-score-chip b { color: #e8edfb; font-size: 11px; }
.nv-score-chip.is-empty { opacity: .62; }
.nv-rhythm-markers { display: grid; gap: 5px; }
.nv-rhythm-marker-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nv-rhythm-marker { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.035); color: #cbd4e6; padding: 6px 8px; font-size: 11px; text-align: left; cursor: pointer; }
.nv-rhythm-marker:hover { border-color: rgba(139,124,255,.35); background: rgba(139,124,255,.12); color: #fff; }
.nv-rhythm-marker i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #8b7cff; }
.nv-rhythm-marker i[data-kind="payoff"] { background: #43d39e; }
.nv-rhythm-marker i[data-kind="angst"] { background: #ff6f91; }
.nv-rhythm-marker i[data-kind="hook"], .nv-rhythm-marker i[data-kind="turning_point"] { background: #f5b547; }
.nv-rhythm-marker i[data-kind="foreshadow"] { background: #62d6f3; }
.nv-mini-locate { height: 27px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); background: transparent; color: #9eabc0; font-size: 10.5px; cursor: pointer; white-space: nowrap; }
.nv-mini-locate:hover { color: #fff; border-color: rgba(139,124,255,.35); background: rgba(139,124,255,.12); }

.nv-foreshadow-board { display: grid; grid-template-columns: repeat(4, minmax(245px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.nv-foreshadow-column { min-width: 245px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(18,22,32,.9); padding: 11px; }
.nv-foreshadow-column header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nv-foreshadow-column h3 { margin: 0; color: #eef2ff; font-size: 13px; font-weight: 850; }
.nv-foreshadow-column header span { min-width: 22px; height: 21px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(139,124,255,.18); color: #d9d3ff; font-size: 10.5px; font-weight: 800; }
.nv-column-desc { margin: 5px 0 10px; color: #748097; font-size: 10.5px; line-height: 1.45; }
.nv-foreshadow-list { display: grid; gap: 8px; max-height: calc(100vh - 245px); overflow: auto; padding-right: 2px; }
.nv-column-empty { padding: 16px 8px; text-align: center; color: #667289; font-size: 11px; border: 1px dashed rgba(255,255,255,.08); border-radius: 11px; }
.nv-foreshadow-card { border: 1px solid rgba(255,255,255,.08); border-radius: 13px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025)); padding: 10px; }
.nv-foreshadow-card.is-overdue { border-color: rgba(255,111,145,.38); box-shadow: inset 3px 0 0 rgba(255,111,145,.72); }
.nv-foreshadow-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.nv-foreshadow-card header button { border: 0; padding: 0; background: transparent; color: #eef2ff; font-size: 12px; font-weight: 820; text-align: left; cursor: pointer; }
.nv-foreshadow-card header em { font-style: normal; flex: 0 0 auto; color: #ffb4c4; background: rgba(255,111,145,.14); border: 1px solid rgba(255,111,145,.28); border-radius: 999px; padding: 3px 7px; font-size: 10px; font-weight: 800; }
.nv-foreshadow-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; color: #8995aa; font-size: 10.5px; line-height: 1.5; margin-bottom: 9px; }
.nv-foreshadow-flow i { font-style: normal; color: #58647a; }
.nv-foreshadow-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nv-btn-small { height: 26px; padding: 0 9px; border-radius: 8px; font-size: 10.5px; }

.nv-issues-panel { padding-bottom: 16px; }
.nv-check-toggle { display: inline-flex; align-items: center; gap: 7px; color: #b9c3d6; font-size: 11.5px; cursor: pointer; }
.nv-check-toggle input { accent-color: #8b7cff; }
.nv-issue-list { display: grid; gap: 9px; }
.nv-issue-card { border: 1px solid rgba(255,255,255,.08); border-left-width: 3px; border-radius: 13px; background: rgba(255,255,255,.032); padding: 11px 12px; }
.nv-issue-card.severity-error { border-left-color: #ff636e; }
.nv-issue-card.severity-warning { border-left-color: #f5b547; }
.nv-issue-card.severity-info { border-left-color: #6ea8fe; }
.nv-issue-card.is-ignored { opacity: .58; }
.nv-issue-card header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nv-issue-rule { color: #c8cfff; background: rgba(139,124,255,.16); border: 1px solid rgba(139,124,255,.24); border-radius: 7px; padding: 3px 7px; font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.nv-issue-severity { color: #98a4ba; font-size: 10.5px; }
.nv-issue-card h4 { margin: 0; color: #edf1ff; font-size: 12.5px; font-weight: 830; }
.nv-ignored-badge { font-style: normal; color: #aab5c8; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 2px 7px; font-size: 10px; }
.nv-issue-card p { margin: 8px 0; color: #c2cadb; font-size: 11.5px; line-height: 1.65; }
.nv-issue-card footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nv-issue-suggestion { color: #8490a6; font-size: 11px; line-height: 1.55; flex: 1 1 320px; }
.nv-issue-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

body.shell-high-scale-compact .nv-rhythm-tabs { position: static; padding: 6px; }
body.shell-high-scale-compact .nv-rhythm-health { margin-left: 0; width: 100%; }
body.shell-high-scale-compact .nv-panel-head { gap: 8px; }
body.shell-high-scale-compact .nv-metric-toggles { justify-content: flex-start; }
body.shell-high-scale-compact .nv-foreshadow-board { grid-template-columns: 1fr; }
body.shell-high-scale-compact .nv-foreshadow-column { min-width: 0; }
body.shell-high-scale-compact .nv-foreshadow-list { max-height: none; }

@media (max-width: 1320px) {
  .nv-foreshadow-board { grid-template-columns: repeat(2, minmax(245px, 1fr)); }
}
@media (max-width: 760px) {
  .nv-foreshadow-board { grid-template-columns: 1fr; }
  .nv-rhythm-chapter-grid { grid-template-columns: 1fr; }
  .nv-issue-card footer { flex-direction: column; }
  .nv-issue-actions { justify-content: flex-start; }
}

/* v3.10.4 人物关系情绪图 */
.nv-graph-host { height: 100%; min-height: 0; }
.nvg { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
.nvg-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 9px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(17,21,31,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.nvg-field { display: grid; gap: 4px; color: #7f8ba1; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.nvg-field .select { height: 30px; min-width: 132px; font-size: 11.5px; }
.nvg-chapter-range { width: 168px; accent-color: #8b7cff; cursor: pointer; }
.nvg-chapter-label { min-width: 74px; color: #d9e0f1; font-size: 11px; font-weight: 800; white-space: nowrap; }
.nvg-lenses { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: rgba(255,255,255,.035); }
.nvg-lens { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #93a0b7; font-size: 11px; font-weight: 780; cursor: pointer; white-space: nowrap; }
.nvg-lens i { width: 8px; height: 8px; border-radius: 50%; opacity: .55; }
.nvg-lens:hover { color: #fff; background: rgba(255,255,255,.055); }
.nvg-lens.is-active { color: #fff; background: rgba(139,124,255,.24); box-shadow: inset 0 0 0 1px rgba(169,158,255,.24); }
.nvg-lens.is-active i { opacity: 1; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.nvg-toggle { display: inline-flex; align-items: center; gap: 6px; color: #aab5c8; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.nvg-toggle input { accent-color: #8b7cff; }
.nvg-stats { display: inline-flex; align-items: center; gap: 8px; color: #758198; font-size: 10.5px; }
.nvg-stats span { padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); white-space: nowrap; }
.nvg-stats b { color: #e6ebf8; font-size: 11px; }
.nvg-toolbar-actions { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }

.nvg-main { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 10px; }
.nvg-canvas-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background:
  radial-gradient(circle at 50% 42%, rgba(124,108,255,.12), transparent 42%),
  radial-gradient(circle at 18% 82%, rgba(67,211,158,.07), transparent 34%),
  rgba(9,13,22,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.nvg-svg { width: 100%; height: 100%; display: block; user-select: none; }
.nvg-svg-bg { fill: rgba(9,13,22,.28); stroke: rgba(255,255,255,.055); stroke-width: 1; }
.nvg-edge { cursor: pointer; }
.nvg-edge-hit { fill: none; stroke: transparent; stroke-width: 22; pointer-events: stroke; }
.nvg-edge-line { fill: none; stroke-linecap: round; transition: stroke-opacity .16s ease, stroke-width .16s ease, opacity .16s ease; pointer-events: none; }
.nvg-edge-label { pointer-events: none; }
.nvg-edge-label rect { fill: rgba(14,19,30,.92); stroke: rgba(255,255,255,.11); stroke-width: 1; }
.nvg-edge-label text { fill: #dce3f3; font-size: 11px; font-weight: 800; }
.nvg-edge.is-dim, .nvg-node.is-dim { opacity: .16; transition: opacity .16s ease; }
.nvg-edge.is-selected .nvg-edge-line { stroke-opacity: .98 !important; filter: drop-shadow(0 0 7px rgba(151,164,255,.42)); }
.nvg-edge.is-selected .nvg-edge-label rect { stroke: rgba(169,158,255,.55); }
.nvg-node { cursor: pointer; outline: none; }
.nvg-node-shape { transition: stroke-width .15s ease, filter .15s ease; }
.nvg-node:hover .nvg-node-shape, .nvg-node:focus .nvg-node-shape, .nvg-node.is-selected .nvg-node-shape { filter: drop-shadow(0 0 10px rgba(143,158,255,.38)); }
.nvg-node-initial { fill: #f5f7ff; font-size: 22px; font-weight: 950; pointer-events: none; }
.nvg-node-title { fill: #eef2ff; font-size: 12px; font-weight: 850; paint-order: stroke; stroke: rgba(7,10,17,.92); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.nvg-node-kind { fill: #8995ab; font-size: 10px; font-weight: 700; paint-order: stroke; stroke: rgba(7,10,17,.9); stroke-width: 3px; pointer-events: none; }

.nvg-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.nvg-empty[hidden] { display: none; }
.nvg-empty-card { width: min(520px, 100%); pointer-events: auto; padding: 22px; text-align: center; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(15,20,31,.9); box-shadow: 0 24px 70px rgba(0,0,0,.34); }
.nvg-empty-card h3 { margin: 0 0 8px; color: #f2f5ff; font-size: 17px; }
.nvg-empty-card p { margin: 0; color: #8995aa; font-size: 12px; line-height: 1.75; }
.nvg-empty-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.nvg-side { min-height: 0; overflow: auto; padding-right: 2px; display: grid; align-content: start; gap: 10px; }
.nvg-side-card { border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 14px; background: linear-gradient(180deg, rgba(25,29,41,.94), rgba(17,21,31,.94)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.nvg-side-kicker { color: #7f8cff; font-size: 10px; font-weight: 900; letter-spacing: .14em; margin-bottom: 6px; }
.nvg-side-card h3 { margin: 0; color: #f1f4ff; font-size: 14px; line-height: 1.45; word-break: break-word; }
.nvg-side-card h3 span { color: #758198; padding: 0 3px; }
.nvg-edge-name { margin-top: 6px; color: #9aa7bd; font-size: 11px; line-height: 1.5; }
.nvg-side-desc { margin: 9px 0 12px; color: #98a4ba; font-size: 11.5px; line-height: 1.7; }
.nvg-side-notice { margin: 10px 0; padding: 10px; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; color: #aab5c8; font-size: 11.5px; line-height: 1.65; background: rgba(255,255,255,.025); }
.nvg-node-actions, .nvg-editor-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.nvg-editor-chapter { margin: 11px 0 4px; }
.nvg-editor-chapter .select { width: 100%; height: 32px; }
.nvg-score-list { display: grid; gap: 8px; margin: 10px 0; }
.nvg-score-row { margin: 0; padding: 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.028); display: block; }
.nvg-score-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #cbd4e6; font-size: 11.5px; font-weight: 800; }
.nvg-score-head span { display: inline-flex; align-items: center; gap: 7px; }
.nvg-score-head i { width: 8px; height: 8px; border-radius: 50%; }
.nvg-score-head output { min-width: 34px; text-align: right; color: #fff; font-size: 11.5px; }
.nvg-score-inputs { display: grid; grid-template-columns: minmax(0,1fr) 64px 26px; gap: 7px; align-items: center; }
.nvg-score-inputs input[type="range"] { width: 100%; accent-color: #8b7cff; }
.nvg-score-number { height: 28px; padding: 0 7px; font-size: 11px; }
.nvg-score-clear { width: 26px; height: 26px; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; background: rgba(255,255,255,.035); color: #9aa7bd; cursor: pointer; }
.nvg-score-clear:hover { color: #fff; border-color: rgba(255,111,145,.4); background: rgba(255,111,145,.12); }
.nvg-note-field { display: grid; gap: 6px; color: #7f8ba1; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.nvg-note-field textarea { resize: vertical; min-height: 66px; padding: 9px 10px; font-size: 11.5px; line-height: 1.55; }
.nvg-related-list { margin-top: 13px; display: grid; gap: 6px; }
.nvg-related-title { color: #8490a6; font-size: 10.5px; font-weight: 850; letter-spacing: .08em; }
.nvg-related-item { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.03); color: #dce3f2; font-size: 11.5px; cursor: pointer; text-align: left; }
.nvg-related-item:hover { border-color: rgba(139,124,255,.36); background: rgba(139,124,255,.12); }
.nvg-related-item em { font-style: normal; color: #8792a8; font-size: 10.5px; white-space: nowrap; }
.nvg-side-empty { padding: 9px; color: #68748b; font-size: 11px; border: 1px dashed rgba(255,255,255,.08); border-radius: 10px; }
.nvg-legend-item { display: grid; grid-template-columns: 10px minmax(0,1fr); gap: 9px; align-items: start; margin-top: 11px; }
.nvg-legend-item i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; }
.nvg-legend-item b { display: block; color: #e4eaf8; font-size: 11.5px; margin-bottom: 2px; }
.nvg-legend-item span { display: block; color: #8490a6; font-size: 10.5px; line-height: 1.55; }
.nvg-legend-note { margin: 13px 0; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); color: #98a4ba; font-size: 11px; line-height: 1.65; }

body.shell-high-scale-compact .novel-view-switch { margin: 0 9px 8px; gap: 2px; padding: 2px; }
body.shell-high-scale-compact .novel-view-switch button { height: 25px; padding: 0 2px; font-size: 10px; }
body.shell-high-scale-compact .nvg-toolbar { padding: 7px 8px; gap: 6px; }
body.shell-high-scale-compact .nvg-chapter-range { width: 120px; }
body.shell-high-scale-compact .nvg-stats { display: none; }
body.shell-high-scale-compact .nvg-main { grid-template-columns: 1fr; grid-template-rows: minmax(260px, 1fr) minmax(170px, .42fr); }
body.shell-high-scale-compact .nvg-side { max-height: none; }
.nvg-edge-editor { display: flex; flex-direction: column; }
.nvg-editor-actions { position: sticky; bottom: -2px; z-index: 2; margin-top: 12px; padding: 12px 0 2px; background: linear-gradient(180deg, rgba(17,21,31,0), rgba(17,21,31,.97) 34%); }

@media (max-width: 1180px) {
  .nvg-main { grid-template-columns: minmax(0,1fr) 292px; }
  .nvg-chapter-range { width: 128px; }
  .nvg-stats { display: none; }
}
@media (max-width: 900px) {
  .nvg-main { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 1fr) minmax(210px, .55fr); }
  .nvg-side { max-height: none; }
  .nvg-toolbar-actions { margin-left: 0; width: 100%; }
}

/* ========== v3.10.5 Agent 批量变更预览 ========== */
.nbp-overlay {
  position: fixed; inset: 0; z-index: 9100; padding: 28px;
  display: grid; place-items: center; background: rgba(3, 5, 10, .72);
  backdrop-filter: blur(10px); animation: nbp-fade-in .16s ease;
}
@keyframes nbp-fade-in { from { opacity: 0; } to { opacity: 1; } }
.nbp-modal {
  width: min(1040px, 96vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(143, 155, 255, .24); border-radius: 20px; color: #e8edf8;
  background: linear-gradient(180deg, rgba(23, 27, 39, .99), rgba(13, 17, 25, .99));
  box-shadow: 0 36px 120px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255,255,255,.05);
}
.nbp-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px 22px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nbp-heading { min-width: 0; }
.nbp-eyebrow { display: block; margin-bottom: 5px; color: #8f9bff; font-size: 10.5px; font-weight: 750; letter-spacing: .18em; }
.nbp-title { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.nbp-summary { margin: 8px 0 0; color: #9aa7bd; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.nbp-close { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); color: #c7d0e2; font-size: 22px; line-height: 1; cursor: pointer; }
.nbp-close:hover { background: rgba(255,255,255,.09); color: #fff; }
.nbp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 13px 22px 0; }
.nbp-risk-banner { display: inline-flex; align-items: center; height: 25px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid; }
.nbp-risk-low { color: #9ff0cf; background: rgba(64, 214, 154, .1); border-color: rgba(64, 214, 154, .28); }
.nbp-risk-medium { color: #ffd98a; background: rgba(245, 181, 74, .1); border-color: rgba(245, 181, 74, .3); }
.nbp-risk-high { color: #ffb4ba; background: rgba(239, 83, 96, .12); border-color: rgba(239, 83, 96, .34); }
.nbp-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.nbp-stat { display: inline-flex; align-items: center; gap: 4px; height: 25px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #aeb9cc; font-size: 11.5px; }
.nbp-stat b { color: #e8edf8; font-size: 12px; }
.nbp-stat-danger { background: rgba(239,83,96,.1); border-color: rgba(239,83,96,.25); color: #ffc4c9; }
.nbp-stat-muted { color: #7f8ba1; }
.nbp-warnings { display: flex; flex-direction: column; gap: 7px; padding: 12px 22px 0; }
.nbp-warning { padding: 9px 11px; border-radius: 11px; border: 1px solid rgba(245, 181, 74, .22); background: rgba(245, 181, 74, .07); color: #e8cf9a; font-size: 12px; line-height: 1.55; }
.nbp-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px 9px; color: #8793a9; font-size: 12px; }
.nbp-list-actions { display: inline-flex; gap: 10px; }
.nbp-link-btn { border: 0; padding: 2px 0; background: transparent; color: #aab4ff; font-size: 12px; cursor: pointer; }
.nbp-link-btn:hover:not(:disabled) { color: #d7dcff; text-decoration: underline; }
.nbp-link-btn:disabled { opacity: .45; cursor: not-allowed; }
.nbp-list { min-height: 140px; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 18px 16px; }
.nbp-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.028); transition: border-color .14s, background .14s, opacity .14s; }
.nbp-item.is-selected { border-color: rgba(124, 132, 255, .42); background: linear-gradient(180deg, rgba(124,108,255,.085), rgba(255,255,255,.022)); }
.nbp-item.is-high-risk { border-color: rgba(255, 107, 116, .25); }
.nbp-item.is-high-risk.is-selected { border-color: rgba(255, 107, 116, .5); background: linear-gradient(180deg, rgba(239,83,96,.09), rgba(255,255,255,.022)); }
.nbp-item.is-failed { border-color: rgba(239,83,96,.55); }
.nbp-item-check { display: flex; align-items: flex-start; justify-content: center; padding-top: 2px; }
.nbp-op-check { width: 16px; height: 16px; accent-color: #7c84ff; cursor: pointer; }
.nbp-item-main { min-width: 0; }
.nbp-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.nbp-item-type { flex: 0 0 auto; padding: 3px 8px; border-radius: 8px; background: rgba(124,132,255,.13); color: #c6cbff; font-size: 10.5px; font-weight: 700; }
.nbp-item-title { min-width: 0; color: #edf2ff; font-size: 13.5px; line-height: 1.5; }
.nbp-risk { margin-left: auto; flex: 0 0 auto; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.nbp-item-sub { margin-top: 4px; color: #6f7b91; font-size: 11px; word-break: break-all; }
.nbp-diff { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.nbp-diff-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 12px; line-height: 1.55; }
.nbp-diff-label { color: #8290a8; }
.nbp-diff-values { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.nbp-val { max-width: 100%; padding: 2px 8px; border-radius: 8px; word-break: break-word; white-space: pre-wrap; }
.nbp-val-before { background: rgba(255,255,255,.052); color: #aab5c8; }
.nbp-val-after { background: rgba(80, 220, 165, .1); color: #bdf4dd; border: 1px solid rgba(80,220,165,.13); }
.nbp-val-delete { background: rgba(239,83,96,.12); color: #ffc3c8; border: 1px solid rgba(239,83,96,.2); }
.nbp-arrow { color: #657188; }
.nbp-item-warnings { margin: 9px 0 0; padding-left: 18px; color: #e2c486; font-size: 11.5px; line-height: 1.6; }
.nbp-item-reason { margin-top: 8px; padding: 7px 9px; border-radius: 9px; background: rgba(255,255,255,.035); color: #9aa7bd; font-size: 11.5px; line-height: 1.55; }
.nbp-item-result { margin-left: auto; flex: 0 0 auto; font-size: 11px; font-weight: 700; }
.nbp-item-result.is-ok { color: #8ff0c8; }
.nbp-item-result.is-fail { color: #ffaab1; }
.nbp-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.nbp-footer-left { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nbp-footer-hint { color: #7f8ba1; font-size: 11.5px; line-height: 1.5; }
.nbp-footer-error { color: #ff9fa7; font-size: 11.5px; }
.nbp-delete-confirm { display: flex; align-items: flex-start; gap: 8px; color: #ffc4c9; font-size: 12px; line-height: 1.5; cursor: pointer; }
.nbp-delete-confirm input { width: 15px; height: 15px; margin-top: 2px; accent-color: #ef5360; }
.nbp-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.nbp-apply { min-width: 132px; }
.nbp-footer-result { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nbp-result-text { font-size: 13px; font-weight: 700; }
.nbp-result-text.is-success { color: #9ff0cf; }
.nbp-result-text.has-fail { color: #ffd98a; }

@media (max-width: 900px) {
  .nbp-overlay { padding: 0; }
  .nbp-modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border-left: 0; border-right: 0; }
  .nbp-header { padding: 17px 16px 12px; }
  .nbp-title { font-size: 18px; }
  .nbp-meta, .nbp-warnings, .nbp-list-toolbar { padding-left: 14px; padding-right: 14px; }
  .nbp-list { padding-left: 12px; padding-right: 12px; }
  .nbp-diff-row { grid-template-columns: 1fr; gap: 4px; }
  .nbp-footer { flex-direction: column; align-items: stretch; }
  .nbp-footer-actions { width: 100%; }
  .nbp-footer-actions .btn { flex: 1; }
  .nbp-footer-result { flex-direction: column; align-items: stretch; }
}

/* ========== v3.11.0 正文工坊 ========== */
.novel-view-switch.novel-view-switch-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.novel-view-switch.novel-view-switch-six { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-left: 10px; margin-right: 10px; gap: 3px; padding: 3px; }
.novel-view-switch.novel-view-switch-six button { height: 26px; padding: 0 1px; font-size: 10.5px; letter-spacing: -0.03em; }
.novel-manuscript-view {
  position: absolute; inset: 0; z-index: 22; overflow: hidden; color: #dfe5f3;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 0%, rgba(112,96,255,.13), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(55,189,248,.08), transparent 28%),
    linear-gradient(180deg, rgba(13,17,28,.98), rgba(9,12,20,.98));
}
.canvas-viewport.novel-manuscript-active #novel-manuscript-view { display: block; }
.nm-shell { height: 100%; min-height: 0; display: grid; grid-template-columns: 304px minmax(0, 1fr); }
.nm-list-pane { min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 15px 12px 10px; border-right: 1px solid rgba(255,255,255,.075); background: rgba(4,7,15,.28); }
.nm-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.nm-kicker { color: #8f9bff; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.nm-list-head h2 { margin: 2px 0 0; color: #f4f6ff; font-size: 18px; line-height: 1.25; }
.nm-list-head .nm-btn-primary { padding: 0 10px; height: 32px; }
.nm-list-tools { display: flex; align-items: center; gap: 7px; }
.nm-search { min-width: 0; flex: 1 1 auto; height: 32px; font-size: 12px; }
.nm-list-tools .nm-btn { height: 32px; padding: 0 9px; }
.nm-btn-icon { width: 32px; padding: 0 !important; font-size: 16px; }
.nm-chapter-list { min-height: 0; flex: 1 1 auto; overflow: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 2px; }
.nm-chapter-item { width: 100%; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 8px; align-items: start; text-align: left; padding: 10px 9px; border-radius: 13px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.032); color: #dce3f2; cursor: pointer; transition: .15s ease; }
.nm-chapter-item:hover { border-color: rgba(139,124,255,.34); background: rgba(139,124,255,.09); }
.nm-chapter-item.is-active { border-color: rgba(139,124,255,.55); background: linear-gradient(180deg, rgba(124,108,255,.18), rgba(124,108,255,.06)); box-shadow: inset 0 0 0 1px rgba(169,158,255,.12); }
.nm-chapter-no { padding-top: 2px; color: #9ea9c0; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.nm-chapter-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nm-chapter-title { display: block; color: #eef2ff; font-size: 12.5px; font-weight: 750; line-height: 1.42; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm-chapter-meta { display: inline-flex; align-items: center; gap: 5px; color: #7f8ba3; font-size: 10.5px; white-space: nowrap; }
.nm-chapter-meta i { width: 7px; height: 7px; border-radius: 50%; background: #748099; }
.nm-chapter-meta i.is-ready { background: #61e2b2; box-shadow: 0 0 8px rgba(97,226,178,.45); }
.nm-chapter-meta i.is-running { background: #8b7cff; animation: nm-pulse 1.1s infinite; }
.nm-chapter-meta i.is-error { background: #ff7b86; }
.nm-chapter-meta i.is-draft { background: #748099; }
@keyframes nm-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.nm-list-foot { color: #66728a; font-size: 10.5px; padding: 7px 3px 0; border-top: 1px solid rgba(255,255,255,.055); }
.nm-empty-list { margin-top: 18px; padding: 18px 13px; border: 1px dashed rgba(255,255,255,.1); border-radius: 15px; text-align: center; color: #8793a9; }
.nm-empty-list strong { display: block; color: #e7ecfa; font-size: 13px; margin-bottom: 7px; }
.nm-empty-list p { margin: 0 0 13px; font-size: 11.5px; line-height: 1.7; }

.nm-editor-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 15px 18px 13px; }
.nm-editor-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.nm-title-input { min-width: 220px; flex: 1 1 300px; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.09); background: rgba(0,0,0,.2); color: #f4f6ff; font-size: 15px; font-weight: 800; outline: none; }
.nm-title-input:focus { border-color: rgba(139,124,255,.55); box-shadow: 0 0 0 3px rgba(124,108,255,.12); }
.nm-status-pill { flex: 0 0 auto; height: 25px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #aab6cc; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.nm-status-pill.is-ready { color: #9ff0cf; background: rgba(64,214,154,.1); border-color: rgba(64,214,154,.25); }
.nm-status-pill.is-running { color: #d2ccff; background: rgba(124,108,255,.14); border-color: rgba(124,108,255,.3); }
.nm-status-pill.is-error { color: #ffc0c6; background: rgba(239,83,96,.11); border-color: rgba(239,83,96,.28); }
.nm-word-count { color: #7f8ba3; font-size: 11.5px; white-space: nowrap; }
.nm-editor-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nm-btn { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.045); color: #dce3f2; font-size: 11.5px; font-weight: 750; cursor: pointer; white-space: nowrap; }
.nm-btn:hover:not(:disabled) { color: #fff; border-color: rgba(139,124,255,.42); background: rgba(139,124,255,.14); }
.nm-btn:disabled { opacity: .45; cursor: not-allowed; }
.nm-btn-primary { border-color: rgba(139,124,255,.5); background: linear-gradient(135deg, rgba(124,108,255,.86), rgba(87,112,255,.72)); color: #fff; box-shadow: 0 8px 22px rgba(83,72,220,.22); }
.nm-btn-danger { color: #ffc3c8; border-color: rgba(239,83,96,.28); background: rgba(239,83,96,.09); }
.nm-body-editor { flex: 1 1 auto; min-height: 260px; width: 100%; resize: none; padding: 18px 20px; border-radius: 17px; border: 1px solid rgba(255,255,255,.085); background: rgba(7,10,19,.46); color: #dce3f2; font-size: 14px; line-height: 2.05; letter-spacing: .01em; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.nm-body-editor:focus { border-color: rgba(139,124,255,.42); box-shadow: 0 0 0 3px rgba(124,108,255,.09); }
.nm-editor-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #66728a; font-size: 10.5px; line-height: 1.5; }
.nm-error-banner { padding: 9px 11px; border-radius: 11px; border: 1px solid rgba(239,83,96,.28); background: rgba(239,83,96,.09); color: #ffc4c9; font-size: 12px; line-height: 1.6; }
.nm-editor-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.nm-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #d9ddff; font-size: 24px; font-weight: 900; background: linear-gradient(135deg, rgba(124,108,255,.72), rgba(74,144,255,.55)); box-shadow: 0 18px 45px rgba(83,72,220,.28); }
.nm-editor-empty h3 { margin: 16px 0 8px; color: #f2f5ff; font-size: 20px; }
.nm-editor-empty p { max-width: 620px; margin: 0 0 18px; color: #8995aa; font-size: 13px; line-height: 1.8; }
.nm-empty-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.nm-empty-actions .nm-btn { height: 36px; padding: 0 16px; font-size: 12.5px; }

.nm-modal-root { position: fixed; inset: 0; z-index: 9300; padding: 28px; display: grid; place-items: center; background: rgba(3,5,10,.72); backdrop-filter: blur(10px); animation: nm-fade-in .16s ease; }
.nm-modal-root.hidden { display: none !important; }
@keyframes nm-fade-in { from { opacity: 0; } to { opacity: 1; } }
.nm-modal { width: min(760px, 96vw); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(143,155,255,.24); border-radius: 20px; color: #e8edf8; background: linear-gradient(180deg, rgba(23,27,39,.99), rgba(13,17,25,.99)); box-shadow: 0 36px 120px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.05); }
.nm-modal-wide { width: min(940px, 96vw); }
.nm-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 21px 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
.nm-modal-head h3 { margin: 3px 0 0; font-size: 19px; line-height: 1.3; }
.nm-modal-close { width: 33px; height: 33px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.04); color: #c7d0e2; font-size: 21px; line-height: 1; cursor: pointer; }
.nm-modal-close:hover:not(:disabled) { color: #fff; background: rgba(255,255,255,.09); }
.nm-modal-body { padding: 16px 21px; overflow: auto; min-height: 0; }
.nm-modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 9px; padding: 13px 21px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.nm-modal-foot .nm-btn { height: 35px; padding: 0 15px; font-size: 12px; }
.nm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.nm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #aeb9cc; font-size: 11.5px; font-weight: 700; }
.nm-field-wide { grid-column: 1 / -1; }
.nm-field .input { width: 100%; }
.nm-field textarea.input { resize: vertical; min-height: 96px; line-height: 1.65; }
.nm-field em { color: #68748b; font-size: 10px; font-style: normal; font-weight: 500; }
.nm-check-field { display: flex; align-items: flex-start; gap: 8px; color: #b9c3d6; font-size: 12px; line-height: 1.55; cursor: pointer; }
.nm-check-field input { width: 15px; height: 15px; margin-top: 2px; accent-color: #7c84ff; }
.nm-form-tip { margin-top: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(124,108,255,.08); border: 1px solid rgba(124,108,255,.18); color: #b8c1d8; font-size: 11.5px; line-height: 1.65; }
.nm-form-grid + .nm-error-banner, .nm-modal-body > .nm-error-banner { margin-top: 12px; }
.nm-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 34px 12px; color: #9aa7bd; text-align: center; font-size: 13px; line-height: 1.7; }
.nm-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: #8b7cff; animation: nm-spin .8s linear infinite; }
@keyframes nm-spin { to { transform: rotate(360deg); } }
.nm-plan-summary { padding: 10px 12px; margin-bottom: 13px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); color: #aeb9cc; font-size: 12px; line-height: 1.65; }
.nm-plan-summary b { color: #fff; }
.nm-plan-list { display: flex; flex-direction: column; gap: 11px; }
.nm-plan-row { display: grid; grid-template-columns: 78px minmax(190px,.8fr) minmax(0,1.4fr); gap: 9px; align-items: start; padding: 11px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(255,255,255,.026); }
.nm-plan-row label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #7f8ba3; font-size: 10.5px; font-weight: 800; }
.nm-plan-row .input { width: 100%; }
.nm-plan-outline { min-width: 0; }
.nm-plan-outline textarea { resize: vertical; min-height: 54px; line-height: 1.55; }
.nm-progress-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #aeb9cc; font-size: 12px; margin-bottom: 9px; }
.nm-progress-head b { color: #f0f3ff; }
.nm-progress-bar { height: 9px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.07); margin-bottom: 14px; }
.nm-progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7c6cff, #58a6ff); transition: width .25s ease; }
.nm-queue-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; padding-right: 2px; }
.nm-queue-row { display: grid; grid-template-columns: 28px minmax(180px,.8fr) minmax(0,1.4fr); gap: 9px; align-items: start; padding: 10px 11px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.028); font-size: 12px; }
.nm-queue-state { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.06); color: #aab6cc; font-weight: 900; }
.nm-queue-row.is-done .nm-queue-state { color: #08130e; background: #61e2b2; }
.nm-queue-row.is-running .nm-queue-state { color: #fff; background: #7c6cff; animation: nm-pulse 1.1s infinite; }
.nm-queue-row.is-error .nm-queue-state { color: #fff; background: #ef5360; }
.nm-queue-title { color: #e9eeff; font-weight: 750; line-height: 1.5; }
.nm-queue-meta { color: #8490a6; line-height: 1.55; word-break: break-word; }
.nm-queue-row.is-error .nm-queue-meta { color: #ffc0c6; }

@media (max-width: 1180px) {
  .nm-shell { grid-template-columns: 270px minmax(0,1fr); }
  .nm-editor-actions { margin-left: 0; }
  .nm-word-count { width: 100%; order: 3; }
}
@media (max-width: 900px) {
  .nm-modal-root { padding: 0; }
  .nm-modal, .nm-modal-wide { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .nm-form-grid { grid-template-columns: 1fr; }
  .nm-plan-row { grid-template-columns: 64px 1fr; }
  .nm-plan-outline { grid-column: 1 / -1; }
  .nm-queue-row { grid-template-columns: 26px 1fr; }
  .nm-queue-meta { grid-column: 2; }
  .nm-shell { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 34vh) minmax(0,1fr); }
  .nm-list-pane { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.075); padding: 10px; }
  .nm-editor-pane { padding: 11px; }
  .nm-body-editor { padding: 14px; font-size: 13px; line-height: 1.9; }
  .nm-editor-foot { display: none; }
}
