/* Orbit next pass */
/* 1 reminders: bell state, warning, upcoming list */
.rem-bell{display:inline-flex;align-items:center;gap:3px;color:var(--accent-blue,#2f6f4f);vertical-align:middle;margin:0 2px}
.rem-bell.off{color:#b45309}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .rem-bell.off{color:#fbbf24}
.rem-warn{margin:6px 0 0;padding:8px 10px;border-radius:8px;background:#fff4dd;color:#6b3a00;border:1px solid #f0c36d;font-size:.82rem;line-height:1.4}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .rem-warn{background:#3a2d12;color:#ffe2a6;border-color:#7a5b1e}
.rem-up-h{margin:18px 0 6px;font-size:.95rem}
.rem-up{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.rem-up li{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--border-color);border-radius:10px;background:var(--pill-bg)}
.rem-up li.empty{color:var(--text-muted);font-size:.85rem}
.rem-up small{color:var(--text-muted)}
.rem-up .ok{color:#1d7a46;font-size:.8rem;font-weight:700}
.rem-up .warn{color:#b45309;font-size:.8rem;font-weight:700}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .rem-up .ok{color:#7ee2a8}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .rem-up .warn{color:#fbbf24}
/* 8 move up / down */
.todo-move-wrap{display:inline-flex;gap:4px;margin-right:2px}
.todo-move{min-width:34px;min-height:34px;padding:0 8px;border-radius:8px;border:1px solid var(--border-color);background:var(--pill-bg);color:var(--text-main);font-size:1rem;line-height:1;cursor:pointer}
.todo-move:focus-visible{outline:2px solid var(--accent-blue,#2f6f4f);outline-offset:2px}
/* 2 music button */
.focus-music-btn{font-size:.8rem;margin-left:8px;background:var(--pill-bg);color:var(--text-main);border:1px solid var(--border-color);border-radius:999px;padding:8px 14px}
/* 15 ai help */
.ai-key-help{margin:8px 0 0;font-size:.85rem;line-height:1.5;color:var(--text-muted)}
.ai-key-help a{color:var(--accent-blue,#2f6f4f);font-weight:700;text-decoration:underline}
/* 9 drawer */
.evt-more-days{background:none;border:0;color:var(--accent-blue,#2f6f4f);text-decoration:underline;font-size:.85rem;padding:6px 0;cursor:pointer;text-align:left}
/* 11 update bar */
#orbitUpdateBar{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:200;display:flex;gap:12px;align-items:center;background:#10151f;color:#fff;padding:12px 16px;border-radius:14px;box-shadow:0 8px 28px #0006;max-width:calc(100vw - 24px)}
#orbitUpdateBar button{background:#d8fa3c;color:#10151f;border:0;border-radius:8px;padding:8px 12px;font-weight:700;cursor:pointer}
#orbitUpdateBar button.later{background:none;color:#cbd5e1;font-weight:500}
@media(max-width:800px){#orbitUpdateBar{bottom:100px}}
/* 13 streak chip */
.habit-check-card{grid-template-areas:"n s" "a k"!important}
.hc-streak{grid-area:k;justify-self:end;display:inline-flex;align-items:center;gap:4px;font-size:.75rem;font-weight:700;color:#c2410c}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .hc-streak{color:#fdba74}
.hc-streak b{font-weight:700}
/* 3 habits on phones: one column, names never break per letter */
.habit-check-card .hc-name{min-width:0;overflow-wrap:break-word;word-break:normal;hyphens:auto}
@media(max-width:560px){body.blue-on #mobileHabits,.alive-on #mobileHabits{grid-template-columns:1fr!important}.habit-check-card{grid-template-columns:minmax(0,1fr) auto!important}}
/* 4 mobile Today keeps schedule + habits */
@media(max-width:800px){
 body.orbit-on .tempo-agenda,body.orbit-on .tempo-habit{display:block!important;grid-column:1/-1}
 body.orbit-on .tempo-agenda h2{font-size:18px;margin:6px 0 10px}
 body.orbit-on .tempo-agenda .tempo-slot{width:100%}
 body.orbit-on .tempo-habit{text-align:left}
 body.orbit-on .tempo-habit .th-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
}
body.orbit-on .tempo-slot{max-width:100%}
body.orbit-on .tempo-slot>span{min-width:0;flex:1 1 auto}
body.orbit-on .tempo-slot b{overflow-wrap:anywhere;white-space:normal}
#ambientSoundBtn,.focus-music-btn{max-width:100%}
#ambientSoundBtn:has(+#orbitMusicOpen){margin:0}
:has(>#orbitMusicOpen){flex-wrap:wrap!important;max-width:100%}
.focus-music-btn{margin-left:0}
#musicModal .modal-content,#musicModal>div{max-width:calc(100vw - 20px);box-sizing:border-box}
@media(max-width:560px){#musicModal .modal-content,#musicModal>div{width:calc(100vw - 20px)!important}}
#pomoTaskSelect,#pomoDurationSelect,#ambientSoundType{max-width:100%;min-width:0}
#pomoCard{min-width:0;max-width:100%}
#pomoCard .pomo-wrap,#pomoCard .pomo-sec,#pomoCard .pomo-main{min-width:0;max-width:100%;box-sizing:border-box}
#pomoTaskSelect{width:100%;text-overflow:ellipsis}
/* dark: habit states and focus card */
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .habit-check-card{background:#192230!important;color:#f2f5fb!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .habit-check-card .hc-name,body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .habit-check-card .hc-act{color:#f2f5fb!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .habit-check-card[data-state="done"]{background:#14382a!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .habit-check-card[data-state="missed"]{background:#40222a!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .habit-check-card[data-state="skipped"]{background:#3d3418!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard{background:#1e2a3e!important;color:#e8eefc!important;border:1px solid #33425d!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard :is(#pomoDisplay,h3,small,p,span,label,.dots-key){color:#e8eefc!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard #pomoDisplay{color:#d8fa3c!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard :is(select,.focus-music-btn,#ambientSoundBtn){background:#101a2b!important;color:#e8eefc!important;border:1px solid #3b4a68!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard .o-round{background:#101a2b!important;color:#e8eefc!important;border:1px solid #5b6c8c!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) .hm-legend .g{color:#10151f!important}
@media(max-width:800px){body.orbit-on .tempo-agenda{width:100%}body.orbit-on .tempo-agenda .tempo-slot{display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:12px;width:100%!important;max-width:none!important;text-align:left}body.orbit-on .tempo-agenda .tempo-slot>span{width:auto!important;max-width:none!important}}
@media(max-width:800px){html body.orbit-on aside.tempo-right>.tempo-agenda,html body.orbit-on aside.tempo-right>.tempo-habit{grid-column:1/-1!important;width:100%!important;max-width:none!important;justify-self:stretch!important;box-sizing:border-box}}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard :is(.focus-tabs,.pomo-mode){background:#101a2b!important;border:1px solid #3b4a68!important;color:#e8eefc!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard .focus-tabs button{background:transparent!important;color:#e8eefc!important;border-color:transparent!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard .focus-tabs button.on{background:#d8fa3c!important;color:#101a2b!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard :is(#orbitDots,#orbitDots i){color:#d8fa3c!important;border-color:#d8fa3c!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard :is(.pomo-sec button,.o-round){color:#e8eefc!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard #orbitDots i{border-color:#d8fa3c!important;background:transparent!important}
body.blue-on:is(.theme-orbitdark,:not([class*="theme-"])) #pomoCard #orbitDots i.done{background:#d8fa3c!important}

/* Completion toast with actions */
#orbitToast.on{pointer-events:auto}
#orbitToast .toast-action{margin-left:12px;min-height:36px;padding:6px 12px;border:1px solid rgba(255,255,255,.35);border-radius:8px;background:transparent;color:#d8fa3c;font:inherit;font-weight:700;cursor:pointer}
#orbitToast .toast-action:hover{background:rgba(255,255,255,.12)}
#orbitToast .toast-action:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:600px){#orbitToast{width:calc(100vw - 24px);display:flex;flex-wrap:wrap;gap:6px;align-items:center;bottom:84px}#orbitToast .toast-action{margin-left:0}}
