/* Day deliberately inherits the complete original stylesheet. */
html[data-theme="night"]{color-scheme:dark;--navy:#e5eef6;--navy-light:#c8d9e5;--teal:#73d5c1;--teal-dark:#a4e8d9;--teal-wash:#1b393b;--coral:#efb69d;--paper:#101923;--canvas:#0b121a;--white:#172431;--ink:#e1e9ee;--muted:#acbac5;--line:#344657;--danger:#ffb4b9;--shadow:0 6px 24px #0003;--theme-input-line:#6a8094;--theme-surface:#172431;--theme-alt:#1e2d3b;--theme-strong:#0b2433;--theme-strong-ink:#f3f8fa;--theme-button:#9be0d0;--theme-button-hover:#b9ecdf;--theme-button-ink:#102c35;--theme-success:#163d31;--theme-success-ink:#afe3c1;--theme-warning:#40331a;--theme-warning-ink:#f5d28c;--theme-error:#44232d;--theme-error-ink:#ffbdc4;--theme-info:#1c364a;--theme-info-ink:#b9dce8;--theme-focus:#ffdf95}
html[data-theme="morning"]{color-scheme:light;--navy:#27483c;--navy-light:#3d6051;--teal:#2b6d52;--teal-dark:#1e513c;--teal-wash:#e7f0dc;--coral:#dfb97d;--paper:#f7f6ed;--canvas:#edf2e6;--white:#fffef6;--ink:#293d32;--muted:#5e6a57;--line:#d8dfce;--danger:#a5333c;--shadow:0 6px 24px #27483c09;--theme-input-line:#7a8d71;--theme-surface:#fffef6;--theme-alt:#edf2e6;--theme-strong:#24473c;--theme-strong-ink:#fffef6;--theme-button:#2b6d52;--theme-button-hover:#1e513c;--theme-button-ink:#fff;--theme-success:#e2efdf;--theme-success-ink:#285437;--theme-warning:#fff0cf;--theme-warning-ink:#775310;--theme-error:#fbe8e8;--theme-error-ink:#913745;--theme-info:#e8f0e9;--theme-info-ink:#365745;--theme-focus:#2b6d52}
html[data-theme="afternoon"]{color-scheme:light;--navy:#503b2b;--navy-light:#70513a;--teal:#8a4c24;--teal-dark:#693715;--teal-wash:#f8e8d5;--coral:#d98f66;--paper:#fff8ef;--canvas:#f7eddf;--white:#fffdf8;--ink:#49382e;--muted:#73604e;--line:#e4d7c6;--danger:#a5333c;--shadow:0 6px 24px #503b2b09;--theme-input-line:#9a8065;--theme-surface:#fffdf8;--theme-alt:#f7eddf;--theme-strong:#503b2b;--theme-strong-ink:#fff8ef;--theme-button:#8a4c24;--theme-button-hover:#693715;--theme-button-ink:#fff;--theme-success:#edf1dc;--theme-success-ink:#42552b;--theme-warning:#ffedc8;--theme-warning-ink:#795214;--theme-error:#fbe6df;--theme-error-ink:#913745;--theme-info:#f0e6d8;--theme-info-ink:#684b32;--theme-focus:#8a4c24}
html[data-theme]:not([data-theme="day"]) :is(.site-header,.sidebar,.panel,.stat-card,.site-footer,.book-card,.filter-bar,.workspace-column-picker,.calendar-grid,.hero-note){background:var(--theme-surface);border-color:var(--line)}
html[data-theme]:not([data-theme="day"]) :is(.subtle-panel,.sidebar-note,.workspace-filters,.avatar,.book-art,.book-card:nth-child(3n+2) .book-art,.book-card:nth-child(3n) .book-art){background:var(--theme-alt);border-color:var(--line);color:var(--ink)}
html[data-theme]:not([data-theme="day"]) :is(.sidebar-link:hover,tbody tr:hover,.workspace-books-table tbody tr:nth-child(even),.calendar-day.is-empty,.calendar-day.empty,.calendar-day.outside-month){background:var(--theme-alt)}
html[data-theme]:not([data-theme="day"]) :is(th,.workspace-books-table th,.calendar-weekday,.calendar-day-name,.calendar-weekdays>div){background:var(--theme-alt);color:var(--muted)}
html[data-theme]:not([data-theme="day"]) .workspace-books-table .workspace-actions{background:var(--theme-surface);border-color:var(--line)}
html[data-theme]:not([data-theme="day"]) :is(.workspace-books-table thead .workspace-actions,.workspace-books-table tbody tr:nth-child(even) .workspace-actions){background:var(--theme-alt)}
html[data-theme]:not([data-theme="day"]) :is(.workspace-column-options small,.workspace-no-cover){color:var(--muted)}
html[data-theme]:not([data-theme="day"]) .button{background:var(--theme-button);border-color:var(--theme-button);color:var(--theme-button-ink)}
html[data-theme]:not([data-theme="day"]) .button:hover{background:var(--theme-button-hover);border-color:var(--theme-button-hover);color:var(--theme-button-ink)}
html[data-theme]:not([data-theme="day"]) .button-secondary{background:var(--theme-surface);color:var(--navy);border-color:var(--theme-input-line,var(--line))}
html[data-theme]:not([data-theme="day"]) .button-secondary:hover{background:var(--teal-wash);color:var(--teal-dark);border-color:var(--teal)}
html[data-theme]:not([data-theme="day"]) .button small{color:inherit}
html[data-theme]:not([data-theme="day"]) .button-danger{background:var(--theme-surface);color:var(--danger);border-color:var(--danger)}
html[data-theme]:not([data-theme="day"]) .button-danger:hover{background:var(--theme-error);color:var(--theme-error-ink)}
html[data-theme]:not([data-theme="day"]) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){background:var(--theme-surface);color:var(--ink);border-color:var(--theme-input-line,var(--line))}
html[data-theme]:not([data-theme="day"]) input::placeholder,html[data-theme]:not([data-theme="day"]) textarea::placeholder{color:var(--muted)}
html[data-theme]:not([data-theme="day"]) input[readonly]{background:var(--theme-alt)!important;color:var(--muted)!important}
html[data-theme]:not([data-theme="day"]) :is(.workspace-column-options input[type="checkbox"],input[type="radio"]){accent-color:var(--teal)}
html[data-theme]:not([data-theme="day"]) :is(.author-banner,.auth-story,.editorial-cover,.brand-mark,.skip-link){background:var(--theme-strong);color:var(--theme-strong-ink)}
html[data-theme]:not([data-theme="day"]) :is(.author-banner h2,.auth-story h2,.author-banner p:not(.eyebrow)){color:var(--theme-strong-ink)}
html[data-theme]:not([data-theme="day"]) .hero-art{background:radial-gradient(ellipse at 52% 50%,var(--teal-wash) 0,transparent 67%)}
html[data-theme]:not([data-theme="day"]) :is(.badge,.badge-neutral,.badge-private){background:var(--theme-alt);color:var(--ink)}
html[data-theme]:not([data-theme="day"]) :is(.badge-confirmed,.badge-active,.badge-public,.calendar-event,.alert-success){background:var(--theme-success);color:var(--theme-success-ink);border-color:var(--theme-success-ink)}
html[data-theme]:not([data-theme="day"]) :is(.badge-planned,.calendar-event.planned,.calendar-event.status-planned,.calendar-event.event-planned,.alert-warning){background:var(--theme-warning);color:var(--theme-warning-ink);border-color:var(--theme-warning-ink)}
html[data-theme]:not([data-theme="day"]) :is(.badge-cancelled,.badge-blocked,.calendar-event.cancelled,.calendar-event.event-cancelled,.alert-error){background:var(--theme-error);color:var(--theme-error-ink);border-color:var(--theme-error-ink)}
html[data-theme]:not([data-theme="day"]) .alert:not(.alert-success):not(.alert-error):not(.alert-warning){background:var(--theme-info);color:var(--theme-info-ink);border-color:var(--line)}
html[data-theme]:not([data-theme="day"]) :is(.stat-icon,.stat-card:nth-child(2) .stat-icon,.stat-card:nth-child(3) .stat-icon){background:var(--teal-wash);color:var(--teal-dark)}
html[data-theme]:not([data-theme="day"]) :is(.calendar-day.is-today,.calendar-day.today){background:var(--teal-wash)}
html[data-theme]:not([data-theme="day"]) progress,html[data-theme]:not([data-theme="day"]) progress::-webkit-progress-bar{background:var(--theme-alt)}
html[data-theme]:not([data-theme="day"]) :focus-visible{outline-color:var(--theme-focus)}
.appearance-fieldset{border:0;padding:0;margin:0 0 20px;min-width:0}.appearance-fieldset legend{font-weight:650;margin-bottom:12px}
.appearance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.appearance-choice{position:relative;display:block;cursor:pointer;margin:0}
.appearance-choice input[type="radio"]{position:absolute;left:12px;top:15px;margin:0;width:18px;height:18px;min-height:0;z-index:1}
.appearance-choice-body{display:block;height:100%;padding:13px;border:1px solid var(--line);border-radius:10px}
.appearance-choice-body strong{display:block;padding-left:26px;color:var(--navy)}
.appearance-choice-body small{display:block;margin-top:10px}
.appearance-choice input:checked+.appearance-choice-body{outline:2px solid var(--teal);outline-offset:1px}
.appearance-swatch{display:flex;height:42px;overflow:hidden;border:1px solid var(--line);border-radius:6px;margin-top:12px}
.appearance-swatch span{flex:1}
[data-choice="day"] .appearance-swatch span:nth-child(1){background:#f7fafb}[data-choice="day"] .appearance-swatch span:nth-child(2){background:#14756e}[data-choice="day"] .appearance-swatch span:nth-child(3){background:#102c3a}
[data-choice="night"] .appearance-swatch span:nth-child(1){background:#101923}[data-choice="night"] .appearance-swatch span:nth-child(2){background:#9be0d0}[data-choice="night"] .appearance-swatch span:nth-child(3){background:#172431}
[data-choice="morning"] .appearance-swatch span:nth-child(1){background:#f7f6ed}[data-choice="morning"] .appearance-swatch span:nth-child(2){background:#2b6d52}[data-choice="morning"] .appearance-swatch span:nth-child(3){background:#e7f0dc}
[data-choice="afternoon"] .appearance-swatch span:nth-child(1){background:#fff8ef}[data-choice="afternoon"] .appearance-swatch span:nth-child(2){background:#8a4c24}[data-choice="afternoon"] .appearance-swatch span:nth-child(3){background:#f8e8d5}
@media(max-width:1000px){.appearance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.appearance-grid{grid-template-columns:1fr}}


html[data-theme]:not([data-theme="day"]) :is(.editorial-cover small,.auth-story small){color:var(--theme-strong-ink)}
html[data-theme]:not([data-theme="day"]) .cover-placeholder small{color:#e4efea}
