:root{color-scheme:dark;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#0b1019;color:#edf4f7;font-size:16px;--muted:#96a6b8;--line:#263342;--mint:#91eed5}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--mint);outline-offset:4px}button{color:inherit}.app{max-width:720px;margin:auto;min-height:100dvh;padding:env(safe-area-inset-top) 24px calc(100px + env(safe-area-inset-bottom))}header{height:88px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#fff;font-weight:650;font-size:25px;letter-spacing:-1px}.brand-dot{width:11px;height:11px;border-radius:50%;background:var(--mint);box-shadow:0 0 22px #91eed570}.personal{font-size:9px;color:var(--muted);letter-spacing:2px;margin:5px 0 0 4px}.icon-button{border:0;background:transparent;min-width:44px;min-height:44px;font-size:24px;color:var(--muted)}h1{font-size:clamp(30px,8vw,44px);font-weight:500;letter-spacing:-1.8px;margin:10px 0 12px}p{color:var(--muted);line-height:1.55;font-size:14px}.eyebrow{font-size:10px;letter-spacing:2.5px;color:#a7c9c2;margin:24px 0 12px}.intro{text-align:center;margin-top:22px}.intro p:last-child{font-size:15px}.voice-area{display:flex;flex-direction:column;align-items:center;margin:35px 0 22px}.orb{position:relative;width:130px;height:130px;border:1px solid #a9f8e180;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#c2ffe4 0,#50ac9c 22%,#2a6267 48%,#1b344c 73%,#101e30 100%);box-shadow:0 0 0 12px #4fc8a908,0 0 0 26px #4fc8a904,0 15px 60px #50c8ac20}.orb svg{width:35px;fill:none;stroke:#e2fff4;stroke-width:1.8;stroke-linecap:round}.orb.listening{animation:breathe 1.4s infinite}.orb.busy{filter:saturate(.4)}@keyframes breathe{50%{box-shadow:0 0 0 18px #4fc8a912,0 0 0 34px #4fc8a906,0 15px 60px #50c8ac30}}#voice-status{font-size:12px;margin-top:27px}.quick-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:20px 0 30px}.quick-actions button,.secondary{border:1px solid var(--line);border-radius:999px;background:#141d29;padding:10px 14px;font-size:12px}.conversation{display:flex;flex-direction:column;gap:18px;margin:20px 0}.message{max-width:94%;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#1b2937;padding:12px 17px;border-radius:18px 18px 4px 18px;color:#cfdae4}.message.assistant{padding:0 5px 0 0}.speaker{display:block;font-size:10px;letter-spacing:2px;color:var(--mint);margin-bottom:8px}.result-card{border:1px solid var(--line);border-radius:14px;background:#121e2a;padding:15px;margin:10px 0}.result-card a{display:inline-block;color:var(--mint);margin:6px 12px 3px 0;font-size:13px}.result-card h3{font-size:14px;margin:0 0 8px}.composer{display:flex;align-items:center;gap:6px;border:1px solid #354455;background:#141d29;border-radius:20px;padding:7px 9px;margin-top:24px;position:sticky;bottom:92px;box-shadow:0 8px 30px #080d16a0}.composer textarea{resize:none;max-height:120px;min-height:40px;flex:1;width:100%;padding:10px 0;border:0;background:none;color:#eaf3f9;outline:none;font-size:15px}.composer textarea::placeholder{color:#8192a6}.send-button{border:0;width:39px;height:39px;border-radius:13px;background:var(--mint);color:#10322d;font-size:25px}.local-note{text-align:center;font-size:10px;color:#75889b}.photo-list{display:flex;gap:9px}.photo-chip{font-size:12px;border:1px solid var(--line);padding:6px;border-radius:9px;background:#1b2937}.item-list{display:grid;gap:12px;margin:25px 0}.item{border-bottom:1px solid var(--line);padding:15px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.item p{margin:0;color:#dfebf2;overflow-wrap:anywhere}.item small{display:block;margin-top:5px;color:var(--muted)}.item button{border:1px solid var(--line);background:transparent;border-radius:10px;min-height:40px;padding:8px 12px;font-size:12px}.settings-form{display:flex;flex-direction:column;gap:15px;margin-top:30px}.settings-form input[type=password]{padding:14px;background:#141d29;border:1px solid #354455;border-radius:12px;color:white;width:100%}.settings-form label{font-size:14px}.settings-form p{margin:0}.check{display:flex;align-items:center;gap:12px}.primary{padding:14px;border:0;background:var(--mint);border-radius:12px;color:#123830;font-weight:650}.danger{display:block;margin-top:20px;padding:12px 0;background:transparent;border:0;color:#f3aca7;font-size:13px}nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);display:flex;justify-content:space-around;width:100%;max-width:720px;padding:12px 15px calc(14px + env(safe-area-inset-bottom));background:#0b1019f5;border-top:1px solid #24313e;z-index:5;backdrop-filter:blur(15px)}nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:6px;color:#8192a6;font-size:10px;min-width:70px;min-height:44px}nav button span{font-size:22px;line-height:1}nav [aria-current=page]{color:var(--mint)}.notice{position:fixed;bottom:100px;left:24px;right:24px;max-width:650px;margin:auto;padding:14px 18px;border:1px solid #47776b;border-radius:14px;background:#18352f;box-shadow:0 8px 30px #0008;z-index:10;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}@media(min-width:700px){.app{padding-left:45px;padding-right:45px}.intro{margin-top:45px}.voice-area{margin-top:45px}.orb{width:150px;height:150px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}

.result-card{overflow-wrap:anywhere}.result-card h4{font-size:15px;margin:4px 0}.card-item{border-top:1px solid var(--line);padding:14px 0}.card-item p{margin:6px 0}.result-card .action-link,.card-button{display:block;min-height:48px;padding:13px 16px;margin:12px 0 6px;border:0;border-radius:12px;background:#e47739;color:#111824;text-decoration:none;text-align:center;font-size:15px;font-weight:650;width:100%}.location-overlay{position:fixed;inset:0;background:#060b13dd;z-index:20;display:grid;place-items:center;padding:24px}.location-card{width:100%;max-width:420px;background:#142331;border:1px solid #3b5962;border-radius:20px;padding:24px;box-shadow:0 20px 80px #0008}.location-card h2{font-size:23px;line-height:1.25;margin:0}.location-card button{width:100%;margin-top:12px;min-height:48px}

/* Andy occupies a stable stage. Chat history scrolls within its own panel. */
body[data-view=talk]{overflow:hidden}.app{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:calc(82px + env(safe-area-inset-bottom))}header{height:66px;flex:none}main{flex:1;min-height:0;overflow:auto}.view{min-height:100%}#view-talk{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.mode-switch{display:flex;align-self:center;background:#14212d;border:1px solid #304451;border-radius:30px;padding:4px;gap:4px;flex:none}.mode-switch button{border:0;border-radius:24px;background:none;padding:10px 24px;min-height:44px;font-size:14px}.mode-switch [aria-pressed=true]{background:#a4f1dd;color:#143a33}.voice-area{margin:0;flex:none;position:relative;text-align:center;padding:20px 12px 12px;overflow:hidden}.voice-area .eyebrow{margin:0 0 24px}.voice-area h1{font-size:28px;letter-spacing:-1px;margin:24px 0 0}.orb{width:clamp(145px,23vh,220px);height:clamp(145px,23vh,220px);flex:none;isolation:isolate;box-shadow:0 0 60px #5cc9d543,0 0 0 18px #81e2d008,0 0 0 42px #81e2d004;background:radial-gradient(circle at 30% 25%,#e5fff0 0,#89dfdc 13%,#448fa7 37%,#334d82 65%,#10243f 100%);transition:filter .3s,transform .3s;animation:andy-idle 6s ease-in-out infinite}.orb-core{position:absolute;inset:15%;border-radius:50%;background:radial-gradient(ellipse at 45% 35%,#d7fff659,transparent 65%);box-shadow:inset 5px 2px 24px #b9f9f45c,inset -15px -8px 25px #1121448c;filter:blur(1px)}.voice-area[data-state=paused] .orb{filter:saturate(.4);animation:none}.voice-area[data-state=listening] .orb{animation:andy-listen 1.5s ease-in-out infinite;filter:saturate(1.3)}.voice-area[data-state=thinking] .orb-core{animation:andy-think 2s linear infinite;border:2px solid #b8fff4;border-right-color:transparent}.voice-area[data-state=speaking] .orb{animation:andy-speak .7s ease-in-out infinite}#voice-status{margin:10px 0 0;font-size:14px;color:#bbded9;min-height:22px}#voice-caption{font-size:16px;line-height:1.55;max-width:460px;margin:16px auto 10px;max-height:100px;overflow:auto;color:#e6f2f3;overflow-wrap:anywhere}.voice-area .secondary{margin:8px 4px;min-height:44px}.conversation{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;margin:12px 0;padding:0 4px 12px;scroll-behavior:auto}.composer{position:relative;bottom:auto;flex:none;margin:4px 0 0}.quick-actions{flex:none;margin:6px 0}.local-note{flex:none;margin:8px 0 0}.photo-list{flex:none}#view-talk[data-mode=voice] .composer,#view-talk[data-mode=voice] .message,#view-talk[data-mode=voice] .quick-actions,#view-talk[data-mode=voice] .local-note{display:none}#view-talk[data-mode=voice] .voice-area{padding-top:clamp(18px,4vh,40px)}#view-talk[data-mode=voice] .conversation:empty{display:none}#view-talk[data-mode=chat] .voice-area{display:grid;grid-template-columns:54px 1fr auto;align-items:center;column-gap:14px;text-align:left;padding:14px 4px;min-height:84px}#view-talk[data-mode=chat] .orb{grid-column:1;grid-row:1/3;width:50px;height:50px;box-shadow:0 0 25px #5cc9d533}#view-talk[data-mode=chat] .voice-area .eyebrow,#view-talk[data-mode=chat] .voice-area h1,#view-talk[data-mode=chat] #voice-caption{display:none}#view-talk[data-mode=chat] #voice-status{grid-column:2;grid-row:1/3;margin:0;font-size:12px}#view-talk[data-mode=chat] #hear-andy,#view-talk[data-mode=chat] #pause-voice{grid-column:3;font-size:11px;padding:8px}#utterance{font-size:16px}.result-card{flex:none}#conversation .message{flex:none}
@keyframes andy-idle{50%{box-shadow:0 0 75px #5cc9d54d,0 0 0 22px #81e2d008,0 0 0 46px #81e2d004}}@keyframes andy-listen{50%{box-shadow:0 0 80px #8ef4d273,0 0 0 22px #81e2d015,0 0 0 42px #81e2d008}}@keyframes andy-speak{50%{box-shadow:0 0 70px #a5b8ff77,0 0 0 20px #b6c6ff18}}@keyframes andy-think{to{transform:rotate(360deg)}}@media(max-height:700px){#view-talk[data-mode=voice] .voice-area{padding-top:12px}.voice-area .eyebrow{margin-bottom:16px}.voice-area h1{margin-top:18px}#voice-caption{font-size:14px;max-height:65px;margin-top:10px}}@media(prefers-reduced-motion:reduce){.orb,.orb-core{animation:none!important}}

.voice-controls{min-height:52px;display:flex;justify-content:center;align-items:center;gap:8px}#view-talk[data-mode=chat] .voice-controls{grid-column:3;grid-row:1/3;min-height:44px}.voice-controls .secondary{margin:0}
/* Owner's BuildingPRO palette; light is the default. The orb uses copied visual values, not a service binding. */
:root{color-scheme:light;background:#f5f6f8;color:#071a31;--muted:#5f6c7a;--line:#dce2e8;--mint:#1265d6}body{background:#f5f6f8}.brand{color:#071a31}.brand-dot{background:#1265d6;box-shadow:0 0 18px #1265d633}p{color:#5f6c7a}.eyebrow{color:#5f6c7a}.icon-button{color:#5f6c7a}.mode-switch{background:#fff;border-color:#dce2e8;border-radius:7px}.mode-switch button{border-radius:7px;padding:10px 18px}.mode-switch [aria-pressed=true]{background:#c04411;color:#fff}.voice-area h1{color:#071a31}#voice-status{color:#5f6c7a}#voice-caption{color:#071a31}.orb,.voice-area[data-state] .orb{background:transparent;border:0;box-shadow:none;animation:none;filter:none}.orb::before{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 42% 35%,#eaf8ff 0 4%,#7ac4f4 8%,#1676b8 34%,#05213e 70%);border:1px solid rgba(184,224,255,.72);box-shadow:0 0 0 12px rgba(65,151,213,.09),0 0 42px rgba(89,183,245,.72);animation:andy-entry-breathe 3.8s ease-in-out infinite;z-index:-1}.orb-core{inset:27%;width:46%;height:46%;background:none;filter:none;box-shadow:none;border:1px solid rgba(255,255,255,.44);border-radius:45% 55% 48% 52%;transform:rotate(24deg)}.voice-area[data-state=paused] .orb::before{animation:none;filter:saturate(.25)}.voice-area[data-state=listening] .orb::before{animation:andy-entry-listen 1.5s ease-in-out infinite}.voice-area[data-state=thinking] .orb-core{border-color:#fff;border-right-color:transparent}.voice-area[data-state=speaking] .orb::before{animation:andy-entry-speak .65s ease-in-out infinite}.mode-switch button:hover,.primary:hover,.send-button:hover,.card-button:hover,.result-card .action-link:hover{filter:brightness(.94)}.primary,.send-button,.card-button,.result-card .action-link{background:#c04411;color:#fff;border-radius:7px}.primary:hover,.send-button:hover{background:#a83b0d}.secondary,.quick-actions button{background:#fff;color:#1265d6;border-color:#dce2e8;border-radius:7px}.result-card,.location-card{background:#fff;border-color:#dce2e8;border-radius:11px;box-shadow:0 18px 50px rgba(7,26,49,.13)}.result-card a{color:#1265d6}.message.user,.photo-chip{background:#fff;color:#071a31;border:1px solid #dce2e8;border-radius:11px}.speaker{color:#1265d6}.composer{background:#fff;border-color:#dce2e8;border-radius:11px;box-shadow:0 5px 20px #071a3112}.composer textarea{color:#071a31}.composer textarea::placeholder{color:#5f6c7a}.settings-form input[type=password],#setup-link{background:#fff;border:1px solid #dce2e8;border-radius:7px;padding:14px;color:#071a31;width:100%;font-size:16px}.item p{color:#071a31}.item button{border-color:#dce2e8;border-radius:7px}.item small{color:#5f6c7a}.notice{background:#fff;border-color:#1265d6;color:#071a31;box-shadow:0 18px 50px rgba(7,26,49,.13)}nav{background:#ffffffef;border-color:#dce2e8}nav button{color:#5f6c7a}nav [aria-current=page]{color:#c04411}.location-overlay{background:#071a3155}.danger{color:#a83b0d}#view-talk[data-mode=voice] .composer{display:flex}#manual-access{padding:12px;background:white;border:1px solid #dce2e8;border-radius:7px}#manual-access summary{cursor:pointer;font-size:14px}#manual-access label{display:block;margin-top:14px}body[data-connected=true] #manual-access{display:none}#connected-services{margin-top:24px}#connected-services h2{font-size:18px}#connected-services button{margin:6px 8px 6px 0;min-height:44px}#setup-link-panel{margin-top:14px;padding:14px;background:#fff;border:1px solid #dce2e8;border-radius:11px}#setup-link-panel label{display:block;font-size:13px;margin-bottom:10px}input[type=checkbox]{accent-color:#c04411}@keyframes andy-entry-breathe{0%,100%{transform:scale(.96);filter:saturate(.9)}50%{transform:scale(1.04);filter:saturate(1.16)}}@keyframes andy-entry-listen{50%{transform:scale(1.06);box-shadow:0 0 0 18px rgba(65,151,213,.14),0 0 50px rgba(89,183,245,.9)}}@keyframes andy-entry-speak{50%{transform:scale(1.04);box-shadow:0 0 0 18px rgba(65,151,213,.12),0 0 48px rgba(89,183,245,.9)}}@media(prefers-reduced-motion:reduce){.orb::before{animation:none!important}}
/* Leave room to read action cards without losing Andy's presence. */
#view-talk[data-mode=voice]:has(.result-card) .voice-area{padding:14px 8px 8px}#view-talk[data-mode=voice]:has(.result-card) .voice-area .eyebrow,#view-talk[data-mode=voice]:has(.result-card) .voice-area h1{display:none}#view-talk[data-mode=voice]:has(.result-card) .orb{width:clamp(90px,15dvh,130px);height:clamp(90px,15dvh,130px)}#view-talk[data-mode=voice]:has(.result-card) #voice-caption{font-size:14px;max-height:44px;margin:10px auto}#view-talk[data-mode=voice]:has(.result-card) .voice-controls{min-height:44px}

/* Live stage (design: Andy Live Stage) */
#view-talk{position:relative}.stage{display:none}
#view-talk[data-mode=voice] .conversation{display:none}
#view-talk[data-mode=voice][data-stage=present] .stage{display:flex;flex-direction:column;gap:16px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 2px 16px;order:2}
#view-talk[data-mode=voice][data-stage=present] .voice-area{order:3;padding:6px 8px 10px;overflow:visible;position:static}
#view-talk[data-mode=voice][data-stage=present] .voice-area .eyebrow,#view-talk[data-mode=voice][data-stage=present] .voice-area h1,#view-talk[data-mode=voice][data-stage=present] #voice-status{display:none}
#view-talk[data-mode=voice][data-stage=present] .orb{position:absolute;top:0;right:2px;width:52px;height:52px;z-index:4;box-shadow:0 8px 24px #1265d633}
#view-talk[data-mode=voice][data-stage=present] .mode-switch{margin-right:64px;align-self:flex-start}
#view-talk[data-mode=voice][data-stage=present] #voice-caption{margin:4px auto 0;max-height:none;font-size:17px;font-weight:600;color:#071a31;text-align:left}
#view-talk[data-mode=voice][data-stage=present] .quick-actions{display:none}
.stage .result-card{background:#fff;border:1px solid #e6ebf3;border-radius:22px;padding:18px;box-shadow:0 12px 32px #0f1b2d14;margin:0}
.stage-in{animation:stage-fly .55s cubic-bezier(.2,.8,.2,1) both}
.stage-map.stage-in{animation-name:stage-from-orb;transform-origin:top right}
.stage-leaving{animation:stage-out .28s ease-in both}
@keyframes stage-fly{from{opacity:0;transform:translateY(46px) scale(.94)}to{opacity:1;transform:none}}
@keyframes stage-from-orb{from{opacity:0;transform:translate(90px,-140px) scale(.35) rotate(-4deg)}to{opacity:1;transform:none}}
@keyframes stage-out{to{opacity:0;transform:translateY(-30px) scale(.96)}}
.stage-map{background:#fff;border:1px solid #e6ebf3;border-radius:26px;overflow:hidden;box-shadow:0 20px 50px #0f1b2d29,0 2px 6px #0f1b2d0f;flex:none}
.stage-map-pic{position:relative;aspect-ratio:640/420;background:linear-gradient(135deg,#eef2f7,#e3eaf3)}
.stage-map-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s}.stage-map-pic img.shown{opacity:1}
.stage-eta{position:absolute;left:14px;top:14px;background:#fff;border-radius:14px;padding:8px 12px;box-shadow:0 6px 18px #0f1b2d1f;display:flex;flex-direction:column}
.stage-eta strong{font-size:22px;letter-spacing:-.5px;color:#071a31}.stage-eta span{font-size:12px;font-weight:600;color:#128a52}
.stage-actions{display:flex;gap:10px;padding:14px}
.stage-primary{flex:1;min-height:48px;display:grid;place-items:center;border-radius:14px;background:#1265d6;color:#fff;font-weight:700;text-decoration:none}
@media(prefers-reduced-motion:reduce){.stage-in,.stage-leaving{animation:none}}
#view-talk[data-mode=voice][data-stage=present] .stage{flex:0 1 auto}
#view-talk[data-mode=voice][data-stage=present] .composer{order:5;margin-top:auto}
#view-talk[data-mode=voice][data-stage=present] .photo-list,#view-talk[data-mode=voice][data-stage=present] .local-note{order:6}
#view-talk .stage{background:transparent;box-shadow:none}

/* Andy Home on the stage */
.home-devices,.home-setup,.home-command,.home-remote{background:#fff;border:1px solid #e6ebf3;border-radius:22px;padding:18px;box-shadow:0 12px 32px #0f1b2d14;flex:none}
.home-devices h3,.home-setup h3{margin:0 0 12px;font-size:20px}.home-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.home-tile{text-align:left;min-height:104px;border:1px solid #e6ebf3;border-radius:18px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:4px;color:#071a31}
.home-tile svg,.home-command svg{width:26px;height:26px;fill:none;stroke:#1265d6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.home-tile strong{font-size:15px;margin-top:auto}.home-tile small{font-size:12px;color:#5f6c7a}.home-tile.muted{opacity:.6}
.home-command{display:flex;gap:12px;align-items:center}.home-command strong{display:block;font-size:16px}.home-command small{color:#5f6c7a}.home-command[data-ok=false] strong{color:#b42318}
.home-remote{background:#0f1b2d;color:#fff;border:0}.home-remote-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.home-remote small{display:block;color:#9fb2cc;font-size:12px;letter-spacing:1px;text-transform:uppercase}.home-remote strong{font-size:22px}
.home-power{display:flex;gap:8px}.home-grid,.home-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.home-key{min-height:52px;border-radius:14px;border:0;background:#1e2c42;color:#fff;font-weight:700}.home-key.on{background:#19b36b;padding:0 16px}.home-key.off{background:#e5484d;padding:0 16px}.home-key.ok{background:#1265d6}
.home-status{margin:12px 0 0;color:#b9c6d8;font-size:14px}.home-status[data-ok=true]{color:#7ee2a8}
.home-primary{min-height:48px;border:0;border-radius:14px;background:#1265d6;color:#fff;font-weight:700;padding:0 18px}
.home-check{font-size:34px;font-weight:800;letter-spacing:6px;color:#071a31}#home-devices-settings input{width:100%;min-height:46px;border:1px solid #dce2e8;border-radius:12px;padding:0 12px;font-size:17px;margin:6px 0}
.home-slot{flex:none}

/* Grocery list on the stage */
.grocery{background:#fff;border:1px solid #e6ebf3;border-radius:22px;padding:18px;box-shadow:0 12px 32px #0f1b2d14;flex:none}
.grocery-head{display:flex;justify-content:space-between;align-items:baseline}.grocery h3{margin:0;font-size:20px}.grocery-count{font-size:13px;font-weight:700;color:#5f6c7a}
.grocery-items{list-style:none;margin:12px 0 0;padding:0}.grocery-items li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #eef2f7;transition:opacity .35s,transform .35s}
.grocery-items li.new{animation:grocery-in .5s cubic-bezier(.2,.8,.2,1) both}.grocery-items li.new .grocery-name{color:#1265d6}
.grocery-items li.done{opacity:0;transform:translateX(40px)}.grocery-items small{margin-left:auto;color:#5f6c7a;font-size:13px}
.grocery-check{width:28px;height:28px;min-width:28px;border-radius:50%;border:2px solid #b8c4d4;background:#fff;padding:0}.grocery-items li.done .grocery-check{background:#19b36b;border-color:#19b36b}
.grocery-name{font-size:16px;font-weight:600}.grocery-empty{color:#5f6c7a;margin:10px 0 0}
.grocery-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.grocery-btn{min-height:46px;padding:0 16px;border-radius:14px;border:1px solid #dce2e8;background:#fff;font-weight:700;color:#071a31}.grocery-btn.primary{background:#1265d6;border:0;color:#fff}
@keyframes grocery-in{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}

/* Timers */
.timer{background:#fff;border:1px solid #e6ebf3;border-radius:22px;padding:22px;box-shadow:0 12px 32px #0f1b2d14;flex:none;display:flex;flex-direction:column;align-items:center;gap:8px}
.timer-ring{--p:0;width:170px;height:170px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#1265d6 calc(var(--p)*360deg),#e8eef7 0)}
.timer-ring::before{content:'';position:absolute;width:146px;height:146px;border-radius:50%;background:#fff}.timer-ring{position:relative}.timer-time{position:relative;font-size:40px;font-weight:800;letter-spacing:-1px;color:#071a31;font-variant-numeric:tabular-nums}
.timer-label{margin:4px 0 0;font-size:17px;font-weight:700;color:#071a31}.timer-actions{display:flex;gap:8px}
.timer-btn{min-height:48px;padding:0 22px;border-radius:14px;border:1px solid #dce2e8;background:#fff;font-weight:700;color:#071a31}.timer-btn.primary{background:#e5484d;border:0;color:#fff;font-size:18px}
.timer.ringing{animation:timer-pulse 1s ease-in-out infinite}.timer.ringing .timer-ring{background:#e5484d}
@keyframes timer-pulse{50%{box-shadow:0 0 0 14px #e5484d33}}
@media(prefers-reduced-motion:reduce){.timer.ringing{animation:none}}
#alarm-settings select{width:100%;min-height:46px;border:1px solid #dce2e8;border-radius:12px;padding:0 10px;font-size:16px;margin:6px 0;background:#fff}

.timer-dock{position:fixed;right:14px;bottom:calc(150px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;z-index:6;align-items:flex-end}
.timer-chip{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 10px;border-radius:22px;border:1px solid #dce2e8;background:#fff;box-shadow:0 8px 24px #0f1b2d24;font-weight:800;color:#071a31;font-variant-numeric:tabular-nums;animation:stage-fly .4s cubic-bezier(.2,.8,.2,1) both}
.timer-chip svg{width:22px;height:22px;fill:none;stroke:#1265d6;stroke-width:2;stroke-linecap:round}
.timer-chip.ringing{background:#e5484d;color:#fff;border-color:#e5484d;animation:timer-pulse 1s ease-in-out infinite}.timer-chip.ringing svg{stroke:#fff}

/* Fit hub */
.fit,.run{background:#fff;border:1px solid #e6ebf3;border-radius:22px;padding:18px;box-shadow:0 12px 32px #0f1b2d14;flex:none}
.fit-top{display:flex;gap:16px;align-items:center}.fit-ring{--p:0;position:relative;width:120px;height:120px;min-width:120px;border-radius:50%;background:conic-gradient(#19b36b calc(var(--p)*360deg),#e8eef7 0);display:grid;place-items:center}
.fit-ring-mid{width:96px;height:96px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.fit-ring-mid strong{font-size:28px;letter-spacing:-1px;color:#071a31}.fit-ring-mid small{color:#5f6c7a;font-size:12px}
.fit-side{flex:1;min-width:0}.fit-left{margin:0 0 8px;font-weight:800;font-size:16px;color:#071a31}
.fit-macro,.fit-water{display:grid;grid-template-columns:1fr auto;gap:2px 8px;margin:6px 0;font-size:13px;color:#3b4a60}.fit-macro b,.fit-water b{color:#071a31}
.fit-macro i,.fit-water i{grid-column:1/3;height:6px;border-radius:3px;background:linear-gradient(90deg,#1265d6 calc(var(--w)*100%),#e8eef7 0)}.fit-water{margin-top:14px}.fit-water i{background:linear-gradient(90deg,#2bb3e6 calc(var(--w)*100%),#e8eef7 0)}
.fit-foods{list-style:none;margin:12px 0 0;padding:0}.fit-foods li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #eef2f7;font-size:14px}.fit-foods li.new{animation:grocery-in .5s cubic-bezier(.2,.8,.2,1) both;color:#1265d6;font-weight:600}
.fit-week{display:flex;gap:6px;align-items:flex-end;height:64px;margin-top:14px}.fit-day{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;height:100%;justify-content:flex-end}.fit-day i{width:100%;border-radius:6px;background:#c9d8f2;height:calc(var(--h)*48px);min-height:3px}.fit-day:last-child i{background:#1265d6}.fit-day small{font-size:11px;color:#5f6c7a}
.fit-run{margin:10px 0 0;font-weight:700;color:#071a31}
.run{text-align:center}.run-kind{margin:0;font-size:13px;font-weight:800;letter-spacing:1px;color:#5f6c7a;text-transform:uppercase}.run-time{display:block;font-size:56px;letter-spacing:-2px;color:#071a31;font-variant-numeric:tabular-nums}
.run-dist{margin:0;font-size:24px;font-weight:800;color:#1265d6}.run-pace{margin:2px 0;color:#3b4a60;font-weight:700;min-height:20px}.run-status{margin:2px 0 10px;color:#5f6c7a;font-size:13px}
.run-actions{display:flex;gap:10px;justify-content:center}.run-btn{min-height:64px;min-width:130px;border-radius:18px;border:0;background:#1265d6;color:#fff;font-size:20px;font-weight:800}.run-btn.stop{background:#e5484d}
.run-laps{list-style:none;padding:0;margin:12px 0 0;text-align:left}.run-laps li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #eef2f7}.run-laps li.new{animation:grocery-in .5s cubic-bezier(.2,.8,.2,1) both}
.run-map{width:100%;border-radius:16px;margin-top:12px}

/* Settings → AI usage */
.usage-card{background:#fff;border:1px solid #e6ebf3;border-radius:22px;padding:18px;box-shadow:0 12px 32px #0f1b2d14;margin:8px 0 14px}
.usage-eyebrow{margin:0;font-size:11px;font-weight:800;letter-spacing:1.2px;color:#5f6c7a}.usage-title{margin:4px 0 0;font-weight:800;color:#071a31}
.usage-big{margin:2px 0 10px}.usage-big strong{font-size:40px;letter-spacing:-1.5px;color:#071a31}.usage-big span{color:#5f6c7a;font-weight:700}
.usage-bar{height:10px;border-radius:5px;background:#e8eef7;overflow:hidden}.usage-bar i{display:block;height:100%;background:#19b36b;border-radius:5px;transition:width .6s}
.usage-card[data-level=warn] .usage-bar i{background:#f29a2e}.usage-card[data-level=high] .usage-bar i{background:#e5484d}
.usage-cells{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.usage-cells div{background:#f5f8fc;border-radius:12px;padding:8px 10px}.usage-cells small{display:block;color:#5f6c7a;font-size:11px}.usage-cells b{color:#071a31;font-size:14px}
.usage-alert{margin:10px 0 0;color:#b42318;font-weight:700;font-size:14px}.usage-note{margin:10px 0 0;color:#5f6c7a;font-size:12px}.usage-sub{margin:14px 0 4px;font-weight:700;font-size:13px;color:#3b4a60}
.usage-week{display:flex;gap:6px;align-items:flex-end;height:62px}.usage-week div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;height:100%}.usage-week i{width:100%;border-radius:5px;background:#c9d8f2}.usage-week div:last-child i{background:#1265d6}.usage-week small{font-size:11px;color:#5f6c7a}
.usage-modes{border:0;padding:0;margin:0 0 12px}.usage-modes legend{font-weight:800;margin-bottom:6px}.usage-mode{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #e6ebf3;border-radius:14px;margin:6px 0;background:#fff}.usage-mode input{margin-top:4px}.usage-mode b{display:block;color:#071a31}.usage-mode small{color:#5f6c7a;font-size:13px}
.usage-limit{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 12px;font-weight:700}.usage-limit input{width:110px}
.usage-where{border:1px solid #e6ebf3;border-radius:14px;padding:10px 12px;margin:8px 0;background:#fff}.usage-where summary{font-weight:700}.usage-row{display:flex;justify-content:space-between;gap:10px;margin:8px 0;font-size:13px}.usage-row.failed span{color:#b42318}

/* Welcome, sign-in and onboarding */
body[data-view=welcome] header,body[data-view=welcome] nav{display:none}
.welcome{min-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:center}
.welcome-step{width:100%;max-width:420px;margin:0 auto;padding:24px 22px;text-align:center;display:flex;flex-direction:column;align-items:center}
.welcome-step.step-in{animation:welcome-in .5s cubic-bezier(.2,.85,.25,1) both}
@keyframes welcome-in{from{opacity:0;transform:translateY(28px) scale(.98)}to{opacity:1;transform:none}}
.welcome-orb{width:120px;height:120px;border-radius:50%;margin:8px auto 28px;background:radial-gradient(circle at 32% 26%,#fff 0,#bfe3ff 14%,#6aa8ff 38%,#2f6bff 64%,#1b3fa8 100%);box-shadow:0 0 0 18px rgba(47,107,255,.08),0 0 0 40px rgba(47,107,255,.04),0 20px 50px rgba(47,107,255,.3);animation:welcome-breathe 3s ease-in-out infinite}
.welcome-orb.small{width:76px;height:76px;margin-bottom:22px}
@keyframes welcome-breathe{50%{transform:scale(1.05)}}
.welcome h1{font-size:34px;letter-spacing:-1px;line-height:1.1;margin:0 0 12px;color:#071a31;text-wrap:balance}
.welcome-lede{font-size:17px;line-height:1.5;color:#4b5a70;margin:0 0 26px;max-width:34ch}
.welcome-cta{width:100%;min-height:56px;border-radius:18px;font-size:17px;font-weight:800;margin-top:10px;display:flex;align-items:center;justify-content:center;gap:10px}
.g-mark{width:26px;height:26px;border-radius:50%;background:#fff;color:#1265d6;font-weight:900;display:grid;place-items:center;font-size:15px}
.welcome-fine{font-size:13px;color:#5f6c7a;margin:12px 0 0;max-width:32ch}
.welcome-status{min-height:20px;font-size:14px;color:#b42318;margin:10px 0 0}
.welcome-links{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;margin-top:18px;font-size:15px;font-weight:700}
.welcome-links a,.link-button{color:#1265d6;text-decoration:none;background:none;border:0;padding:8px 4px;font:inherit;font-weight:700;cursor:pointer}
.welcome-legal{margin-top:26px;font-size:12px;color:#5f6c7a}.welcome-legal a{color:#5f6c7a}
.welcome-count{font-size:12px;font-weight:800;letter-spacing:1.4px;color:#5f6c7a;margin:0 0 10px;text-transform:uppercase}
.welcome-step input{width:100%;min-height:56px;border-radius:16px;border:1px solid #d6deea;padding:0 18px;font-size:18px;margin:8px 0 6px;text-align:center}
.ob-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:10px}
.ob-chip{min-height:46px;padding:0 16px;border-radius:23px;border:1px solid #d6deea;background:#fff;font:inherit;font-size:15px;font-weight:700;color:#071a31;cursor:pointer}
.ob-chip[aria-pressed=true]{background:#1265d6;border-color:#1265d6;color:#fff}
.ob-skip{margin-top:8px}
@media (prefers-reduced-motion:reduce){.welcome-step.step-in,.welcome-orb{animation:none}}
.welcome .primary{background:#1265d6;border:0;color:#fff}.welcome .secondary{background:#fff;border:1px solid #d6deea;color:#071a31}
.ob-list{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:8px;width:100%}.ob-list li{background:#fff;border:1px solid #e6ebf3;border-radius:14px;padding:12px 16px;font-weight:700;color:#071a31;text-align:left}
.ob-actions{width:100%;display:grid;gap:0}.ob-pin{display:flex;align-items:center;gap:10px;margin:16px 0 4px;font-weight:700;color:#071a31}.ob-pin input{width:22px;height:22px;min-height:0;margin:0}
.welcome input[type=checkbox]{accent-color:#1265d6}
