/* White + royal blue + gold, navy counterpart. */
:root{--ink:#182d50;--muted:#62718a;--green:#245ab8;--bg:#f5f8fd;--line:#dce4f0;--quest-gold:#fc9401;--quest-surface:#eef4ff;--quest-card:#ffffff;--quest-accent:#245ab8}
aside,.panel,.stat,.day{background:#ffffff}.brand span{color:#fc9401}nav button.active,.tabs button.active{background:#e5eeff;color:#234f98}.search,.ghost,form input,form select,textarea,dialog{background:#ffffff;color:var(--ink);border-color:var(--line)}.btn:not(.ghost){background:#245ab8;color:#fff}.icon,.avatar,.initial{background:#e5eeff;color:#245ab8}.tag{background:#e5eeff;color:#234f98}.tag.warn{background:#fff0d9;color:#995400}.tag.red{background:#f9e0e4;color:#9c405a}.attention{background:#fff4e4;border-color:#f2d4a6}.attention button{border-color:#f2d4a6}.welcome:after{color:#d1def6}.appointment{border-color:#c8a44d}.day .appointment{background:#eef4ff}.timeline{border-color:#d2deee}.timeline:before{background:#6b90c6}.focus-panel{background:#edf3fe!important}.customer-status{background:#ffffff;color:#245ab8!important}.calendar .today{background:#245ab8;color:white}.quest-prereq{background:#edf3fe}
html[data-theme="dark"]{--ink:#f2f6fd;--muted:#a9b9d0;--green:#95baff;--bg:#0d1930;--line:#304565;--quest-gold:#fc9401;--quest-surface:#132440;--quest-card:#192c4b;--quest-accent:#95baff}
html[data-theme="dark"] aside,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .day{background:#13243d}
html[data-theme="dark"] .search,html[data-theme="dark"] .ghost,html[data-theme="dark"] form input,html[data-theme="dark"] form select,html[data-theme="dark"] textarea,html[data-theme="dark"] dialog{background:#1b3150;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .btn:not(.ghost){background:#95baff;color:#10264b}
html[data-theme="dark"] nav button.active,html[data-theme="dark"] .tabs button.active,html[data-theme="dark"] .tag,html[data-theme="dark"] .initial,html[data-theme="dark"] .avatar,html[data-theme="dark"] .icon{background:#243e66;color:#c4d8ff}
html[data-theme="dark"] .tag.warn{background:#452d16;color:#fc9401}html[data-theme="dark"] .tag.red{background:#4a2c3c;color:#ffb3ca}
html[data-theme="dark"] .attention{background:#302b1e;border-color:#54472a}html[data-theme="dark"] .attention button{border-color:#54472a}
html[data-theme="dark"] .welcome:after{color:#2b466d}html[data-theme="dark"] .calendar .today{background:#95baff;color:#10264b}
html[data-theme="dark"] .day .appointment{background:#1d3353}html[data-theme="dark"] .timeline{border-color:#3a5578}
html[data-theme="dark"] .focus-panel{background:#1c3150!important}html[data-theme="dark"] .customer-status{background:#1b3150;color:#c4d8ff!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a4b5cf}
html[data-theme="dark"] .theme-switch button[aria-pressed="true"]{color:#10264b}
html[data-theme="dark"] .quest-prereq{background:#1c3150}
/* Clear green/red status accents in both themes. */
:root{--success:#227347;--success-bg:#e4f3e8;--danger:#b73d49;--danger-bg:#fbe8e8;--quest-accent:var(--success)}
html[data-theme="dark"]{--success:#83d9a1;--success-bg:#203c32;--danger:#ff919b;--danger-bg:#452b2e;--quest-accent:var(--success)}
.quest-node.complete{background:var(--success-bg);border-color:var(--success)}
.quest-node.locked{background:var(--danger-bg);border-color:var(--danger);opacity:1}
.quest-node.locked small{color:var(--danger)}
.quest-log-item.completed{color:var(--success)}
.quest-legend span:nth-child(3):before{color:var(--danger)}
.quest-log .tag:not(.warn){background:var(--success-bg);color:var(--success)}
.quest-log .tag.quest-wait{background:var(--danger-bg);color:var(--danger)}
.tag.red,html[data-theme="dark"] .tag.red{background:var(--danger-bg);color:var(--danger)}
.task:has(.tag.red){border-left:3px solid var(--danger);padding-left:12px}
.task.done .check,.check{accent-color:var(--success)}
.task.done{border-left:3px solid var(--success);padding-left:12px}
.quest-progress span{background:var(--success)}
.quest-log .btn:not(.ghost){background:var(--success);color:white}
html[data-theme="dark"] .quest-log .btn:not(.ghost){background:var(--success);color:#13281c}
:root{--mini-highlight:#fff0d9}html[data-theme="dark"]{--mini-highlight:#452d16}.task-mini{border:1px solid var(--line);background:var(--quest-surface);padding:13px;border-radius:12px;margin:18px 0}.task-mini svg{display:block;width:100%;height:auto;margin:10px 0}.task-mini .quest-eyebrow{font-size:9px;letter-spacing:1px}.mini-current{font-size:10px;color:var(--quest-gold)}.mini-caption{font-size:13px;margin-bottom:8px}.mini-caption span{color:var(--muted)}.mini-unassigned{font-size:12px;color:var(--muted);background:var(--quest-surface);border-radius:8px;padding:14px;margin-top:16px}dialog{max-height:90vh;overflow:auto}
.task-discussion{border-top:1px solid var(--line);padding-top:22px;margin-top:24px}.task-discussion h2{font-size:17px}.task-discussion form .btn.ghost{margin-top:10px}.task-comment{background:var(--quest-surface);border:1px solid var(--line);border-radius:10px;padding:14px;margin-top:12px}.task-comment b{font-size:13px}.task-comment p{margin:10px 0 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.task-discussion textarea{resize:vertical;min-height:75px}.task-comments{margin-top:18px}
.calendar .calendar-day{position:relative;padding-bottom:16px;min-height:38px}.appointment-dot{position:absolute;bottom:5px;left:50%;transform:translateX(-50%);width:5px;height:5px;border-radius:50%;background:var(--green)}.calendar .today .appointment-dot{background:currentColor}

/* Gold details frame the blue/white palette. */
.quest-banner{border-top:3px solid var(--quest-gold)}.quest-eyebrow{color:var(--quest-gold)}
nav button.active{box-shadow:inset 3px 0 0 var(--quest-gold)}
.quest-map-head h2:before{content:'✦';color:var(--quest-gold);margin-right:8px;font-size:16px}
.theme-switch button[aria-pressed="true"]{box-shadow:inset 0 -2px 0 var(--quest-gold)}

:root{--accent-text:#995400}html[data-theme="dark"]{--accent-text:#fcaa37}
.quest-eyebrow,.mini-current,.quest-task-title,.quest-completion,.quest-log-item.active{color:var(--accent-text)}
.quest-map-head h2:before{color:#fc9401}
/* Unified neutral surfaces with a single brand accent. */
:root{--ink:#263445;--muted:#707b87;--bg:#f5f6f7;--line:#e1e5e9;--quest-surface:#f5f6f7;--quest-card:#ffffff;--green:#fc9401;--quest-accent:#87998c;--success:#527a60;--success-bg:#ffffff;--danger:#a75e63;--danger-bg:#ffffff;--accent-text:#a65b00}
html[data-theme="dark"]{--ink:#edf0f4;--muted:#a1aab6;--bg:#151c25;--line:#34404e;--quest-surface:#1c2531;--quest-card:#232e3c;--green:#fc9401;--quest-accent:#80978a;--success:#98b8a1;--success-bg:#232e3c;--danger:#d69b9f;--danger-bg:#232e3c;--accent-text:#ffaf45}
aside,.panel,.stat,.day,.search,.ghost,form input,form select,textarea,dialog{background:#ffffff}
html[data-theme="dark"] aside,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .day{background:#1c2531}
html[data-theme="dark"] .search,html[data-theme="dark"] .ghost,html[data-theme="dark"] form input,html[data-theme="dark"] form select,html[data-theme="dark"] textarea,html[data-theme="dark"] dialog{background:#232e3c}
nav button.active,.tabs button.active,.icon,.avatar,.initial,.tag{background:#f0f2f4;color:var(--ink)}
html[data-theme="dark"] nav button.active,html[data-theme="dark"] .tabs button.active,html[data-theme="dark"] .icon,html[data-theme="dark"] .avatar,html[data-theme="dark"] .initial,html[data-theme="dark"] .tag{background:#2b3644;color:var(--ink)}
.btn:not(.ghost),html[data-theme="dark"] .btn:not(.ghost),.quest-log .btn:not(.ghost),html[data-theme="dark"] .quest-log .btn:not(.ghost){background:#fc9401;color:#30200c}
.theme-switch button[aria-pressed="true"],html[data-theme="dark"] .theme-switch button[aria-pressed="true"]{background:#fc9401;color:#30200c;box-shadow:none}
.calendar .today,html[data-theme="dark"] .calendar .today{background:#fc9401;color:#30200c}
.quest-banner{background:var(--quest-card);border-top:1px solid var(--line)}
.quest-progress span{background:#fc9401}
.quest-node.complete,.quest-node.locked{background:var(--quest-card);border-color:var(--line)}
.quest-node.complete small{color:var(--success)}.quest-node.locked small{color:var(--danger)}
.quest-node.locked{opacity:.78}.quest-node.ready{border-color:#d0b48f}html[data-theme="dark"] .quest-node.ready{border-color:#7e694d}
.quest-log .tag:not(.warn),.quest-log .tag.quest-wait,.tag.warn,.tag.red,html[data-theme="dark"] .tag.warn,html[data-theme="dark"] .tag.red{background:var(--quest-surface);color:var(--muted)}
.tag.red,html[data-theme="dark"] .tag.red{color:var(--danger)}
.task:has(.tag.red),.task.done{border-left:0;padding-left:0}
.attention,html[data-theme="dark"] .attention,.focus-panel,html[data-theme="dark"] .focus-panel{background:var(--quest-card)!important;border-color:var(--line)}
.attention button,html[data-theme="dark"] .attention button{border-color:var(--line)}
.quest-prereq,html[data-theme="dark"] .quest-prereq,.day .appointment,html[data-theme="dark"] .day .appointment{background:var(--quest-surface)}
.customer-status,html[data-theme="dark"] .customer-status{background:var(--quest-card);color:var(--ink)!important}
.welcome:after,html[data-theme="dark"] .welcome:after{color:var(--line)}
.timeline,html[data-theme="dark"] .timeline{border-color:var(--line)}.timeline:before{background:#fc9401}
.appointment{border-color:#fc9401}.check{accent-color:#fc9401}.quest-eyebrow{color:var(--muted)}
