/* Core experience, shared by all three themes. Legacy module markup stays compatible. */
:root { --nav-width: 216px; --page-max: 1320px; --radius: 16px; }
body[data-theme="classic"] { --background:#f4f5f1; --surface:#fffefa; --foreground:#26372f; --muted:#59685f; --line:#dce2d9; --green:#376b54; --green-dark:#27533e; --shadow:0 10px 30px rgba(25,48,35,.05); }
body[data-theme="kitty"] { --background:#fff7f7; --surface:#fffdfc; --foreground:#47303c; --muted:#785963; --line:#ead8df; --green:#d62d4b; --green-dark:#bd203f; --blue:#425f88; --shadow:0 10px 30px rgba(98,47,64,.055); }
body[data-theme="spider"] { --background:#111a28; --surface:#1a2739; --foreground:#edf2fa; --muted:#b0bdcf; --line:#3b4c62; --green:#a9313e; --green-dark:#932b37; --input-bg:#142033; --chip-bg:#26384f; --hover-bg:#28374b; --shadow:0 10px 30px rgba(0,0,0,.16); }
body { background:var(--background); font-size:15px; line-height:1.55; }
body::before, body::after, .workspace::before, .workspace::after { pointer-events:none; }
.shell { display:grid; grid-template-columns:var(--nav-width) minmax(0,1fr); max-width:none; margin:0; min-height:100vh; padding:0; gap:0; }
.sidebar { position:sticky; top:0; height:100vh; max-height:100vh; overflow-y:auto; border:0; border-right:1px solid var(--line); border-radius:0; background:var(--surface); box-shadow:none; padding:30px 18px; display:flex; flex-direction:column; gap:16px; }
.brand { padding:0 10px 14px; margin:0; border-bottom:1px solid var(--line); }
.brand strong { font-size:25px; letter-spacing:-1px; }
.brand small { font-size:11px; letter-spacing:2px; }
.brand-mark { color:var(--green); background:var(--chip-bg); border-radius:12px; }
.nav-list { display:flex; flex-direction:column; gap:16px; width:100%; overflow:visible; }
.nav-group { display:grid; gap:3px; }
.nav-caption { color:var(--muted); font-size:11px; letter-spacing:2px; padding:4px 12px; }
.nav-list a { width:100%; padding:10px 12px; min-height:42px; border:0; border-radius:9px; color:var(--muted); background:transparent; gap:12px; font-weight:500; }
.nav-list a.active { color:var(--green-dark); background:color-mix(in srgb,var(--green) 10%,var(--surface)); font-weight:750; box-shadow:none; }
body[data-theme="spider"] .nav-list a.active { color:#fff; background:#922e3b; }
.nav-list a svg { width:19px; height:19px; }
.theme-picker { display:grid; gap:5px; font-size:12px; color:var(--muted); margin:0; }
.theme-picker select { padding:7px 10px; height:36px; font-size:12px; }
.sidebar-command { font-size:12px; min-height:40px; padding:8px; }
.workspace { min-width:0; padding:0 clamp(20px,3.5vw,56px) 100px; }
.topbar { position:sticky; top:0; z-index:110; min-height:104px; margin:0 -2px 30px; padding:24px 0 18px; background:var(--background); border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.topbar h1 { margin:0; font-size:29px; font-weight:700; letter-spacing:-.8px; line-height:1.3; outline:none; }
.topbar .eyebrow { margin-bottom:6px; color:var(--muted); font-size:11px; letter-spacing:1px; }
.topbar-actions { gap:10px; }
.search-box { min-width:0; width:clamp(180px,23vw,300px); background:var(--surface); border:1px solid var(--line); box-shadow:none; border-radius:10px; }
.search-box input { font-size:14px; }
.topbar [data-open-quick-capture] { width:auto; min-width:44px; gap:8px; display:flex; padding:10px 15px; color:var(--surface); background:var(--green); border-color:var(--green); font-size:13px; font-weight:700; }
.topbar [data-open-quick-capture] svg { width:18px; height:18px; }
.today-dashboard,.home-continuation,.overview-fold,[data-page-stage] { max-width:var(--page-max); margin-left:auto; margin-right:auto; }
.today-dashboard { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.today-dashboard>.section-title-row { margin-bottom:24px; align-items:flex-end; }
.today-dashboard .eyebrow { display:none; }
.today-dashboard h2 { font-size:24px; letter-spacing:-.5px; }
.today-intro { color:var(--muted); margin:8px 0 0; font-size:14px; }
.today-actions { gap:6px; }
.today-actions .text-button { font-size:12px; }
.today-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr); gap:20px; }
.today-column { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); min-width:0; }
.today-column-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:16px; border-bottom:1px solid var(--line); margin:0 0 14px; }
.today-column-head strong { font-size:16px; }
.today-column-head a,.today-task-group>a { font-size:12px; color:var(--green-dark); text-decoration:none; }
body[data-theme="spider"] .today-column-head a,body[data-theme="spider"] .today-task-group>a { color:#b9d6fa; }
.today-task-group h3 { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; margin:20px 0 6px; }
.today-task { display:flex; align-items:flex-start; gap:10px; border:0; border-bottom:1px solid var(--line); width:100%; padding:13px 0; background:transparent; border-radius:0; }
.today-task-title { flex:1; min-width:0; border:0; padding:0; background:transparent; color:var(--foreground); text-align:left; font:inherit; cursor:pointer; }
.today-task-title strong { display:block; white-space:normal; overflow-wrap:anywhere; font-weight:600; font-size:15px; }
.today-task-title small { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.today-course { display:flex; gap:18px; padding:16px 0; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; width:100%; }
.today-course>time { color:var(--green-dark); font-size:18px; font-variant-numeric:tabular-nums; font-weight:650; }
body[data-theme="spider"] .today-course>time { color:#b9d6fa; }
.today-course>span { min-width:0; }
.today-course strong { font-size:14px; }
.today-course small { color:var(--muted); font-size:12px; display:block; }
.calm-empty { padding:30px 10px; min-height:160px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.calm-empty>span { font-size:28px; color:var(--green); }
.calm-empty p,.calm-note { font-size:13px; color:var(--muted); line-height:1.8; margin:0; }
.home-continuation { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr); gap:24px; margin-top:30px; }
.home-continuation>section { min-width:0; padding:4px 0; }
.home-continuation h2 { font-size:16px; margin:0; }
.home-continuation .insight-title { margin:0 0 14px; }
.continuation-row { display:flex; align-items:center; width:100%; gap:14px; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; text-align:left; color:var(--foreground); padding:15px 0; cursor:pointer; }
.continuation-row>span:nth-last-child(2) { flex:1; min-width:0; }
.continuation-row strong { display:block; font-size:14px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:550; }
.continuation-row small { display:block; color:var(--muted); font-size:12px; margin-top:3px; }
.recent-type { flex:0 0 40px; color:var(--muted); font-size:11px; }
.draft-dot { width:8px; height:8px; border-radius:50%; background:var(--amber); }
.overview-fold { margin-top:26px; border:1px solid var(--line); border-radius:12px; padding:14px 18px; }
.overview-fold>summary { font-size:13px; font-weight:650; color:var(--foreground); cursor:pointer; }
.overview-fold>summary span { font-size:12px; color:var(--muted); margin-left:12px; font-weight:400; }
.overview { margin:18px 0 0; }
.overview .metric { padding:14px; background:var(--surface); border:1px solid var(--line); box-shadow:none; border-radius:10px; }
.footer-note { margin:36px auto 0; font-size:11px; max-width:var(--page-max); color:var(--muted); }
/* Modules are pages inside the workspace. Navigation and search remain available. */
body.module-open,body.planner-open,body.schedule-open { overflow:auto; }
.module-overlay,.planner-overlay,.schedule-overlay { position:static; inset:auto; padding:0; z-index:auto; background:none!important; backdrop-filter:none; }
.module-shell,.planner-shell,.schedule-shell { width:100%; max-width:none; height:auto; min-height:0; max-height:none; overflow:visible; border:0; border-radius:0; box-shadow:none; background:transparent; }
.module-shell { display:block; }
.module-head,.planner-head { background:transparent; padding:0 0 20px; border:0; align-items:flex-start; }
.module-head h2,.module-head .eyebrow { display:none; }
.module-head p:last-child { margin:0; font-size:14px; }
.module-head [data-close-module] { width:auto; min-width:40px; height:40px; font-size:22px; }
.module-content { padding:0; overflow:visible; }
.panel.is-module-expanded { padding:0; border:0; border-radius:0; background:transparent!important; box-shadow:none; display:block; }
.panel.is-module-expanded::before,.panel.is-module-expanded::after { display:none!important; }
.panel.is-module-expanded>.panel-heading,.panel.is-module-expanded>.panel-overview { display:none!important; }
.panel.is-module-expanded>.panel-quick-form { display:none; }
.panel.is-module-expanded>.panel-quick-form.has-restored-draft { display:grid; padding:16px; margin-bottom:18px; border:1px solid var(--line); border-radius:12px; }
.entry-form input,.entry-form select,.entry-form textarea,.course-form input,.course-form select { border-radius:9px; background:var(--surface); color:var(--foreground); min-height:42px; font-size:14px; border:1px solid var(--line); }
.entry-form textarea { line-height:1.85; padding:16px; resize:vertical; }
.primary-button,.secondary-button,.ghost-button { min-height:42px; border-radius:9px; font-size:13px; }
.primary-button { background:var(--green); color:#fff; }
.icon-button,.icon-ghost,.check-button { min-width:36px; min-height:36px; }
.record-title-button { border:0; padding:0; background:transparent; color:var(--foreground); font:inherit; font-weight:650; font-size:15px; text-align:left; overflow-wrap:anywhere; cursor:pointer; }
.task { padding:16px; border-radius:12px; border:1px solid var(--line); background:var(--surface); margin-bottom:8px; gap:12px; }
.task-main { min-width:0; }
.task-main>span { font-size:12px; line-height:1.7; }
.task-priority-group h3 { font-size:13px; color:var(--muted); margin:24px 0 12px; }
#tasks .entry-form { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
#tasks .entry-form>input[name="title"] { font-size:18px; padding:12px; }
.task-advanced { margin:4px 0; }
.task-advanced summary { cursor:pointer; font-size:12px; color:var(--muted); padding:8px 0; }
.task-advanced summary span { margin-left:12px; }
.task-advanced .form-row { margin-top:12px; }
.writing-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,1fr); gap:24px; align-items:start; }
.writing-composer { min-width:0; border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--surface); }
.writing-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.writing-toolbar strong { font-size:14px; }
.writing-composer textarea { min-height:260px!important; max-height:640px; font-size:16px; }
.writing-library { min-width:0; }
.writing-library>h3 { font-size:14px; margin:0 0 14px; }
.writing-library .entry-list,.writing-library .note-grid { display:block; }
.writing-library .entry,.writing-library .note { margin-bottom:12px; }
.writing-focus .writing-layout { display:block; max-width:880px; margin:auto; }
.writing-focus .writing-library { display:none; }
.writing-focus .writing-composer textarea { min-height:55vh!important; }
.record-detail-drawer { inset:0 0 0 auto; width:min(540px,100vw); max-width:100vw; height:100dvh; max-height:100dvh; margin:0; border:0; border-left:1px solid var(--line); border-radius:0; padding:28px; background:var(--surface); color:var(--foreground); }
.record-detail-drawer h2 { font-size:23px; white-space:normal; overflow-wrap:anywhere; }
.detail-meta { font-size:12px; color:var(--muted); line-height:1.9; }
.detail-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; font-size:16px; padding:20px 0; }
.record-detail-drawer footer { display:flex; gap:10px; padding-top:24px; margin-top:24px; border-top:1px solid var(--line); }
/* Calendar text summaries + a chronological week agenda. */
.planner-layout { grid-template-columns:minmax(0,1fr) 280px; gap:20px; padding:0; }
.planner-board { overflow:visible; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:16px; }
.planner-agenda { border:1px solid var(--line); background:var(--surface); border-radius:var(--radius); padding:18px; overflow:visible; }
.planner-day { min-width:0; min-height:96px; height:auto; padding:8px; text-align:left; background:transparent; border:1px solid var(--line); border-radius:7px; display:block; }
.planner-day>div { display:grid; gap:4px; margin-top:6px; }
.calendar-event-label { display:block; min-width:0; font-size:11px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--foreground); border-left:2px solid var(--green); padding-left:4px; }
.planner-day.is-selected { outline:2px solid var(--green); outline-offset:-2px; background:color-mix(in srgb,var(--green) 8%,var(--surface)); }
.planner-day.is-today>span:first-child { background:var(--green); color:#fff; border-radius:50%; display:inline-grid; place-items:center; width:25px; height:25px; }
.planner-week-agenda { grid-column:1; display:grid; gap:12px; }
.planner-week-agenda section { border:1px solid var(--line); border-radius:12px; padding:16px; background:var(--surface); }
.planner-week-agenda h3 { font-size:13px; margin:0 0 12px; }
.planner-layout:has([data-planner-week-agenda]:not([hidden])) [data-planner-board] { display:none; }
.planner-layout:has([data-planner-week-agenda]:not([hidden])) .planner-agenda { grid-column:2; grid-row:1; align-self:start; }
.schedule-shell { display:flex; flex-direction:column; gap:24px; }
.schedule-board { min-width:0; padding:0; overflow:visible; }
.schedule-board-head { align-items:flex-start; flex-wrap:wrap; padding:0 0 20px; }
.schedule-board-head h2 { font-size:23px; }
.schedule-grid-wrap { max-height:70vh; border:1px solid var(--line); border-radius:12px; overflow:auto; background:var(--surface); }
.schedule-settings { padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.schedule-settings>summary { cursor:pointer; font-weight:650; font-size:14px; }
.schedule-settings>summary span { color:var(--muted); font-size:12px; font-weight:400; margin-left:10px; }
.schedule-sidebar { width:auto; max-height:none; overflow:visible; padding:24px 0 0; border:0; background:transparent; }
.schedule-controls { display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.schedule-controls>label,.schedule-controls>.course-list { grid-column:1/-1; }
.schedule-controls>.course-form { grid-column:2; grid-row:2/4; margin:0; }
.schedule-agenda { display:none; }
.schedule-agenda-course { display:flex; gap:16px; align-items:center; width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; padding:14px 0; text-align:left; color:var(--foreground); }
.schedule-agenda-course>span:nth-child(2) { flex:1; }
.schedule-agenda-course small { display:block; color:var(--muted); }
.schedule-agenda-course>span:last-child { font-size:11px; color:var(--muted); }
.search-center { position:fixed; z-index:150; top:96px; right:32px; width:min(720px,calc(100vw - 260px)); max-height:70vh; overflow:auto; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.save-feedback-stack { bottom:16px; left:calc(50% + var(--nav-width)/2); }
.save-feedback-stack .local-save-status { box-shadow:var(--shadow); }
.mobile-tabbar,.mobile-more-dialog { display:none; }
.mobile-more-dialog[open] { display:block; }
:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
@media (max-width:1100px) {
 :root { --nav-width:186px; }
 .workspace { padding-left:22px; padding-right:22px; }
 .capture-label { display:none; }
 .today-dashboard>.section-title-row { display:block; }
 .today-actions { margin-top:14px; }
 .writing-layout { grid-template-columns:minmax(0,1fr); }
 .planner-layout { grid-template-columns:minmax(0,1fr); }
 .planner-layout:has([data-planner-week-agenda]:not([hidden])) .planner-agenda { grid-column:1; grid-row:auto; }
}
@media (max-width:760px) {
 :root { --nav-width:0px; --radius:14px; }
 .shell { display:block; }
 .sidebar { display:none; }
 .workspace { padding:0 16px 170px; }
 .topbar { padding:16px 0 14px; margin-bottom:24px; gap:12px; min-height:90px; flex-wrap:wrap; }
 .topbar h1 { font-size:25px; }
 .topbar>.topbar-actions { flex:1; justify-content:flex-end; }
 .topbar .search-box { width:44px; height:44px; padding:10px; border-radius:50%; }
 .topbar .search-box input { width:1px; opacity:0; padding:0; }
 .topbar .search-box:focus-within { position:absolute; bottom:-55px; left:0; right:0; width:100%; border-radius:10px; }
 .topbar .search-box:focus-within input { width:100%; opacity:1; font-size:16px; }
 .topbar [data-open-data-center] { display:none; }
 .topbar [data-open-quick-capture] { width:44px; height:44px; border-radius:50%; padding:12px; }
 .today-dashboard h2 { font-size:22px; line-height:1.4; }
 .today-intro { font-size:13px; }
 .today-grid,.home-continuation { grid-template-columns:minmax(0,1fr); gap:16px; }
 .today-column { padding:18px; }
 .today-column-head { gap:12px; }
 .today-column-head strong { font-size:15px; }
 .today-actions { display:flex; flex-wrap:wrap; }
 .today-actions .text-button { min-height:44px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; }
 .today-task .check-button { width:44px; height:44px; flex:0 0 44px; }
 .today-task-title { padding:6px 0; }
 .overview { grid-template-columns:1fr 1fr; }
 .home-continuation { margin-top:26px; }
 .module-head { padding-bottom:14px; }
 .module-head p:last-child { max-width:260px; font-size:13px; }
 .writing-composer { padding:16px; }
 .writing-composer textarea { min-height:260px!important; padding:12px; font-size:16px; }
 .writing-toolbar { margin-bottom:12px; }
 .writing-layout { gap:26px; }
 input,select,textarea,.entry-form input,.entry-form select { font-size:16px; }
 .task { flex-wrap:wrap; padding:14px; }
 .task-main { flex:1; }
 .task>.record-actions { width:100%; justify-content:flex-end; }
 .record-actions .icon-ghost,.attachment-button,.text-button { min-height:44px; min-width:44px; }
 .task .check-button { min-width:44px; min-height:44px; }
 #tasks .entry-form { padding:16px; }
 .task-advanced .form-row { display:grid; grid-template-columns:1fr; }
 .planner-head { flex-wrap:wrap; gap:14px; }
 .planner-head-actions { width:100%; flex-wrap:wrap; }
 .planner-toolbar { padding:0 0 14px; flex-wrap:wrap; gap:8px; }
 .planner-filters { width:100%; display:flex; flex-wrap:wrap; }
 .planner-board { padding:8px; }
 .planner-days { gap:3px; }
 .planner-day { min-height:74px; padding:4px 2px; }
 .calendar-event-label { font-size:9px; padding-left:2px; }
 .planner-day>span:first-child { font-size:12px; }
 .planner-day.is-today>span:first-child { width:21px; height:21px; }
 .planner-day small { font-size:9px; }
 .planner-weekdays { font-size:10px; }
 .planner-agenda-head { gap:10px; }
 .schedule-board-head { display:block; }
 .schedule-board-head-actions { align-items:flex-start; margin-top:14px; }
 .schedule-week-switcher { width:100%; display:flex; flex-wrap:wrap; }
 .schedule-week-switcher select { min-width:0; flex:1; }
 .schedule-week-note { margin-bottom:20px; }
 .schedule-grid-wrap { display:none; }
 .schedule-agenda { display:grid; gap:16px; }
 .schedule-agenda section { padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
 .schedule-agenda h3 { margin:0 0 6px; font-size:13px; }
 .schedule-controls { display:block; }
 .schedule-controls>form { margin:20px 0; }
 .schedule-sidebar { padding-top:18px; }
 .schedule-settings { padding:14px; }
 .record-detail-drawer { padding:22px 18px; }
 .record-detail-drawer footer { flex-wrap:wrap; }
 .search-center { top:155px; right:12px; width:calc(100vw - 24px); max-height:60vh; }
 .search-filter-row { flex-wrap:wrap; }
 .save-feedback-stack { left:50%; bottom:calc(76px + env(safe-area-inset-bottom)); width:calc(100vw - 24px); }
 .save-feedback-stack .local-save-status { font-size:11px; padding:6px 10px; gap:6px; }
 .mobile-tabbar { position:fixed; display:grid; grid-template-columns:repeat(4,1fr); z-index:200; inset:auto 0 0; padding:8px 8px calc(8px + env(safe-area-inset-bottom)); min-height:66px; background:var(--surface); border-top:1px solid var(--line); box-shadow:0 -4px 22px rgba(0,0,0,.04); }
 .mobile-tabbar>a,.mobile-tabbar>button { display:grid; place-items:center; min-height:44px; border:0; background:transparent; color:var(--muted); border-radius:9px; font:inherit; font-size:13px; text-decoration:none; }
 .mobile-tabbar .active { background:color-mix(in srgb,var(--green) 10%,var(--surface)); color:var(--foreground); font-weight:700; }
 .mobile-more-dialog { width:calc(100vw - 24px); max-width:500px; padding:22px; border:1px solid var(--line); border-radius:18px; color:var(--foreground); background:var(--surface); }
 .mobile-more-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:20px 0; }
 .mobile-more-grid a { text-align:center; padding:13px 8px; background:var(--background); border-radius:8px; color:var(--foreground); text-decoration:none; font-size:14px; }
 .mobile-more-dialog>label { display:grid; gap:6px; margin:16px 0; font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; } }
/* Override legacy fixed icon dimensions and two-column record actions. */
.topbar .topbar-actions>[data-open-quick-capture] { width:auto!important; height:44px; flex:0 0 auto; min-width:110px; white-space:nowrap; }
.topbar .capture-label { display:block; white-space:nowrap; line-height:1; }
.writing-library .record-card { display:flex; flex-direction:column; align-items:stretch; padding:18px; }
.writing-library .record-main { width:100%; min-width:0; }
.writing-library .record-actions { justify-content:flex-end; flex-wrap:wrap; margin-top:12px; }
.writing-library .record-main>p,.diary-read-button { display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.diary-read-button { border:0; background:transparent; color:var(--foreground); text-align:left; white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:14px; line-height:1.8; padding:10px 0; cursor:pointer; }
.writing-composer .form-row { display:grid; grid-template-columns:1fr 1fr; }
.writing-composer .form-row>input[name="title"] { grid-column:1/-1; grid-row:1; font-size:18px; }
@media(max-width:1100px) { .topbar .topbar-actions>[data-open-quick-capture] { min-width:44px; } .topbar .capture-label { display:none; } }
@media(max-width:760px) { .topbar .topbar-actions>[data-open-quick-capture] { width:44px!important; min-width:44px; } .writing-composer .form-row { grid-template-columns:minmax(0,1fr); } }
/* Keep theme decoration around the brand, away from reading surfaces. */
body[data-theme="kitty"],body[data-theme="spider"] { background:var(--background); }
body[data-theme="kitty"] .workspace,body[data-theme="spider"] .workspace { background:transparent; }
body[data-theme="kitty"] .today-dashboard,body[data-theme="spider"] .today-dashboard { background:transparent; border:0; }
body[data-theme="kitty"] .today-dashboard::before,body[data-theme="kitty"] .today-dashboard::after,body[data-theme="spider"] .today-dashboard::before,body[data-theme="spider"] .today-dashboard::after,body[data-theme="spider"] .workspace::before,body[data-theme="spider"] .workspace::after { display:none; }
body[data-theme="kitty"] .topbar h1,body[data-theme="spider"] .topbar h1 { text-shadow:none; }
body[data-theme="kitty"] .primary-button,body[data-theme="kitty"] .topbar .topbar-actions>[data-open-quick-capture] { background:var(--green); color:#fff; border-color:var(--green); }
body[data-theme="kitty"] .primary-button:hover,body[data-theme="kitty"] .topbar .topbar-actions>[data-open-quick-capture]:hover { background:var(--green-dark); border-color:var(--green-dark); }
/* Fit the upright artwork inside the frame instead of cropping its ears and whiskers. */
body[data-theme="kitty"] .brand-mark { flex:0 0 42px; width:42px; height:42px; background-position:50% 58%; background-size:100% auto; transform:none; }
body[data-theme="spider"] .primary-button,body[data-theme="spider"] .topbar .topbar-actions>[data-open-quick-capture] { background:#a52e3e; color:#fff; border-color:#b45562; }
body[data-theme="spider"] .check-button { color:#e3ebf8; border:1px solid #8292a8; background:#223047; }
body[data-theme="spider"] .sidebar { background:var(--surface); border-right:1px solid var(--line); }
body[data-theme="spider"] .brand { flex-wrap:wrap; }
body[data-theme="spider"] .brand>div { flex:1; min-width:75px; }
body[data-theme="spider"] .brand-mark { display:none; }
body[data-theme="spider"] .spider-wordmark { position:static; display:block; width:125px; margin:0; }
body[data-theme="spider"] .spider-wordmark img { width:100%; height:auto; }
.schedule-grid { min-width:850px; }
.topbar-actions { display:flex; }
.search-box>span svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; }
.save-indicator { display:block; margin-top:5px; font-size:10px; color:var(--muted); line-height:1.2; }
.save-indicator[data-warning="true"] { color:var(--clay); font-weight:700; }
.writing-metadata>summary { color:var(--muted); font-size:12px; cursor:pointer; padding:6px 0; }
.writing-metadata .form-row { margin-top:10px; }
@media(max-width:760px) {
 .topbar-actions { flex:0 0 auto!important; }
 .topbar { align-items:center; }
 .today-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
 .today-actions .text-button { font-size:11px; padding:6px; white-space:nowrap; }
}
@media(max-width:760px) {
 .topbar .topbar-actions { width:auto; }
 .topbar .search-box { flex:0 0 44px; width:44px; min-width:44px; height:44px; }
 .topbar .search-box:focus-within { flex:none; width:100%; }
}
.planner-head>div:first-child { display:none; }
@media(max-width:760px) { .planner-head-actions { margin:0; } .planner-toolbar .icon-ghost,.planner-head-actions .icon-ghost { min-width:44px; min-height:44px; } .calendar-event-label { font-size:10px; } }
