@tailwind base;@tailwind components;@tailwind utilities;*,*:before,*:after{box-sizing:border-box}html,body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:16px;color:#1f2937;background:#f9fafb;-webkit-font-smoothing:antialiased}:root{--navy: #1B3A5C;--blue: #2E75B6;--light-blue: #D6E4F7;--teal: #1F6B75;--gold: #C8922A;--green: #2E7D32;--mid-grey: #4A4A4A;--bg: #f9fafb;--bg-card: #ffffff;--bg-input: #ffffff;--bg-hover: #f3f4f6;--bg-subtle: #f9fafb;--border: #e5e7eb;--border-mid: #d1d5db;--text: #1f2937;--text-mid: #374151;--text-muted: #6b7280;--text-faint: #9ca3af}html[data-theme=dark]{background:#111827;--bg: #111827;--bg-card: #1f2937;--bg-input: #374151;--bg-hover: #374151;--bg-subtle: #1a2535;--border: #374151;--border-mid: #4b5563;--text: #f3f4f6;--text-mid: #d1d5db;--text-muted: #9ca3af;--text-faint: #6b7280;--editor-h2: #93c5fd;--editor-h3: #5eead4}html{scroll-behavior:smooth}:focus-visible{outline:2px solid var(--blue);outline-offset:2px}a{color:var(--blue)}a:hover{color:var(--navy)}html[data-theme=dark]{--color-bg: #111827;--color-surface: #1f2937;--color-border: #374151;--color-text: #f3f4f6;--color-muted: #9ca3af;--color-primary: #2E75B6}html[data-theme=dark] body,html[data-theme=dark] .app-layout{background:var(--bg);color:var(--text)}html[data-theme=dark] .app-footer{background:#1a2535;border-color:var(--border)}html[data-theme=dark] .footer-brand,html[data-theme=dark] .footer-version{color:var(--text-muted)}html[data-theme=dark] .footer-version{background:var(--bg-card)}html[data-theme=dark] .flash-error{background:#7f1d1d;border-color:#b91c1c;color:#fecaca}html[data-theme=dark] .book-show,html[data-theme=dark] .intelligence-panel,html[data-theme=dark] .chapter-row,html[data-theme=dark] .book-toolbar,html[data-theme=dark] .user-dropdown,html[data-theme=dark] .modal,html[data-theme=dark] .image-bubble-inner{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .chapter-row.type-front,html[data-theme=dark] .chapter-row.type-back{background:var(--bg-subtle)}html[data-theme=dark] .editor-toolbar button.active{background:#2e75b6;border-color:#2e75b6}html[data-theme=dark] input:not([type=checkbox]):not([type=radio]),html[data-theme=dark] textarea,html[data-theme=dark] select{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:var(--text-faint)}html[data-theme=dark] .user-dropdown a,html[data-theme=dark] .user-dropdown button{color:var(--text-mid)}html[data-theme=dark] .user-dropdown a:hover,html[data-theme=dark] .user-dropdown button:hover{background:var(--bg-hover)}html[data-theme=dark] .tool-btn{color:var(--text-mid)}html[data-theme=dark] .tool-btn:hover{background:var(--bg-hover)}html[data-theme=dark] .tool-label{color:var(--text-muted)}html[data-theme=dark] .toolbar-divider{background:var(--border)}html[data-theme=dark] .chapter-link .chapter-title{color:var(--text)}html[data-theme=dark] .add-chapter-row{background:var(--bg-subtle);border-color:var(--border-mid);color:var(--text-muted)}html[data-theme=dark] .add-chapter-row:hover{background:var(--bg-hover)}html[data-theme=dark] .intelligence-panel{color:var(--text)}html[data-theme=dark] .panel-description,html[data-theme=dark] .intelligence-form label{color:var(--text-muted)}html[data-theme=dark] .outline-toggle{color:var(--text)}html[data-theme=dark] .outline-toggle:hover{color:#60a5fa}html[data-theme=dark] .outline-generator{border-top-color:var(--border)}html[data-theme=dark] .outline-hint{color:var(--text-muted)}html[data-theme=dark] .outline-warn{color:#fbbf24}html[data-theme=dark] .outline-count-row label{color:var(--text-mid)}html[data-theme=dark] .outline-chapter-row{background:var(--bg-subtle);border-color:var(--border)}html[data-theme=dark] .outline-type-front,html[data-theme=dark] .outline-type-back{background:#1e3a5f;border-color:#2e5a8e}html[data-theme=dark] .outline-chapter-title{color:var(--text)}html[data-theme=dark] .outline-chapter-title:focus{background:var(--bg-input)}html[data-theme=dark] .outline-chapter-purpose,html[data-theme=dark] .outline-num{color:var(--text-faint)}html[data-theme=dark] .outline-type-badge{color:#60a5fa}html[data-theme=dark] .btn-discard-outline{border-color:var(--border-mid);color:var(--text-muted)}html[data-theme=dark] .btn-discard-outline:hover{border-color:var(--text-muted);color:var(--text)}html[data-theme=dark] .ProseMirror{color:var(--text)}html[data-theme=dark] .modal-backdrop{background:#000000b3}html[data-theme=dark] .modal-header,html[data-theme=dark] .modal-footer{border-color:var(--border);background:var(--bg-card)}html[data-theme=dark] .modal-tabs{border-color:var(--border);background:var(--bg-subtle)}html[data-theme=dark] .tab{color:var(--text-muted)}html[data-theme=dark] .tab.active{background:var(--bg-card);color:var(--text)}html[data-theme=dark] .image-card{background:var(--bg-subtle);border-color:var(--border)}html[data-theme=dark] .image-name{color:var(--text)}html[data-theme=dark] .image-info{color:var(--text-muted)}html[data-theme=dark] .search-input{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .breadcrumb{color:var(--text-muted)}html[data-theme=dark] .books-page{color:var(--text)}html[data-theme=dark] .book-title{color:#f3f4f6}html[data-theme=dark] .subtitle{color:#9ca3af}html[data-theme=dark] .meta-author,html[data-theme=dark] .meta-edited,html[data-theme=dark] .meta-dot{color:#6b7280}html[data-theme=dark] .meta-author{color:#9ca3af}html[data-theme=dark] .btn-secondary{background:#374151;color:#e5e7eb;border-color:#4b5563}html[data-theme=dark] .btn-secondary:hover{background:#4b5563;color:#f3f4f6}html[data-theme=dark] .book-dropdown{background:#1f2937;border-color:#374151}html[data-theme=dark] .book-dropdown button{color:#e5e7eb}html[data-theme=dark] .book-dropdown button:hover{background:#374151}html[data-theme=dark] .book-dropdown button.danger{color:#f87171}html[data-theme=dark] .camera-btn{background:#374151;border-color:#4b5563}html[data-theme=dark] .book-menu-btn{color:#9ca3af}html[data-theme=dark] .chapters-panel h3,html[data-theme=dark] .intelligence-panel h3{color:#93c5fd}html[data-theme=dark] .chapter-title{color:#f3f4f6}html[data-theme=dark] .chapter-purpose{color:#9ca3af}html[data-theme=dark] .chapter-words,html[data-theme=dark] .drag-handle{color:#6b7280}html[data-theme=dark] .delete-btn{color:#4b5563}html[data-theme=dark] .delete-btn:hover{color:#f87171}html[data-theme=dark] .toolbar-export .export-label{color:#6b7280}html[data-theme=dark] .tool-label{color:#9ca3af}html[data-theme=dark] .tool-btn:hover .tool-label,html[data-theme=dark] .tool-btn:hover{color:#93c5fd}html[data-theme=dark] .book-header h1{color:#fff}html[data-theme=dark] .subtitle,html[data-theme=dark] .author-byline,html[data-theme=dark] .intelligence-form label{color:#9ca3af}html[data-theme=dark] .save-indicator{color:#34d399}html[data-theme=dark] .word-count,html[data-theme=dark] .word-count-detail{color:#6b7280}html[data-theme=dark] .chapter-title-bar{color:#f3f4f6}html[data-theme=dark] .dashboard-section h2{color:#93c5fd}html[data-theme=dark] .recent-book-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .recent-book-card:hover{border-color:#4b5563}html[data-theme=dark] .book-details h4{color:#f3f4f6}html[data-theme=dark] .book-meta{color:#9ca3af}html[data-theme=dark] .meta-dot{color:#4b5563}html[data-theme=dark] .progress-bar{background:#374151}html[data-theme=dark] .progress-label{color:#6b7280}html[data-theme=dark] .card-arrow{color:#4b5563}html[data-theme=dark] .recent-book-card:hover .card-arrow{color:#60a5fa}html[data-theme=dark] .action-card{background:var(--bg-card);border-color:var(--border);color:#d1d5db}html[data-theme=dark] .action-card:hover{border-color:#2e75b6;color:#93c5fd}html[data-theme=dark] .activity-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .activity-value{color:#93c5fd}html[data-theme=dark] .activity-label{color:#6b7280}html[data-theme=dark] .ai-usage-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .usage-bar-container{background:#374151}html[data-theme=dark] .usage-labels{color:#9ca3af}html[data-theme=dark] .usage-reset{color:#6b7280}html[data-theme=dark] .upgrade-prompt{color:#d1d5db}html[data-theme=dark] .ai-help-box{background:#1a2535;border-color:var(--border);color:#d1d5db}html[data-theme=dark] .ai-help-list li{color:#9ca3af}html[data-theme=dark] .ai-help-note{color:#6b7280;border-color:var(--border)}html[data-theme=dark] .help-btn{border-color:#4b5563;color:#9ca3af}html[data-theme=dark] .help-btn:hover{background:#1e3a5f;border-color:#2e75b6;color:#93c5fd}html[data-theme=dark] .import-callout{background:#1e2e1a;border-color:#5a6e3a}html[data-theme=dark] .callout-content h3{color:#a3d977}html[data-theme=dark] .callout-content p{color:#9ca3af}html[data-theme=dark] .see-all{color:#60a5fa}html[data-theme=dark] .auth-wrap,html[data-theme=dark] .invite-page{background:var(--bg)}html[data-theme=dark] .auth-card,html[data-theme=dark] .invite-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .auth-heading,html[data-theme=dark] .brand{color:#93c5fd}html[data-theme=dark] .auth-hint,html[data-theme=dark] .auth-footer,html[data-theme=dark] .field label{color:var(--text-muted)}html[data-theme=dark] .field input,html[data-theme=dark] .field select{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .btn-ghost{color:var(--text-muted);border-color:var(--border-mid)}html[data-theme=dark] .btn-ghost:hover{background:var(--bg-hover);color:var(--text)}html[data-theme=dark] .divider{color:var(--text-faint)}html[data-theme=dark] .divider:before,html[data-theme=dark] .divider:after{border-color:var(--border)}html[data-theme=dark] .create-card,html[data-theme=dark] .edit-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .create-card h1,html[data-theme=dark] .edit-card h1{color:#93c5fd}html[data-theme=dark] .create-card p,html[data-theme=dark] .edit-card p{color:var(--text-muted)}html[data-theme=dark] .card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .card h2{color:#93c5fd}html[data-theme=dark] .plan-free{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .danger-zone{border-color:#7f1d1d}html[data-theme=dark] .danger-zone h3{color:#fca5a5}html[data-theme=dark] .import-page{background:var(--bg)}html[data-theme=dark] .import-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .import-card h1{color:#93c5fd}html[data-theme=dark] .import-card>p{color:var(--text-muted)}html[data-theme=dark] .tabs{border-color:var(--border)}html[data-theme=dark] .tab{color:var(--text-muted);background:none;border-color:transparent}html[data-theme=dark] .tab:hover{color:#93c5fd}html[data-theme=dark] .tab.active{color:#93c5fd;border-bottom-color:#2e75b6}html[data-theme=dark] .how-to{background:#0f2033;border-color:#1e3a5f}html[data-theme=dark] .how-to h3{color:#60a5fa}html[data-theme=dark] .how-to li{color:#d1d5db}html[data-theme=dark] .how-to code{background:#1e3a5f;color:#93c5fd;border-color:#2e75b6}html[data-theme=dark] .how-to--green{background:#0a1f0f;border-color:#166534}html[data-theme=dark] .how-to--green h3{color:#4ade80}html[data-theme=dark] .drop-zone{background:var(--bg-input);border-color:var(--border-mid)}html[data-theme=dark] .drop-zone:hover,html[data-theme=dark] .drop-zone.dragging{background:#0f2033;border-color:#2e75b6}html[data-theme=dark] .drop-zone.has-file{background:#0a1f0f;border-color:#10b981}html[data-theme=dark] .drop-text{color:var(--text)}html[data-theme=dark] .drop-subtext{color:var(--text-muted)}html[data-theme=dark] .file-name{color:var(--text)}html[data-theme=dark] .file-size,html[data-theme=dark] .title-field label{color:var(--text-muted)}html[data-theme=dark] .title-field input{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .import-preview{background:#0a1f0f;border-color:#166534}html[data-theme=dark] .import-preview h4,html[data-theme=dark] .preview-value{color:#4ade80}html[data-theme=dark] .preview-label{color:var(--text-muted)}html[data-theme=dark] .tip-box{background:#0f2033;border-color:#1e3a5f;color:var(--text-muted)}html[data-theme=dark] .collab-page{background:var(--bg)}html[data-theme=dark] .page-header p{color:var(--text-muted)}html[data-theme=dark] .panel{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .panel h2{color:#93c5fd}html[data-theme=dark] .field label{color:var(--text-muted)}html[data-theme=dark] .field-hint{color:var(--text-faint)}html[data-theme=dark] .field input[type=text],html[data-theme=dark] .field input[type=email]{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .role-option{background:var(--bg-input);border-color:var(--border-mid)}html[data-theme=dark] .role-option strong{color:var(--text)}html[data-theme=dark] .role-option p{color:var(--text-muted)}html[data-theme=dark] .role-option.selected{border-color:#2e75b6;background:#1e3a5f}html[data-theme=dark] .book-checkbox{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .book-checkbox.checked{border-color:#2e75b6;background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .collab-section h2{color:#93c5fd}html[data-theme=dark] .empty-state{color:var(--text-muted)}html[data-theme=dark] .collab-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .collab-name{color:var(--text)}html[data-theme=dark] .collab-meta{color:var(--text-muted)}html[data-theme=dark] .book-tag{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .no-books{color:var(--text-faint)}html[data-theme=dark] .invite-row{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .invite-name{color:var(--text)}html[data-theme=dark] .invite-email{color:var(--text-muted)}html[data-theme=dark] .invite-meta{color:var(--text-faint)}html[data-theme=dark] .badge-active{background:#064e3b;color:#6ee7b7}html[data-theme=dark] .badge-suspended{background:#7f1d1d;color:#fca5a5}html[data-theme=dark] .badge-pending{background:#451a03;color:#fcd34d}html[data-theme=dark] .badge-expired{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .btn-cancel{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .btn-cancel:hover{background:var(--bg-hover)}html[data-theme=dark] .flash-success{background:#064e3b;border-color:#059669;color:#a7f3d0}html[data-theme=dark] .plan-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .plan-card.current{border-color:#2e75b6}html[data-theme=dark] .plan-top h2{color:var(--text)}html[data-theme=dark] .plan-price{color:#93c5fd}html[data-theme=dark] .plan-feature{color:var(--text-muted)}html[data-theme=dark] .billing-page h1{color:#93c5fd}html[data-theme=dark] .theme-dropdown{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .theme-dropdown button{color:var(--text-mid)}html[data-theme=dark] .theme-dropdown button:hover{background:var(--bg-hover)}html[data-theme=dark] .theme-dropdown button.active{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .comments-panel{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .comments-panel .tab{color:var(--text-muted);border-color:var(--border)}html[data-theme=dark] .comments-panel .tab.active{color:var(--text);border-color:#2e75b6;background:var(--bg-card)}html[data-theme=dark] .comment-thread{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .comment-thread.resolved{background:var(--bg-subtle);opacity:.7}html[data-theme=dark] .comment-body{color:var(--text-mid)}html[data-theme=dark] .comment-author{color:var(--text)}html[data-theme=dark] .comment-time{color:var(--text-faint)}html[data-theme=dark] .reply{background:var(--bg-subtle);border-color:var(--border)}html[data-theme=dark] .comments-placeholder{background:var(--bg-subtle);color:var(--text-muted)}html[data-theme=dark] .sidebar-add-comment textarea,html[data-theme=dark] .reply-input{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .events-page h1,html[data-theme=dark] .event-form h1{color:#93c5fd}html[data-theme=dark] .event-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .event-card h3{color:var(--text)}html[data-theme=dark] .event-meta{color:var(--text-muted)}html[data-theme=dark] .form-card,html[data-theme=dark] .event-detail-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .form-card label{color:var(--text-muted)}html[data-theme=dark] .form-section-title{color:#93c5fd}html[data-theme=dark] .settings-card,html[data-theme=dark] .ai-config-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .settings-card h2,html[data-theme=dark] .ai-config-card h2{color:#93c5fd}html[data-theme=dark] .settings-card p,html[data-theme=dark] .ai-config-card p{color:var(--text-muted)}html[data-theme=dark] .provider-option{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .provider-option.active{border-color:#2e75b6;background:#1e3a5f}html[data-theme=dark] .sales-page h1{color:#93c5fd}html[data-theme=dark] .stat-card,html[data-theme=dark] .sales-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .stat-card .value{color:#93c5fd}html[data-theme=dark] .stat-card .label{color:var(--text-muted)}html[data-theme=dark] .purchase-row{border-color:var(--border);color:var(--text-mid)}html[data-theme=dark] .profile-page h1,html[data-theme=dark] .profile-card h2{color:#93c5fd}html[data-theme=dark] .profile-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .profile-card label{color:var(--text-muted)}html[data-theme=dark] .char-count{color:var(--text-faint)}html[data-theme=dark] .formatting-page h1,html[data-theme=dark] .studio-page h1,html[data-theme=dark] .publishing-page h1{color:#93c5fd}html[data-theme=dark] .formatting-section,html[data-theme=dark] .studio-section,html[data-theme=dark] .option-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .option-card h3,html[data-theme=dark] .section-label{color:var(--text)}html[data-theme=dark] .option-card p,html[data-theme=dark] .section-desc{color:var(--text-muted)}html[data-theme=dark] .preview-box{background:var(--bg-subtle);border-color:var(--border);color:var(--text)}html[data-theme=dark] .pub-page{background:var(--bg)}html[data-theme=dark] .pub-header h1{color:#93c5fd}html[data-theme=dark] .pub-subtitle{color:var(--text-muted)}html[data-theme=dark] .book-summary-bar{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .summary-label{color:var(--text-faint)}html[data-theme=dark] .summary-value{color:var(--text)}html[data-theme=dark] .platform-tabs{border-color:var(--border)}html[data-theme=dark] .platform-tab{color:var(--text-muted);background:none}html[data-theme=dark] .platform-tab.active{color:#93c5fd;border-bottom-color:#2e75b6}html[data-theme=dark] .platform-tab:hover:not(.active){color:var(--text)}html[data-theme=dark] .tab-badge{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .badge-error{background:#7f1d1d;color:#fca5a5}html[data-theme=dark] .badge-warn{background:#451a03;color:#fcd34d}html[data-theme=dark] .platform-panel{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .validation-ok{background:#0a1f0f;border-color:#166534;color:#4ade80}html[data-theme=dark] .val-error{background:#1f0a0a;border-color:#7f1d1d}html[data-theme=dark] .val-warning{background:#1c1506;border-color:#451a03}html[data-theme=dark] .val-text p{color:var(--text-muted)}html[data-theme=dark] .package-contents h3{color:#93c5fd}html[data-theme=dark] .content-item{background:var(--bg-input);border-color:var(--border)}html[data-theme=dark] .content-item p{color:var(--text-muted)}html[data-theme=dark] .spine-calculator{background:var(--bg-input);border-color:var(--border)}html[data-theme=dark] .spine-calculator h4{color:#93c5fd}html[data-theme=dark] .spine-label,html[data-theme=dark] .spine-note{color:var(--text-faint)}html[data-theme=dark] .spine-val{color:var(--text)}html[data-theme=dark] .platform-notes{background:var(--bg-input);border-color:var(--border)}html[data-theme=dark] .platform-notes h4{color:#93c5fd}html[data-theme=dark] .platform-notes li{color:var(--text-muted)}html[data-theme=dark] .disclosure-active{background:#1c1506;border-color:#451a03}html[data-theme=dark] .disclosure-none{background:#0a1f0f;border-color:#166534}html[data-theme=dark] .disclosure-body p{color:var(--text-muted)}html[data-theme=dark] .download-warning{background:#1c1506;border-color:#451a03;color:#fcd34d}html[data-theme=dark] .download-note{color:var(--text-faint)}html[data-theme=dark] .download-error{color:#f87171}html[data-theme=dark] .shop-nav{background:#1f2937;border-color:var(--border)}html[data-theme=dark] .nav-brand{color:#f3f4f6}html[data-theme=dark] .nav-link,html[data-theme=dark] .nav-btn{color:var(--text-muted)}html[data-theme=dark] .nav-link:hover,html[data-theme=dark] .nav-btn:hover{color:#93c5fd}html[data-theme=dark] .bd-desc-text,html[data-theme=dark] .author-bio{color:var(--text-mid)}html[data-theme=dark] .royalty-bar{background:#0a1f0f;border-color:#166534}html[data-theme=dark] .royalty-label,html[data-theme=dark] .royalty-pct,html[data-theme=dark] .royalty-sub{color:#4ade80}html[data-theme=dark] .link-website{background:var(--bg-input);color:var(--text-mid);border-color:var(--border)}html[data-theme=dark] .link-twitter{background:#0c2d48;color:#60a5fa;border-color:#1e4d7b}html[data-theme=dark] .link-instagram{background:#3b0764;color:#f0abfc;border-color:#6b21a8}html[data-theme=dark] .link-facebook{background:#1e3a5f;color:#93c5fd;border-color:#2e75b6}html[data-theme=dark] .price-chip{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .price-chip.audio{background:#3b0764;color:#f0abfc}html[data-theme=dark] .event-description{color:var(--text-mid)}html[data-theme=dark] .event-author,html[data-theme=dark] .stream-note{color:var(--text-muted)}html[data-theme=dark] .sponsor-name{color:var(--text-mid)}html[data-theme=dark] .sponsors-section{border-color:var(--border)}html[data-theme=dark] .sponsors-section h3{color:var(--text-faint)}html[data-theme=dark] .reg-box{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .price-amount{color:var(--text)}html[data-theme=dark] .price-label,html[data-theme=dark] .seats-left{color:var(--text-muted)}html[data-theme=dark] .fmt-online{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .fmt-in_person{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .fmt-hybrid{background:#1c1506;color:#fcd34d}html[data-theme=dark] .price-badge.free{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .price-badge.paid{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .registered-badge{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .events-table th{background:var(--bg-subtle);color:var(--text-muted);border-color:var(--border)}html[data-theme=dark] .events-table td{border-color:var(--border);color:var(--text)}html[data-theme=dark] .events-table tr:hover td{background:var(--bg-hover)}html[data-theme=dark] .action-btn{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .action-btn:hover{background:var(--bg-hover)}html[data-theme=dark] .badge-online{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .badge-in_person{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .badge-hybrid{background:#1c1506;color:#fcd34d}html[data-theme=dark] .status-draft{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .status-published{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .status-cancelled{background:#1f0a0a;color:#f87171}html[data-theme=dark] .status-completed{background:#1e1b4b;color:#a5b4fc}html[data-theme=dark] .status-confirmed{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .status-pending_payment{background:#1c1506;color:#fcd34d}html[data-theme=dark] .status-waitlisted{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .regs-table th{background:var(--bg-subtle);color:var(--text-muted);border-color:var(--border)}html[data-theme=dark] .regs-table td{border-color:var(--border)}html[data-theme=dark] .connect-notice{background:#1c1506;border-color:#451a03}html[data-theme=dark] .connect-notice p{color:#fcd34d}html[data-theme=dark] .radio-option{background:var(--bg-input);border-color:var(--border-mid)}html[data-theme=dark] .radio-option.active{background:#1e3a5f;border-color:#2e75b6}html[data-theme=dark] .royalty-preview{background:#0a1f0f;border-color:#166534;color:#4ade80}html[data-theme=dark] .btn-secondary{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .chapter-meta-bar{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .chapter-title-input,html[data-theme=dark] .chapter-purpose-input{background:transparent!important;border:none!important;color:var(--text)}html[data-theme=dark] .chapter-purpose-input::placeholder{color:var(--text-muted)}html[data-theme=dark] .status-timer.running{background:#0a1f0f;border-color:#166534;color:#4ade80}html[data-theme=dark] .goal-chip{background:var(--bg-input);color:var(--text-muted);border-color:var(--border)}html[data-theme=dark] .goal-chip.met{background:#0a1f0f;color:#4ade80;border-color:#166534}html[data-theme=dark] .humanize-btn{background:#2d1b4e;border-color:#6d28d9;color:#c4b5fd}html[data-theme=dark] .page-header h1{color:#93c5fd}html[data-theme=dark] .book-meta{color:var(--text-muted)}html[data-theme=dark] .key-warning{background:#1c1506;border-color:#451a03;color:#fcd34d}html[data-theme=dark] .tab-btn{color:var(--text-muted);border-color:var(--border);background:none}html[data-theme=dark] .tab-btn:hover{color:var(--text)}html[data-theme=dark] .tab-btn.active{color:#93c5fd;border-color:#2e75b6}html[data-theme=dark] .subscription-bar{background:#0f2033;border-color:#1e3a5f;color:#60a5fa}html[data-theme=dark] .voice-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .voice-card.selected{background:#1e3a5f;border-color:#2e75b6}html[data-theme=dark] .voice-name{color:var(--text)}html[data-theme=dark] .voice-category,html[data-theme=dark] .voice-desc{color:var(--text-muted)}html[data-theme=dark] .label-chip{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .preview-btn{background:var(--bg-input);border-color:var(--border-mid);color:#93c5fd}html[data-theme=dark] .loading-voices{color:var(--text-muted)}html[data-theme=dark] .clone-section,html[data-theme=dark] .voice-settings-section{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .clone-section h3,html[data-theme=dark] .voice-settings-section h3{color:#93c5fd}html[data-theme=dark] .clone-hint,html[data-theme=dark] .sample-count,html[data-theme=dark] .setting-hint,html[data-theme=dark] .setup-prompt{color:var(--text-muted)}html[data-theme=dark] .file-upload-btn{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .setting-row label,html[data-theme=dark] .slider-val,html[data-theme=dark] .model-select-row label{color:var(--text-mid)}html[data-theme=dark] .model-select{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .fmt-breadcrumb,html[data-theme=dark] .fmt-nav-item{color:var(--text-muted)}html[data-theme=dark] .fmt-nav-item:hover{background:var(--bg-hover)}html[data-theme=dark] .fmt-nav-item.active{background:#1e3a5f;color:#93c5fd}html[data-theme=dark] .section-header h2{color:#93c5fd}html[data-theme=dark] .priority-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .priority-card.selected{background:#1e3a5f;border-color:#2e75b6}html[data-theme=dark] .priority-desc{color:var(--text-muted)}html[data-theme=dark] .priority-ideal{color:var(--text-faint)}html[data-theme=dark] .layout-preset{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .layout-preset.selected{background:#1e3a5f;border-color:#2e75b6}html[data-theme=dark] .preset-visual{background:var(--bg-input);border-color:var(--border-mid)}html[data-theme=dark] .preset-lines div{background:var(--border)}html[data-theme=dark] .preset-label,html[data-theme=dark] .trim-legend{color:var(--text-muted)}html[data-theme=dark] .symbol-btn{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .symbol-btn.active{background:#1e3a5f;border-color:#2e75b6;color:#93c5fd}html[data-theme=dark] .studio-tab{color:var(--text-muted);border-color:var(--border)}html[data-theme=dark] .studio-tab:hover:not(.active){color:var(--text)}html[data-theme=dark] .studio-tab.active{color:#93c5fd;border-color:#2e75b6}html[data-theme=dark] .form-group label{color:var(--text-muted)}html[data-theme=dark] .img-note{color:var(--text-faint)}html[data-theme=dark] .keyword-chip.neg{background:#1f0a0a;color:#f87171}html[data-theme=dark] .cpc-result{background:#0a1f0f;border-color:#166534}html[data-theme=dark] .cpc-highlight,html[data-theme=dark] .cpc-note{color:#4ade80}html[data-theme=dark] .connect-notice-inner p{color:#fcd34d}html[data-theme=dark] .connect-ready{background:#0a1f0f;border-color:#166534;color:#4ade80}html[data-theme=dark] .radio-option.active{background:#2d1b4e;border-color:#7c3aed}html[data-theme=dark] .file-status,html[data-theme=dark] .saved-msg{color:#4ade80}html[data-theme=dark] .stat-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .stat-card.green{border-color:#166534;background:#0a1f0f}html[data-theme=dark] .stat-card .stat-value{color:#93c5fd}html[data-theme=dark] .stat-card.green .stat-value,html[data-theme=dark] .earnings-cell{color:#4ade80}html[data-theme=dark] .status-badge.active{background:#0a1f0f;color:#4ade80}html[data-theme=dark] .status-badge.draft{background:var(--bg-input);color:var(--text-muted)}html[data-theme=dark] .status-badge.coming_soon{background:#2d1b4e;color:#c4b5fd}html[data-theme=dark] .purchase-row{border-color:var(--border)}html[data-theme=dark] .purchase-row:hover{background:var(--bg-hover)}html[data-theme=dark] .profile-page h1{color:#93c5fd}html[data-theme=dark] .profile-page>p{color:var(--text-muted)}html[data-theme=dark] .photo-hint p{color:var(--text-muted)}html[data-theme=dark] .counter-warn{color:#f59e0b}html[data-theme=dark] .config-header h1{color:#93c5fd}html[data-theme=dark] .config-header p{color:var(--text-muted)}html[data-theme=dark] .section h2{color:#93c5fd}html[data-theme=dark] .section-desc{color:var(--text-muted)}html[data-theme=dark] .provider-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .free-provider .provider-header{background:#0a1f0f}html[data-theme=dark] .provider-card.free-provider{border-color:#166534}html[data-theme=dark] .provider-info h4{color:var(--text)}html[data-theme=dark] .provider-info p{color:var(--text-muted)}html[data-theme=dark] .free-callout-body strong,html[data-theme=dark] .free-callout-body p{color:#4ade80}html[data-theme=dark] .key-input{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .btn-icon:hover{background:var(--bg-hover)}html[data-theme=dark] .btn-validate:hover{background:#1e3a5f}html[data-theme=dark] .btn-remove:hover{background:#1f0a0a}html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3{color:var(--text)}html[data-theme=dark] p{color:var(--text-mid)}html[data-theme=dark] .preview-page p{color:#1f2937!important}html[data-theme=dark] .btn-preview{color:#93c5fd;border-color:#93c5fd}html[data-theme=dark] .btn-preview:hover{background:#1e3a5f}html[data-theme=dark] .channel-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .channel-card:hover{background:var(--bg-hover)}html[data-theme=dark] .channel-name{color:var(--text)}html[data-theme=dark] .channel-desc{color:var(--text-muted)}html[data-theme=dark] .channel-meta{color:var(--text-faint)}html[data-theme=dark] .post-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .post-body{color:var(--text-mid)}html[data-theme=dark] .post-meta{color:var(--text-muted)}html[data-theme=dark] .reaction-btn{background:var(--bg-input);border-color:var(--border-mid);color:var(--text-mid)}html[data-theme=dark] .reaction-btn.reacted{background:#1e3a5f;border-color:#2e75b6}html[data-theme=dark] .reply-card{background:var(--bg-subtle);border-color:var(--border)}html[data-theme=dark] .sprint-widget,html[data-theme=dark] .bookclub-widget{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .sprint-title,html[data-theme=dark] .book-title-text{color:var(--text)}html[data-theme=dark] .progress-bar-bg{background:var(--bg-input)}html[data-theme=dark] .compose-box{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .compose-textarea{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .thread-row{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .thread-row:hover{background:var(--bg-hover)}html[data-theme=dark] .thread-row.unread{background:#0f2033;border-color:#1e3a5f}html[data-theme=dark] .msg-bubble-reader{background:var(--bg-input);color:var(--text)}html[data-theme=dark] .msg-bubble-author{background:#1e3a5f;color:#e0f0ff}html[data-theme=dark] .question-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .question-text{color:var(--text)}html[data-theme=dark] .answer-text{background:var(--bg-subtle);color:var(--text-mid);border-color:var(--border)}html[data-theme=dark] .prompt-card{background:var(--bg-card);border-color:var(--border)}html[data-theme=dark] .prompt-preview{background:var(--bg-subtle);border-color:var(--border);color:var(--text-mid)}html[data-theme=dark] .lang-selector{background:var(--bg-input);border-color:var(--border-mid);color:var(--text)}html[data-theme=dark] .lang-hint{color:var(--text-muted)}html[data-theme=dark] .lang-pill{background:var(--bg-card);border-color:var(--border);color:var(--text-mid)}html[data-theme=dark] .lang-pill:hover{background:var(--bg-hover);border-color:#2e75b6;color:#93c5fd}html[data-theme=dark] .lang-pill.active{background:#2e75b6;color:#fff;border-color:#2e75b6}html[data-theme=dark] .lang-badge-overlay{background:#1b3a5ce6}html[data-theme=dark] .translation-page .panel,html[data-theme=dark] .translation-page .stats-bar{background:var(--bg-card);border-color:var(--border)}.preview-page{background:#fff!important;color:#1f2937!important}.preview-page .preview-ch-title{color:#1b3a5c!important}.preview-page .preview-ch-number,.preview-page .preview-scene-break{color:#9ca3af!important}
