/* ==========================================================================
   FOLIO — classic.css
   Professional mid-2000s desktop skin (Office 2003 / Acrobat 7 era).
   Loaded last; scoped to data-theme="classic".
   ========================================================================== */

:root[data-theme="classic"] {
  --bg: #ece9d8;
  --bg-deep: #d4d0c8;
  --panel: #f5f4ea;
  --panel-2: #ffffff;
  --panel-3: #e8e5da;
  --line: #aca899;
  --line-strong: #8d8d8d;
  --text: #1a1a1a;
  --text-soft: #333333;
  --muted: #5b5b5b;
  --faint: #777777;
  --accent: #1f4e9a;
  --accent-2: #4a90d9;
  --accent-ink: #ffffff;
  --accent-soft: #dbe5f5;
  --accent-glow: rgba(49, 106, 197, .22);
  --ok: #1a7a35;
  --warn: #9a6200;
  --err: #b00000;
  --paper-shadow: 2px 2px 7px rgba(0, 0, 0, .48);
  --radius: 2px;
  --radius-lg: 3px;
  --font: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  --font-display: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
  --mono: "Lucida Console", Consolas, "Courier New", monospace;
  --tb-h: 56px;
  --menubar-h: 26px;
  --status-h: 24px;
  --toolbar-fade: #d5d1c5;
  --elev-1: #ffffff;
  --elev-2: #ece9d8;
  --classic-title-a: #0a246a;
  --classic-title-b: #3a6ea5;
  --classic-sel: #316ac5;
}

/* ------------------------------------------------------------------ */
/* Base + classic scrollbars                                          */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] body {
  font-family: var(--font);
  font-size: 11px;
  color: #1a1a1a;
  background: #ece9d8;
}
:root[data-theme="classic"] ::selection { background: #316ac5; color: #fff; }
:root[data-theme="classic"] kbd {
  font-family: var(--mono); font-size: 9px; padding: 1px 4px; border-radius: 0;
  background: #f5f4ea; border: 1px solid #aca899; border-bottom-color: #8d8d8d;
  color: #333;
}
:root[data-theme="classic"] ::-webkit-scrollbar { width: 16px; height: 16px; }
:root[data-theme="classic"] ::-webkit-scrollbar-track {
  background: #f0efe7; border-left: 1px solid #d4d0c8;
}
:root[data-theme="classic"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #fdfdfb, #dcd8cc);
  border: 1px solid #8d8d8d; border-radius: 0;
  box-shadow: inset 1px 1px 0 #fff;
}
:root[data-theme="classic"] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #fffdf2, #e6e2d5);
}
:root[data-theme="classic"] ::-webkit-scrollbar-button {
  background: linear-gradient(#fdfdfb, #e4e0d5);
  border: 1px solid #8d8d8d; display: block; height: 14px; width: 14px;
}
:root[data-theme="classic"] ::-webkit-scrollbar-corner { background: #ece9d8; }

/* ------------------------------------------------------------------ */
/* Menubar + brand                                                    */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #menubar {
  background: linear-gradient(180deg, #fdfdfb 0%, #f3f1e7 55%, #e5e1d5 100%);
  border-bottom: 1px solid #aca899;
  box-shadow: inset 0 1px 0 #fff;
  gap: 14px; padding: 0 8px;
}
:root[data-theme="classic"] .brand { color: #173a70; gap: 6px; }
:root[data-theme="classic"] .brand-mark { filter: none; }
:root[data-theme="classic"] .brand-name {
  font-family: var(--font); font-size: 12px; font-weight: 700;
  letter-spacing: .09em; color: #173a70; text-shadow: 0 1px 0 #fff;
}
:root[data-theme="classic"] .brand-tag {
  font-size: 8px; letter-spacing: .08em; color: #6f6d64;
  border-left: 1px solid #aca899; padding-left: 7px;
}
:root[data-theme="classic"] .menus { gap: 0; }
:root[data-theme="classic"] .menu-title {
  height: 21px; padding: 0 8px; border: 1px solid transparent; border-radius: 0;
  font-size: 11px; color: #1a1a1a; letter-spacing: 0;
}
:root[data-theme="classic"] .menu-title:hover,
:root[data-theme="classic"] .menu-title:active {
  background: #316ac5; border-color: #316ac5; color: #fff;
}
:root[data-theme="classic"] .doc-state { font-size: 10px; color: #5b5b5b; }
:root[data-theme="classic"] .menubar-right .icon-btn { color: #444; }

/* ------------------------------------------------------------------ */
/* Toolbar                                                            */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #toolbar {
  background: linear-gradient(180deg, #fbfaf6 0%, #f0eee4 55%, #d5d1c5 100%);
  border-bottom: 1px solid #aca899;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.55);
  gap: 2px; padding: 0 7px;
}
:root[data-theme="classic"] .tb-group { gap: 1px; }
:root[data-theme="classic"] .tb-sep {
  width: 2px; height: 26px; margin: 0 5px;
  background: linear-gradient(90deg, #aca899 0 1px, #fff 1px 2px);
}
:root[data-theme="classic"] .tool-strip,
:root[data-theme="classic"] .layouts {
  background: #e5e1d5; border: 1px solid #aca899; border-radius: 2px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #d4d0c8;
  padding: 1px;
}
:root[data-theme="classic"] .icon-btn {
  width: 28px; height: 28px; border-radius: 2px;
  border: 1px solid transparent; color: #333;
}
:root[data-theme="classic"] .icon-btn:hover {
  background: linear-gradient(180deg, #fff, #e5ecf8);
  border-color: #7f9db9; box-shadow: inset 0 1px 0 #fff; color: #111;
}
:root[data-theme="classic"] .icon-btn.active {
  background: #c9d7ee; border-color: #316ac5; color: #173a70;
  box-shadow: inset 1px 1px 2px rgba(49,106,197,.3);
}
:root[data-theme="classic"] .icon-btn.disabled,
:root[data-theme="classic"] .icon-btn[disabled] { opacity: .38; }
:root[data-theme="classic"] .tool-btn {
  width: 29px; height: 29px; border-radius: 2px;
  border: 1px solid transparent; color: #333;
}
:root[data-theme="classic"] .tool-btn:hover {
  background: linear-gradient(180deg, #fff, #e5ecf8);
  border-color: #7f9db9; box-shadow: inset 0 1px 0 #fff; color: #111;
}
:root[data-theme="classic"] .tool-btn.active {
  background: #c9d7ee; border-color: #316ac5; color: #173a70;
  box-shadow: inset 1px 1px 2px rgba(49,106,197,.32); text-shadow: 0 1px 0 #fff;
}
:root[data-theme="classic"] .tool-btn.tool-more { color: #555; }
:root[data-theme="classic"] .page-indicator,
:root[data-theme="classic"] .zoom-label {
  height: 27px; border: 1px solid #aca899; border-radius: 2px;
  background: #fff; color: #1a1a1a; font-size: 11px;
  box-shadow: inset 1px 1px 1px rgba(0,0,0,.06);
}
:root[data-theme="classic"] .page-indicator:hover,
:root[data-theme="classic"] .zoom-label:hover { background: #f7f9ff; border-color: #7f9db9; }
:root[data-theme="classic"] .palette-btn kbd { background: #f5f4ea; border-color: #aca899; }

/* Buttons */
:root[data-theme="classic"] .btn {
  height: 27px; padding: 0 11px; gap: 5px; border-radius: 2px;
  border: 1px solid #8d8d8d; color: #1a1a1a; font-weight: 400; font-size: 11px;
  background: linear-gradient(180deg, #fdfdfb 0%, #f0eee4 48%, #ddd8cc 100%);
  box-shadow: inset 0 1px 0 #fff;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
  transition: none;
}
:root[data-theme="classic"] .btn:hover {
  background: linear-gradient(180deg, #fff 0%, #f4f8ff 48%, #dbe5f5 100%);
  border-color: #316ac5;
}
:root[data-theme="classic"] .btn:active {
  background: #d6e0f0; box-shadow: inset 1px 1px 2px rgba(0,0,0,.22);
  transform: none;
}
:root[data-theme="classic"] .btn.btn-tall { height: 31px; }
:root[data-theme="classic"] .btn-primary {
  background: linear-gradient(180deg, #8fb4ea 0%, #4b7fce 48%, #2559a8 100%);
  border-color: #1c4a91; color: #fff; font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
:root[data-theme="classic"] .btn-primary:hover {
  background: linear-gradient(180deg, #a3c3f2 0%, #5b8fdd 48%, #2e66b8 100%);
  border-color: #173f7d;
}
:root[data-theme="classic"] .btn-primary:active {
  background: #2d63b0; box-shadow: inset 1px 1px 2px rgba(0,0,0,.35);
}
:root[data-theme="classic"] .btn-secondary {
  background: linear-gradient(180deg, #fdfdfb 0%, #f0eee4 48%, #ddd8cc 100%);
}
:root[data-theme="classic"] .btn-quiet,
:root[data-theme="classic"] .btn-ghost {
  background: transparent; border-color: transparent; color: #333;
  box-shadow: none; text-shadow: none;
}
:root[data-theme="classic"] .btn-quiet:hover,
:root[data-theme="classic"] .btn-ghost:hover {
  background: #dbe5f5; border-color: #7f9db9; color: #111;
}
:root[data-theme="classic"] .btn-danger {
  background: linear-gradient(#fdfdfb, #f4d9d9 55%, #e7bcbc);
  border-color: #a00000; color: #a00000;
}
:root[data-theme="classic"] .btn-danger:hover { background: #f0cccc; }
:root[data-theme="classic"] .btn-sm { height: 23px; padding: 0 8px; font-size: 10.5px; }
:root[data-theme="classic"] .btn-lg { height: 32px; padding: 0 13px; font-size: 11.5px; border-radius: 2px; }
:root[data-theme="classic"] .btn[disabled],
:root[data-theme="classic"] .btn.disabled { opacity: .5; }

/* ------------------------------------------------------------------ */
/* Tabs                                                               */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #tabstrip {
  height: 30px; padding: 3px 5px 0; gap: 1px;
  background: linear-gradient(180deg, #d8d4c8 0%, #e8e5da 100%);
  border-bottom: 1px solid #aca899;
}
:root[data-theme="classic"] .doctab {
  height: 24px; padding: 0 5px 0 7px; gap: 5px; border-radius: 2px 2px 0 0;
  border: 1px solid #aca899; border-bottom: 0;
  background: linear-gradient(180deg, #f7f6f0 0%, #e2ded2 100%);
  color: #444; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .doctab:hover { background: #f4f8ff; color: #111; }
:root[data-theme="classic"] .doctab.active {
  background: #fff; color: #111; border-color: #aca899;
  box-shadow: inset 0 1px 0 #fff; font-weight: 700;
}
:root[data-theme="classic"] .doctab.active::after {
  background: #fff; height: 2px; bottom: -1px;
}
:root[data-theme="classic"] .doctab-name { font-size: 11px; }
:root[data-theme="classic"] .doctab-ic { color: #5b7db0; }
:root[data-theme="classic"] .tab-x { border-radius: 0; }
:root[data-theme="classic"] .tab-x:hover { background: #b00000; color: #fff; }
:root[data-theme="classic"] .dirty-dot { width: 6px; height: 6px; border-radius: 1px; background: #c77b00; }
:root[data-theme="classic"] .tab-add {
  width: 22px; height: 22px; margin-bottom: 1px; border-radius: 2px;
  border: 1px solid #aca899; background: linear-gradient(#fff, #e8e5da); color: #333;
}
:root[data-theme="classic"] .tab-add:hover { background: #dbe5f5; border-color: #316ac5; color: #173a70; }

/* ------------------------------------------------------------------ */
/* Workspace, rail, sidebar, inspector                                */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #workspace { background: #ece9d8; }
:root[data-theme="classic"] #rail {
  width: 58px; padding: 3px; gap: 1px;
  background: linear-gradient(90deg, #e5e1d5 0%, #f0eee4 100%);
  border-right: 1px solid #aca899;
}
:root[data-theme="classic"] .rail-btn {
  min-height: 45px; border-radius: 2px; border: 1px solid transparent;
  color: #444; font-size: 9px; letter-spacing: 0; gap: 2px;
}
:root[data-theme="classic"] .rail-btn:hover {
  background: #eef3fc; border-color: #7f9db9; color: #111;
}
:root[data-theme="classic"] .rail-btn.active {
  background: #c9d7ee; border-color: #316ac5; color: #173a70;
  font-weight: 700; box-shadow: inset 1px 1px 2px rgba(49,106,197,.25);
}
:root[data-theme="classic"] .rail-btn.active::before { display: none; }
:root[data-theme="classic"] #sidebar,
:root[data-theme="classic"] #inspector {
  background: #f5f4ea; border-color: #aca899;
}
:root[data-theme="classic"] .side-head,
:root[data-theme="classic"] .inspector-head {
  height: 25px; padding: 0 3px 0 7px;
  background: linear-gradient(180deg, #4f76b0 0%, #2f5187 100%);
  border-bottom: 1px solid #1f3a63;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}
:root[data-theme="classic"] .side-title {
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
:root[data-theme="classic"] .inspector-title {
  color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.35);
}
:root[data-theme="classic"] .inspector-sub {
  color: #e3ebf8; font-size: 9px; margin-top: 0; max-width: 218px;
}
:root[data-theme="classic"] .side-head .icon-btn,
:root[data-theme="classic"] .inspector-head .icon-btn { color: #fff; }
:root[data-theme="classic"] .side-head .icon-btn:hover,
:root[data-theme="classic"] .inspector-head .icon-btn:hover {
  background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); color: #fff;
}
:root[data-theme="classic"] .panel-content { padding: 6px 6px 20px; }
:root[data-theme="classic"] .panel-scroll { background: #f7f6f0; }
:root[data-theme="classic"] .inspector-body { background: #f7f6f0; padding: 9px 9px 24px; }
:root[data-theme="classic"] .panel-actions { padding: 3px 2px 7px; }
:root[data-theme="classic"] .mini-btn {
  height: 21px; padding: 0 7px; border-radius: 2px;
  border: 1px solid #aca899; background: linear-gradient(#fff, #ece9d8);
  color: #333; font-size: 10px; font-weight: 400; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .mini-btn:hover { background: #eef3fc; border-color: #7f9db9; color: #111; }
:root[data-theme="classic"] .panel-empty { padding: 30px 12px; color: #5b5b5b; font-size: 11px; }
:root[data-theme="classic"] .panel-error { color: #b00000; font-size: 11px; }

:root[data-theme="classic"] .section-title {
  margin: 10px 0 5px; padding: 3px 6px;
  background: linear-gradient(180deg, #edeae0, #e0dcd0);
  border-top: 1px solid #fff; border-bottom: 1px solid #aca899;
  color: #24477f; font-size: 10px; font-weight: 700;
  letter-spacing: .02em; text-transform: none;
}
:root[data-theme="classic"] .section-title:first-child { margin-top: 1px; }

:root[data-theme="classic"] .list-row {
  border-radius: 0; border: 1px solid transparent; padding: 5px 6px;
  color: #222; font-size: 11px;
}
:root[data-theme="classic"] .list-row:hover { background: #eef3fc; border-color: #c4d3ea; }
:root[data-theme="classic"] .list-row.sel {
  background: #316ac5; border-color: #1f4e9a; color: #fff;
}
:root[data-theme="classic"] .list-row.sel .row-sub { color: #dbe5f5; }
:root[data-theme="classic"] .row-sub { font-size: 9px; color: #777; margin-top: 1px; }
:root[data-theme="classic"] .icon-mini { border-radius: 0; }
:root[data-theme="classic"] .icon-mini:hover { background: #dbe5f5; color: #111; }
:root[data-theme="classic"] .panel-note {
  padding: 6px 8px; border-radius: 0; background: #ffffe1; border: 1px solid #aca899;
  color: #333; font-size: 10px; line-height: 1.45;
}
:root[data-theme="classic"] .panel-note.warn { background: #fff4d6; border-color: #c9a227; }
:root[data-theme="classic"] .panel-note.error { background: #ffe6e6; border-color: #b00000; }

:root[data-theme="classic"] .insp-section { margin-bottom: 12px; }
:root[data-theme="classic"] .insp-section + .insp-section { border-top: 1px solid #d4d0c8; padding-top: 10px; }
:root[data-theme="classic"] .insp-label {
  font-size: 9px; letter-spacing: .06em; color: #24477f; font-weight: 700;
  margin: 0 0 6px; padding: 2px 4px;
  background: #e8e5da; border-bottom: 1px solid #aca899;
}
:root[data-theme="classic"] .insp-row { font-size: 10.5px; margin-bottom: 4px; color: #222; }
:root[data-theme="classic"] .insp-k { color: #5b5b5b; }
:root[data-theme="classic"] .insp-v { color: #111; }
:root[data-theme="classic"] .insp-actions { gap: 3px; }
:root[data-theme="classic"] .insp-btn {
  height: 24px; padding: 0 7px; border-radius: 2px;
  border: 1px solid #aca899; background: linear-gradient(#fff, #ece9d8);
  color: #222; font-size: 10px; font-weight: 400;
  box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .insp-btn:hover {
  background: #eef3fc; border-color: #7f9db9; color: #111;
}
:root[data-theme="classic"] .insp-note { font-size: 10px; color: #666; font-style: normal; }
:root[data-theme="classic"] .badge {
  border-radius: 2px; padding: 1px 4px; font-size: 9px; letter-spacing: 0;
  background: #e8e5da; border: 1px solid #aca899; color: #444;
}
:root[data-theme="classic"] .badge.ok { background: #e4f2e7; border-color: #71a87e; color: #1a6b32; }
:root[data-theme="classic"] .badge.warn { background: #fff4d6; border-color: #c9a227; color: #7a4c00; }
:root[data-theme="classic"] .badge.err { background: #ffe6e6; border-color: #c07070; color: #a00000; }
:root[data-theme="classic"] .badge.accent { background: #dbe5f5; border-color: #7f9db9; color: #173a70; }

/* ------------------------------------------------------------------ */
/* Thumbnails                                                         */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] .thumb-list { gap: 4px; padding: 2px 2px 8px; }
:root[data-theme="classic"] .thumb {
  border-radius: 0; padding: 4px; border: 1px solid transparent;
}
:root[data-theme="classic"] .thumb:hover { background: #eef3fc; border-color: #c4d3ea; }
:root[data-theme="classic"] .thumb.current { background: #eef3fc; border-color: #c4d3ea; }
:root[data-theme="classic"] .thumb.selected {
  background: #dbe5f5; border-color: #316ac5;
}
:root[data-theme="classic"] .thumb.selected.current { border-color: #1f4e9a; }
:root[data-theme="classic"] .thumb-shot {
  border-radius: 0; box-shadow: 1px 1px 4px rgba(0,0,0,.4);
  border: 1px solid #aca899;
}
:root[data-theme="classic"] .thumb-num { font-size: 9.5px; color: #444; }
:root[data-theme="classic"] .thumb.selected .thumb-num { color: #173a70; }
:root[data-theme="classic"] .thumb-meta { font-size: 8.5px; color: #777; }
:root[data-theme="classic"] .thumb-grab { color: #555; }
:root[data-theme="classic"] .thumb.drop-before::before,
:root[data-theme="classic"] .thumb.drop-after::after {
  height: 1px; border-radius: 0; background: #1f4e9a; box-shadow: none;
}
:root[data-theme="classic"] .thumb.drop-before::before { top: -3px; }
:root[data-theme="classic"] .thumb.drop-after::after { bottom: -3px; }

/* ------------------------------------------------------------------ */
/* Document area                                                      */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #scroller { background: #a5a29a; }
:root[data-theme="classic"] #scroller::before { display: none; }
:root[data-theme="classic"] .viewer { gap: 24px; padding: 24px 34px 90px; }
:root[data-theme="classic"] .page-surface {
  border-radius: 0; box-shadow: var(--paper-shadow); outline: 1px solid #7f7d76;
}
:root[data-theme="classic"] .page-surface::after {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
:root[data-theme="classic"] .page-slot.selected .page-surface {
  outline: 2px solid #316ac5; outline-offset: 2px;
}
:root[data-theme="classic"] .page-slot.clicked .page-surface {
  box-shadow: 0 0 0 3px #dbe5f5, var(--paper-shadow);
}
:root[data-theme="classic"] .page-badge {
  font-family: var(--font); font-size: 9.5px; color: #3d3d3d;
}
:root[data-theme="classic"] .page-slot.selected .page-badge { color: #173a70; font-weight: 700; }
:root[data-theme="classic"] .spread-row { gap: 16px; }
:root[data-theme="classic"] .tool-hint {
  background: #ffffe1; border: 1px solid #8d8d8d; border-radius: 0;
  color: #111; font-size: 10.5px; padding: 4px 9px;
  box-shadow: 2px 2px 4px rgba(0,0,0,.35); backdrop-filter: none;
}

/* ------------------------------------------------------------------ */
/* Empty state                                                        */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #empty-state { padding: 30px 30px 24px; background: #ece9d8; }
:root[data-theme="classic"] .empty-hero { max-width: 700px; margin: 3vh auto 20px; }
:root[data-theme="classic"] .hero-mark {
  color: #1f4e9a; margin-bottom: 10px; filter: none;
}
:root[data-theme="classic"] .hero-mark svg { width: 44px; height: 44px; }
:root[data-theme="classic"] .hero-copy h1 {
  font-family: var(--font); font-size: 22px; font-weight: 700;
  letter-spacing: 0; line-height: 1.25; margin-bottom: 7px; color: #173a70;
}
:root[data-theme="classic"] .hero-copy h1 em { font-style: normal; color: #1f4e9a; }
:root[data-theme="classic"] .hero-copy p {
  max-width: 540px; color: #444; font-size: 11px; line-height: 1.55; margin-bottom: 14px;
}
:root[data-theme="classic"] .hero-actions { gap: 6px; }
:root[data-theme="classic"] .dropzone {
  margin: 16px auto 0; max-width: 520px; padding: 9px 12px; gap: 6px;
  border: 1px dashed #aca899; border-radius: 0; background: #f7f6f0;
  color: #666; font-size: 10.5px;
}
:root[data-theme="classic"] .dropzone svg { color: #1f4e9a; opacity: 1; }
:root[data-theme="classic"] .empty-grid {
  max-width: 940px; gap: 8px;
}
:root[data-theme="classic"] .empty-card {
  background: #ffffff; border: 1px solid #aca899; border-radius: 0;
  padding: 10px 11px; min-height: 136px; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .card-kicker {
  font-size: 9px; letter-spacing: .06em; color: #24477f; margin-bottom: 5px;
  padding-bottom: 3px; border-bottom: 1px solid #e0dcd0;
}
:root[data-theme="classic"] .empty-card h3 { font-size: 11.5px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
:root[data-theme="classic"] .empty-card p { font-size: 10.5px; line-height: 1.45; color: #555; margin-bottom: 9px; }
:root[data-theme="classic"] .text-btn {
  font-size: 10.5px; font-weight: 400; color: #1f4e9a; text-decoration: underline;
}
:root[data-theme="classic"] .text-btn:hover { color: #0a246a; }
:root[data-theme="classic"] .recent-list { gap: 1px; }
:root[data-theme="classic"] .recent-item { border-radius: 0; padding: 4px 5px; color: #222; }
:root[data-theme="classic"] .recent-item:hover { background: #eef3fc; }
:root[data-theme="classic"] .recent-ic { color: #5b7db0; }
:root[data-theme="classic"] .recent-name { font-size: 10.5px; }
:root[data-theme="classic"] .recent-meta { font-size: 9px; color: #777; }
:root[data-theme="classic"] .recent-empty { color: #777; font-size: 10.5px; padding: 8px 4px; }
:root[data-theme="classic"] .empty-foot {
  margin-top: 16px; gap: 14px; color: #555; font-size: 9.5px;
}
:root[data-theme="classic"] .offline-badge { color: #555; }
:root[data-theme="classic"] .offline-badge i {
  width: 6px; height: 6px; border-radius: 1px; background: #1a7a35; box-shadow: none;
}

/* ------------------------------------------------------------------ */
/* Status bar + busy indicator                                        */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] #statusbar {
  height: 24px; padding: 0 4px; gap: 2px;
  background: #ece9d8; border-top: 1px solid #fff;
  box-shadow: inset 0 1px 0 #aca899;
  color: #333; font-size: 10px;
}
:root[data-theme="classic"] .status-left,
:root[data-theme="classic"] .status-right { gap: 1px; }
:root[data-theme="classic"] .status-item {
  border: 1px solid #aca899; border-top-color: #fff; border-left-color: #fff;
  background: #f5f4ea; padding: 1px 6px; color: #222;
}
:root[data-theme="classic"] .status-item.muted { color: #5b5b5b; }
:root[data-theme="classic"] .status-dot {
  width: 2px; height: 18px; border-radius: 0; background: transparent;
  border-left: 1px solid #aca899; border-right: 1px solid #fff; margin: 0 2px;
}
:root[data-theme="classic"] .status-message {
  border-color: transparent; background: transparent; color: #1f4e9a; font-weight: 700;
}
:root[data-theme="classic"] .selection-status { color: #173a70; }
:root[data-theme="classic"] .status-right .status-item.local { color: #444; }
:root[data-theme="classic"] .status-right .status-item.local svg { color: #1a7a35; }
:root[data-theme="classic"] #busybar { height: 5px; background: #d4d0c8; border-bottom: 1px solid #aca899; }
:root[data-theme="classic"] .busy-track {
  height: 100%; background: #fff; border: 0; box-shadow: inset 0 1px 0 #aca899;
}
:root[data-theme="classic"] .busy-fill {
  height: 100%; width: 26%; border-radius: 0;
  background: repeating-linear-gradient(90deg, #316ac5 0 6px, #6f9bd8 6px 12px);
  animation: busySlide 1.1s linear infinite;
}
:root[data-theme="classic"] .busy-label {
  top: 14px; background: #ffffe1; border: 1px solid #8d8d8d; border-radius: 0;
  color: #111; font-size: 10px; padding: 3px 8px; box-shadow: 2px 2px 4px rgba(0,0,0,.35);
}

/* ------------------------------------------------------------------ */
/* Menus                                                              */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] .menu {
  background: #fff; border: 1px solid #8d8d8d; border-radius: 0;
  padding: 2px; box-shadow: 2px 2px 5px rgba(0,0,0,.38);
  animation: none;
}
:root[data-theme="classic"] .menu-item {
  height: 23px; padding: 0 7px; border-radius: 0; color: #1a1a1a; font-size: 11px; gap: 7px;
}
:root[data-theme="classic"] .menu-item:hover { background: #316ac5; color: #fff; }
:root[data-theme="classic"] .menu-item:hover .menu-ic,
:root[data-theme="classic"] .menu-item:hover .menu-shortcut,
:root[data-theme="classic"] .menu-item:hover .menu-check { color: #fff; }
:root[data-theme="classic"] .menu-item.danger { color: #a00000; }
:root[data-theme="classic"] .menu-item.danger:hover { background: #a00000; color: #fff; }
:root[data-theme="classic"] .menu-item.disabled { opacity: .45; }
:root[data-theme="classic"] .menu-ic { width: 16px; color: #3b5f95; }
:root[data-theme="classic"] .menu-shortcut { font-size: 9px; color: #777; }
:root[data-theme="classic"] .menu-sep { height: 1px; background: #aca899; margin: 3px 2px; }
:root[data-theme="classic"] .menu-heading {
  font-size: 9px; letter-spacing: .04em; color: #666; padding: 4px 7px 2px;
}

/* ------------------------------------------------------------------ */
/* Dialogs + form controls                                            */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] .dialog-backdrop {
  background: rgba(20, 20, 20, .32); backdrop-filter: none;
}
:root[data-theme="classic"] .dialog {
  background: #ece9d8; border: 1px solid #1f3a63; border-radius: 0;
  box-shadow: 3px 3px 9px rgba(0,0,0,.5);
}
:root[data-theme="classic"] .dialog-head {
  background: linear-gradient(180deg, #0a246a 0%, #2f5f9b 55%, #3a6ea5 100%);
  color: #fff; align-items: center; gap: 7px;
  padding: 2px 3px 2px 6px; min-height: 24px;
  border-bottom: 1px solid #173a63;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
:root[data-theme="classic"] .dialog-icon {
  width: 16px; height: 16px; border-radius: 0; background: transparent;
  color: #fff; border: 0;
}
:root[data-theme="classic"] .dialog-icon svg { width: 16px; height: 16px; }
:root[data-theme="classic"] .dialog-title {
  font-family: var(--font); font-size: 11px; font-weight: 700; color: #fff;
  letter-spacing: 0; text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
:root[data-theme="classic"] .dialog-sub {
  font-size: 9px; color: #dbe5f5; margin-top: 0; line-height: 1.35;
}
:root[data-theme="classic"] .dialog-x {
  width: 19px; height: 18px; color: #fff; border: 1px solid transparent; border-radius: 0;
  margin: 0;
}
:root[data-theme="classic"] .dialog-x:hover {
  background: #c42b1c; border-color: #fff; color: #fff;
}
:root[data-theme="classic"] .dialog-body {
  background: #ece9d8; color: #1a1a1a; padding: 12px 13px 4px;
}
:root[data-theme="classic"] .dialog-body p { font-size: 11px; line-height: 1.5; color: #333; }
:root[data-theme="classic"] .dialog-text { color: #333; }
:root[data-theme="classic"] .dialog-intro {
  font-size: 10.5px; color: #444; line-height: 1.5; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid #d4d0c8;
}
:root[data-theme="classic"] .dialog-foot {
  background: #ece9d8; border-top: 1px solid #aca899;
  padding: 8px 13px 10px; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .dialog-error { color: #b00000; font-size: 10.5px; }
:root[data-theme="classic"] .form-grid { gap: 9px; }
:root[data-theme="classic"] .form-grid.cols-2 { gap: 9px 12px; }
:root[data-theme="classic"] .field { gap: 3px; }
:root[data-theme="classic"] .field > span { font-size: 10px; font-weight: 700; color: #333; letter-spacing: 0; }
:root[data-theme="classic"] .field-hint { font-size: 9.5px; color: #666; line-height: 1.4; }
:root[data-theme="classic"] .input {
  height: 24px; padding: 0 5px; border-radius: 0;
  background: #fff; border: 1px solid #7f9db9; color: #111;
  font-size: 11px; box-shadow: inset 1px 1px 1px rgba(0,0,0,.08);
}
:root[data-theme="classic"] .input:focus {
  outline: none; border-color: #316ac5; box-shadow: inset 0 0 0 1px #316ac5;
}
:root[data-theme="classic"] textarea.input {
  min-height: 66px; padding: 4px 5px; line-height: 1.45;
}
:root[data-theme="classic"] select.input {
  padding-right: 20px;
  background-position: calc(100% - 11px) 9px, calc(100% - 7px) 9px;
  background-size: 4px 4px;
}
:root[data-theme="classic"] input[type="color"] {
  width: 38px; height: 24px; padding: 2px; border-radius: 0;
  border: 1px solid #7f9db9; background: #fff;
}
:root[data-theme="classic"] .range-row { height: 24px; gap: 7px; }
:root[data-theme="classic"] .range-row output { font-size: 10px; color: #333; }
:root[data-theme="classic"] .check-row { font-size: 11px; color: #222; gap: 6px; padding: 0; }
:root[data-theme="classic"] input[type="checkbox"],
:root[data-theme="classic"] input[type="radio"] { accent-color: #1f4e9a; }
:root[data-theme="classic"] .file-input { height: auto; padding: 3px; font-size: 10.5px; }
:root[data-theme="classic"] .pill {
  height: 22px; padding: 0 7px; border-radius: 2px;
  border: 1px solid #aca899; background: linear-gradient(#fff, #ece9d8);
  color: #333; font-size: 10px; font-weight: 400; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .pill:hover { border-color: #7f9db9; color: #111; background: #eef3fc; }
:root[data-theme="classic"] .pill.on {
  background: #c9d7ee; border-color: #316ac5; color: #173a70; font-weight: 700;
}

/* ------------------------------------------------------------------ */
/* Toasts, palette, misc                                              */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] .toast {
  background: #ffffe1; border: 1px solid #8d8d8d; border-radius: 0;
  color: #111; font-size: 10.5px; box-shadow: 2px 2px 5px rgba(0,0,0,.35);
  backdrop-filter: none; padding: 6px 7px 6px 9px; min-height: 32px;
}
:root[data-theme="classic"] .toast-success .toast-icon { color: #1a7a35; }
:root[data-theme="classic"] .toast-error .toast-icon { color: #b00000; }
:root[data-theme="classic"] .toast-warn .toast-icon { color: #9a6200; }
:root[data-theme="classic"] .toast-info .toast-icon { color: #1f4e9a; }
:root[data-theme="classic"] .toast-close { border-radius: 0; color: #555; }
:root[data-theme="classic"] .toast-close:hover { background: #e8e5da; color: #111; }

:root[data-theme="classic"] .palette-backdrop {
  background: rgba(20,20,20,.3); backdrop-filter: none; padding-top: 10vh;
}
:root[data-theme="classic"] .palette {
  background: #ece9d8; border: 2px solid #1f4e9a; border-radius: 0;
  box-shadow: 3px 3px 10px rgba(0,0,0,.45); animation: none;
}
:root[data-theme="classic"] .palette-search {
  padding: 5px 7px; gap: 6px; color: #fff;
  background: linear-gradient(180deg, #0a246a 0%, #3a6ea5 100%);
  border-bottom: 1px solid #173a63;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
:root[data-theme="classic"] .palette-search kbd { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.45); color: #fff; }
:root[data-theme="classic"] .palette-input {
  font-size: 11.5px; color: #111; background: #fff;
  border: 1px solid #7f9db9; padding: 3px 6px; height: 24px;
}
:root[data-theme="classic"] .palette-input::placeholder { color: #888; }
:root[data-theme="classic"] .palette-list { background: #fff; padding: 2px; max-height: 360px; }
:root[data-theme="classic"] .palette-item {
  padding: 5px 7px; border-radius: 0; color: #222; gap: 7px;
}
:root[data-theme="classic"] .palette-item.sel { background: #316ac5; color: #fff; }
:root[data-theme="classic"] .palette-item.sel .palette-ic,
:root[data-theme="classic"] .palette-item.sel .palette-hint,
:root[data-theme="classic"] .palette-item.sel .palette-key { color: #fff; }
:root[data-theme="classic"] .palette-ic { width: 18px; color: #3b5f95; }
:root[data-theme="classic"] .palette-label { font-size: 11px; }
:root[data-theme="classic"] .palette-hint { font-size: 9px; color: #777; }
:root[data-theme="classic"] .palette-key {
  border-radius: 0; background: #f5f4ea; border: 1px solid #aca899; color: #444;
  font-size: 9px; padding: 1px 4px;
}
:root[data-theme="classic"] .palette-empty { color: #666; font-size: 11px; padding: 20px; }
:root[data-theme="classic"] .palette-foot {
  background: #ece9d8; border-top: 1px solid #aca899; color: #555;
  font-size: 9.5px; padding: 4px 8px;
}

/* ------------------------------------------------------------------ */
/* Shared widgets used by feature panels                              */
/* ------------------------------------------------------------------ */
:root[data-theme="classic"] .tag {
  border-radius: 2px; background: #e8e5da; color: #444; font-size: 9px;
  padding: 0 4px; border: 1px solid #c9c4b8;
}
:root[data-theme="classic"] .tag.ok { background: #e4f2e7; color: #1a6b32; border-color: #9bc4a5; }
:root[data-theme="classic"] .tag.warn { background: #fff4d6; color: #7a4c00; border-color: #d8bc72; }
:root[data-theme="classic"] .tag.err { background: #ffe6e6; color: #a00000; border-color: #d0a0a0; }
:root[data-theme="classic"] .stat-box {
  border-radius: 0; background: #fff; border: 1px solid #aca899;
  box-shadow: inset 0 1px 0 #fff; padding: 5px 6px;
}
:root[data-theme="classic"] .stat-k { color: #5b5b5b; font-size: 8px; letter-spacing: .04em; }
:root[data-theme="classic"] .stat-v { color: #173a70; font-size: 14px; font-weight: 700; margin-top: 1px; }
:root[data-theme="classic"] .stat-v small { color: #777; }

/* Pages feature */
:root[data-theme="classic"] .pages-combine-add {
  border-radius: 0; background: #f7f6f0; border-color: #aca899; padding: 8px 9px;
}
:root[data-theme="classic"] .combine-list {
  border-radius: 0; background: #fff; border-color: #aca899; padding: 3px;
}
:root[data-theme="classic"] .combine-row {
  border-radius: 0; border-color: #e0dcd0; background: #f7f6f0;
}
:root[data-theme="classic"] .combine-row:hover { background: #eef3fc; border-color: #c4d3ea; }
:root[data-theme="classic"] .combine-index {
  border-radius: 0; background: #ece9d8; border-color: #aca899; color: #444;
}
:root[data-theme="classic"] .pages-action {
  border-radius: 0; background: linear-gradient(#fff, #ece9d8); border-color: #aca899;
  color: #222; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .pages-action:hover {
  background: #eef3fc; border-color: #7f9db9; color: #111;
}
:root[data-theme="classic"] .org-size-row,
:root[data-theme="classic"] .org-kv { border-color: #d4d0c8; }
:root[data-theme="classic"] .crop-stage-wrap {
  border-radius: 0; border-color: #aca899; background: #d4d0c8;
}
:root[data-theme="classic"] .crop-stage {
  box-shadow: 2px 2px 6px rgba(0,0,0,.45);
}
:root[data-theme="classic"] .crop-stage.no-preview {
  background: repeating-linear-gradient(45deg, #d9d5c9, #d9d5c9 4px, #e5e1d5 4px, #e5e1d5 8px);
}
:root[data-theme="classic"] .crop-loading {
  background: rgba(236,233,216,.8); border-radius: 0; color: #333;
}

/* Annotate feature */
:root[data-theme="classic"] .annot-inline-checks,
:root[data-theme="classic"] .annot-img-preview {
  border-radius: 0; background: #f7f6f0; border-color: #aca899;
}
:root[data-theme="classic"] .annot-stamp-chip {
  border-radius: 0; border-color: #aca899; background: linear-gradient(#fff, #ece9d8);
  color: #333; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .annot-stamp-chip:hover { color: #111; border-color: #7f9db9; background: #eef3fc; }
:root[data-theme="classic"] .annot-stamp-chip.on {
  background: #c9d7ee; border-color: #316ac5; color: #173a70;
}
:root[data-theme="classic"] .annot-stamp-tab {
  border-radius: 2px; border-color: #aca899; background: linear-gradient(#fff, #ece9d8);
  color: #333;
}
:root[data-theme="classic"] .annot-stamp-tab:hover { border-color: #7f9db9; color: #111; }
:root[data-theme="classic"] .annot-stamp-tab.on { background: #c9d7ee; border-color: #316ac5; color: #173a70; }
:root[data-theme="classic"] .annot-comment-row:hover,
:root[data-theme="classic"] .annot-tree-row:hover { background: #eef3fc; }
:root[data-theme="classic"] .annot-tree-chev:hover { background: #dbe5f5; color: #111; }
:root[data-theme="classic"] .find-bar {
  background: #ece9d8; border: 1px solid #8d8d8d; border-radius: 0;
  box-shadow: 2px 2px 5px rgba(0,0,0,.35);
}
:root[data-theme="classic"] .find-opt:hover { background: #dbe5f5; color: #111; }
:root[data-theme="classic"] .ann-pin.annot-pin { box-shadow: 1px 1px 3px rgba(0,0,0,.4); }
:root[data-theme="classic"] .annot-link-box:hover,
:root[data-theme="classic"] .annot-link-box:focus-visible {
  border-color: #316ac5; background: #dbe5f5;
}
:root[data-theme="classic"] .draft-box.link,
:root[data-theme="classic"] .draft-box.text { border-color: #316ac5; background: #dbe5f5; }

/* Forms feature */
:root[data-theme="classic"] .ff-empty-ic {
  border-radius: 2px; background: #dbe5f5; border-color: #7f9db9; color: #1f4e9a;
}
:root[data-theme="classic"] .ff-group-head { border-bottom-color: #aca899; color: #24477f; }
:root[data-theme="classic"] .ff-group-count {
  border-radius: 2px; background: #e8e5da; border: 1px solid #c9c4b8;
}
:root[data-theme="classic"] .ff-row { border-radius: 0; }
:root[data-theme="classic"] .ff-row:hover { background: #eef3fc; }
:root[data-theme="classic"] .ff-row.sel { background: #dbe5f5; border-color: #7f9db9; }
:root[data-theme="classic"] .ff-badge {
  border-radius: 2px; background: #e8e5da; border-color: #c9c4b8; color: #444;
}
:root[data-theme="classic"] .ff-badge-text { background: #dbe5f5; border-color: #7f9db9; color: #173a70; }
:root[data-theme="classic"] .ff-badge-checkbox { background: #e4f2e7; border-color: #9bc4a5; color: #1a6b32; }
:root[data-theme="classic"] .ff-badge-dropdown,
:root[data-theme="classic"] .ff-badge-list { background: #fff4d6; border-color: #d8bc72; color: #7a4c00; }
:root[data-theme="classic"] .ff-badge-radio { background: #e8e5f4; border-color: #a79fc9; color: #55407f; }
:root[data-theme="classic"] .ff-create-btn {
  border-radius: 0; border: 1px solid #aca899; background: linear-gradient(#fff, #ece9d8);
  color: #222; box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .ff-create-btn:hover { border-color: #7f9db9; background: #eef3fc; color: #111; }
:root[data-theme="classic"] .ff-create-btn:hover svg { color: #1f4e9a; }
:root[data-theme="classic"] .ff-outline { border-radius: 0; }
:root[data-theme="classic"] .ff-outline-label { background: #316ac5; }
:root[data-theme="classic"] .ff-input { border-radius: 0; height: 24px; }
:root[data-theme="classic"] .ff-search-input { padding-left: 27px; }
:root[data-theme="classic"] .ff-search-icon { left: 7px; }
:root[data-theme="classic"] .ff-apply.has-changes { box-shadow: 0 0 0 1px #316ac5; }

/* Secure feature */
:root[data-theme="classic"] .sec-status,
:root[data-theme="classic"] .sec-identity,
:root[data-theme="classic"] .sec-id-row,
:root[data-theme="classic"] .sig-record,
:root[data-theme="classic"] .sec-actions,
:root[data-theme="classic"] .sec-perms { border-radius: 0; }
:root[data-theme="classic"] .sec-status { background: #fff; border-color: #aca899; }
:root[data-theme="classic"] .sec-status.protected { background: #f0f8f2; border-color: #9bc4a5; }
:root[data-theme="classic"] .sec-status.readonly { background: #fff9e8; border-color: #d8bc72; }
:root[data-theme="classic"] .sec-status-ic,
:root[data-theme="classic"] .sec-id-ic { border-radius: 2px; background: #dbe5f5; border-color: #7f9db9; color: #1f4e9a; }
:root[data-theme="classic"] .sec-perms { border-color: #aca899; background: #fff; }
:root[data-theme="classic"] .sec-perm { background: #fff; border-bottom-color: #e0dcd0; }
:root[data-theme="classic"] .sec-perm-ic { border-radius: 2px; background: #ece9d8; }
:root[data-theme="classic"] .sec-perm.on .sec-perm-ic { background: #e4f2e7; color: #1a6b32; }
:root[data-theme="classic"] .sec-perm.off .sec-perm-ic { background: #ffe6e6; color: #b00000; }
:root[data-theme="classic"] .sec-identity { background: #fff; border-color: #aca899; }
:root[data-theme="classic"] .sec-identity.active { background: #dbe5f5; border-color: #7f9db9; }
:root[data-theme="classic"] .sec-memory-note { border-radius: 0; background: #f0f8f2; border-color: #9bc4a5; color: #1a6b32; }
:root[data-theme="classic"] .sig-record { background: #fff; border-color: #aca899; }
:root[data-theme="classic"] .sig-record.err { border-color: #c07070; background: #fff6f6; }

/* Output feature */
:root[data-theme="classic"] .out-preview-bar,
:root[data-theme="classic"] .out-stat,
:root[data-theme="classic"] .out-summary,
:root[data-theme="classic"] .out-action { border-radius: 0; border-color: #aca899; background: #fff; }
:root[data-theme="classic"] .out-preview-frame { border-radius: 0; border-color: #aca899; }
:root[data-theme="classic"] .out-preview-tip {
  border-radius: 0; background: #ffffe1; border-color: #aca899; color: #333;
}
:root[data-theme="classic"] .out-stat { box-shadow: inset 0 1px 0 #fff; }
:root[data-theme="classic"] .out-stat.good { background: #f0f8f2; border-color: #9bc4a5; }
:root[data-theme="classic"] .out-stat.bad { background: #fff9e8; border-color: #d8bc72; }
:root[data-theme="classic"] .out-server-response {
  border-radius: 0; border-color: #aca899; background: #fff; color: #333;
}
:root[data-theme="classic"] .out-action {
  background: linear-gradient(#fff, #f5f4ea); box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .out-action:hover { background: #eef3fc; border-color: #7f9db9; color: #111; }
:root[data-theme="classic"] .out-form-error { border-radius: 0; background: #ffe6e6; border-color: #c07070; }

/* Create feature */
:root[data-theme="classic"] .tpl-card {
  border-radius: 0; background: #fff; border-color: #aca899;
  box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .tpl-card:hover { box-shadow: 1px 1px 4px rgba(0,0,0,.25); transform: none; }
:root[data-theme="classic"] .tpl-card.sel { border-color: #316ac5; box-shadow: 0 0 0 1px #316ac5; }
:root[data-theme="classic"] .tpl-shot { border-radius: 0; background: #d9d5c9; }
:root[data-theme="classic"] .create-intro {
  background: linear-gradient(180deg, #eef3fc, #e5e1d5); border: 1px solid #aca899; border-radius: 0;
}
:root[data-theme="classic"] .create-mark { border-radius: 2px; background: #dbe5f5; color: #1f4e9a; }
:root[data-theme="classic"] .create-action,
:root[data-theme="classic"] .create-recent-row {
  border-radius: 0; border-color: #aca899; background: linear-gradient(#fff, #f5f4ea);
  box-shadow: inset 0 1px 0 #fff;
}
:root[data-theme="classic"] .create-action:hover,
:root[data-theme="classic"] .create-recent-row:hover { background: #eef3fc; border-color: #7f9db9; color: #111; }
:root[data-theme="classic"] .create-action-ic { border-radius: 2px; background: #dbe5f5; color: #1f4e9a; }
:root[data-theme="classic"] .scan-stage { background: #cfcbc0; border-color: #aca899; border-radius: 0; }
:root[data-theme="classic"] .scan-video { background: #111; }
:root[data-theme="classic"] .scan-seg { border-radius: 0; border-color: #aca899; background: #fff; }
:root[data-theme="classic"] .scan-seg button:hover { background: #eef3fc; }
:root[data-theme="classic"] .scan-thumb { border-radius: 0; border-color: #aca899; background: #fff; }
:root[data-theme="classic"] .scan-thumb-img { background: #d9d5c9; }
:root[data-theme="classic"] .scan-mini { border-radius: 0; background: #ece9d8; border: 1px solid #aca899; }
:root[data-theme="classic"] .scan-mini:hover { background: #dbe5f5; }
:root[data-theme="classic"] .txt-preview-wrap { background: #d4d0c8; border-radius: 0; }

/* Print preview / diagram controls keep classic edges */
:root[data-theme="classic"] .out-preview .btn,
:root[data-theme="classic"] .dialog .btn { text-shadow: none; }
:root[data-theme="classic"] .dialog .btn-primary { text-shadow: 0 1px 0 rgba(0,0,0,.35); }