:root,html.dark-theme{color-scheme:dark;--bg-canvas: #0b1120;--bg-surface: #1e293b;--bg-surface-elevated: #0f172a;--bg-elevated: #1e293b;--bg-subtle: #0f172a;--border-color: #334155;--border-hover: #475569;--border-subtle: #334155;--border-strong: #475569;--text-primary: #f8fafc;--text-secondary: #cbd5e1;--text-muted: #94a3b8;--accent-gold: #f59e0b;--accent-teal: #14b8a6}html.light-theme,html:not(.dark-theme){color-scheme:light;--bg-canvas: #f6f3ec;--bg-surface: #fffdf9;--bg-surface-elevated: #faf6ee;--bg-elevated: #faf6ee;--bg-subtle: #efe9dc;--border-color: #e7e0d3;--border-hover: #b8afa0;--border-subtle: #e7e0d3;--border-strong: #b8afa0;--text-primary: #1c1917;--text-secondary: #44403c;--text-muted: #78716c;--accent-gold: #d97706;--accent-teal: #0f766e}html,body{margin:0;padding:0;min-height:100vh;min-height:100dvh;background-color:#0b1120;color:#f8fafc;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;transition:background-color .2s ease,color .2s ease;overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:manipulation}.app-topbar{user-select:none;-webkit-user-select:none}.app-main:not(.study-main){padding-bottom:env(safe-area-inset-bottom,0px)}button,nav,header,footer,article,.app-topbar,.topbar-btn,.tab-btn,.rm-tabs-bar,.rm-tab,.rm-row,.deck-item-card,.action-btn,.btn-anki-grade,.btn-study-reveal,.stitch-mode-btn,.compact-stitch-strip,.stitch-chip,.stitch-adj-btn,.flashcard-shell,.study-screen,.verse-line{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}input,textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}code,pre{user-select:text;-webkit-user-select:text}html.light-theme,html.light-theme body,html:not(.dark-theme),html:not(.dark-theme) body{color-scheme:light;background-color:#f6f3ec;color:#1c1917}html.dark-theme .dashboard-container .kpi-card,html.dark-theme .dashboard-container .deck-item-card,html.dark-theme .dashboard-container .empty-deck-box,html.dark-theme .dashboard-container .tab-bar,html.dark-theme .dashboard-container .sub-section-card{background:#111827!important;border-color:#334155!important;color:#f1f5f9!important}html.dark-theme .dashboard-container .section-title,html.dark-theme .dashboard-container .passage-ref,html.dark-theme .dashboard-container .kpi-value,html.dark-theme .dashboard-container .meta-chip strong{color:#f8fafc!important}html.dark-theme .dashboard-container .section-subtitle,html.dark-theme .dashboard-container .first-verse-snippet,html.dark-theme .dashboard-container .kpi-label,html.dark-theme .dashboard-container .kpi-sub,html.dark-theme .dashboard-container .meta-chip{color:#cbd5e1!important}html.dark-theme .dashboard-container .verse-count-pill,html.dark-theme .dashboard-container .delete-card-btn{background:#1e293b!important;border-color:#475569!important;color:#e2e8f0!important}html.dark-theme .modal-card,html.dark-theme .modal-container,html.dark-theme .sync-modal-card{background:#111827!important;border-color:#334155!important;color:#f8fafc!important}html.dark-theme .modal-header,html.dark-theme .modal-footer{background:#0f172a!important;border-color:#334155!important}html.dark-theme input,html.dark-theme textarea{background:#0f172a!important;border-color:#475569!important;color:#f8fafc!important}html.dark-theme .preview-box,html.dark-theme .highlight-preview-box,html.dark-theme .parsed-verse-item,html.dark-theme .file-sync-panel{background:#1e293b!important;border-color:#334155!important;color:#f1f5f9!important}
