/**
 * literary-creation.css — Standalone styles for the Literary Creation module
 *
 * Extracted from the monolithic literary-creation-view.js + new Phase 4 panel styles.
 * Loaded once via <link> or dynamic import.
 */

/* ── CSS Variables (light defaults; overridden by applyTheme) ── */
.lc-panel {
  --lc-bg: #ffffff;
  --lc-surface: rgba(0, 0, 0, 0.025);
  --lc-surface2: rgba(0, 0, 0, 0.05);
  --lc-border: rgba(0, 0, 0, 0.09);
  --lc-border-soft: rgba(0, 0, 0, 0.05);
  --lc-text: #1a1a1a;
  --lc-text-2: #6b7280;
  --lc-text-3: #9ca3af;
  --lc-accent: var(--accent, #7c5cbf);
  --lc-accent-light: rgba(124, 92, 191, 0.1);
  --lc-accent-ring: rgba(124, 92, 191, 0.22);
  --lc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --lc-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  --lc-radius: 10px;
  --lc-radius-sm: 7px;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    sans-serif;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--lc-bg);
  color: var(--lc-text);
}

/* ══════════════════════════════════════════════ */
/* ── Top Bar ── */
/* ══════════════════════════════════════════════ */
.lc-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--lc-border);
  background: var(--lc-bg);
  flex-shrink: 0;
  min-height: 48px;
}
.lc-back-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--lc-radius-sm);
  border: 1px solid var(--lc-border);
  background: var(--lc-surface);
  color: var(--lc-text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.lc-back-btn:hover {
  background: var(--lc-surface2);
  color: var(--lc-text);
  border-color: var(--lc-accent);
}

/* 与各 chip 子页一致的「房屋」返回首页（仅图标，见 subpage-back-home） */
.lc-topbar .sp-back-btn.sp-back-btn--icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  border-radius: var(--lc-radius-sm);
  border: 1px solid var(--lc-border);
  background: var(--lc-surface);
  color: var(--lc-text-2);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.lc-topbar .sp-back-btn.sp-back-btn--icon-only:hover {
  background: var(--lc-surface2);
  color: var(--lc-text);
  border-color: var(--lc-accent);
}
.lc-topbar .sp-back-btn.sp-back-btn--icon-only svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.lc-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--lc-text);
  flex: 1;
}
.lc-topbar-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--lc-accent-light);
  color: var(--lc-accent);
  border: 1px solid var(--lc-accent-ring);
}

/* ══════════════════════════════════════════════ */
/* ── Genre Bar ── */
/* ══════════════════════════════════════════════ */
.lc-genre-bar {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--lc-border);
  background: var(--lc-surface);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.lc-genre-bar::-webkit-scrollbar {
  display: none;
}
.lc-genre-tab {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--lc-border);
  background: var(--lc-bg);
  color: var(--lc-text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s;
  line-height: 1.6;
}
.lc-genre-tab:hover {
  border-color: var(--lc-accent);
  color: var(--lc-accent);
  background: var(--lc-accent-light);
}
.lc-genre-tab.active {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(124, 92, 191, 0.3);
}

/* ══════════════════════════════════════════════ */
/* ── Body Layout ── */
/* ══════════════════════════════════════════════ */
.lc-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Buttons / Chips ── */
.lc-btn {
  padding: 8px 18px;
  border-radius: var(--lc-radius-sm);
  border: 1px solid var(--lc-border);
  background: var(--lc-bg);
  color: var(--lc-text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.lc-btn:hover {
  border-color: var(--lc-accent);
  color: var(--lc-accent);
  background: var(--lc-accent-light);
}
.lc-btn.primary {
  background: var(--lc-accent);
  border-color: var(--lc-accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(124, 92, 191, 0.28);
}
.lc-btn.primary:hover {
  opacity: 0.9;
  color: #fff;
}
.lc-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}
.lc-chip {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--lc-border);
  background: var(--lc-surface);
  color: var(--lc-text-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.lc-chip:hover {
  border-color: var(--lc-accent);
  color: var(--lc-accent);
  background: var(--lc-accent-light);
}
.lc-chip.active {
  background: var(--lc-accent-light);
  border-color: var(--lc-accent);
  color: var(--lc-accent);
  font-weight: 600;
}

/* ── Shared section styles ── */
.lc-col-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lc-text-3);
  padding: 12px 14px 6px;
  margin: 0;
}
.lc-canon-sec {
  margin-bottom: 10px;
}
.lc-canon-sec label {
  font-size: 10px;
  font-weight: 600;
  color: var(--lc-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}
.lc-canon-sec textarea {
  width: 100%;
  resize: vertical;
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  color: var(--lc-text);
  font-size: 12px;
  line-height: 1.6;
  padding: 7px 9px;
  min-height: 60px;
  box-sizing: border-box;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  font-family: inherit;
}
.lc-canon-sec textarea:focus {
  outline: none;
  border-color: var(--lc-accent);
  box-shadow: 0 0 0 3px var(--lc-accent-ring);
}

/* ── Loading ── */
.lc-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lc-text-3);
  font-size: 13px;
  font-style: italic;
  padding: 4px 0;
}
.lc-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--lc-border);
  border-top-color: var(--lc-accent);
  animation: lc-spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes lc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ══════════════════════════════════════════════ */
/* ── Editor Column ── */
/* ══════════════════════════════════════════════ */
.lc-col-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--lc-border);
  overflow: hidden;
  background: var(--lc-bg);
}
.lc-preset-bar {
  display: flex;
  gap: 5px;
  padding: 8px 14px 6px;
  flex-wrap: wrap;
  flex-shrink: 0;
  border-bottom: 1px solid var(--lc-border-soft);
}
.lc-hook-lab {
  margin: 8px 12px;
  border-radius: var(--lc-radius);
  border: 1px solid var(--lc-border);
  background: var(--lc-surface);
  padding: 10px 12px;
  flex-shrink: 0;
  box-shadow: var(--lc-shadow-sm);
}
.lc-hook-lab-head {
  font-size: 10px;
  font-weight: 700;
  color: var(--lc-text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
}
.lc-hook-patterns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lc-hook-variants {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lc-hook-variant {
  padding: 8px 11px;
  border-radius: var(--lc-radius-sm);
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  font-size: 13px;
  cursor: pointer;
  color: var(--lc-text);
  transition: all 0.15s;
  line-height: 1.6;
}
.lc-hook-variant:hover {
  border-color: var(--lc-accent);
  background: var(--lc-accent-light);
}
.lc-scene-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  gap: 0;
  overflow: hidden;
}
.lc-scene-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--lc-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.lc-scene-input {
  flex: 1;
  border-radius: var(--lc-radius);
  background: var(--lc-surface);
  border: 1px solid var(--lc-border);
  color: var(--lc-text);
  font-size: 13px;
  line-height: 1.8;
  padding: 12px 14px;
  resize: none;
  overflow-y: auto;
  font-family: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.lc-scene-input:focus {
  outline: none;
  border-color: var(--lc-accent);
  box-shadow: 0 0 0 3px var(--lc-accent-ring);
}
.lc-wordcount {
  font-size: 11px;
  color: var(--lc-text-3);
  text-align: right;
  padding: 2px 14px 6px;
  flex-shrink: 0;
}
.lc-action-bar {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid var(--lc-border);
  flex-shrink: 0;
  background: var(--lc-surface);
}

/* ══════════════════════════════════════════════ */
/* ── Output Column ── */
/* ══════════════════════════════════════════════ */
.lc-col-output {
  width: 310px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lc-surface);
}
.lc-output-tabs {
  display: flex;
  border-bottom: 1px solid var(--lc-border);
  flex-shrink: 0;
  background: var(--lc-bg);
}
.lc-output-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--lc-text-3);
  transition: all 0.15s;
}
.lc-output-tab:hover {
  color: var(--lc-text-2);
}
.lc-output-tab.active {
  color: var(--lc-accent);
  border-bottom-color: var(--lc-accent);
}
.lc-tab-panel {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}
.lc-tab-panel.active {
  display: flex;
}
.lc-output-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}
.lc-output-body::-webkit-scrollbar {
  width: 4px;
}
.lc-output-body::-webkit-scrollbar-thumb {
  background: var(--lc-border);
  border-radius: 2px;
}
.lc-output-prose {
  font-size: 13.5px;
  line-height: 2;
  color: var(--lc-text);
  white-space: pre-wrap;
  font-family: inherit;
}
.lc-output-prose.placeholder {
  color: var(--lc-text-3);
  font-style: italic;
}
.lc-output-footer {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--lc-border);
  flex-shrink: 0;
  background: var(--lc-bg);
}
.lc-output-footer .lc-btn {
  flex: 1;
}

/* ══════════════════════════════════════════════ */
/* ── Book Manager Panel ── */
/* ══════════════════════════════════════════════ */
.lc-book-panel {
  width: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--lc-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lc-surface);
}
.lc-bm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--lc-border);
}
.lc-bm-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lc-text);
}
.lc-bm-add-btn {
  padding: 4px 10px;
  border-radius: var(--lc-radius-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--lc-accent);
  border: 1px solid var(--lc-accent);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s;
}
.lc-bm-add-btn:hover {
  opacity: 0.85;
}
.lc-bm-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.lc-bm-item {
  padding: 8px 10px;
  border-radius: var(--lc-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
  position: relative;
}
.lc-bm-item:hover {
  background: var(--lc-surface2);
  border-color: var(--lc-border);
}
.lc-bm-item.active {
  background: var(--lc-accent-light);
  border-color: var(--lc-accent);
}
.lc-bm-item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--lc-text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-bm-item-meta {
  font-size: 10px;
  color: var(--lc-text-3);
  width: 100%;
}
.lc-bm-del-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  color: var(--lc-text-3);
  cursor: pointer;
  font-size: 12px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}
.lc-bm-item:hover .lc-bm-del-btn {
  display: flex;
}
.lc-bm-del-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
.lc-bm-empty {
  font-size: 12px;
  color: var(--lc-text-3);
  text-align: center;
  padding: 20px 14px;
  line-height: 1.6;
}
.lc-bm-canon-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 10px;
}
.lc-bm-canon-body::-webkit-scrollbar {
  width: 4px;
}
.lc-bm-canon-body::-webkit-scrollbar-thumb {
  background: var(--lc-border);
  border-radius: 2px;
}

/* Create dialog */
.lc-bm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lc-bm-dialog {
  background: var(--lc-bg);
  border-radius: var(--lc-radius);
  padding: 20px;
  box-shadow: var(--lc-shadow);
  width: 320px;
  max-width: 90%;
}
.lc-bm-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius-sm);
  font-size: 13px;
  font-family: inherit;
  color: var(--lc-text);
  background: var(--lc-bg);
  box-sizing: border-box;
}
.lc-bm-input:focus {
  outline: none;
  border-color: var(--lc-accent);
  box-shadow: 0 0 0 3px var(--lc-accent-ring);
}
.lc-bm-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ══════════════════════════════════════════════ */
/* ── Chapter Panel ── */
/* ══════════════════════════════════════════════ */
.lc-chapter-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lc-cp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--lc-border);
}
.lc-cp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--lc-text);
}
.lc-cp-count {
  font-size: 11px;
  color: var(--lc-text-3);
}
.lc-cp-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.lc-cp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--lc-radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  margin-bottom: 3px;
}
.lc-cp-item:hover {
  background: var(--lc-surface2);
  border-color: var(--lc-border);
}
.lc-cp-item.active {
  background: var(--lc-accent-light);
  border-color: var(--lc-accent);
}
.lc-cp-item-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--lc-text);
  min-width: 50px;
}
.lc-cp-item-status {
  font-size: 14px;
}
.lc-cp-item-wc {
  font-size: 11px;
  color: var(--lc-text-3);
  flex: 1;
  text-align: right;
}
.lc-cp-item-rev {
  font-size: 10px;
  color: var(--lc-accent);
}

/* Pipeline progress */
.lc-cp-pipeline {
  padding: 8px 12px;
  border-bottom: 1px solid var(--lc-border);
  background: var(--lc-surface);
}
.lc-cp-pipeline-bar {
  height: 4px;
  background: var(--lc-border);
  border-radius: 2px;
  overflow: hidden;
}
.lc-cp-pipeline-fill {
  height: 100%;
  background: var(--lc-accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.lc-cp-pipeline-status {
  font-size: 11px;
  color: var(--lc-text-2);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════ */
/* ── Quality Panel ── */
/* ══════════════════════════════════════════════ */
.lc-quality-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lc-qp-tabs {
  display: flex;
  border-bottom: 1px solid var(--lc-border);
  flex-shrink: 0;
}
.lc-qp-tab {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--lc-text-3);
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.lc-qp-tab:hover {
  color: var(--lc-text-2);
}
.lc-qp-tab.active {
  color: var(--lc-accent);
  border-bottom-color: var(--lc-accent);
}
.lc-qp-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
.lc-qp-content.active {
  display: block;
}

/* AI Taste Score */
.lc-qp-score-card {
  text-align: center;
  padding: 14px 0 10px;
}
.lc-qp-score {
  font-size: 36px;
  font-weight: 700;
  color: var(--lc-accent);
  line-height: 1;
}
.lc-qp-label {
  font-size: 13px;
  color: var(--lc-text-2);
  margin-top: 4px;
}
.lc-qp-dims {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-qp-dim {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lc-qp-dim-name {
  font-size: 11px;
  color: var(--lc-text-2);
  width: 70px;
  flex-shrink: 0;
}
.lc-qp-dim-weight {
  font-size: 9px;
  color: var(--lc-text-3);
}
.lc-qp-dim-bar {
  flex: 1;
  height: 6px;
  background: var(--lc-border);
  border-radius: 3px;
  overflow: hidden;
}
.lc-qp-dim-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.lc-qp-dim-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--lc-text);
  width: 24px;
  text-align: right;
}
.lc-qp-suggestions {
  margin-top: 12px;
  padding: 10px;
  background: var(--lc-surface);
  border-radius: var(--lc-radius-sm);
}
.lc-qp-sug-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--lc-text);
  margin-bottom: 6px;
}
.lc-qp-sug-item {
  font-size: 11px;
  color: var(--lc-text-2);
  line-height: 1.6;
  margin-bottom: 4px;
}

/* Style Fingerprint */
.lc-qp-style-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--lc-text);
  margin-bottom: 10px;
}
.lc-qp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.lc-qp-metric {
  background: var(--lc-surface);
  border-radius: var(--lc-radius-sm);
  padding: 8px;
  text-align: center;
}
.lc-qp-metric span {
  display: block;
  font-size: 9px;
  color: var(--lc-text-3);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.lc-qp-metric b {
  font-size: 14px;
  color: var(--lc-text);
}
.lc-qp-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.lc-qp-compare {
  padding: 8px;
  background: var(--lc-surface);
  border-radius: var(--lc-radius-sm);
  font-size: 12px;
  color: var(--lc-text-2);
}
.lc-qp-diffs {
  margin-top: 4px;
  font-size: 11px;
}

/* Fatigue Tracker */
.lc-qp-fatigue-score {
  font-size: 14px;
  color: var(--lc-text);
  margin-bottom: 10px;
}
.lc-qp-fatigue-issues {
  margin-bottom: 10px;
}
.lc-qp-fatigue-issue {
  font-size: 11px;
  color: var(--lc-text-2);
  line-height: 1.6;
  margin-bottom: 3px;
}
.lc-qp-heatmap {
  padding: 8px;
  background: var(--lc-surface);
  border-radius: var(--lc-radius-sm);
}
.lc-qp-hm-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--lc-text-2);
  margin-bottom: 6px;
}
.lc-qp-hm-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.lc-qp-hm-word {
  font-size: 11px;
  color: var(--lc-text);
  width: 50px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lc-qp-hm-bar {
  flex: 1;
  height: 5px;
  background: var(--lc-border);
  border-radius: 3px;
  overflow: hidden;
}
.lc-qp-hm-bar > div {
  height: 100%;
  background: var(--lc-accent);
  border-radius: 3px;
}
.lc-qp-hm-count {
  font-size: 10px;
  color: var(--lc-text-3);
  width: 20px;
  text-align: right;
}

/* ══════════════════════════════════════════════ */
/* ── Ledger & Reflect (from original view) ── */
/* ══════════════════════════════════════════════ */
.lc-reflect-text {
  font-size: 13px;
  color: var(--lc-text-2);
  line-height: 1.8;
  white-space: pre-wrap;
}
.lc-reflect-box {
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  border-left: 3px solid var(--lc-accent);
  border-radius: var(--lc-radius-sm);
  padding: 10px 13px;
  margin-bottom: 8px;
}
.lc-reflect-box-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--lc-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.lc-ledger {
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lc-ledger-entry {
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  border-left: 3px solid var(--lc-accent);
  border-radius: var(--lc-radius-sm);
  padding: 8px 12px;
}
.lc-ledger-entry-head {
  font-size: 10px;
  font-weight: 600;
  color: var(--lc-accent);
  margin-bottom: 3px;
}
.lc-ledger-entry-body {
  font-size: 12px;
  color: var(--lc-text-2);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════ */
/* ── Responsive ── */
/* ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .lc-body {
    flex-direction: column;
    overflow-y: auto;
  }
  .lc-book-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--lc-border);
    max-height: 40vh;
  }
  .lc-col-editor {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--lc-border);
    min-height: 250px;
  }
  .lc-col-output {
    width: 100%;
    flex: none;
    min-height: 280px;
  }
  .lc-action-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .lc-action-bar .lc-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 6px);
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .lc-topbar-title {
    font-size: 12px;
  }
  .lc-scene-input {
    font-size: 12px;
  }
  .lc-output-prose {
    font-size: 12.5px;
    line-height: 1.8;
  }
}

@media (pointer: coarse) {
  .lc-btn {
    min-height: 44px;
  }
  .lc-genre-tab {
    min-height: 40px;
  }
  .lc-canon-sec textarea {
    font-size: 16px;
  }
  .lc-scene-input {
    font-size: 16px;
  }
}
