/* A compact switch is available on every screen; layout stays the same. */
.app-header>div:first-child{min-width:0}
.app-header .eyebrow{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.header-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:0 10px;border:1px solid #dac39f;border-radius:13px;background:#fff7e9;color:#874823;font-size:11px;font-weight:650;white-space:nowrap}
.theme-toggle svg{width:17px;height:17px}
:root[data-theme=calm]{color-scheme:light}

:root[data-theme=fire]{
 color-scheme:dark;
 color:#fff1e5;background:#160e11;
 --ink:#ffb46e;--muted:#c5aaa0;--line:#493332;--soft:#362326;
 --surface:#25191d;--gold:#ffd084;
 --fire-gradient:linear-gradient(115deg,#ff663d 0%,#ff9650 62%,#ffd078 100%);
}
[data-theme=fire] body{background:#100b0d}
[data-theme=fire] .app-shell{background:radial-gradient(ellipse at 100% 0%,#4b201f66,transparent 52%),#160e11}
[data-theme=fire] h1,[data-theme=fire] .hero h2,[data-theme=fire] .sheet-head h2{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:800;letter-spacing:-.035em}
[data-theme=fire] .eyebrow{color:#ffc08b}
[data-theme=fire] .panel{background:linear-gradient(135deg,#2c1d20,#21161b);box-shadow:0 5px 18px #0002}
[data-theme=fire] .hero{position:relative;isolation:isolate;overflow:hidden;background:var(--fire-gradient);color:#2c100c;border:0;box-shadow:0 8px 25px #ff60262b}
[data-theme=fire] .hero>*{position:relative;z-index:1}
[data-theme=fire] .hero::after{content:"";position:absolute;right:-28px;bottom:-56px;width:160px;height:196px;z-index:0;opacity:.12;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23592714' d='M13 2c1 6-5 6-3 11 2-1 3-3 3-5 5 3 7 6 6 10-1 4-4 5-7 5-5 0-8-3-8-7 0-3 2-6 4-8-1 5 1 5 1 5-2-5 4-7 4-11z'/%3E%3C/svg%3E") center/contain no-repeat}
[data-theme=fire] .hero .eyebrow,[data-theme=fire] .hero small{color:#4a2013}
[data-theme=fire] .hero .btn{background:#281318;color:#fff3e6;box-shadow:0 3px 9px #7b28192b}
[data-theme=fire] .theme-toggle{border-color:#705347;background:#36272a;color:#ffe0bb}
[data-theme=fire] .progress i{background:var(--fire-gradient)}
[data-theme=fire] .bottom-nav{background:#201419;box-shadow:0 -6px 20px #0002}
[data-theme=fire] .bottom-nav button[aria-current=page],
[data-theme=fire] .segment button[aria-pressed=true]{background:var(--fire-gradient);color:#2c100c;font-weight:700;box-shadow:0 3px 12px #ff592021}
[data-theme=fire] .primary,[data-theme=fire] .fab{background:var(--fire-gradient);color:#2c100c;border-color:transparent;font-weight:750;box-shadow:0 5px 20px #ff602633}
[data-theme=fire] .habit[aria-pressed=true] span{background:var(--fire-gradient);color:#2c100c;box-shadow:0 3px 10px #ff602626}
[data-theme=fire] .signal-dot{background:#77cc9b}
[data-theme=fire] .signal-dot.yellow{background:#ffd074}
[data-theme=fire] .signal-dot.red{background:#ff8d83}
[data-theme=fire] .signals button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #947765;background:#4a3437}
[data-theme=fire] input[type=checkbox]{accent-color:#ffb46e}
[data-theme=fire] dialog{color:#fff1e5;background:#25191d;box-shadow:0 -10px 45px #0006}
[data-theme=fire] dialog::backdrop{background:#10080baf}
[data-theme=fire] textarea,[data-theme=fire] input[type=date],[data-theme=fire] input[type=text],[data-theme=fire] select{background:#1b1216;color:#fff1e5}
[data-theme=fire] textarea::placeholder,[data-theme=fire] input::placeholder{color:#b19a92;opacity:1}
[data-theme=fire] .calendar90 button,[data-theme=fire] .chips button{background:#1b1216}
[data-theme=fire] .calendar90 .active,[data-theme=fire] .weekdays .active{background:var(--fire-gradient);color:#2c100c;font-weight:700}
[data-theme=fire] .weekdays .active small{color:#4a2013}
[data-theme=fire] .calendar90 .has-entry{border-bottom-color:#ffb46e}
[data-theme=fire] .chips button[aria-pressed=true]{background:#593426;border-color:#db975d;color:#ffe0bc}
[data-theme=fire] .priority-badge,[data-theme=fire] .priority-today{color:#ffc68a}
[data-theme=fire] .task-focus{background:none;color:#bba199}
[data-theme=fire] .task-focus[aria-pressed=true]{background:#593426;color:#ffd29e}
[data-theme=fire] .task-focus[aria-pressed=true] svg,[data-theme=fire] .mini-priority svg{fill:#a64b25}
[data-theme=fire] .mini-task .mini-priority{color:#ffc68a}
[data-theme=fire] .danger{color:#ffafa4}
[data-theme=fire] .notice,[data-theme=fire] .update-banner,[data-theme=fire] .storage-banner{background:#432e21;color:#ffe0ad;border-color:#d79a61}
[data-theme=fire] .toast{background:#ffd09b;color:#301711;box-shadow:0 5px 20px #0003}
[data-theme=fire] :focus-visible{outline-color:#ffd08c}
@media(prefers-reduced-motion:no-preference){.theme-toggle{transition:background-color .15s,color .15s,box-shadow .15s}.theme-toggle:hover{box-shadow:0 0 0 3px #ff9d4722}}
