/* Hallmark · v2.0.0 · shape: app screen · theme: Learnova by request · signature: nine-screen settings dialog from supplied references */
/* Critique: retain the reference hierarchy while keeping unavailable account services explicit. */
/* Hallmark · answered F19 · Retain user-specified Inter 400/500/600 and Be Vietnam Pro 600/700. */
:root {
  --st-paper: var(--white);
  --st-ink: var(--ink);
  --st-heading: var(--heading);
  --st-muted: var(--muted);
  --st-accent: var(--reading-violet);
  --st-purple: #7929d9;
  --st-soft: #f6f2ff;
  --st-selected: #ede1ff;
  --st-line: #e5dff1;
  --st-control: #8978a6;
  --st-disabled: #f1eff5;
  --st-danger: #b4233c;
  --st-danger-soft: #fff5f6;
  --st-overlay: #25204466;
  --st-on-accent: var(--text-on-dark);
  --st-shadow: 0 24px 80px #21114538;
  --st-dark-preview: #242036;
  --st-preview-ink: #f4f0ff;
  --st-blue: #2563eb;
  --st-teal: #0f766e;
  --st-pink: #be185d;
  --st-orange: #c2410c;
}
html,body { overflow-x: clip; }
.st-dialog { width: min(1320px,calc(100% - 64px)); height: min(960px,calc(100dvh - 64px)); max-width: none; max-height: none; padding: 0; margin: auto; border: 0; border-radius: 24px; background: var(--st-paper); color: var(--st-ink); box-shadow: var(--st-shadow); font: 400 16px/1.6 var(--font-body); }
.st-dialog::backdrop { background: var(--st-overlay); backdrop-filter: blur(7px); }
.st-dialog[open] { animation: st-enter .2s ease-out both; }
.st-dialog * { box-sizing: border-box; }
.st-dialog [hidden] { display: none !important; }
.st-dialog :focus-visible { outline: 3px solid var(--st-accent); outline-offset: 3px; }
.st-dialog :is(h2,h3) { font-family: var(--font-heading); letter-spacing: -.02em; text-wrap: balance; color: var(--st-heading); overflow-wrap: break-word; min-width: 0; }
.st-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); height: 100%; min-height: 0; }
.st-sidebar { padding: 24px 20px; border-right: 1px solid var(--st-line); overflow: auto; background: linear-gradient(155deg,var(--st-paper),var(--st-soft)); }
.st-brand { display: flex; align-items: center; gap: 12px; color: var(--st-heading); text-decoration: none; font: 700 22px/1.5 var(--font-heading); }
.st-brand svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: var(--st-on-accent); background: var(--st-purple); }
.st-sidebar > h2 { margin: 24px 12px 0; font-size: 24px; }
.st-sidebar > p { color: var(--st-muted); font-size: 14px; margin: 0 12px 24px; }
.st-search { display: flex; gap: 8px; align-items: center; border: 1px solid var(--st-control); border-radius: 12px; padding: 0 12px; background: var(--st-paper); }
.st-search svg { width: 20px; height: 20px; color: var(--st-muted); flex: 0 0 auto; }
.st-dialog .st-search input { border: 0; min-width: 0; width: 100%; padding-inline: 0; background: transparent; }
.st-sidebar nav h3 { font: 600 14px/1.6 var(--font-body); color: var(--st-muted); margin: 24px 12px 8px; }
.st-sidebar nav > button { display: flex; gap: 12px; align-items: center; width: 100%; border: 0; border-radius: 12px; padding: 12px; min-height: 44px; background: transparent; color: var(--st-heading); text-align: start; font: 400 15px/1.6 var(--font-body); cursor: pointer; }
.st-sidebar nav svg { width: 22px; height: 22px; flex-shrink: 0; }
.st-sidebar nav [aria-current=page] { color: var(--st-accent); background: var(--st-selected); font-weight: 600; }
.st-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.st-main > header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 24px 28px 16px; }
.st-main > header h2 { font-size: 28px; margin: 0 0 4px; }
.st-main > header p { margin: 0; color: var(--st-muted); font-size: 14px; }
.st-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--st-heading); cursor: pointer; }
.st-close svg { width: 24px; height: 24px; }
.st-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.st-body { min-height: 0; overflow: auto; padding: 4px 28px 16px; flex: 1; overscroll-behavior: contain; }
.st-body > h3 { font-size: 18px; margin: 16px 0 8px; }
.st-body p { margin: 4px 0; }
.st-form footer { border-top: 1px solid var(--st-line); padding: 16px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; justify-content: space-between; background: var(--st-paper); }
.st-form footer > p { color: var(--st-muted); font-size: 13px; flex: 1; margin: 0; }
.st-form footer > div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: end; }
.st-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 12px; border: 1px solid var(--st-control); background: var(--st-paper); color: var(--st-heading); text-decoration: none; font: 600 14px/1.6 var(--font-heading); cursor: pointer; transition: background-color .15s, border-color .15s; }
.st-primary { border-color: var(--st-purple); color: var(--st-on-accent); background: linear-gradient(135deg,var(--st-accent),var(--st-purple)); }
.st-button:disabled { color: var(--st-muted); background: var(--st-disabled); border-color: var(--st-line); cursor: not-allowed; }
.st-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font: 400 14px/1.6 var(--font-body); color: var(--st-heading); border: 1px solid var(--st-control); border-radius: 10px; background: var(--st-paper); padding: 8px 12px; min-height: 40px; max-width: 100%; }
.st-dialog :is(input,select,textarea):disabled,.st-dialog input[readonly] { background: var(--st-disabled); color: var(--st-muted); }
.st-dialog input[type=search] { width: 100%; }
.st-dialog label.st-search input[type=search] { border: 0; background: transparent; padding-inline: 0; }
.st-dialog textarea { display: block; width: 100%; resize: vertical; min-height: 110px; font-size: 16px; }
.st-dialog select { width: 280px; }
.st-dialog .st-row input:not([type=checkbox]):not([type=radio]) { width: 280px; }
.st-counter { text-align: end; font-size: 13px; color: var(--st-muted); }
.st-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 20px; margin-bottom: 16px; border: 1px solid var(--st-selected); border-radius: 16px; background: radial-gradient(ellipse at right,var(--st-selected),var(--st-soft) 60%,var(--st-paper)); }
.st-banner > div { flex: 1; min-width: 0; }
.st-banner strong { font: 700 21px/1.5 var(--font-heading); color: var(--st-heading); overflow-wrap: anywhere; }
.st-banner p { font-size: 14px; color: var(--st-muted); overflow-wrap: anywhere; }
.st-banner a.st-primary { background: var(--st-accent); }
.st-banner-icon { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 auto; background: var(--st-selected); color: var(--st-accent); border-radius: 20px; }
.st-banner-icon svg { width: 34px; height: 34px; }
.st-badge { display: inline-block; border-radius: 20px; padding: 4px 12px; font: 600 12px/1.6 var(--font-heading); color: var(--st-accent); background: var(--st-selected); }
.st-panel { padding: 8px 16px; border: 1px solid var(--st-line); border-radius: 16px; margin-bottom: 12px; background: linear-gradient(145deg,var(--st-paper),var(--st-soft)); min-width: 0; }
.st-panel > h3 { display: flex; gap: 12px; align-items: center; font-size: 17px; margin: 0 0 8px; }
.st-panel > h3 svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--st-accent); }
.st-row { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--st-line); min-width: 0; }
.st-row:last-child { border-bottom: 0; }
.st-row-icon { align-self: start; width: 28px; height: 28px; color: var(--st-muted); flex: 0 0 auto; }
.st-row-icon svg { width: 24px; height: 24px; }
.st-row-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.st-row-copy strong { color: var(--st-heading); font: 600 16px/1.5 var(--font-heading); }
.st-row-copy p { color: var(--st-muted); font-size: 13px; line-height: 1.6; }
.st-row-control { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 12px; max-width: 48%; font-size: 14px; overflow-wrap: anywhere; }
.st-row-control > * { min-width: 0; max-width: 100%; }
.st-switch { position: relative; display: inline-flex; align-items: center; min-width: 48px; min-height: 44px; flex: 0 0 auto; cursor: pointer; }
.st-switch input { position: absolute; width: 48px; height: 44px; opacity: 0; margin: 0; cursor: inherit; }
.st-switch span { width: 44px; height: 24px; background: var(--st-control); border-radius: 20px; padding: 2px; pointer-events: none; }
.st-switch span::after { content: ''; display: block; width: 20px; height: 20px; background: var(--st-paper); border-radius: 50%; transition: transform .15s; }
.st-switch input:checked + span { background: var(--st-purple); }
.st-switch input:checked + span::after { transform: translateX(20px); }
.st-switch input:focus-visible + span { outline: 3px solid var(--st-accent); outline-offset: 3px; }
.st-switch:has(:disabled) { opacity: .65; cursor: not-allowed; }
.st-unavailable { color: var(--st-muted); font-size: 12px; }
.st-note { padding: 8px 12px; border: 1px solid var(--st-selected); border-radius: 12px; background: var(--st-soft); color: var(--st-muted); font-size: 13px; margin: 8px 0 12px !important; }
.st-muted { font-size: 14px; color: var(--st-muted); }
.st-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.st-two > * { min-width: 0; }
.st-two .st-panel > .st-note { border: 0; padding: 0; background: transparent; margin: 4px 0 12px !important; }
.st-two .st-row { flex-wrap: wrap; }
.st-two .st-row-copy { min-width: min(160px,100%); }
.st-two .st-row-control { max-width: 100%; }
.st-benefits { list-style: none; padding: 0; margin: 0; }
.st-benefits li { padding: 12px 0 12px 24px; position: relative; font-size: 14px; }
.st-benefits li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--st-accent); font-weight: 600; }
.st-billing-list > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--st-line); font-size: 12px; overflow-wrap: anywhere; }
.st-text-link { color: var(--st-accent); }
.st-segment { display: flex; flex-wrap: wrap; border: 1px solid var(--st-control); border-radius: 12px; }
.st-segment label { position: relative; flex: 1; padding: 12px; border-radius: 10px; text-align: center; cursor: pointer; font-size: 14px; }
.st-segment input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.st-segment label:has(:checked) { color: var(--st-accent); background: var(--st-selected); outline: 1px solid var(--st-accent); }
.st-segment label:has(:focus-visible) { outline: 3px solid var(--st-accent); outline-offset: 3px; }
.st-swatches { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px; }
.st-swatches label { position: relative; display: block; width: 40px; height: 44px; cursor: pointer; }
.st-swatches input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.st-swatches label > span { display: block; width: 40px; height: 40px; border-radius: 12px; background: var(--st-purple); }
.st-swatches [data-color=blue] > span { background: var(--st-blue); }
.st-swatches [data-color=teal] > span { background: var(--st-teal); }
.st-swatches [data-color=pink] > span { background: var(--st-pink); }
.st-swatches [data-color=orange] > span { background: var(--st-orange); }
.st-swatches label:has(:checked) > span { outline: 2px solid var(--st-accent); outline-offset: 4px; }
.st-swatches label:has(:focus-visible) { outline: 3px solid var(--st-accent); outline-offset: 6px; border-radius: 12px; }
.st-preview { --st-accent: var(--st-purple-swatch); padding: 20px; border-radius: 12px; background: var(--st-paper); color: var(--st-ink); border: 1px solid var(--st-line); }
.st-preview-head { display: flex; align-items: center; gap: 8px; color: var(--st-preview-link, var(--st-accent)); font-weight: 600; }
.st-preview-head svg { width: 28px; height: 28px; }
.st-preview h3 { margin-block: 24px 8px; }
.st-preview p { color: var(--st-muted); font-size: 14px; }
.st-preview-items { display: grid; gap: 12px; margin-block: 20px; }
.st-preview-items span { padding: 12px; border-radius: 12px; background: var(--st-soft); color: var(--st-ink); font-size: 14px; }
.st-preview[data-accent=blue] { --st-accent: var(--st-blue); }
.st-preview[data-accent=teal] { --st-accent: var(--st-teal); }
.st-preview[data-accent=pink] { --st-accent: var(--st-pink); }
.st-preview[data-accent=orange] { --st-accent: var(--st-orange); }
.st-preview[data-density=compact] .st-preview-items span { padding: 8px; }
.st-preview[data-density=comfortable] .st-preview-items span { padding: 20px; }
.st-notifications { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,.55fr); gap: 20px; align-items: start; }
.st-notification-example { padding: 16px; border-radius: 12px; border: 1px solid var(--st-line); background: var(--st-paper); font-size: 14px; }
.st-notification-example small { color: var(--st-muted); }
.st-shortcut-group { border: 1px solid var(--st-line); border-radius: 12px; margin-top: 16px; overflow: clip; }
.st-shortcut-group summary { padding: 8px 16px; min-height: 44px; background: var(--st-selected); color: var(--st-heading); font-weight: 600; cursor: pointer; }
.st-shortcut-group [data-shortcut-row] { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; gap: 12px; border-top: 1px solid var(--st-line); font-size: 14px; }
.st-dialog kbd { font: 500 13px/1.6 var(--font-code); border: 1px solid var(--st-control); padding: 2px 12px; border-radius: 6px; background: var(--st-soft); }
.st-format-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.st-format-preview > div { padding: 16px; background: var(--st-soft); border-radius: 16px; }
.st-format-preview span { font-size: 13px; color: var(--st-muted); display: block; }
.st-format-preview strong { font-size: 15px; }
.st-danger { border: 1px solid var(--st-danger); background: var(--st-danger-soft); padding: 12px 20px; border-radius: 16px; }
.st-danger strong { color: var(--st-danger); }
.st-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-section-head h3 { font-size: 20px; }
.st-app { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--st-line); border-radius: 16px; margin-bottom: 12px; background: linear-gradient(145deg,var(--st-paper),var(--st-soft)); }
.st-app h3 { font-size: 18px; margin: 0 0 4px; }
.st-app-mark { display: grid; place-items: center; width: 52px; height: 52px; background: var(--st-selected); color: var(--st-accent); border-radius: 16px; font: 600 18px/1 var(--font-heading); }
.st-app-scope { border-left: 1px solid var(--st-line); padding-left: 20px; flex: 1; font-size: 13px; }
@media (hover:hover) { .st-sidebar nav button:not([aria-current=page]):hover,.st-close:hover { background: var(--st-soft); } .st-button:not(:disabled):hover { border-color: var(--st-accent); } }
@keyframes st-enter { from { opacity: .7; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .st-layout { grid-template-columns: 240px minmax(0,1fr); }
  .st-sidebar { padding: 20px 12px; }
  .st-row { flex-wrap: wrap; }
  .st-row-control { max-width: calc(100% - 44px); margin-inline-start: 44px; }
  .st-two,.st-notifications { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 680px) {
  .st-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); border-radius: 20px; }
  .st-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); }
  .st-sidebar { border-right: 0; border-bottom: 1px solid var(--st-line); padding: 12px; overflow: visible; }
  .st-sidebar > :is(h2,p),.st-sidebar nav h3 { display: none; }
  .st-brand { font-size: 18px; margin-bottom: 12px; }
  .st-brand svg { width: 28px; height: 28px; }
  .st-sidebar nav { display: flex; gap: 4px; overflow: auto; padding: 8px 0 0; }
  .st-sidebar nav button { flex: 0 0 auto; width: auto; white-space: nowrap; font-size: 14px; padding: 8px 12px; }
  .st-sidebar nav svg { width: 18px; height: 18px; }
  .st-main > header { padding: 12px 16px; }
  .st-main > header h2 { font-size: 22px; }
  .st-main > header p { font-size: 13px; }
  .st-body { padding: 0 16px 16px; }
  .st-banner { display: grid; grid-template-columns: 44px minmax(0,1fr); padding: 16px; gap: 12px; }
  .st-banner strong { font-size: 18px; }
  .st-banner-icon { width: 44px; height: 44px; border-radius: 14px; }
  .st-banner-icon svg { width: 26px; height: 26px; }
  .st-banner > .st-badge { grid-column: 2; justify-self: start; margin: 0; }
  .st-banner > .st-button { grid-column: 1 / -1; }
  .st-panel { padding: 12px; }
  .st-row { gap: 12px; }
  .st-row-control { margin-inline-start: 0; max-width: 100%; width: 100%; justify-content: start; }
  .st-row-copy strong { font-size: 15px; }
  .st-dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size: 16px; }
  .st-dialog .st-row input:not([type=checkbox]):not([type=radio]),.st-dialog select { width: 100%; }
  .st-form footer { padding: 12px; gap: 8px; }
  .st-form footer > p { flex-basis: 100%; }
  .st-form footer > div { gap: 8px; width: 100%; }
  .st-form footer .st-button { font-size: 12px; padding-inline: 12px; }
  .st-format-preview { grid-template-columns: minmax(0,1fr); }
  .st-billing-list > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .st-app { gap: 12px; }
  .st-app-scope { flex-basis: 100%; padding-left: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .st-dialog,.st-dialog * { animation: none !important; transition: none !important; } }
html[data-learnova-reduce-motion] *,html[data-learnova-reduce-motion] *::before,html[data-learnova-reduce-motion] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

.st-button:active:not(:disabled),.st-close:active { transform: translateY(1px); }

/* Saved account appearance is applied to the real application, not just its preview. */
:root[data-learnova-accent] {
  --pref-accent: #5742cf; --pref-accent-hover: #4925ad; --pref-soft: #eee9ff; --pref-link: var(--pref-accent);
  --purple: var(--pref-accent); --reading-violet: var(--pref-accent); --reading-violet-soft: var(--pref-accent-hover);
  --lv-primary: var(--pref-accent); --lv-primary-hover: var(--pref-accent-hover); --lv-accent: var(--pref-soft); --lv-focus: var(--pref-accent);
  --st-accent: var(--pref-accent); --st-purple: var(--pref-accent); --st-paper: var(--lv-surface); --st-soft: var(--lv-elevated); --st-selected: var(--lv-secondary); --st-line: var(--lv-border); --st-control: var(--lv-control-border);
}
:root[data-learnova-accent="blue"] { --pref-accent: #1d4ed8; --pref-accent-hover: #1e40af; --pref-soft: #e8efff; }
:root[data-learnova-accent="teal"] { --pref-accent: #0f766e; --pref-accent-hover: #115e59; --pref-soft: #dff5f0; }
:root[data-learnova-accent="pink"] { --pref-accent: #be185d; --pref-accent-hover: #9d174d; --pref-soft: #fce7f1; }
:root[data-learnova-accent="orange"] { --pref-accent: #b45309; --pref-accent-hover: #92400e; --pref-soft: #fff0df; }
:root[data-learnova-theme="light"] { color-scheme: light; }
:root[data-learnova-theme="dark"] {
  color-scheme: dark; --ink: #e4e8f4; --heading: #f4f3ff; --muted: #b4bdd3; --bg: #121522; --reading-paper: #171b2b; --lav: #25243a; --line: #41485e;
  --lv-background: var(--bg); --lv-surface: #1d2233; --lv-elevated: #242a3d; --lv-secondary: #2c3048; --lv-border: #41485e; --lv-control-border: #8c97b3; --lv-on-primary: #ffffff;
  --pref-soft: #302b4c; --pref-link: #c8bcff; --lv-focus: var(--pref-link); --positive-text: #8edbc1;
  --lv-success: #8edbc1; --lv-success-surface: #173a30; --lv-warning: #f2d293; --lv-warning-surface: #403319; --lv-error: #ffb0c1; --lv-error-surface: #432635; --lv-disabled: #b4bdd3; --lv-disabled-surface: #2b3044;
  --st-disabled: var(--lv-disabled-surface); --st-danger: var(--lv-error); --st-danger-soft: var(--lv-error-surface);
  --cm-edge: var(--lv-control-border); --cm-danger: var(--lv-error); --cm-success: var(--lv-success);
  --cp-rail: var(--lv-elevated); --cp-selected: #383152; --cp-selected-line: #8779b2; --cp-green-paper: #173a30; --cp-green-ink: #8edbc1;
  --cf-green-paper: #173a30; --cf-green-line: #3c6857; --cf-green-ink: #8edbc1; --cf-rose-paper: #432635; --cf-rose-line: #805064; --cf-rose-ink: #ffb0c1; --cf-warning-paper: #403319; --cf-warning-line: #897047; --cf-warning-ink: #f2d293; --cf-selected: #383152;
}
:root[data-learnova-theme="dark"][data-learnova-accent="blue"] { --pref-link: #b4ceff; }
:root[data-learnova-theme="dark"][data-learnova-accent="teal"] { --pref-link: #88e2d1; }
:root[data-learnova-theme="dark"][data-learnova-accent="pink"] { --pref-link: #ffb7d5; }
:root[data-learnova-theme="dark"][data-learnova-accent="orange"] { --pref-link: #ffd0a3; }
:root[data-learnova-theme="dark"] .workspace-shell :is(.sidebar,.panel,.flashcard,.searchbox,.button.secondary,.button.ghost) { background: var(--lv-surface); border-color: var(--lv-border); color: var(--lv-text); }
:root[data-learnova-theme="dark"] .workspace-shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { background-color: var(--lv-surface); color: var(--lv-text); border-color: var(--lv-control-border); }
:root[data-learnova-theme="dark"] :is(.workspace-shell,.st-dialog) a:not(.lv-button--primary):not(.st-primary):not([aria-current="page"]):not(.cp-plan),
:root[data-learnova-theme="dark"] :is(.cp-tabs,.cf-tabs,.cm-tabs) [aria-current],
:root[data-learnova-theme="dark"] :is(.cp-plan-icon,.cp-badge:not(.cp-badge--success),.cf-plan-badge,.cf-metric-icon,.st-badge) { color: var(--pref-link); }
:root[data-learnova-theme="dark"] .workspace-shell :is(.lv-button--primary,.st-primary,.ai-primary,.flashcard-ai-submit) { color: var(--text-on-dark); }
:root[data-learnova-shortcut-hints="false"] .workspace-shell :is(kbd,[data-shortcut-hint]) { display: none; }
:root[data-learnova-density="compact"] { --pref-panel-pad: 16px; --pref-table-pad: 8px; --pref-layout-gap: 12px; }
:root[data-learnova-density="comfortable"] { --pref-panel-pad: 28px; --pref-table-pad: 16px; --pref-layout-gap: 24px; }
:root:is([data-learnova-density="compact"],[data-learnova-density="comfortable"]) .workspace-shell :is(.lv-panel,.lv-ops-panel,.lv-dashboard-card,.cm-section,.cf-result,.cp-group) { padding: var(--pref-panel-pad); }
:root:is([data-learnova-density="compact"],[data-learnova-density="comfortable"]) .workspace-shell :is(td,th) { padding-block: var(--pref-table-pad); }
:root:is([data-learnova-density="compact"],[data-learnova-density="comfortable"]) .workspace-shell :is(.cp-pair,.lv-dashboard-main,.cf-metrics) { gap: var(--pref-layout-gap); }
@media (max-width:759px) { :root[data-learnova-density="comfortable"] { --pref-panel-pad: 20px; --pref-layout-gap: 16px; } }
:root { --st-qr-paper: #ffffff; --st-qr-ink: #000000; --st-light-preview-paper: #ffffff; --st-light-preview-ink: #1e293b; --st-light-preview-soft: #f6f2ff; --st-dark-preview-soft: #383247; }
/* Draft preview owns its full palette, independently of the saved application theme. */
.st-preview[data-theme="light"] { color-scheme: light; --st-paper: var(--st-light-preview-paper); --st-ink: var(--st-light-preview-ink); --st-heading: var(--st-light-preview-ink); --st-muted: #475569; --st-soft: var(--st-light-preview-soft); --st-line: #e5dff1; --st-disabled: #f1eff5; --st-preview-link: var(--st-accent); }
.st-preview[data-theme="dark"] { color-scheme: dark; --st-paper: var(--st-dark-preview); --st-ink: var(--st-preview-ink); --st-heading: var(--st-preview-ink); --st-muted: #b4bdd3; --st-soft: var(--st-dark-preview-soft); --st-line: #41485e; --st-disabled: #302b4c; --st-preview-link: #c8bcff; }
.st-preview[data-theme="dark"][data-accent="blue"] { --st-preview-link: #b4ceff; }
.st-preview[data-theme="dark"][data-accent="teal"] { --st-preview-link: #88e2d1; }
.st-preview[data-theme="dark"][data-accent="pink"] { --st-preview-link: #ffb7d5; }
.st-preview[data-theme="dark"][data-accent="orange"] { --st-preview-link: #ffd0a3; }
:root[data-learnova-theme="dark"] .st-dialog :focus-visible { outline-color: var(--pref-link); }
:root[data-learnova-theme="dark"] .st-sidebar nav button[aria-current="page"] { color: var(--pref-link); }
[data-totp-qr] svg { width: 196px; max-width: 100%; height: auto; display: block; margin-block: 16px; shape-rendering: crispEdges; }
:root { --st-purple-swatch: #5742cf; }
.st-swatches [data-color="purple"] > span { background: var(--st-purple-swatch); }
:root[data-learnova-theme="dark"] .st-dialog :is(.st-banner-icon,.st-panel > h3 svg,.st-benefits li::before,.st-text-link,.st-app-mark,.st-segment label:has(:checked)) { color: var(--pref-link); }
:root[data-learnova-theme="dark"] {
  --ai-paper: var(--lv-surface); --ai-soft: var(--lv-secondary); --ai-edge: var(--lv-control-border); --ai-focus: var(--lv-focus);
  --ai-progress-surface: var(--lv-surface); --ai-progress-glass: var(--lv-elevated); --ai-progress-line: var(--lv-border);
  --ai-red: var(--lv-error); --ai-red-soft: var(--lv-error-surface); --ai-green: var(--lv-success); --ai-green-soft: var(--lv-success-surface); --ai-amber: var(--lv-warning); --ai-amber-soft: var(--lv-warning-surface);
  --bill-paper: var(--lv-surface); --bill-soft: var(--lv-elevated); --bill-border: var(--lv-border); --bill-control: var(--lv-control-border); --bill-focus: var(--lv-focus);
  --bill-success: var(--lv-success); --bill-success-soft: var(--lv-success-surface); --bill-warning: var(--lv-warning); --bill-warning-soft: var(--lv-warning-surface); --bill-error: var(--lv-error); --bill-error-soft: var(--lv-error-surface);
}
:root[data-learnova-theme="dark"] .workspace-shell { background: var(--lv-background); }
:root[data-learnova-theme="dark"] .workspace-shell .side-quota { background: var(--lv-elevated); border-color: var(--lv-border); }
:root[data-learnova-theme="dark"] .workspace-shell .lv-dashboard-stat-icon { color: var(--pref-link); }
:root[data-learnova-theme="dark"] .cm-finance :is(.cf-title-icon,.cf-result h2 svg,.cf-result-symbol:not([data-tone="green"]):not([data-tone="warning"])) { color: var(--pref-link); }
