:root{
  --calm-1:#2F7F66; --calm-2:#3E9B7C;
  --amber-1:#D4802A; --amber-2:#E7A24A;
  --cream:#FFF9F0;
  --round:'Nunito', ui-rounded, 'SF Pro Rounded', 'Quicksand', system-ui, sans-serif;
  --ink:#14261F; --slate:#21453B;
  --paper:#F2F5F2; --card:#FFFFFF; --line:#E0E8E3;
  --txt:#1B2A24; --txt-2:#64786D; --txt-3:#6F8478;
  --ok:#3C8A68; --ok-bg:#E7F1EC;
  --pend:#C9852F; --pend-bg:#FAF0DF;
  --miss:#BC463C; --miss-bg:#FAE9E7;
  --grot:'Inter', system-ui, -apple-system, sans-serif;
  /* ---- Ledge tokens (button depth system) ----
     Every actionable button in the app sits on a 3px "ledge" — a
     visibly darker shade rendered as box-shadow: 0 var(--btn-lift) 0 0 <shade>.
     On press, the button translates down var(--btn-lift) and the shadow
     collapses, so it visually settles onto the surface. Because the
     shadow doesn't participate in layout, hitboxes and neighbouring
     elements stay pixel-exact even during the press.

     Depth history:
       2026-09-30 first cut · lift 2px, soft shades — too subtle to
       notice against the pale --ok-bg / --miss-bg / white backgrounds
       the app leans on ("still exactly the same"). Bumped lift to 3px
       and pushed every soft shade ~2 tones darker so the depth reads
       without hunting for it. Slate + red primaries were already fine
       and only picked up the +1px lift.

     One shade per palette; components pick the right one. Kept as CSS
     variables so a designer can retune depth (bigger lift on tablet,
     smaller on desktop) without hunting through call sites. */
  --btn-lift: 3px;
  --btn-ease: transform .08s ease, box-shadow .08s ease;
  --ledge-slate: #0E241D;
  --ledge-ok:    #235238;
  --ledge-ok-soft: #9CBFAB;
  --ledge-miss:  #6E2B21;
  --ledge-miss-soft: #E0A69A;
  --ledge-neutral: #A9BAB0;
  --ledge-warm:  #B7883D;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;padding:0;}
body{background:#0E1418;font-family:var(--grot);overflow:hidden;}
button{font:inherit;color:inherit;border:none;background:none;cursor:pointer;touch-action:manipulation;}
input{font:inherit;}
:focus-visible{outline:3px solid #7FD3B0;outline-offset:2px;}
/* Note: we intentionally do NOT put a universal
   `* { animation:none!important; transition:none!important }` here for
   prefers-reduced-motion. That rule beat every other rule in the file and
   made animations impossible to opt back in from more specific selectors,
   which caused endless bugs (drifting blobs, the account-view circle, the
   intro overlay). Individual motion-sensitive animations opt out of
   reduced-motion below on their own terms. */

#chrome{position:fixed;top:0;left:0;right:0;height:44px;background:#0E1418;
  display:flex;align-items:center;gap:8px;padding:0 10px;z-index:100;border-bottom:1px solid #212C33;}
#chrome .seg{display:flex;background:#1B2A24;border-radius:9px;padding:2px;}
#chrome .seg button{font-size:11.5px;font-weight:600;color:#8C9BA4;padding:6px 11px;border-radius:7px;}
#chrome .seg button.on{background:#2E5A4D;color:#fff;}
#chrome .spacer{flex:1;}
#chrome select{background:#1B2A24;color:#C9D4DA;border:1px solid #2B3945;border-radius:8px;
  font-size:11.5px;padding:6px 8px;font-family:var(--grot);}
/* Real, signed-in circle (body.real-circle): the prototype's role picker,
   preview flows, Reset and demo link are hidden; only the device switch
   stays. !important beats the inline display that setView() sets. */
body.real-circle #rolePick,body.real-circle #flowPick,
body.real-circle #chrome .rst,body.real-circle #chrome .demolink{display:none !important;}
#chrome .rst{font-size:11.5px;color:#7E8D96;padding:6px 8px;border-radius:7px;background:#1B2A24;}
#stage{position:fixed;top:44px;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;}
.shell{position:relative;overflow:hidden;background:#000;flex:none;}
/* The tablet and the phone share the same frame — the persona uses the
   same device shape as the helpers, and the same-sized surface makes the
   two views comparable side-by-side in the preview. */
.shell.tablet,
.shell.phone{width:min(100%,430px);height:calc(100vh - 44px);height:calc(100dvh - 44px);}
@media(min-width:900px){
  .shell.tablet,
  .shell.phone{height:min(calc(100vh - 64px),780px);border-radius:34px;box-shadow:0 30px 80px rgba(0,0,0,.5);}
}
/* The elder's own screen on a real tablet uses the tablet, not a phone-wide
   strip in the middle of it (audit 2, F9). The helpers' view stays
   phone-shaped. */
@media(min-width:700px){
  .shell.tablet{width:min(calc(100% - 32px),820px);}
}
@media(min-width:900px){
  .shell.tablet{height:min(calc(100vh - 64px),900px);}
}
.netstripe{display:flex;align-items:center;gap:8px;padding:7px 12px;background:#8E2E29;color:#FFF4F0;
  font-size:11px;font-weight:700;letter-spacing:.1px;line-height:1.25;position:relative;z-index:21;}
.netstripe svg{flex:none;opacity:.98;}
/* Boot gate. Painted from the first synchronous render() on a bridge-linked
   tablet while we're still figuring out who is signed in and pulling their
   real data. Deliberately view-neutral (no assisted/assisting colour, no
   seeded names) so the refresh doesn't flash Eleanor's tablet before
   settling on the real signed-in person. */
.bootgate{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  z-index:20;
  background:radial-gradient(120% 110% at 50% 14%,#23463A 0%,#12211C 56%,#0A1411 100%);
  color:#E4F0EA;font-family:var(--grot);}
.bootgate-inner{display:flex;flex-direction:column;align-items:center;gap:18px;
  animation:bootgate-fade .5s ease-out .3s both;}
.bootgate-spin{width:54px;height:54px;border-radius:50%;
  border:4px solid rgba(228,240,234,.18);border-top-color:#FFF9F0;border-right-color:#9FD1B8;
  box-shadow:0 0 0 1px rgba(255,249,240,.06), 0 0 24px rgba(31,95,74,.18);
.moneyempty{font-family:var(--grot);font-size:13.5px;font-weight:600;line-height:1.2;color:var(--txt);
  text-align:center;}
  animation:bootgate-spin .9s linear infinite;}
.bootgate-word{font-size:13.5px;font-weight:700;letter-spacing:.2px;opacity:.88;}
.bootgate-sub{max-width:260px;font-size:12.5px;line-height:1.55;text-align:center;opacity:.74;margin-top:-8px;}
@keyframes bootgate-spin{to{transform:rotate(360deg);}}
@keyframes bootgate-fade{from{opacity:0;}to{opacity:1;}}

/* ============ ASSISTED ============ */
#assisted{position:absolute;inset:0;font-family:var(--round);color:var(--cream);
  transition:background 900ms cubic-bezier(.4,0,.2,1);
  background:radial-gradient(120% 90% at 50% 8%,var(--calm-2) 0%,var(--calm-1) 68%);
  display:flex;flex-direction:column;padding:clamp(20px,4vw,40px);}
#assisted.amber{background:radial-gradient(120% 90% at 50% 8%,var(--amber-2) 0%,var(--amber-1) 68%);}
/* ---- her background, her choice ----
   Set on the tablet itself in Settings. The amber alert state above still wins
   over any of these, because a dose that needs doing must never be a matter of
   which colour she happened to like. */
#assisted.th-sage{background:radial-gradient(120% 90% at 50% 8%,#3E9B7C 0%,#2F7F66 68%);}
#assisted.th-teal{background:radial-gradient(120% 90% at 50% 8%,#3D8C9B 0%,#2B6472 68%);}
#assisted.th-dusk{background:radial-gradient(120% 90% at 50% 8%,#5B6FA8 0%,#3B4A78 68%);}
#assisted.th-indigo{background:radial-gradient(120% 90% at 50% 8%,#6355A6 0%,#453A7A 68%);}
#assisted.th-plum{background:radial-gradient(120% 90% at 50% 8%,#8A5F94 0%,#5F3F6B 68%);}
#assisted.th-rose{background:radial-gradient(120% 90% at 50% 8%,#A85B78 0%,#7A3E56 68%);}
#assisted.th-clay{background:radial-gradient(120% 90% at 50% 8%,#C0714F 0%,#8E4F36 68%);}
#assisted.th-moss{background:radial-gradient(120% 90% at 50% 8%,#6E8B4A 0%,#4E6634 68%);}
#assisted.th-slate{background:radial-gradient(120% 90% at 50% 8%,#5C7480 0%,#3A4C56 68%);}
#assisted.th-night{background:radial-gradient(120% 90% at 50% 8%,#2F3A44 0%,#1B242B 68%);}
/* larger type, if she wants it */
/* ---- larger writing ----
   One multiplier, applied to every text size on her tablet. This replaced a
   list of five hand-written overrides that covered five rules out of sixty-odd
   — so most of her screens ignored the toggle entirely, and one of the five
   (.upnext) pointed at markup that no longer exists. Anything added later
   scales automatically, because the sizes themselves carry the multiplier. */
#assisted{--ts:1;}
#assisted.bigtext{--ts:1.22;}
/* ---- drifting bubbles ----
   Each blob follows its own long, many-waypoint path. The durations are
   deliberately awkward numbers (137s, 191s, 223s, 269s) so the four cycles
   almost never line up — the drift reads as wandering rather than as a loop,
   without any JS running behind her screen all day.
   Paths are in % of the blob's own size, so they scale with the viewport. */
.blob{position:absolute;border-radius:50%;background:#fff;opacity:.07;pointer-events:none;
  will-change:transform;}
.b1{width:340px;height:340px;top:-130px;right:-90px;
  animation:drift1 137s ease-in-out infinite;}
.b2{width:220px;height:220px;bottom:-70px;left:-60px;opacity:.05;
  animation:drift2 191s ease-in-out infinite;}
/* the two little ones — slower still, and fainter, so they read as depth
   rather than as things to look at */
.b3{width:120px;height:120px;top:28%;left:12%;opacity:.045;
  animation:drift3 223s ease-in-out infinite;}
.b4{width:88px;height:88px;bottom:22%;right:16%;opacity:.04;
  animation:drift4 269s ease-in-out infinite;}
@keyframes drift1{
  0%{transform:translate(0,0) scale(1)}
  18%{transform:translate(-9%,7%) scale(1.06)}
  37%{transform:translate(6%,14%) scale(.97)}
  55%{transform:translate(13%,3%) scale(1.04)}
  72%{transform:translate(2%,-8%) scale(1)}
  88%{transform:translate(-7%,-4%) scale(1.03)}
  100%{transform:translate(0,0) scale(1)}}
@keyframes drift2{
  0%{transform:translate(0,0) scale(1)}
  22%{transform:translate(12%,-9%) scale(1.05)}
  41%{transform:translate(3%,-17%) scale(.96)}
  60%{transform:translate(-10%,-6%) scale(1.07)}
  79%{transform:translate(-5%,8%) scale(1.01)}
  100%{transform:translate(0,0) scale(1)}}
@keyframes drift3{
  0%{transform:translate(0,0) scale(1)}
  16%{transform:translate(22%,13%) scale(1.1)}
  33%{transform:translate(38%,-9%) scale(.93)}
  52%{transform:translate(14%,-24%) scale(1.06)}
  69%{transform:translate(-17%,-11%) scale(1)}
  86%{transform:translate(-9%,12%) scale(1.08)}
  100%{transform:translate(0,0) scale(1)}}
@keyframes drift4{
  0%{transform:translate(0,0) scale(1)}
  19%{transform:translate(-26%,-14%) scale(1.09)}
  36%{transform:translate(-11%,-31%) scale(.95)}
  54%{transform:translate(19%,-18%) scale(1.12)}
  71%{transform:translate(28%,6%) scale(1.02)}
  89%{transform:translate(8%,17%) scale(1.06)}
  100%{transform:translate(0,0) scale(1)}}
/* The drifting blobs are decorative depth. They breathe very slowly
   (~2-4 minutes per cycle) and never signal anything urgent, so they run
   universally. There is no reduced-motion suppression here — the rules that
   used to fight this rule at the top of the file have been removed. */
.a-screen{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;min-height:0;}
/* If her screen is taller than the tablet (larger writing, a busy day) it
   scrolls rather than losing its top or bottom. */
#assisted > .a-screen{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
#assisted > .a-screen::-webkit-scrollbar{display:none;}
.a-hello{font-size:calc(clamp(28px,5vw,44px) * var(--ts));font-weight:800;letter-spacing:-.5px;line-height:1.1;padding-right:56px;}
.homehello{font-size:0;line-height:1.02;padding-right:56px;max-width:calc(100% - 56px);}
.homehello .hello-greet,.homehello .hello-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:clip;}
.homehello .hello-greet{font-size:calc(clamp(20px,3.8vw,30px) * var(--ts));font-weight:800;letter-spacing:-.4px;}
.homehello .hello-name{font-size:calc(clamp(24px,4.4vw,36px) * var(--ts));font-weight:800;letter-spacing:-.5px;}
.a-sub{font-size:calc(clamp(16px,2.5vw,21px) * var(--ts));font-weight:600;opacity:.82;margin-top:8px;}
.frames{display:flex;gap:14px;margin-top:clamp(16px,3vw,28px);}
.frame{flex:1;border-radius:26px;overflow:hidden;position:relative;height:clamp(110px,18vh,170px);
  box-shadow:0 10px 26px rgba(0,0,0,.16);}
.frame .cap{position:absolute;left:10px;right:10px;bottom:10px;padding:10px 13px;font-size:calc(14px * var(--ts));font-weight:700;
  color:#fff;background:rgba(9,22,17,.62);border-radius:14px;box-shadow:0 8px 20px rgba(0,0,0,.18);
  text-shadow:0 1px 2px rgba(0,0,0,.45);}
/* sealed: she has not opened it yet, so the picture is withheld and the frame
   invites her in instead. Deliberately large and low-effort to read. */
.frame.sealed{background-color:#CBD8D1!important;}
.frame .fseal{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:7px;color:#FFF9F0;text-align:center;padding:8px;
  background:linear-gradient(rgba(18,39,31,.18),rgba(18,39,31,.46));}
.frame .fseal .fs-t{font-size:calc(clamp(12px,1.9vw,15px) * var(--ts));font-weight:800;}
.frame .fseal .fs-w{font-size:calc(clamp(10px,1.5vw,12.5px) * var(--ts));font-weight:700;opacity:.88;}
.frame .fclock{position:absolute;top:9px;left:9px;background:rgba(20,38,31,.6);color:#fff;
  font-size:calc(clamp(9px,1.3vw,11px) * var(--ts));font-weight:700;border-radius:7px;padding:3px 8px;}
/* how many more are waiting, sitting above the row rather than covering a
   photo — nothing is obscured, and it reads as a way through to the rest */
.framesmore{align-self:flex-end;background:rgba(255,255,255,.18);color:#FFF9F0;
  font-size:calc(clamp(11px,1.6vw,13.5px) * var(--ts));font-weight:700;border-radius:999px;
  padding:6px 14px;margin-top:clamp(10px,2vw,18px);margin-bottom:-6px;
  transition:background .16s,transform .16s;}
.framesmore:active{background:rgba(255,255,255,.28);transform:scale(.97);}
/* nothing on her frame yet — an invitation, not a blank space */
.frame.emptyframe{flex:1;background:rgba(255,255,255,.16);border:2px dashed rgba(255,249,240,.5);
  display:flex;align-items:center;justify-content:center;transition:background .16s,transform .16s;}
.frame.emptyframe:active{transform:scale(.985);background:rgba(255,255,255,.24);}
.frame .ef-in{display:flex;flex-direction:column;align-items:center;gap:5px;
  text-align:center;padding:10px;color:#FFF9F0;}
.frame .ef-in svg{stroke:#FFF9F0;opacity:.9;}
.frame .ef-t{font-size:calc(clamp(13px,2vw,16px) * var(--ts));font-weight:800;}
.frame .ef-s{font-size:calc(clamp(11px,1.6vw,13px) * var(--ts));font-weight:600;opacity:.8;}
.newdot{position:absolute;top:10px;right:10px;width:12px;height:12px;border-radius:50%;background:#FFD27A;
  box-shadow:0 0 0 4px rgba(255,255,255,.35);}
.a-foot{margin-top:auto;display:flex;flex-direction:column;gap:13px;padding-top:14px;}
.softcard{background:rgba(255,255,255,.16);border-radius:24px;padding:16px 20px;
  display:flex;align-items:center;gap:15px;text-align:left;width:100%;transition:transform .18s,background .18s;}
.softcard:active{transform:scale(.985);background:rgba(255,255,255,.24);}
.softcard .t{font-size:calc(clamp(17px,2.6vw,22px) * var(--ts));font-weight:800;display:block;}
.softcard .s{font-size:calc(clamp(12.5px,1.9vw,15px) * var(--ts));font-weight:600;opacity:.8;margin-top:2px;display:block;}
.status{display:flex;align-items:center;gap:11px;font-size:calc(clamp(13px,2vw,16px) * var(--ts));font-weight:600;opacity:.85;}
.dot{width:12px;height:12px;border-radius:50%;background:#BFF0D6;flex:none;}
.pill-art{width:92px;height:42px;border-radius:21px;overflow:hidden;display:flex;flex:none;
  box-shadow:0 6px 16px rgba(0,0,0,.2);}
.pill-art i{flex:1;}
.task-h{font-size:calc(clamp(28px,4.8vw,42px) * var(--ts));font-weight:800;letter-spacing:-.4px;line-height:1.12;}
.task-s{font-size:calc(clamp(15px,2.4vw,20px) * var(--ts));font-weight:600;opacity:.86;margin-top:8px;}
.big{width:100%;background:#1F5F4A;color:#fff;border-radius:999px;padding:clamp(18px,3vh,26px);
  font-size:calc(clamp(21px,3.2vw,29px) * var(--ts));font-weight:800;display:flex;align-items:center;justify-content:center;
  gap:14px;box-shadow:0 12px 30px rgba(0,0,0,.24);transition:transform .18s;min-height:74px;}
.big:active{transform:scale(.97);}
.later{width:100%;text-align:center;font-size:calc(clamp(14px,2.1vw,17px) * var(--ts));font-weight:700;opacity:.7;padding:12px;}
.moods{display:flex;gap:14px;}
.mood{flex:1;background:rgba(255,255,255,.16);border-radius:24px;padding:clamp(16px,3vh,24px) 10px;
  display:flex;flex-direction:column;align-items:center;gap:10px;transition:transform .18s,background .18s;}
.mood:active{transform:scale(.96);background:rgba(255,255,255,.26);}
.mood span{font-size:clamp(14px,2.1vw,18px);font-weight:800;}
.back{align-self:flex-start;font-size:calc(16px * var(--ts));font-weight:800;opacity:.8;padding:10px 4px;}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:14px;}
.thanks{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;
  gap:16px;background:rgba(20,60,45,.55);z-index:5;font-size:26px;font-weight:800;text-align:center;padding:24px;}
/* ---- undo window after a persona-side confirm ----
   Big enough to hit without hunting for it, dim enough that it doesn\u2019t
   compete with the tick. The countdown sits in the same button so there\u2019s
   no separate widget to read \u2014 the number IS the deadline. */
.undoSub{font-size:16px;font-weight:600;opacity:.85;margin-top:-4px;color:#FFF9F0;}
.undoBtn{margin-top:6px;padding:14px 28px;border:2px solid rgba(255,249,240,.85);
  background:rgba(255,255,255,.08);color:#FFF9F0;font-size:20px;font-weight:800;
  border-radius:12px;cursor:pointer;letter-spacing:.4px;
  transition:background .12s, transform .08s;}
.undoBtn:hover{background:rgba(255,255,255,.16);}
.undoBtn:active{transform:scale(.97);}
.undoHint{font-size:13.5px;font-weight:500;opacity:.75;color:#FFF9F0;max-width:22em;line-height:1.4;}
.upnext{display:flex;flex-direction:column;gap:9px;}
.upnext div{display:flex;align-items:center;gap:11px;font-size:clamp(13px,2vw,16px);font-weight:700;opacity:.86;}
/* ---- today's recap ----
   The next thing is the biggest and brightest; everything later in the day
   steps down in size and opacity, so the shape of the list tells her what is
   imminent before she reads a word. Capped at three rows in JS (Next + two
   peek-ahead) so the block never grows beyond a comfortable height and the
   whole page fits on one screen without her having to scroll. Anything
   further is behind the "N more later" tap into Your day. */
.agenda{display:flex;flex-direction:column;gap:6px;
  width:100%;text-align:left;transition:opacity .16s;}
.agenda:active{opacity:.8;}
.ag{display:flex;align-items:center;gap:11px;flex:none;
  background:rgba(255,255,255,.13);border-radius:12px;padding:9px 13px;}
.ag .agdot{width:9px;height:9px;border-radius:50%;background:#FFE1A8;flex:none;}
.ag.n0 .agdot{width:11px;height:11px;box-shadow:0 0 0 4px rgba(255,255,255,.18);}
.ag .agtime{font-weight:800;flex:none;}
.ag .agtitle{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
/* next up — full size, the only one meant to be read from across the room */
.ag.n0{font-size:calc(clamp(15px,2.4vw,19px) * var(--ts));opacity:1;background:rgba(255,255,255,.2);
  padding:10px 14px;}
/* later today — a sharp step down, then quieter again. These are for glancing
   at, not reading: she should be able to tell there are three more things
   coming without any of them competing with the one that is next. */
.ag.n1{font-size:calc(clamp(11px,1.6vw,13px) * var(--ts));opacity:.72;padding:6px 11px;background:rgba(255,255,255,.09);}
.ag.n2{font-size:calc(clamp(10.5px,1.5vw,12px) * var(--ts));opacity:.6;padding:5px 11px;background:rgba(255,255,255,.07);}
.ag.n3{font-size:calc(clamp(10px,1.4vw,11.5px) * var(--ts));opacity:.5;padding:5px 11px;background:rgba(255,255,255,.06);}
.ag.n1 .agdot,.ag.n2 .agdot,.ag.n3 .agdot{width:6px;height:6px;}
.ag.n1,.ag.n2,.ag.n3{gap:8px;}
.ag.done{opacity:.45;}
.ag.done .agdot{background:rgba(255,255,255,.5);}
.agmore{font-size:calc(clamp(11px,1.6vw,13px) * var(--ts));font-weight:700;opacity:.6;padding:2px 4px;}

/* ---- the whole day, once she asks for it ----
   Everything at a readable size here, including what is already done. This is
   the screen she has chosen to look at, so nothing is shrunk to save room. */
.daylist{display:flex;flex-direction:column;gap:9px;overflow-y:auto;
  -webkit-overflow-scrolling:touch;padding-right:4px;margin-top:clamp(12px,2.4vh,20px);
  overflow-anchor:none;}
.dayrow{display:flex;align-items:flex-start;gap:13px;flex:none;
  background:rgba(255,255,255,.13);border-radius:18px;padding:13px 16px;}
.dayrow.next{background:rgba(255,255,255,.24);box-shadow:0 6px 18px rgba(0,0,0,.12);}
.dayrow.done{opacity:.5;}
/* settled, but not a tick — dimmed like anything finished, with a rose edge so
   it never passes for a dose she took */
.dayrow.nottaken{opacity:.62;box-shadow:inset 3px 0 0 #FFC2B4;}
/* Missed = the clock time has passed but she has not confirmed or refused
   yet. A soft red ring around the whole row draws the eye without shouting;
   the item stays fully legible so she can act on it. `next` and `miss` can
   both apply \u2014 miss wins visually because acting on the overdue thing
   matters more than seeing what's coming. */
.dayrow.miss{background:rgba(255,180,162,.14);
  box-shadow:0 0 0 2px rgba(255,120,110,.55), 0 6px 16px rgba(255,120,110,.14);}
.daytime{font-size:calc(clamp(14px,2.1vw,18px) * var(--ts));font-weight:800;flex:none;min-width:clamp(48px,8vw,66px);}
.daymark{flex:none;width:22px;display:flex;align-items:center;justify-content:center;padding-top:2px;}
.daydot{width:11px;height:11px;border-radius:50%;background:#FFE1A8;display:block;}
.daydot.miss{background:#FFB4A2;box-shadow:0 0 0 4px rgba(255,180,162,.22);}
.daybody{display:flex;flex-direction:column;gap:2px;min-width:0;}
.dayt{font-size:calc(clamp(14px,2.1vw,18px) * var(--ts));font-weight:700;}
.days{font-size:calc(clamp(11.5px,1.7vw,14px) * var(--ts));font-weight:600;opacity:.72;}

/* ---- her settings ---- */
.gear{position:absolute;top:0;right:0;width:46px;height:46px;border-radius:50%;
  background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;
  transition:transform .16s,background .16s;z-index:3;}
.gear:active{transform:scale(.93);background:rgba(255,255,255,.26);}
.setlist{display:flex;flex-direction:column;gap:11px;overflow-y:auto;padding-right:4px;
  overflow-anchor:none;}
.setrow{background:rgba(255,255,255,.14);border-radius:20px;padding:clamp(13px,2.2vh,18px) 18px;
  display:flex;align-items:center;gap:14px;text-align:left;width:100%;}
.setrow .st-t{font-size:calc(clamp(15px,2.3vw,19px) * var(--ts));font-weight:800;display:block;}
.setrow .st-s{font-size:calc(clamp(12px,1.8vw,14.5px) * var(--ts));font-weight:600;opacity:.78;display:block;margin-top:2px;}
.bigsw{width:62px;height:34px;border-radius:999px;background:rgba(255,255,255,.25);flex:none;
  position:relative;transition:background .18s;}
.bigsw i{position:absolute;top:3px;left:3px;width:28px;height:28px;border-radius:50%;
  background:#FFF9F0;transition:transform .18s;}
.bigsw.on{background:#1F5F4A;}
.bigsw.on i{transform:translateX(28px);}
/* five across, two rows — sized off the column so the set fills the card
   edge to edge instead of wrapping into a ragged block */
.swatches{display:grid;grid-template-columns:repeat(5,1fr);
  gap:clamp(8px,1.8vw,14px);margin-top:8px;width:100%;}
/* ---- her privacy screens ---- */
.consentstep{font-size:calc(clamp(11px,1.7vw,13px) * var(--ts));font-weight:800;opacity:.65;
  letter-spacing:.4px;margin-top:14px;}
.setchev{font-size:calc(26px * var(--ts));font-weight:700;opacity:.55;flex:none;line-height:1;}
.setrow.warn{background:rgba(255,190,175,.22);}
/* Persona health-row: the one thing on this screen she can actually change.
   Made loud enough that she reads it as an action, not a paragraph. The tint
   flips green/amber to mirror the current state so a glance tells her which
   way it is. */
.setrow.hrow{border:1.5px solid transparent;}
.setrow.hrow.on{background:rgba(140,225,170,.16);border-color:rgba(140,225,170,.42);}
.setrow.hrow.off{background:rgba(255,215,150,.18);border-color:rgba(255,215,150,.45);}
.hbtn{font-size:calc(clamp(14px,2.1vw,17px) * var(--ts));font-weight:800;border-radius:14px;
  padding:clamp(11px,1.9vh,15px) clamp(16px,2.6vw,22px);width:100%;text-align:center;
  transition:transform .14s,opacity .14s;margin-top:2px;}
.hbtn:active{transform:scale(.98);opacity:.9;}
.hbtn.on{background:#1F5F4A;color:#FFF9F0;}
.hbtn.off{background:var(--miss);color:#FFF9F0;}
.bigav.sm{width:clamp(38px,6vw,46px);height:clamp(38px,6vw,46px);
  font-size:calc(clamp(13px,2vw,16px) * var(--ts));flex:none;}
/* one room, one tap to switch off — the same Rooms model, her side of it */
.shrooms{display:flex;gap:7px;flex-wrap:wrap;width:100%;}
.shroom{font-size:calc(clamp(11.5px,1.8vw,14px) * var(--ts));font-weight:700;border-radius:11px;
  padding:8px 12px;background:rgba(255,255,255,.12);color:rgba(255,249,240,.55);
  border:1.5px solid transparent;transition:transform .14s;}
.shroom.on{background:rgba(255,255,255,.24);color:#FFF9F0;border-color:rgba(255,249,240,.45);}
.shroom.on:active{transform:scale(.95);}
.minibtn{font-size:calc(clamp(12px,1.9vw,14.5px) * var(--ts));font-weight:700;border-radius:12px;
  padding:9px 14px;background:rgba(255,255,255,.2);color:#FFF9F0;margin-top:2px;
  transition:transform .14s,background .14s;}
.minibtn:active{transform:scale(.97);}
/* while a dose is outstanding this stands in for the calendar — one thing to
   do, given the whole space, rather than a prompt competing with a list */
.waiting{display:flex;flex-direction:column;gap:12px;width:100%;text-align:left;
  background:rgba(255,225,168,.18);border:1.5px solid rgba(255,225,168,.5);
  border-radius:24px;padding:clamp(16px,2.6vh,22px) clamp(18px,3vw,24px);}
.waiting .wtop{display:flex;align-items:center;gap:14px;}
.waiting .wdot{width:11px;height:11px;border-radius:50%;background:#FFE1A8;flex:none;
  animation:waitpulse 2.6s ease-in-out infinite;}
@keyframes waitpulse{0%,100%{opacity:1}50%{opacity:.35}}
.waiting .t{font-size:calc(clamp(15px,2.3vw,19px) * var(--ts));font-weight:800;display:block;}
.waiting .s{font-size:calc(clamp(12px,1.8vw,14.5px) * var(--ts));font-weight:600;opacity:.78;display:block;margin-top:2px;}
.wbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  background:#2F7F66;color:#FFF9F0;border-radius:18px;
  padding:clamp(13px,2.2vh,18px);font-size:calc(clamp(15px,2.3vw,19px) * var(--ts));font-weight:800;
  transition:transform .14s,background .14s;}
.wbtn:active{transform:scale(.98);background:#276B56;}
.wlink{font-size:calc(clamp(12.5px,1.9vw,15px) * var(--ts));font-weight:700;opacity:.72;text-align:center;
  width:100%;padding:2px;}
.putoff{font-size:calc(clamp(12px,1.8vw,14.5px) * var(--ts));font-weight:600;opacity:.75;text-align:center;margin-top:10px;}
/* ---- a question on her tablet ----
   Her own type size, not the phone's dialog shrunk down. The reassuring answer
   is the solid one, so the easiest thing to hit is staying. */
.tdialog{position:absolute;inset:0;z-index:8;background:rgba(16,44,35,.72);
  display:flex;align-items:center;justify-content:center;padding:clamp(20px,5vw,48px);
  animation:tdIn .1s ease-out both;}
@keyframes tdIn{from{opacity:0}to{opacity:1}}
.tbox{width:min(100%,560px);background:rgba(255,255,255,.14);backdrop-filter:blur(8px);
  border:1.5px solid rgba(255,249,240,.28);border-radius:24px;
  padding:clamp(22px,3.4vh,32px);display:flex;flex-direction:column;gap:12px;
  animation:tdUp .14s cubic-bezier(.25,.95,.35,1) both;}
@keyframes tdUp{from{transform:translateY(8px) scale(.99)}to{transform:none}}
.shell.modal-steady .tdialog{animation:none;}
.shell.modal-steady .tdialog .tbox{animation:none;}
.tbox .tt{font-family:var(--grot);font-size:16px;font-weight:700;line-height:1.35;}
.tbox .tb{font-family:var(--grot);font-size:13.5px;font-weight:600;
  line-height:1.6;opacity:.88;margin-bottom:4px;}
.tbox .big{margin-top:2px;}
/* Solid variant for helper-side dialogs (away review, dispute resolve).
   The glass look was designed for the persona\u2019s dark tablet screen; on
   the helper\u2019s light dashboard it renders as translucent white over a
   dark overlay, and any default dark text inside is unreadable. This
   variant is an opaque cream card with explicit dark text \u2014 the same
   visual language as the rest of the dashboard so nothing about the
   dialog fights the surrounding UI. */
.tbox.solid{background:#FFFDF7;border-color:#E4DDCB;backdrop-filter:none;
  color:#23302B;
  /* Same frame as .dialog so every popup reads as one family. */
  width:100%;max-width:420px;border-radius:24px;padding:clamp(20px,3vh,28px);
  box-shadow:0 22px 60px rgba(11,28,22,.35);}
.tbox.solid .tt{color:#1B2A24;font-weight:700;}
.tbox.solid .tb{color:#4A5A52;opacity:1;font-weight:500;}
.tbox.solid .sec{color:#4A5A52;font-weight:700;font-size:13.5px;
  letter-spacing:.2px;margin:6px 0 4px;}
.tbox.solid .card{color:#23302B;}
.tbox.solid .card .d{color:#1B2A24;font-weight:600;}
.tbox.solid .card .w{color:#5A6B62;font-weight:500;}
.tbox.solid .dsel{color:#23302B;background:#FFF;border-color:#D6CCB4;}
.tbox.solid .big{color:#FFF9F0;}
.tbox.solid label{color:#23302B;}
.reviewbox{width:min(100%,480px);max-width:480px;max-height:82vh;overflow:auto;padding:18px 18px 16px;gap:9px;}
.reviewsec{font-family:var(--grot);font-size:13.5px;font-weight:700;color:#4A5A52;margin-top:4px;letter-spacing:0;line-height:1.3;}
.reviewcard{padding:8px 11px;border-radius:12px;background:#FFF;border:1px solid #E4DDCB;display:flex;flex-direction:column;gap:8px;}
.reviewcard.compact{gap:5px;padding:9px 10px;}
.choicepair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:2px;}
.choicepair .send{width:100%;min-width:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  text-align:center;white-space:normal;line-height:1.2;padding:12px 10px;min-height:44px;}
.choicepair .send + .send{margin-top:0;}
.reviewrow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 0;}
.reviewrow .reviewtext{flex:1;min-width:0;}
.reviewrow .d{font-family:var(--grot);font-size:13.5px;line-height:1.35;font-weight:600;color:#1B2A24;}
.reviewrow .w{font-family:var(--grot);font-size:12.5px;line-height:1.35;color:#5A6B62;margin-top:1px;}
.reviewpicks{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none;}
.reviewpick{display:flex;align-items:center;gap:7px;font-family:var(--grot);font-size:11px;font-weight:700;color:#5A6B62;text-transform:uppercase;letter-spacing:.2px;}
.reviewpick span{min-width:68px;text-align:right;}
.reviewnote{font-family:var(--grot);font-size:12.5px;line-height:1.45;color:#5A6B62;margin-top:2px;}
.reviewhint{font-size:11px;line-height:1.5;color:#5A6B62;margin-top:2px;}
.reviewok{margin-top:12px;background:var(--ok)!important;color:#fff!important;}
.reviewcancel{margin-top:8px;background:#FFF9F0!important;color:#23302B!important;}
.reviewrow .dsel,.tbox.solid .dsel{flex:none;width:148px;height:30px;box-sizing:border-box;
  padding:0 24px 0 9px;font-size:11px;font-weight:600;line-height:1.1;color:#23302B;background:#FFF;
  border:1px solid #D6CCB4;border-radius:8px;cursor:pointer;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%2364746C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;background-position:right 8px center;background-size:10px;}
.reviewrow .dsel:focus,.tbox.solid .dsel:focus{border-color:var(--ok);outline:none;}
/* Popup action consistency: remove inner framed wrappers and keep
   action buttons tightly and evenly spaced across all modal types. */
.tdialog .reviewcard,
.overlay .reviewcard{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.tdialog .reviewcard.compact,
.overlay .reviewcard.compact{
  padding:0;
  gap:6px;
}
.tdialog .tbox > .send,
.overlay .dialog > .send,
.tdialog .reviewcard > .send,
.overlay .reviewcard > .send{
  margin-top:6px !important;
}
.tdialog .tbox > .send + .send,
.overlay .dialog > .send + .send,
.tdialog .reviewcard > .send + .send,
.overlay .reviewcard > .send + .send{
  margin-top:6px !important;
}
.tabnotice{margin:16px auto 0;padding:14px 14px 13px;border-radius:16px;background:#FFF5EC;border:1px solid #E7CCAA;
  color:#6B4511;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;max-width:270px;
  box-shadow:0 6px 18px rgba(145,98,28,.08);}
.tabnotice-copy{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;}
.tabnotice-copy b{font-size:13.5px;line-height:1.35;color:#603A09;}
.tabnotice-copy p{margin:0;font-size:12.5px;line-height:1.55;color:#7A4F16;}
.tabnotice-group{display:block;}
.tabnotice-gap{display:block;height:8px;}
.tabnotice-x{flex:none;padding:8px 14px;border-radius:999px;background:#FFF;color:#7A4F16;border:1px solid #E1C39F;
  font-size:11px;font-weight:700;min-width:132px;}
.minibtn.warn{background:rgba(255,190,175,.28);}
/* ---- ambient markers ----
   A quiet "your circle can see this" on the things that are actually shared.
   She learns what is visible by living in the app rather than by reading an
   inventory once and never opening it again. Deliberately understated: this
   is reassurance, not a warning, so it never competes with the content it
   sits beside. Tapping any of them opens the fuller explanation. */
.shared{display:inline-flex;align-items:center;gap:5px;
  font-size:calc(clamp(10px,1.5vw,12px) * var(--ts));font-weight:700;opacity:.6;
  color:#FFF9F0;background:rgba(255,255,255,.13);border-radius:999px;
  padding:4px 10px;transition:opacity .16s,background .16s;}
.shared:active{opacity:.9;background:rgba(255,255,255,.22);}
.shared svg{opacity:.85;}
.shared.tight{padding:3px 8px;font-size:calc(clamp(9.5px,1.4vw,11px) * var(--ts));}
.sw2{width:100%;aspect-ratio:1;border-radius:50%;
  border:3px solid transparent;display:flex;align-items:center;justify-content:center;
  transition:transform .16s;}
.sw2:active{transform:scale(.94);}
.sw2.on{border-color:#FFF9F0;box-shadow:0 0 0 3px rgba(255,255,255,.25);}

/* ---- a helper asking how she is ---- */
.askedwrap{position:relative;display:block;isolation:isolate;overflow:visible;border-radius:24px;margin-bottom:10px;}
.askedwrap::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  border:3px solid rgba(255,224,172,.88);box-shadow:0 0 0 4px rgba(255,224,172,.16),0 0 14px 3px rgba(255,224,172,.16);}
.askedwrap::after{content:"";position:absolute;inset:3px;border-radius:inherit;pointer-events:none;z-index:0;
  border:1px solid rgba(255,255,255,.28);box-shadow:none;opacity:.9;}
.asked{position:relative;z-index:1;background:rgba(255,255,255,.2);border-radius:24px;padding:16px 20px;
  display:flex;align-items:center;gap:15px;text-align:left;width:100%;}
.askedbubble{border:0;box-shadow:none;background:transparent;}
.askedbubble:hover,.askedbubble:focus-visible{background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,.21));outline:none;}
.askedbubble svg{flex:none;filter:drop-shadow(0 0 12px rgba(255,255,255,.18));}
.askedwho{font-size:calc(clamp(17px,2.6vw,22px) * var(--ts));font-weight:800;display:block;}
.askedsub{font-size:calc(clamp(12.5px,1.9vw,15px) * var(--ts));font-weight:600;opacity:.8;display:block;margin-top:2px;}
@keyframes askedhalo{
  0%,100%{box-shadow:0 0 0 0 rgba(255,255,255,.10),0 10px 28px rgba(18,41,33,.10);border-color:rgba(255,255,255,.24);}
  50%{box-shadow:0 0 0 6px rgba(255,255,255,.08),0 0 0 14px rgba(255,214,150,.16),0 12px 30px rgba(18,41,33,.12);border-color:rgba(255,255,255,.42);}
}
@media (prefers-reduced-motion:reduce){
  .askedwrap::before,.askedwrap::after{opacity:.95;}
}

/* ============ ASSISTING ============ */
#assisting{position:absolute;inset:0;background:var(--paper);color:var(--txt);
  font-family:var(--grot);display:flex;flex-direction:column;}
.hd{background:var(--slate);padding:11px 18px 12px;color:#fff;}
.hdtop{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
/* the back button and its spacer are the same width, so this block lands centred —
   centring the lines inside it makes the name sit true under the middle */
.hdmid{flex:1;text-align:center;}
.acct{background:none;border:none;padding:0;position:relative;flex:none;
  display:flex;align-items:center;justify-content:center;
  min-width:52px;transition:transform .16s;}
.acct:active{transform:scale(.93);}
.acctface{width:52px;height:52px;position:relative;display:flex;align-items:center;justify-content:center;}
.acct svg{display:block;}
.acctface .adm{position:absolute;bottom:0;right:0;width:11px;height:11px;border-radius:50%;
  background:var(--ok);border:2px solid var(--slate);}
/* Attention variant: something in the account pane needs a look (pending
   invite, unpaired persona device, missing basics, unresolved dispute).
   Grows the dot so a count fits, swaps the green calm-signal for the
   pend/miss amber the rest of the UI uses for "please look at this",
   and pulses once every two seconds so a still glance catches it. Count
   text stays legible at 9+ (max we ever render). */
.acctface .adm.att{width:auto;min-width:16px;height:16px;padding:0 4px;border-radius:8px;
  background:var(--pend);color:var(--slate);font-size:11px;font-weight:700;
  line-height:12px;display:flex;align-items:center;justify-content:center;
  font-family:Inter,system-ui,sans-serif;
  animation:acctAttPulse 2s ease-in-out infinite;}
@keyframes acctAttPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(231,162,74,.55);}
  50%    {box-shadow:0 0 0 5px rgba(231,162,74,0);}
}
.back2{width:38px;height:38px;border-radius:50%;background:#2E5A4D;color:#DCE8E2;font-size:calc(22px * var(--ts));
  line-height:1;flex:none;display:flex;align-items:center;justify-content:center;}
.av{width:34px;height:34px;border-radius:50%;background:#EBF1EE;color:var(--txt-2);font-size:11px;
  font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;}
.entrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;}
.entrow>span{font-size:12.5px;font-weight:500;color:var(--txt-2);flex:none;}
/* Trim the vertical padding on the first and last rows inside a card so the
   card's own 14px padding is the only outer frame. Without this the card
   picks up 14+11 (tog) or 14+8 (entrow) of dead space above and below the
   content, which reads as an empty line before the first row and after the
   last row (visible on Settings: text-size card, money records, documents,
   and the "Include Nonna in shared expenses" card). */
.card>.tog:first-child,
.card>.entrow:first-child,
.card>.led:first-child,
.card>.mrow:first-child{padding-top:0;}
.card>.tog:last-child,
.card>.entrow:last-child,
.card>.led:last-child,
.card>.mrow:last-child{padding-bottom:0;border-bottom:0;}
.entcard{padding:0;overflow:hidden;}
.entcard.persona{background:#F7FBF6;border-color:#D3E3D3;}
.entcard.admin{background:#F7FBF9;border-color:#C9D9D0;}
.tag.persona{background:#F4E7D2;color:#9A5C1B;margin:0;}
.tag.admin{background:var(--slate);color:#fff;margin:0;}
.enthead{display:flex;align-items:center;gap:11px;width:100%;padding:11px 15px;text-align:left;}
.enthead.haschips{padding-top:10px;padding-bottom:10px;}
.entmain{flex:1;min-width:0;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:3px;}
.entmain.haschips{gap:4px;align-self:center;}
.entname{font-size:13.5px;font-weight:600;display:block;line-height:1.15;color:var(--txt);}
.entsub{font-size:11px;color:var(--txt-2);line-height:1.35;display:block;}
/* .tag carries margin-top:6px for its use under .ev timeline rows. Inside an
   .enthead the tags sit in a horizontal flex row aligned on centre, so that
   default push shifts them down against the account name and the Persona /
   Admin pill next to them. Zero it out here so "Picture" / "Done" line up
   with the pill on the same row. */
.enthead .tag{margin:0;}
.entcard.open .enthead{border-bottom:1px solid var(--line);}
.chev{font-size:19px;color:var(--txt-3);line-height:1;padding:0 2px;}
.entchips{display:flex;flex-wrap:wrap;gap:5px;padding:0 15px 13px;}
.enthead .entchips{padding:0;gap:4px;align-items:flex-start;}
/* Wrap rather than cut off ("Mo…") when the four rooms don't fit on one
   line (audit 2, F10). */
.enthead .entchips.inline{display:flex;flex-wrap:wrap;row-gap:4px;width:100%;min-width:0;}
.chip2{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:700;
  border-radius:6px;padding:2px 6px 2px 5px;line-height:1.15;white-space:nowrap;flex:none;}
/* None — barely there: outline only, no fill, muted */
.chip2.none{background:none;border:1.3px dashed #C7D2CB;color:#647A6E;font-weight:600;}
/* See — a cool, quiet tint: you can look, nothing more */
.chip2.see{background:#E1E9E4;color:#51655C;border:1px solid #D1DCD5;}
/* Do — solid sage: an active room */
.chip2.do{background:#CFE9DC;color:#1F6B4B;border:1px solid #B8DCC8;}
/* Manage — filled dark: full control, reads first */
.chip2.manage{background:var(--slate);color:#fff;border:1px solid var(--slate);}
.entbody{padding:11px 15px 14px;}
.lvl{display:flex;background:#EBF1EE;border-radius:8px;padding:2px;gap:2px;align-items:stretch;}
.lvl button{display:inline-flex;align-items:center;justify-content:center;gap:3px;font-size:11px;font-weight:600;
  color:var(--txt-3);padding:6px 6px;border-radius:6px;white-space:nowrap;box-sizing:border-box;
  min-height:30px;border:1.3px solid transparent;line-height:1;}
.lvl button svg{flex:none;}
.lvl button.on{box-shadow:0 1px 2px rgba(0,0,0,.1);font-weight:700;}
.lvl button.on.none{background:#fff;color:#647A6E;border-color:#C7D2CB;border-style:dashed;}
.lvl button.on.see{background:#E1E9E4;color:#51655C;border-color:#D1DCD5;}
.lvl button.on.do{background:#CFE9DC;color:#1F6B4B;border-color:#B8DCC8;}
.lvl button.on.manage{background:var(--slate);color:#fff;border-color:var(--slate);}

/* Legend under any None/See/Do/Manage grid. Four little swatches each
   matched to the on-state of their .lvl button, followed by the label and
   a one-line hint of what the level actually lets a helper do. Wraps to
   two rows on narrow phones so the words are never cropped. */
.permkey{display:grid;grid-template-columns:1fr;gap:6px;margin-top:11px;
  padding-top:10px;border-top:1px solid var(--line);}
.permkey-item{display:flex;align-items:center;gap:5px;font-size:11px;
  color:var(--txt-2);line-height:1.35;}
.permkey-item b{font-size:11px;font-weight:700;color:var(--txt);}
.permkey-item .permkey-hint{color:var(--txt-3);font-weight:500;}
.permkey-ic{display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:6px;flex:none;}
.permkey-ic.none  {background:#fff;         color:#647A6E;border:1.3px dashed #C7D2CB;}
.permkey-ic.see   {background:#E1E9E4;      color:#51655C;border:1px solid #D1DCD5;}
.permkey-ic.do    {background:#CFE9DC;      color:#1F6B4B;border:1px solid #B8DCC8;}
.permkey-ic.manage{background:var(--slate); color:#fff;   border:1px solid var(--slate);}

/* ---- onboarding ---- */
.auth{display:flex;flex-direction:column;}
.authtop{padding:14px 0 18px;}
.mark{font-size:20px;font-weight:700;letter-spacing:.5px;color:#3C6B55;}
.mark span{color:#C9852F;}
.tag2{font-size:12.5px;color:var(--txt-2);margin-top:7px;}
.authbtns{display:flex;flex-direction:column;gap:9px;margin-top:6px;}
.authnote{font-size:11px;color:var(--txt-3);line-height:1.5;margin-top:16px;text-align:center;}
.ordiv{display:flex;align-items:center;gap:10px;margin:14px 0;}
.ordiv:before,.ordiv:after{content:"";flex:1;height:1px;background:var(--line);}
.ordiv span{font-size:11px;color:var(--txt-3);}
.codebox{display:flex;gap:7px;justify-content:center;margin-top:8px;}
.codebox span{flex:1;max-width:46px;height:56px;border-radius:12px;background:#fff;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:600;
  font-variant-numeric:tabular-nums;color:var(--txt);}
.perm{display:flex;gap:11px;align-items:flex-start;padding:9px 0;}
.perm i{width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:11px;font-style:normal;font-weight:700;flex:none;margin-top:1px;}
.perm.yes i{background:var(--ok-bg);color:var(--ok);}
.perm.no i{background:#EBF1EE;color:var(--txt-3);}
.perm b{font-size:12.5px;font-weight:600;display:block;}
.perm small{font-size:11px;color:var(--txt-2);display:block;margin-top:2px;}

/* ---- joinLanding \u00b7 invitation receipt (Proposal C) ----
   Warm circle-preview at the top: the same SVG wheel component used on
   the Account pane inside the app (orange persona centre, green
   helpers on the orbit ring, initials kept upright by the counter-
   rotation, the joiner marked with the white ring the account wheel
   uses to indicate \u201cyou\u201d). Underneath, one row per Nonna room
   mirrors the four tabs they\u2019ll see once they hit Accept, so the
   app\u2019s vocabulary is learned here rather than after the fact. All
   tokens (--card, --ok, .chip2, .sec) are reused so this reads as part
   of the app, not a separate leaflet. */
.jl-wheel-wrap{background:var(--card);border-radius:24px;
  padding:22px 18px 20px;text-align:center;
  box-shadow:0 1px 0 rgba(20,38,31,.03);
  margin-top:6px;}
.jl-wheel-wrap .wheel{width:min(80%,220px);margin:0 auto 8px;}
.jl-title{font-size:16px;font-weight:700;color:var(--ink);
  letter-spacing:-.2px;margin-top:6px;}
.jl-sub{font-size:12.5px;color:var(--txt-2);line-height:1.5;margin-top:4px;}
.jl-sub b{color:var(--txt);font-weight:600;}
.jl-rooms{padding:6px 0;}
.jl-room{display:flex;align-items:center;gap:12px;padding:11px 14px;
  border-bottom:1px solid var(--line);}
.jl-room:last-child{border-bottom:none;}
.jl-room-ic{flex:none;width:32px;height:32px;border-radius:12px;background:#EBF1EE;
  color:#51655C;display:inline-flex;align-items:center;justify-content:center;}
.jl-room.lvl-do  .jl-room-ic{background:#CFE9DC;color:#1F6B4B;}
.jl-room.lvl-see .jl-room-ic{background:#E1E9E4;color:#51655C;}
.jl-room.lvl-manage .jl-room-ic{background:var(--slate);color:#fff;}
.jl-room.lvl-none .jl-room-ic{background:#F3F7F4;color:#94A69C;}
.jl-room-body{flex:1;min-width:0;}
.jl-room-body b{font-size:13.5px;font-weight:600;color:var(--txt);display:block;}
.jl-room-body small{font-size:11px;color:var(--txt-2);display:block;line-height:1.4;
  margin-top:2px;}
.jl-room.lvl-none .jl-room-body b{color:var(--txt-2);}
.jl-room.lvl-none .jl-room-body small{color:var(--txt-3);}
.jl-primary{margin-top:6px;}
.jl-secondary{background:transparent;color:var(--txt-2);font-size:12.5px;
  font-weight:500;padding:12px;text-align:center;margin-top:4px;
  border-radius:12px;}
.jl-secondary:active{background:var(--line);}
.okmark{width:52px;height:52px;border-radius:50%;background:var(--ok);display:flex;align-items:center;
  justify-content:center;margin:0 auto;}
/* tablet onboarding */
.okmark.big{width:84px;height:84px;background:rgba(255,255,255,.22);}
.bigav{width:74px;height:74px;border-radius:50%;background:rgba(255,255,255,.22);color:#FFF9F0;
  font-size:calc(24px * var(--ts));font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;}
.codein{display:flex;gap:12px;justify-content:center;margin:clamp(16px,3vh,30px) 0;}
.codein span{width:clamp(44px,7vw,62px);height:clamp(56px,9vh,78px);border-radius:16px;
  background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;
  font-size:clamp(24px,4vw,34px);font-weight:800;color:#FFF9F0;}
.codein span.cur{background:rgba(255,255,255,.34);}
.codein.bad span{background:rgba(220,120,100,.4);}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(8px,1.6vh,14px);
  width:min(100%,330px);margin:0 auto;}
.kb{background:rgba(255,255,255,.18);border-radius:20px;font-size:clamp(22px,3.4vw,30px);
  font-weight:800;color:#FFF9F0;min-height:clamp(52px,8vh,72px);transition:transform .15s,background .15s;}
.kb:active{transform:scale(.95);background:rgba(255,255,255,.3);}
.kb.del{font-size:22px;}

.whobar{align-self:flex-start;background:rgba(255,255,255,.22);color:#FFF9F0;border-radius:999px;
  padding:7px 16px;font-size:calc(clamp(11px,1.7vw,14px) * var(--ts));font-weight:800;letter-spacing:.3px;}
.whobar.amber{background:rgba(255,255,255,.3);}
.binput{width:100%;border:none;border-radius:20px;background:rgba(255,255,255,.9);
  padding:clamp(16px,2.6vh,24px) 22px;font-size:clamp(17px,2.6vw,23px);font-weight:700;
  color:#23302B;font-family:var(--round);}
.binput::placeholder{color:#9AB0A6;font-weight:600;}
.binput:focus{outline:3px solid rgba(255,255,255,.85);outline-offset:2px;}
.binput.bad{background:#FBE4DE;}
.berr{margin-top:10px;font-size:clamp(12px,1.9vw,15px);font-weight:700;color:#FFE3DA;}

/* front door */
/* ---- what a circle is ----
   The circle draws itself first and keeps turning. Only then does the title
   arrive, on nothing but the green. The rest is stepped by the reader. */
.circleexp .a-screen{gap:clamp(12px,2.4vh,22px);}
.cxstage{width:min(84%,290px);margin:0 auto;}
.cxstage svg{display:block;overflow:visible;}
.cxmid{transform-box:fill-box;transform-origin:center;
  animation:cxpop .5s cubic-bezier(.34,1.3,.5,1) .25s both;}
/* the invisible r=81 circle inside keeps this pivot exactly on her */
/* she or each helper breathes gently on its own spot while the matching
   line is on screen — animating a dot in place, not the whole ring from
   its centre, so nothing drifts further from the amber circle */
#cxmid.pulse{transform-box:fill-box;transform-origin:center;
  animation:cxpulse 1.3s ease-in-out infinite;}
#cxhelpers.pulse .cxh{animation:cxpulse 1.3s ease-in-out infinite;}
/* ---- the hug ----
   Arms belong to the Helpers line only, so they fade out again on the next
   paragraph. Opacity and a small scale, both transitioned — deliberately not
   an entry animation with a delay, because those replay whenever the class
   changes and would flicker the way the dots once did.
   transform-box:fill-box would recompute each arm's own pivot from its live
   geometry, so the rotation that aims it at the centre stays on the element
   and only the scale is animated, from the group's own origin. */
/* ---- the hug ----
   Arms belong to the Helpers line only, so they fade out again on the next
   paragraph. Opacity is transitioned rather than keyframed, because entry
   animations replay whenever a class changes — that is what once made the
   dots vanish and re-pop.
   Length is animated with the dash, not with scale: scaling would thin the
   stroke and drag the arc off its own radius, whereas a growing dash keeps the
   arm exactly on the orbit and exactly as puffy at every point of the cycle.
   The arms are painted before the dots in source order, so they grow out from
   underneath them rather than over the top. */
#cxarms{opacity:0;transition:opacity .5s ease;pointer-events:none;}
#cxarms.show{opacity:1;}
#cxarms .cxarm path{stroke-dasharray:0.999 1;stroke-dashoffset:0;}
#cxarms.show .cxarm path{animation:cxreach 3.4s ease-in-out infinite;}
#cxarms.show .cxarm:nth-child(2) path{animation-delay:.3s;}
@keyframes cxreach{
  0%,100%{stroke-dasharray:0.30 1;}
  50%    {stroke-dasharray:0.999 1;}}
@keyframes cxpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.16)}}
.cxorbit{transform-box:fill-box;transform-origin:center;
  animation:cxfade .7s ease .85s both;}
.cxh{transform-box:fill-box;transform-origin:center;}
.cxh1{animation:cxpop .45s cubic-bezier(.34,1.4,.5,1) .95s both;}
.cxh2{animation:cxpop .45s cubic-bezier(.34,1.4,.5,1) 1.15s both;}
.cxh3{animation:cxpop .45s cubic-bezier(.34,1.4,.5,1) 1.35s both;}
/* Once the dots have arrived, their entry animation must stop being reachable.
   cxpop begins at opacity 0 / scale .3 with a delay and `both` fill, so if it
   ever becomes the active animation again the dot disappears, waits out the
   delay, and pops back in. That is exactly what happened when the pulse class
   was removed: the element fell back to .cxhN and replayed the entrance. The
   ID-qualified pulse rule above still outranks this, so pulsing is unaffected. */
.cxstage.settled .cxh{animation:none;opacity:1;transform:none;}
/* the amber centre has the same restartable entrance, and the same problem
   when its pulse ends at step 2 — cover it too */
.cxstage.settled .cxmid{animation:none;opacity:1;transform:none;}
@keyframes cxfade{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:scale(1)}}
@keyframes orbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes cxpop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}

/* text, with the step control to its right */
.cxrow{display:flex;align-items:center;gap:10px;width:min(94%,420px);margin:0 auto;}
.cxspacer,.cxnav{width:46px;flex:none;display:flex;justify-content:center;}
.cxtext{flex:1;min-height:clamp(88px,15vh,120px);display:flex;align-items:center;justify-content:center;}
.cxline{color:#FFF9F0;text-align:center;font-size:clamp(15px,2.5vw,19px);font-weight:600;
  line-height:1.5;opacity:.94;background:none;animation:cxup .55s ease both;}
.cxline b{font-weight:800;}
/* the opening line — nothing behind it, just the green */
.cxline.lead{font-family:var(--round);font-weight:800;letter-spacing:-.4px;
  font-size:clamp(32px,6.8vw,48px);line-height:1.15;opacity:1;
  animation:cxup .7s ease 2.2s both;}
@keyframes cxup{from{opacity:0;transform:translateY(10px)}to{opacity:.94;transform:none}}

.cxchev{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.16);
  color:#FFF9F0;display:flex;align-items:center;justify-content:center;
  animation:cxup .45s ease .25s both;transition:background .16s,transform .16s;}
.cxchev svg{display:block;margin-left:2px;}
/* the back control mirrors the nudge, and sits quieter than the forward one —
   going on is the main action; going back is there if she wants it */
.cxchev.back{background:rgba(255,255,255,.09);opacity:.75;}
.cxchev.back svg{margin-left:0;margin-right:2px;}
.cxchev.back:active{background:rgba(255,255,255,.2);opacity:1;}
.cxchev:active{background:rgba(255,255,255,.3);transform:scale(.93);}
/* the last step: Continue takes the place of the words */
.cxgo{background:#FFF9F0;color:#23302B;border-radius:999px;
  padding:clamp(11px,1.9vh,14px) clamp(26px,6vw,38px);
  font-size:clamp(14px,2.2vw,16px);font-weight:800;white-space:nowrap;
  border:1px solid rgba(35,48,43,.08);box-shadow:0 4px 0 0 rgba(35,48,43,.22);
  animation:cxup .5s ease both;
  transition:background .16s ease,transform .08s ease,box-shadow .08s ease;}
.cxgo:hover{background:#FFFCF6;}
.cxgo:active{transform:translateY(4px);box-shadow:0 0 0 0 rgba(35,48,43,.22);}
@media (prefers-reduced-motion:reduce){
  /* The `:not(.dsc .eggo)` compound gate excludes the disclaimer's
     Continue pill from this kill \u2014 the disclaimer needs its button to
     stay hidden until the last icon has pulsed, and this !important
     opacity:1 rule would otherwise reveal it immediately on load
     regardless of the .dsc override we place further down. */
  .cxmid,.cxorbit,.cxh,.cxline,.cxchev,.cxex:not(.dsc) .cxgo,#cxmid.pulse,#cxhelpers.pulse .cxh{animation:none!important;opacity:1!important;transform:none!important;}
  /* the arms still appear and disappear with the paragraph, they simply do not
     breathe — the meaning survives, the movement does not */
  #cxarms.show .cxarm path{animation:none!important;stroke-dasharray:0.999 1!important;}
}

/* ---- a circle can be… ----
   Three shapes of circle, each turning at its own pace. */
.cxex .a-screen{gap:clamp(12px,2.4vh,20px);}
.egtitle{font-family:var(--round);font-weight:800;letter-spacing:-.3px;color:#FFF9F0;
  text-align:center;font-size:clamp(24px,5vw,34px);animation:cxup .5s ease .1s both;}
.egpanel{width:min(94%,420px);margin:0 auto;background:rgba(255,255,255,.14);
  border-radius:24px;padding:clamp(10px,2vh,16px) clamp(12px,3vw,18px);
  display:flex;flex-direction:column;gap:clamp(6px,1.4vh,12px);
  animation:cxup .5s ease .25s both;}
.egrow{display:flex;align-items:center;gap:clamp(11px,3vw,16px);
  padding:clamp(6px,1.2vh,10px) 0;}
.egrow+.egrow{border-top:1px solid rgba(255,249,240,.16);}
.egrow0{animation:cxup .5s ease .45s both;}
.egrow1{animation:cxup .5s ease .65s both;}
.egrow2{animation:cxup .5s ease .85s both;}
.egrow3{animation:cxup .5s ease 1.05s both;}
/* Icon-pulse timings live in the .dsc override block further down, because
   the disclaimer entrance is a different, slower choreography now than the
   old "A circle can be…" cascade this rule set was designed for. */
@keyframes dscPulse{
  0%  {transform:scale(1); box-shadow:0 0 0 0 rgba(255,249,240,.55);}
  35% {transform:scale(1.18); box-shadow:0 0 0 10px rgba(255,249,240,0);}
  70% {transform:scale(1);}
  100%{transform:scale(1); box-shadow:0 0 0 0 rgba(255,249,240,0);}
}
.eg{flex:none;display:block;overflow:visible;}
/* the r=43 circle inside each keeps the pivot centred */
.egorbit{transform-box:fill-box;transform-origin:center;}
.egorbit0{animation:orbit 30s linear infinite;}
.egorbit1{animation:orbit 38s linear infinite reverse;}
.egorbit2{animation:orbit 46s linear infinite;}
.egtext{color:rgba(255,249,240,.78);font-size:clamp(13.5px,2.2vw,16px);font-weight:500;
  line-height:1.45;}
/* full strength, matching the dots exactly */
.egc{color:#E7A24A;font-weight:800;}   /* the person at the centre */
.egh{color:#FFFFFF;font-weight:800;}   /* the helpers around her */
.egn{display:block;font-size:clamp(10.5px,1.7vw,12px);font-weight:700;
  letter-spacing:.6px;text-transform:uppercase;opacity:.6;margin-top:4px;}
.eggo{align-self:center;animation:cxup .5s ease 1.05s both;}
@media (prefers-reduced-motion:reduce){
  /* Kill only applies to the circle-examples screen (.cxex without .dsc);
     the disclaimer preview (.dsc, which also carries .cxex) is a legally
     important read-me sequence \u2014 its stagger is the point \u2014 so it
     opts out of the reduced-motion kill here rather than trying to win an
     !important override war further down. */
  .cxex:not(.dsc) .egtitle,
  .cxex:not(.dsc) .egpanel,
  .cxex:not(.dsc) .egrow,
  .cxex:not(.dsc) .egorbit,
  .cxex:not(.dsc) .eggo{animation:none!important;opacity:1!important;transform:none!important;}
}

/* ---- Post-signup disclaimer ----
   Two-phase choreography:

     Phase 1 (0.10\u20133.10s) \u2014 "Before you begin" fades in fast (0.5s),
                                holds for 2s while the reader lands on it,
                                then "A few things to keep in mind." fades
                                in with the same 0.5s snap.
     Phase 2 (from 3.60s)    \u2014 the panel expands from zero height, pushing
                                the head upward (a-screen is
                                justify-content:center, so the group centres
                                as it grows). Rows stagger in with their icon
                                heartbeats. The "I understand" button stays
                                fully collapsed (opacity:0, max-height:0)
                                until the very last icon pulse has settled
                                \u2014 it should never reserve space, or the
                                phase-1 heading wouldn't feel centred.

   Everything reuses .egpanel / .egrow visuals so the panel matches the
   welcome sequence, but the animation timings are all specified on .dsc
   overrides here to win over the base .egtitle/.egrow rules by specificity. */
.dsc .a-screen{gap:clamp(8px,1.6vh,14px);}
.dsc .egtitle{font-size:clamp(21px,4.4vw,30px);
  animation:cxup .5s ease .1s both;}
/* Subtitle waits 2s after the title finishes (title ends at 0.6s, so
   subtitle starts at 2.6s) then plays with the same 0.5s snap. */
.dsc .egsub{animation:cxup .5s ease 2.6s both;}
/* Panel and button collapse fully to zero height while they wait, so the
   head genuinely sits centred in phase 1 and then gets "pushed up" by the
   panel expanding underneath in phase 2. Negative margin cancels the flex
   gap while collapsed so there's no phantom whitespace before it opens.
   Base state (opacity:0, max-height:0) is set outside the media query so
   the button is truly invisible from the moment the page loads \u2014 not
   just at the 0% keyframe, which some browsers paint briefly during layout. */
.dsc .egpanel{opacity:0; max-height:0;
  margin-top:calc(-1 * clamp(8px,1.6vh,14px));
  animation:dscPanelIn 1.1s cubic-bezier(.25,.7,.3,1) 3.6s both;}
.dsc .egrow0{animation:cxup .7s ease 4.1s both;}
.dsc .egrow1{animation:cxup .7s ease 4.4s both;}
.dsc .egrow2{animation:cxup .7s ease 4.7s both;}
.dsc .egrow3{animation:cxup .7s ease 5.0s both;}
.dsc .egrow0 .dscic{animation:dscPulse 1.25s ease 4.2s both;}
.dsc .egrow1 .dscic{animation:dscPulse 1.25s ease 4.5s both;}
.dsc .egrow2 .dscic{animation:dscPulse 1.25s ease 4.8s both;}
.dsc .egrow3 .dscic{animation:dscPulse 1.25s ease 5.1s both;}
/* Button waits until the last disclaimer's pulse has fully settled
   (row 3 pulse 5.1s + 1.25s = 6.35s), so the reader sees every point
   before "I understand" appears. Also declared with a truly hidden base
   state \u2014 the .cxgo base class carries `animation:cxup .5s ease both;`
   which would otherwise fire on load; overriding the shorthand replaces
   that entirely, and the opacity/max-height:0 defaults keep it invisible
   during the wait. */
/* Button reveal is two independent animations layered on the same
   element, because we want two things to happen at very different times:

     1. Reserve the button's final space so it doesn't shove the panel
        upward when it actually appears. This runs alongside the panel
        opening (3.6s\u20134.7s), so the whole layout settles once during
        phase 2 and never moves again.
     2. Fade the button in ~5 s after the last disclaimer's pulse has
        settled (row 3 pulse ends at 6.35s), so the reader has real
        time to read every point before the "I understand" pill
        appears.

   Base state: fully invisible AND zero-height, so nothing shows or
   reserves space on load. */
.dsc .eggo{opacity:0; max-height:0;
  margin-top:calc(-1 * clamp(8px,1.6vh,14px));
  animation:
    dscBtnReserve 1.1s cubic-bezier(.25,.7,.3,1) 3.6s both,
    dscBtnFade .8s ease 11.4s both;}
.dsc .eggo{
  border: 1px solid rgba(29,78,62,.08);
  box-shadow: 0 3px 0 0 #0E241D;
}
.dsc .eggo:hover{
  background:#E7F1EC;
  border-color: rgba(29,78,62,.14);
}
.dsc .eggo:active{
  transform: translateY(3px);
  box-shadow: 0 0 0 0 #0E241D;
}
.dsc .blob{opacity:.14;}
.dsc .b2{opacity:.11;}
.dsc .b3{opacity:.10;}
.dsc .b4{opacity:.09;}
@keyframes dscPanelIn{
  0%   {opacity:0; max-height:0; margin-top:calc(-1 * clamp(8px,1.6vh,14px));
        transform:translateY(14px);}
  100% {opacity:1; max-height:640px; margin-top:0; transform:none;}
}
@keyframes dscBtnReserve{
  /* Slides in from below and grows to its final size, but stays fully
     invisible (opacity:0) \u2014 the second animation, dscBtnFade, is what
     later reveals it. Same easing as dscPanelIn so the two grow together
     as one settled block. */
  0%   {max-height:0; margin-top:calc(-1 * clamp(8px,1.6vh,14px));
        transform:translateY(8px);}
  100% {max-height:90px; margin-top:0; transform:none;}
}
@keyframes dscBtnFade{
  /* Opacity-only reveal after the layout has long since settled, so the
     button appears "in the right place" without moving anything. */
  0%   {opacity:0;}
  100% {opacity:1;}
}
.egsub{color:rgba(255,249,240,.78);text-align:center;font-size:clamp(12.5px,2vw,15px);
  line-height:1.4;max-width:min(94%,420px);margin:0 auto;
  white-space:nowrap;
  animation:cxup .5s ease .2s both;}
.dscpanel{gap:clamp(4px,0.9vh,8px);padding:clamp(8px,1.6vh,14px) clamp(12px,3vw,18px);}
.dscrow{align-items:flex-start;gap:clamp(10px,2.6vw,14px);
  padding:clamp(4px,0.8vh,7px) 0;}
.dscic{flex:none;display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;border-radius:10px;background:rgba(255,255,255,.14);
  margin-top:1px;}
.dscic svg{width:20px;height:20px;}
.dsctext{color:#FFF9F0;line-height:1.35;font-weight:500;}
.dscb{font-size:clamp(12.5px,2.05vw,14.5px);font-weight:700;
  color:#FFF9F0;line-height:1.3;}
.dscp{font-size:clamp(11px,1.75vw,12.5px);font-weight:500;line-height:1.4;
  color:rgba(255,249,240,.82);margin-top:5px;}
@media (prefers-reduced-motion:reduce){
  /* The .cxex kill above already skips .dsc via :not(.dsc), so the
     entrances all fire from their base declarations. Only the icon
     heartbeat pulse and the drifting bubbles are actual motion the
     reader might want suppressed, so those are what we kill here. */
  .dsc .egrow0 .dscic,.dsc .egrow1 .dscic,
  .dsc .egrow2 .dscic,.dsc .egrow3 .dscic{
    animation:none!important;box-shadow:none!important;transform:none!important;}
  .dsc .blob{animation:none!important;}
}

/* ---- first-run title sequence ----
   Welcome to → NONNA (light sweeping through the letters) → loading dots →
   the question, the pair and the two choices. A tap skips to the end. */
#assisted.flat{background:#2F7364;}
.intro .st{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;opacity:0;visibility:hidden;pointer-events:none;}

/* 1 · Welcome to */
.st1{animation:beat1 1.7s ease both;}
@keyframes beat1{0%{opacity:0;visibility:visible;transform:translateY(10px)}
  25%{opacity:1;transform:none} 75%{opacity:1;transform:none}
  99%{opacity:0;visibility:visible;transform:translateY(-8px)}
  100%{opacity:0;visibility:hidden;transform:translateY(-8px)}}
.welcome{font-size:calc(clamp(30px,6vw,44px) * var(--ts));font-weight:700;letter-spacing:.5px;
  color:#FFF9F0;opacity:.92;}

/* 2 · the mark hugs, spins down to a lockup, the name shines in, then the pair
   lift together as the loading dots appear beneath them. */
.st2{animation:beat2 6.15s ease 1.7s both;}
@keyframes beat2{0%{opacity:0;visibility:visible} 2%{opacity:1} 98%{opacity:1}
  99%{opacity:0;visibility:visible} 100%{opacity:0;visibility:hidden}}
.lockwrap{display:flex;flex-direction:column;align-items:center;}
.lock{position:relative;width:min(94%,340px);height:150px;
  animation:lift .55s cubic-bezier(.3,.8,.4,1) 3.62s both;}
@keyframes lift{from{transform:translateY(0)}to{transform:translateY(-18px)}}
.hugmark{position:absolute;top:50%;left:50%;transform-origin:50% 50%;
  animation:markIn .34s cubic-bezier(.34,1.2,.5,1) 1.7s both,
            markSet .46s cubic-bezier(.5,0,.2,1) 2.72s both;}
.hugmark svg{display:block;filter:drop-shadow(0 6px 20px rgba(0,0,0,.2));}
@keyframes markIn{
  from{opacity:0;transform:translate(-50%,-50%) scale(.72)}
  to  {opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes markSet{
  from{transform:translate(-50%,-50%) scale(1) rotate(0deg)}
  to  {transform:translate(calc(-50% - 74px),-50%) scale(.4) rotate(360deg)}}
/* the arms draw in twice, like a squeeze */
.armT{animation:hugT .42s ease-in-out 2.06s 2 both;}
.armB{animation:hugB .42s ease-in-out 2.06s 2 both;}
@keyframes hugT{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
@keyframes hugB{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.armT,.armB{transform-box:view-box;transform-origin:50% 50%;}
/* The name arrives beside the mark, then a highlight travels across it.
   Two background layers: a solid one so the letters are always filled, and the
   moving band on top — otherwise the word vanishes once the band sweeps past. */
.word{position:absolute;top:50%;left:50%;white-space:nowrap;
  font-family:'Caveat','Bradley Hand','Segoe Script',cursive;
  font-size:calc(62px * var(--ts));font-weight:700;letter-spacing:1px;
  background-image:
    linear-gradient(96deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.95) 50%,rgba(255,255,255,0) 100%),
    linear-gradient(#F2F7F3,#F2F7F3);
  background-repeat:no-repeat,no-repeat;
  background-size:200px 100%, 100% 100%;
  background-position:-240px 0, 0 0;
  -webkit-background-clip:text;background-clip:text;
  color:transparent;-webkit-text-fill-color:transparent;
  filter:drop-shadow(0 4px 14px rgba(0,0,0,.18));
  animation:wordIn .5s cubic-bezier(.3,.8,.4,1) 3.02s both,
            shine .66s cubic-bezier(.35,0,.3,1) 3.30s both;}
@keyframes wordIn{
  from{opacity:0;transform:translate(-50%,-50%) translateX(54px)}
  to  {opacity:1;transform:translate(-50%,-50%) translateX(36px)}}
/* px, not %, so the direction is unambiguous: left edge to right edge */
@keyframes shine{
  from{background-position:-240px 0, 0 0}
  to  {background-position:320px 0, 0 0}}

/* a small bar fills while things get ready — it arrives as the lockup lifts,
   rather than replacing it. The inner fill is inset so the track always shows. */
.loadbar{width:clamp(132px,36vw,178px);height:15px;border:2px solid rgba(255,249,240,.9);
  border-radius:999px;padding:2.5px;margin-top:14px;
  animation:barIn .5s ease 3.66s both;}
@keyframes barIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.loadbar i{display:block;height:100%;width:0;background:#FFF9F0;border-radius:999px;
  animation:loadfill 4s linear 3.80s both;}
@keyframes loadfill{from{width:0}to{width:100%}}

/* 4 · the choice */
.st4{animation:beat4 .75s ease 7.9s both;gap:clamp(10px,2vh,18px);}
@keyframes beat4{from{opacity:0;visibility:visible;transform:translateY(16px)}
  to{opacity:1;visibility:visible;transform:none}}
.intro.armed .st4,.intro.done .st4{pointer-events:auto;}
.intro.done .st1,.intro.done .st2{animation:none;opacity:0;visibility:hidden;}
.intro.done .hugmark,.intro.done .word,.intro.done .armT,.intro.done .armB,
.intro.done .lock,.intro.done .loadbar,.intro.done .loadbar i{animation:none;}
.intro.done .st4{animation:none;opacity:1;visibility:visible;transform:none;pointer-events:auto;}

.askq{font-size:calc(clamp(26px,5.2vw,38px) * var(--ts));font-weight:800;color:#FFF9F0;text-align:center;
  letter-spacing:-.3px;line-height:1.15;padding:0 6px;}

/* full-width choice panels, always stacked */
.whopick{display:flex;flex-direction:column;gap:clamp(9px,1.8vh,14px);width:100%;}
.whocard{width:100%;background:rgba(255,255,255,.17);border-radius:22px;
  padding:clamp(14px,2.4vh,20px) clamp(16px,3vw,22px);
  min-height:clamp(96px,15vh,124px);          /* both panels the same size */
  display:flex;flex-direction:row;align-items:center;gap:clamp(13px,3vw,18px);
  text-align:left;transition:transform .18s,background .18s;}
.whocard:active{transform:scale(.985);background:rgba(255,255,255,.27);}
/* the recommended route reads as the solid, primary action */
.whocard.primary{background:#FFF9F0;box-shadow:0 10px 26px rgba(0,0,0,.16);}
.whocard.primary:active{background:#F3EADC;}
.whocard.primary b{color:#233C33;}
.whocard.primary small{color:#4E6B5E;opacity:1;}
.pill{display:inline-block;background:#2F7364;color:#FFF9F0;border-radius:999px;
  padding:3px 10px;font-size:clamp(9.5px,1.5vw,11px);font-weight:800;letter-spacing:1px;
  text-transform:uppercase;margin-bottom:5px;}
.askfoot{text-align:center;font-size:clamp(11px,1.7vw,13px);font-weight:600;
  color:#FFF9F0;opacity:.75;line-height:1.45;padding:0 8px;}
.whoic{width:clamp(40px,7vw,52px);height:clamp(40px,7vw,52px);flex:none;display:block;}
.whoic svg{width:100%;height:100%;}
.wt{display:block;}
.whocard b{display:block;font-size:calc(clamp(17px,2.8vw,22px) * var(--ts));font-weight:800;color:#FFF9F0;}
.whocard small{display:block;font-size:calc(clamp(11.5px,1.8vw,14px) * var(--ts));font-weight:600;
  color:#FFF9F0;opacity:.8;line-height:1.4;margin-top:2px;}

@media (prefers-reduced-motion:reduce){
  .st1,.st2{display:none;}
  .st4{animation:none;opacity:1;visibility:visible;transform:none;pointer-events:auto;}
  /* reduced motion: the clip is skipped and the closing frame is set in JS */
}
.mark2{font-size:clamp(17px,2.6vw,22px);font-weight:800;letter-spacing:1px;color:#FFF9F0;opacity:.9;}
.mark2 span{color:#FFD9A0;}
.whopick{display:flex;flex-direction:column;gap:clamp(12px,2.4vh,20px);margin-top:clamp(20px,4vh,38px);}
@media(min-width:620px){.whopick{flex-direction:row;}}
.whocard{flex:1;background:rgba(255,255,255,.17);border-radius:26px;
  padding:clamp(20px,3.4vh,30px) clamp(16px,2.6vw,24px);text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  box-shadow:0 var(--btn-lift) 0 0 rgba(0,0,0,.20);
  transition:transform .08s ease, box-shadow .08s ease, background .18s;}
.whocard:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 rgba(0,0,0,.20);background:rgba(255,255,255,.27);}
.whoic{width:clamp(52px,8vw,68px);height:clamp(52px,8vw,68px);display:block;}
.whoic svg{width:100%;height:100%;}
.whocard b{font-size:calc(clamp(17px,2.6vw,23px) * var(--ts));font-weight:800;color:#FFF9F0;}
.whocard small{font-size:calc(clamp(11.5px,1.7vw,14px) * var(--ts));font-weight:600;color:#FFF9F0;opacity:.82;
  line-height:1.45;max-width:230px;}
/* helper choice */
.bigopt{width:100%;display:flex;gap:13px;align-items:flex-start;text-align:left;background:#fff;
  border:1px solid var(--line);border-radius:12px;padding:15px 16px;margin-bottom:10px;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-neutral);
  transition:var(--btn-ease), border-color .15s;}
.bigopt:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-neutral);border-color:var(--ok);}
.optic{width:36px;height:36px;border-radius:12px;background:#E3EDEA;display:flex;align-items:center;
  justify-content:center;flex:none;}
.optic.ok{background:var(--ok-bg);}
.optic svg{width:19px;height:19px;}
.bigopt b{font-size:calc(13.5px * var(--ts));font-weight:600;display:block;}
.bigopt small{font-size:calc(11px * var(--ts));color:var(--txt-2);display:block;margin-top:3px;line-height:1.45;}
/* Compact tile picker \u2014 3 across, equal square tiles filling the row. Used for the therapy
   "What kind of care?" picker where six categories need to fit on one
   screen. Drops the subtitle used by .bigopt because the icon+label is
   self-explanatory in tile form. */
.picktiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:2px 0 10px;align-items:stretch;}
.picktile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  background:var(--ok);border:0;border-radius:12px;padding:12px 13px;
  width:100%;aspect-ratio:1/1;min-width:0;text-align:center;overflow:hidden;box-sizing:border-box;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok);
  transition:var(--btn-ease);}
.picktile:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-ok);}
.picktile .optic{width:34px;height:34px;flex:none;display:flex;align-items:center;justify-content:center;background:transparent;border-radius:0;}
.picktile .optic svg{width:22px;height:22px;display:block;}
/* Keep the new-care-item buttons visually stable even if the global font
   scale changes elsewhere in the app. */
.picktile b{font-size:13.5px;font-weight:600;line-height:1.08;font-family:inherit;
  color:#fff;white-space:normal;word-break:keep-all;hyphens:none;
  padding:0 1px 1px;max-width:100%;display:block;overflow-wrap:normal;}
.codechip{display:inline-block;margin-top:9px;background:#EBF1EE;border-radius:6px;padding:5px 9px;
  font-size:11px;color:var(--txt-2);}
.codechip b{font-variant-numeric:tabular-nums;letter-spacing:.8px;color:var(--txt);}
.lnk{color:var(--ok);font-weight:600;text-decoration:underline;font-size:inherit;padding:0;}
.med-row{display:flex;align-items:center;gap:11px;flex:1;min-width:0;}
.medcopy{flex:1;min-width:0;}
.lbl{font-size:11px;font-weight:700;letter-spacing:1.6px;color:#9CBAAD;text-transform:uppercase;}
.hd h1{margin:5px 0 0;font-size:21px;font-weight:600;letter-spacing:-.3px;}
.chip{display:inline-flex;align-items:center;gap:6px;margin-top:8px;border-radius:6px;padding:4px 9px;
  font-size:11px;font-weight:600;}
.chip.ok{background:rgba(60,138,104,.22);color:#8FDCB6;}
.chip.miss{background:rgba(188,70,60,.24);color:#F2A69E;}
.chip i{width:6px;height:6px;border-radius:50%;background:currentColor;}
.chip.calmflash{animation:calmchip 6s ease-in-out infinite;}
.chip.calmflash i{animation:calmdot 6s ease-in-out infinite;}
/* Smoother calm-chip breath. Previous version jumped from .18 to .3 opacity
   and from #82D3AA to #B6F1D1 in 1.9s, which read as a flicker. Halve the
   amplitude, slow the tempo, and lose the ring-shadow so it looks like a
   slow breath rather than a pulse. */
@keyframes calmchip{
  0%,100%{background:rgba(60,138,104,.20);color:#8FDCB6;}
  50%    {background:rgba(60,138,104,.26);color:#A6E4C4;}
}
@keyframes calmdot{
  0%,100%{transform:scale(1);   opacity:.9;}
  50%    {transform:scale(1.08);opacity:1;}
}
.body{flex:1;overflow-y:auto;padding:16px 16px 26px;-webkit-overflow-scrolling:touch;
  /* The whole surface is rebuilt on every render(). Scroll anchoring would
     otherwise pick a new anchor node from the replaced tree and yank the
     viewport around — which read as "the page jumps when I tap a toggle"
     inside the therapy editor. render()'s own scroll preservation is the
     source of truth; disabling anchoring keeps the browser out of its way. */
  overflow-anchor:none;
  /* Always reserve room for the scrollbar on BOTH sides. Reserving only
     on one edge (the default `stable` behaviour) keeps column widths
     stable across days but pushes the content off-centre \u2014 you'd see
     the whole layout shifted left by half a scrollbar-width. `both-edges`
     mirrors the gutter on the left too, so the content column stays
     visually centred whether the scrollbar is drawn or not, and content
     width still doesn't change between short and long days. */
  scrollbar-gutter:stable both-edges;}

/* Helper-app text-size preference. Applied via `<div id="assisting" class="ts-*">`
   in render(), so it scales the whole scrollable surface but leaves the fixed
   tab bar and the top chrome (persona switcher) at their intended sizes.
   `zoom` is used rather than retrofitting `--ts` into every font-size in the
   sheet — it is well-supported in Chrome, Edge, Safari, and Firefox 126+, and
   scales layout in one line without dozens of `calc()` rewrites. */
#assisting.ts-small .body{zoom:.92;}
#assisting.ts-large .body{zoom:1.15;}
.sec{font-size:11px;font-weight:700;letter-spacing:1.35px;color:var(--txt-3);text-transform:uppercase;margin:18px 0 10px;}
.sec:first-child{margin-top:2px;}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 15px;margin-bottom:10px;}
/* the frame you fill an appointment into glows amber while you are in it */
.card.halo{border-color:#E8C88A;box-shadow:0 0 0 4px rgba(231,162,74,.18);}
.moneytogglecard{margin-bottom:12px;padding:2px 0;}
.moneytoggle{background:#F7FBF8;border:1px solid #D8E4DD;border-radius:12px;padding:12px 16px 12px 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);}
.moneytoggle.tog{padding:12px 16px 12px 14px;}
.moneytoggle .togtitle{font-size:13.5px;font-weight:600;color:var(--txt);letter-spacing:0;text-transform:none;line-height:1.2;}
.moneytoggle .sw{margin-right:4px;}
/* One empty-state look everywhere: pale green card, centred title. */
.emptypanel{background:#F7FBF9;border:1px solid #DCE8E1;border-radius:12px;
  padding:14px 15px;margin-bottom:10px;text-align:center;}
.emptytitle{font-size:13.5px;font-weight:600;color:var(--txt);letter-spacing:0;line-height:1.2;}
.centeredtoggle{justify-content:center;align-items:center;gap:0;text-align:center;}
.centeredtoggle>div{display:flex;justify-content:center;flex:1;min-width:0;}
.centeredtoggle .togtitle{font-size:13.5px;font-weight:600;color:var(--txt);letter-spacing:0;text-transform:none;line-height:1.2;}
.centeredtoggle .sw{display:none;}
.moneylistcard{padding:8px 15px 7px;}
.moneydebtcard{padding-top:8px;}
.moneydebtrow{align-items:center;padding:11px 0;}
.moneydebtcopy{min-width:0;flex:1;}
.moneydebtcopy .d{font-size:13.5px;font-weight:600;line-height:1.4;color:var(--txt);}
/* Shared right-hand rail for every money row: debts, expenses, settled.
   Two fixed-width tracks (action pill | amount) so Settle / Edit / Undo
   line up in one column across the three cards, and every amount lines
   up in the column next to it. Baseline alignment so the pill label
   sits on the same text baseline as the amount rather than dropping
   below it. Pill sits close to the amount (small gap) so the button
   reads as "attached" to its number rather than floating in mid-row. */
.moneyrail{display:flex;align-items:center;justify-content:flex-end;
  gap:7px;flex:none;}
.moneyrail .moneyact,.moneyrail .moneyact-spacer{
  flex:none;width:58px;box-sizing:border-box;
  padding:5px 0;font-size:11px;font-weight:700;text-align:center;
  border-radius:8px;}
.moneyrail .moneyact{display:inline-flex;align-items:center;justify-content:center;
  margin-top:0;margin-right:0;line-height:1;min-height:30px;}
/* Placeholder for rows the current user can't act on — keeps the amount
   column aligned even when no button renders. */
.moneyrail .moneyact-spacer{display:inline-block;background:none;border:0;padding:0;height:1px;}
.moneyrail .moneyamt{flex:none;width:70px;text-align:right;
  font-size:13.5px;font-weight:700;line-height:1.2;color:var(--txt);
  font-variant-numeric:tabular-nums;}
/* Old .moneydebtside / .moneysettledside still apply their positioning
   because the row templates still carry those classes; keep them as
   thin wrappers so any external tweak still works. */
.moneydebtside,.moneysettledside{display:flex;}
.moneystanding{display:inline-flex;align-items:baseline;gap:7px;justify-content:flex-end;min-width:96px;}
.moneystanding-label{font-size:11px;font-weight:600;letter-spacing:.01em;}
.moneystanding-amt{font-size:13.5px;font-weight:600;color:inherit;}
.moneystanding.owed{color:var(--ok);}
.moneystanding.owes{color:var(--miss);}
.moneystanding.square{color:var(--txt-3);}
.moneylistcard .led{padding:10px 0;}
.moneylistcard .led:first-child{padding-top:2px;}
.moneylistcard .led:last-child{padding-bottom:2px;}
.moneylistcard .w{margin-top:1px;}
/* Settled row copy column mirrors the debt copy column so the rail on
   the right lines up across all three card types. */
.moneysettledrow{align-items:center;}
.moneysettledcopy{min-width:0;flex:1;}
.row{display:flex;gap:12px;}
.secrow{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 10px;}
.therapysecrow .tag{margin:0;flex:none;}
.plansecrow{padding-right:12px;}
.sectioncta{flex:none;min-width:74px;height:34px;padding:0 14px;border-radius:8px;
  background:var(--slate);border:1px solid var(--slate);color:#fff;font-size:12.5px;font-weight:600;
  letter-spacing:.2px;line-height:1;display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-slate);transition:var(--btn-ease);}
.sectioncta.appt{background:var(--slate);border-color:var(--slate);box-shadow:0 var(--btn-lift) 0 0 var(--ledge-slate);}
.sectioncta.small{min-width:0;height:30px;padding:0 12px;font-size:11px;}
.plansecrow .sectioncta{min-width:88px;width:88px;height:34px;padding:0 11px;
  border-radius:8px;font-size:12.5px;font-weight:600;line-height:1;
  box-sizing:border-box;flex:0 0 88px;}
.sectioncta:hover,.sectioncta:focus-visible{filter:brightness(1.03);outline:none;}
.sectioncta:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-slate);}
.sectioncta.appt:active{box-shadow:0 0 0 0 var(--ledge-slate);}
.therapytop{margin-bottom:8px;}
.apptstrip{overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;
  margin:0 0 10px;padding:0 1px 6px;}
.apptframe{display:flex;gap:10px;width:max-content;min-width:100%;padding:10px;border-radius:12px;
  border:1px solid #2F6E57;background:#3E7D65;box-shadow:inset 0 0 0 1px rgba(214,235,224,.18);}
.apptpeek{min-width:min(260px,82vw);max-width:min(300px,82vw);padding:12px 13px;border-radius:12px;
  border:1px solid #E8D3AA;background:linear-gradient(180deg,#FFF9EE 0%,#FFFDF8 100%);color:#6A4B16;
  text-align:left;display:flex;flex-direction:column;gap:6px;scroll-snap-align:start;box-shadow:0 3px 10px rgba(184,144,61,.07);}
.apptpeek:disabled{opacity:1;cursor:default;}
.apptpeek-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.apptpeek-who{font-size:13.5px;font-weight:700;color:#463013;}
.apptpeek-spec{font-size:11px;color:#8A6A2F;margin-top:2px;line-height:1.35;}
.apptpeek-time{font-size:12.5px;color:#6B5330;}
.apptpeek-lift{font-size:11px;color:#74633F;line-height:1.35;}
.apptpeek-lift.warn{color:var(--pend);}
/* Appointment card \u2014 calendar-block layout.
   Left column is a small Month/Day/Weekday tile carrying the amber
   accent so a scan of the list reads as \u201cwhich week are we in\u201d
   first; body on the right stacks doctor, specialty, and icon-row
   metadata (time, place, lift). The Edit button sits at the top-right
   of the card and reuses .sectioncta.appt so it matches the Book
   button\u2019s lighter-green rails exactly.
   Base .card padding is overridden because the two-column layout
   needs to control its own gaps. */
.apptcard{background:var(--card);border-color:var(--line);padding:11px 12px 14px 14px;
  display:flex;gap:14px;align-items:stretch;}
.apptcard-date{flex:none;width:56px;background:#FFF6E6;border:1px solid #EBD3A7;
  border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:8px 0 10px;color:#8E5A1E;line-height:1;}
.apptcard-date .m{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;}
.apptcard-date .d{font-family:'Nunito','Segoe UI',system-ui,sans-serif;font-size:26px;font-weight:800;
  line-height:1;margin-top:2px;color:#C08236;font-variant-numeric:tabular-nums;}
.apptcard-date .w{font-size:11px;color:#8E5A1E;opacity:.75;margin-top:3px;
  letter-spacing:.06em;text-transform:uppercase;}
.apptcard-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;}
.apptcard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;}
.apptcard-heading{min-width:0;flex:1;}
.apptcard-who{font-size:13.5px;font-weight:700;color:var(--txt);line-height:1.2;}
.apptcard-spec{font-size:11px;color:var(--txt-2);margin-top:2px;line-height:1.35;}
.apptcard-meta{display:flex;flex-direction:column;gap:4px;margin-top:6px;}
.apptcard-meta .row{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--txt-2);
  line-height:1.4;}
.apptcard-meta .row.warn{color:var(--pend);font-weight:600;}
.apptcard-meta .ic{width:14px;height:14px;flex:none;}
.apptcard-foot{display:flex;align-items:center;gap:8px;margin-top:9px;padding-top:9px;
  border-top:1px dashed var(--line);}
.apptpeek-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:2px;}
.apptpeek-edit{font-size:11px;font-weight:700;color:#9D7223;letter-spacing:.2px;text-transform:uppercase;}
/* Appointment Edit uses the same rail geometry as the care-plan Edit
   chip so the green button sits flush on the same right-hand rail. */
.apptcard .minibtn{font-size:12.5px;font-weight:600;color:#fff;background:var(--slate);
  border-radius:8px;height:34px;padding:0 11px;line-height:1;border:1px solid var(--slate);
  min-width:var(--task-act-w);width:var(--task-act-w);display:inline-flex;align-items:center;justify-content:center;
  text-align:center;box-sizing:border-box;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-slate);transition:var(--btn-ease);}
.apptcard .minibtn:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-slate);}
.apptcard .minibtn.ok{background:var(--ok);border-color:var(--ok);color:#fff;box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok);}
.apptcard .minibtn.ok:active{box-shadow:0 0 0 0 var(--ledge-ok);}
.tnum{font-variant-numeric:tabular-nums;font-feature-settings:"tnum";}
/* the live clock line through today */
/* No outer green frame: the row now sits directly on the page, left-aligned,
   with the time pill on the left and the "Next · <task> at <time>" line
   next to it. The pill itself is squared with the same 8px radius the rest
   of the UI uses so it stops looking like a floating capsule. */
.nowbar{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;
  text-align:left;background:none;border:0;
  border-radius:0;padding:0;margin-bottom:12px;}
.nowtimepill{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
  padding:5px 9px;border-radius:8px;background:#fff;border:1px solid #CFE3D8;
  box-shadow:none;margin-left:0;}
.nowdot{width:8px;height:8px;border-radius:50%;background:var(--ok);flex:none;
  animation:pulse 2.4s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}
.nowtime{font-size:13.5px;font-weight:700;color:#2E6B50;line-height:1.1;white-space:nowrap;}
.nowtext{font-size:12.5px;color:#3C6759;line-height:1.35;min-width:0;max-width:100%;}
.nowtext b{color:#2E6B50;font-weight:700;}
/* Today-tab day nav — arrows on either side of the day label. Independent of
   the calendar's month cursor, so nudging Today with ‹ / › doesn't scramble
   the month view underneath. The reset chip only appears when we're on a
   day other than actual today. */
.daynav{display:flex;align-items:center;gap:10px;margin:0 0 12px;}
.daynav-arrow{width:38px;height:38px;border-radius:12px;background:#F0F3F1;
  color:var(--txt-1);font-size:22px;line-height:1;font-weight:700;flex:none;}
.daynav-arrow:active{background:#E4EAE6;}
.daynav-label{flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:3px;text-align:center;}
.daynav-label b{font-size:16px;font-weight:700;color:var(--txt-1);}
.daynav-reset{font-size:11px;font-weight:600;color:var(--txt-3);
  background:transparent;text-decoration:underline;padding:0;}
.daynav-reset:active{color:var(--txt-1);}
/* the folded-away part of the morning */
.earlier{display:flex;align-items:center;gap:9px;width:100%;text-align:left;
  background:#F3F6F4;border:1px dashed #D7E0DA;border-radius:12px;
  padding:8px 11px;margin:0 0 0 -8px;font-size:11px;font-weight:600;color:var(--txt-3);}
.earlier:active{background:#EAF0EC;}
.earlier span:nth-child(2){flex:1;}
.earlier .echev{font-size:16px;line-height:1;color:var(--txt-3);}
/* The container must not dim as well as its rows. It used to sit at .55 while
   each row inside already carried .ev.gone at .5, and opacity multiplies — so
   items revealed under "earlier today" landed near .27 while the just-passed
   one sat at .5, making the older ones read as progressively fainter. Past is
   past: one weight for all of it, matching the most recent. */
.earlierlist{opacity:1;display:flex;flex-direction:column;gap:18px;}
.nowline{position:relative;height:0;margin:0 0 0 -26px;
  border-top:2px dashed rgba(60,138,104,.5);}
.nowline span{position:absolute;left:0;top:-8px;background:var(--ok);color:#fff;
  font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;
  border-radius:5px;padding:2px 6px;}
/* Deliberately no .nowline.past dim rule. The NOW marker anchors the reader
   to the actual clock time and must stay legible at the end of the day, when
   there is nothing left below it — that's precisely when a faded marker
   reads as "the app has stopped caring". */
.ev.gone{opacity:.5;}
.ev.gone .t{font-weight:500;}
/* Vertical rhythm is controlled by `gap` on the timeline container rather
   than by margin-bottom on each child. That way every child — whether it's
   an .ev row, the "earlier today" collapse button, the NOW divider, or the
   closing "Nothing more for today." line — sits the same distance from its
   neighbour. Mixing margin-bottom on some and margin-top on others is what
   was making the gap between 9:00 and 10:00 read as larger than the gap
   between 10:00 and 12:30. */
.tl{position:relative;padding-left:26px;display:flex;flex-direction:column;gap:18px;}
.tl:before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line);}
.ev{position:relative;}
.ev .mk{position:absolute;left:-26px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff;
  border:2.5px solid var(--txt-3);}
.ev.done .mk{background:var(--ok);border-color:var(--ok);}
.ev.pend .mk{background:var(--pend);border-color:var(--pend);}
.ev.miss .mk{background:var(--miss);border-color:var(--miss);}
/* Head row: [icon] [time+name / kind stack] [outcome tag + Yours pill].
   Two-column flex, the tags column right-aligned so the pills always land
   in the same rightmost visual column regardless of title length. */
.evhead{display:flex;align-items:flex-start;gap:9px;}
.evhead .tico{flex:none;line-height:0;margin-top:2px;}
.evheadtext{flex:1;min-width:0;}
.apptactions{--task-act-w:88px;--task-act-col:99px;display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none;min-width:var(--task-act-col);}
.evtags{flex:none;display:flex;flex-direction:column;align-items:flex-end;
  gap:4px;align-self:flex-start;}
.evtags .tag{margin:0;}
.ev .t{font-size:13.5px;font-weight:600;}
.ev .m{font-size:11px;color:var(--txt-2);margin-top:3px;}
.tag{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;border-radius:5px;padding:2.5px 7px;margin-top:6px;margin-right:5px;line-height:1;vertical-align:middle;}
.tag.done{background:var(--ok-bg);color:#2E6B50;}
.tag.ok{background:var(--ok-bg);color:#2E6B50;}
.tag.pend{background:var(--pend-bg);color:var(--pend);}
.tag.miss{background:var(--miss-bg);color:var(--miss);}
.tag.n{background:#EBF1EE;color:var(--txt-2);}
.tag.eye{background:#E3EDEA;color:#3C6759;}
.tag.you{background:var(--ok);color:#fff;}
/* Witness variant of the "you" pill \u2014 slate rather than green so the two
   states are distinguishable at a glance. Same weight and legibility as
   .tag.you; deliberately a different colour family so it doesn't read as
   "I'm doing it" when the actual instruction is "I'm double-checking it". */
.tag.youchk{background:var(--slate);color:#fff;}
/* Calendar row Edit/Remove and Money rail Settle/Edit/Undo buttons wear
   the ledge system too. Scoped to <button> so the informational .tag
   pills used as read-only chips (Circle only, Yours, sees this, etc.)
   stay flat — a shadow under a passive chip reads as a button and
   invites a tap that does nothing.
   .ev > button.tag.n — calendar row actions on today's timeline.
   button.moneyact         — money-rail Settle/Edit/Undo. */
.ev > button.tag.n{box-shadow:0 var(--btn-lift) 0 0 var(--ledge-neutral);transition:var(--btn-ease);}
.ev > button.tag.n:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-neutral);}
button.moneyact{box-shadow:0 var(--btn-lift) 0 0 var(--ledge-neutral);transition:var(--btn-ease);}
button.moneyact.ok{box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok-soft);}
button.moneyact.warn{background:rgba(255,190,175,.22);color:#8E4A42;border-color:#D8A39A;}
button.moneyact:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-neutral);}
button.moneyact.ok:active{box-shadow:0 0 0 0 var(--ledge-ok-soft);}
button.awayact{box-shadow:0 var(--btn-lift) 0 0 var(--ledge-neutral);transition:var(--btn-ease);}
button.awayact:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-neutral);}
.logrow{align-items:center;}
.logrow .logcopy{flex:1;min-width:0;}
.logrow .tag{margin:0 0 0 10px;align-self:center;flex:none;min-width:66px;text-align:center;}
.logmore{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:30px;
  margin-top:4px;padding:4px 0;font-size:12.5px;line-height:1;color:var(--txt-2);
  background:none;border:none;cursor:pointer;text-align:center;text-decoration:underline;}
.ev.mine .mk{box-shadow:0 0 0 3.5px rgba(60,138,104,.25);}
.ev.mine .t{color:var(--ok);}
.cvrow.mine .cvname{color:var(--ok);font-weight:700;}
.bar{height:7px;border-radius:4px;background:#3A5147;overflow:hidden;margin:9px 0 8px;}
.bar i{display:block;height:100%;background:var(--ok);border-radius:4px;}
.money{background:var(--ink);color:#fff;border-radius:12px;padding:15px 16px;margin-bottom:10px;}
.money .amt{font-size:25px;font-weight:600;letter-spacing:-.5px;}
.budgethead{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.budgetpen{width:30px;height:30px;border-radius:8px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.09);color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex:none;}
.budgetpen:hover,.budgetpen:focus-visible{background:rgba(255,255,255,.16);outline:none;}
.budgetpen:active{transform:scale(.97);}
.budgetedit{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.14);}
.budgetedit label{display:block;font-size:11px;font-weight:600;color:#C6D6CD;margin-bottom:6px;}
.budgeteditrow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.budgeteditrow input{width:128px;border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:9px 10px;
  background:#fff;color:var(--txt);font-size:13.5px;text-align:right;}
.budgetedit .tag{margin-top:0;}
.budgetcurrow{margin-bottom:10px;}
.budgetcurrow select{max-width:100%;border:1px solid rgba(255,255,255,.18);border-radius:8px;padding:9px 10px;
  background:#fff;color:var(--txt);font-size:13.5px;}
.budgetcurask{font-size:11.5px;line-height:1.45;color:#E6EFEA;background:rgba(255,255,255,.08);
  border-radius:8px;padding:9px 10px;margin:0 0 10px;}
.budgetcurask .budgeteditrow{margin-top:8px;}
.budgetactions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.budgetaction{display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  padding:0 16px;border-radius:12px;font-size:12.5px;font-weight:700;line-height:1;
  text-align:center;white-space:nowrap;transition:var(--btn-ease);}
.budgetaction.save{background:var(--ok-bg);color:#1F6B4B;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok-soft);}
.budgetaction.cancel{background:#EBF1EE;color:var(--txt);
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-neutral);}
.budgetaction:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-neutral);}
.budgetaction.save:active{box-shadow:0 0 0 0 var(--ledge-ok-soft);}
.budgeterr{font-size:11px;color:#FFD7D2;margin-top:6px;}
.led{display:flex;justify-content:space-between;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);gap:10px;}
.led:last-child{border-bottom:none;}
.led .d{font-size:13.5px;font-weight:600;}
.led .w{font-size:11px;color:var(--txt-2);margin-top:2px;}
.led .v{font-size:13.5px;font-weight:600;}
/* Button variant of .led \u2014 vault document rows are tappable so the info
   dialog can open. Reset the browser button chrome, keep the rest of the
   row's shape identical to the plain-div variant. */
.ledbtn{width:100%;background:none;border:0;text-align:left;color:inherit;cursor:pointer;
  padding:11px 0;font:inherit;}
.ledbtn:active{opacity:.75;}
.ledbtn .chev{color:var(--txt-3);font-size:16px;padding-left:6px;}
.send{width:100%;background:var(--slate);color:#fff;border-radius:12px;padding:13px;font-size:13.5px;
  font-weight:600;box-shadow:0 var(--btn-lift) 0 0 var(--btn-ledge, var(--ledge-slate));transition:var(--btn-ease);}
.send:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--btn-ledge, var(--ledge-slate));}
.mgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px;}
.mg{height:88px;border-radius:12px;position:relative;overflow:hidden;}
.mg b{position:absolute;left:0;right:0;bottom:0;font-size:11px;font-weight:600;color:#fff;
  padding:14px 8px 6px;background:linear-gradient(transparent,rgba(0,0,0,.5));}
/* ---- LOVE: sealed media ----
   Until she opens it, the picture itself is not shown — grey, with an eye and
   an invitation. The colour arriving is the reward for tapping, and it doubles
   as the read receipt the family is waiting on. */
.mg.sealed{background:#DDE5E0!important;}
.mg .seal{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:5px;color:#5C7268;}
.mg .seal span{font-size:11px;font-weight:700;letter-spacing:.2px;}
.mg .clock{position:absolute;top:5px;right:5px;background:rgba(20,38,31,.62);color:#fff;
  font-size:11px;font-weight:700;border-radius:5px;padding:2px 5px;letter-spacing:.1px;}
.mg .voicetag{position:absolute;top:5px;left:5px;background:rgba(20,38,31,.62);color:#fff;
  font-size:11px;font-weight:700;border-radius:5px;padding:2px 5px;
  display:inline-flex;align-items:center;gap:3px;}
/* the helper's row: who sent it, whether she has opened it, how long it has left */
.mrow{display:flex;align-items:center;gap:11px;padding:10px 0;border-bottom:1px solid var(--line);}
.mrow:last-child{border-bottom:none;}
.mthumb{width:44px;height:44px;border-radius:8px;flex:none;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;}
.mthumbdel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(28,38,34,.55);border:0;padding:0;cursor:pointer;
  transition:background .12s ease;}
.mthumbdel:hover,.mthumbdel:focus-visible{background:rgba(28,38,34,.72);outline:none;}
.mrow .d{font-size:13.5px;font-weight:600;}
.mrow .w{font-size:11px;color:var(--txt-2);margin-top:2px;}
.mstate{flex:none;text-align:right;}
.seen{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;
  border-radius:6px;padding:3px 7px;}
.seen.yes{background:var(--ok-bg);color:var(--ok);}
.seen.no{background:var(--pend-bg);color:var(--pend);}
.mleft{font-size:11px;color:var(--txt-3);margin-top:4px;font-weight:600;}
.mleft.soon{color:var(--pend);}
/* composer */
.compose{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff;}
.recdot{width:12px;height:12px;border-radius:50%;background:var(--miss);}
.recdot.on{animation:recpulse 1s ease-in-out infinite;}
@keyframes recpulse{0%,100%{opacity:1}50%{opacity:.25}}
.ttlpick{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px;}
.ttlpick button{font-size:11px;font-weight:600;border:1px solid var(--line);border-radius:8px;
  padding:6px 10px;color:var(--txt-2);background:#fff;}
.ttlpick button.on{background:var(--slate);border-color:var(--slate);color:#fff;}
/* the tablet's full-size view once she has opened something */
.viewer{position:absolute;inset:0;z-index:6;background:rgba(16,44,35,.94);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;padding:clamp(20px,4vw,40px);}
.viewer .big-img{width:min(100%,520px);height:clamp(180px,34vh,320px);border-radius:24px;
  box-shadow:0 18px 44px rgba(0,0,0,.3);}
.viewer .big-img.photo-shell{width:auto;height:auto;max-width:min(100%,520px);max-height:min(64vh,680px);
  border-radius:0;box-shadow:none;background:none !important;}
.viewer .big-photo{display:block;max-width:min(100%,520px);max-height:min(64vh,680px);width:auto;height:auto;
  border-radius:24px;box-shadow:0 18px 44px rgba(0,0,0,.3);background:#000;object-fit:contain;}
.viewer .vcap{font-size:calc(clamp(20px,3.4vw,28px) * var(--ts));font-weight:800;text-align:center;
  background:rgba(9,22,17,.7);padding:10px 16px;border-radius:16px;box-shadow:0 12px 28px rgba(0,0,0,.24);
  text-shadow:0 1px 2px rgba(0,0,0,.45);max-width:min(100%,560px);}
.viewer .vsub{font-size:calc(clamp(13px,2vw,17px) * var(--ts));font-weight:600;opacity:.8;}
.tabs{display:flex;background:#fff;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);
  position:relative;--active-idx:0;}
/* Single active-tab indicator sitting flush with the top edge of the bar.
   One moving element (not a per-button pseudo) so that switching tabs
   slides the bar across rather than fading one in while another fades
   out. Width is 18% of the bar — one tab is 20%, so the bar reads as
   "about a fifth of the length" with a sliver of breathing room on each
   side. Colour inherits from the active tab's permission tint via
   :has() below so Therapy's green, Settings' green, see-only amber etc.
   stay in family. */
.tabs::before{content:"";position:absolute;top:-1px;height:3px;
  width:18%;left:1%;
  background:var(--ok);border-radius:0 0 3px 3px;
  /* translateX runs on the compositor thread, so the slide stays smooth
     even while render() is painting the new pane. Each tab is 20% of the
     bar; the indicator is 18% of its own width → 100% of (20/18)=111.11%
     steps one tab across. */
  transform:translateX(calc(var(--active-idx) * 111.111%));
  transition:transform var(--tab-slide-ms, .34s) cubic-bezier(.22,.61,.36,1),
             background-color .18s ease;
  pointer-events:none;z-index:1;will-change:transform;}
.tabs[data-active="time"]    {--active-idx:0;}
.tabs[data-active="therapy"] {--active-idx:1;}
.tabs[data-active="love"]    {--active-idx:2;}
.tabs[data-active="money"]   {--active-idx:3;}
.tabs[data-active="settings"]{--active-idx:4;}
.tabs:has(.tabbtn.perm-none.on)::before    {background:#BC463C;}
.tabs:has(.tabbtn.perm-see.on)::before     {background:#C9852F;}
.tabs:has(.tabbtn.perm-do.on)::before      {background:#3C8A68;}
.tabs:has(.tabbtn.perm-manage.on)::before  {background:#21453B;}
.tabs:has(.tabbtn.perm-settings.on)::before{background:var(--ok);}
/* Padding and gap are trimmed by exactly what the larger icon adds, so the bar
   keeps its height: 11+19+5 becomes 9+22+4. */
.tabs button{flex:1;padding:9px 4px 11px;font-size:11px;font-weight:600;color:var(--txt-3);
  display:flex;flex-direction:column;align-items:center;gap:4px;transition:color .18s ease, opacity .18s ease;
  background:none;border:0;cursor:pointer;}
.tabs button.tabbtn{opacity:1;}
.tabs button.perm-see,
.tabs button.perm-do,
.tabs button.perm-manage,
.tabs button.perm-settings{color:var(--ok);}
.tabs button.perm-none{opacity:.42;color:#9AA8A1;}
.tabs button.perm-none.on{opacity:1;color:#BC463C;}
.tabs button.perm-see.on{color:#C9852F;}
.tabs button.perm-do.on{color:#3C8A68;}
.tabs button.perm-manage.on{color:#21453B;}
.tabs button.perm-settings.on{color:var(--ok);}
.tabs button.on{font-weight:700;}
.tabs button:disabled{opacity:.28;}
.tabs .ic{width:22px;height:22px;transition:fill-opacity .18s ease;
  fill:currentColor;fill-opacity:0;}
/* The selected tab fills rather than only changing its outline colour. A tint
   rather than a flat block: these are outline icons, so filling them solid
   would turn the calendar and the vault into featureless squares and hide the
   detail lines inside them. The stroke stays crisp on top. */
.tabs button.on .ic{fill-opacity:.26;}
.locked{text-align:center;padding:44px 22px;color:var(--txt-2);}
.locked svg{opacity:.3;margin-bottom:14px;}
.locked b{display:block;font-size:13.5px;color:var(--txt);margin-bottom:6px;font-weight:600;}
.locked p{font-size:12.5px;line-height:1.55;margin:0;}
.lockedcopy{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;line-height:1.35;}
.lockedcopy span{display:block;white-space:nowrap;}
.alert{background:var(--miss-bg);border:1px solid #EFC9C4;border-radius:12px;
  padding:11px 12px;margin-bottom:12px;display:flex;align-items:center;gap:10px;}
/* Live miss banner \u2014 pulses gently so a helper glancing at their phone
   catches it even without reading. Kept slow (2.4s) and shallow (never
   full opacity fade) so it draws the eye without being anxious; a real
   missed dose is urgent but not an emergency and the visual language
   should match. Respects prefers-reduced-motion. */
.alert.alert-live{animation:alertPulse 2.4s ease-in-out infinite;
  box-shadow:0 0 0 0 rgba(217, 83, 111, 0);}
@keyframes alertPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(217, 83, 111, 0);
          border-color:#EFC9C4;}
  50%    {box-shadow:0 0 0 6px rgba(217, 83, 111, 0.14);
          border-color:#D9536F;}
}
@media (prefers-reduced-motion: reduce){
  .alert.alert-live{animation:none;}
}
/* Pending variant \u2014 amber, not red. Used by notTakenBox() to surface
   doses that were explicitly recorded as "not taken". They're settled
   (no confirm/skip buttons needed) but the day is not "all calm" and
   the circle should still be able to see what happened. */
.alert.pend{background:var(--pend-bg);border-color:#E8CFA4;}
.alert.pend .alerttext{color:var(--pend);}
.alert.pend .alerttime{border-color:#E8CFA4;color:var(--pend);}
.alert.pend .alertago{color:#8A5A1B;}
/* The text portion is now a real button (tap-target) so the whole banner
   opens the escalation history, not just the two tiny icons on the right.
   Reset button chrome so it reads as text, and give it visible focus. */
.alerttext{flex:1;font-size:13.5px;font-weight:600;color:var(--miss);line-height:1.35;
  background:none;border:0;padding:0;text-align:left;cursor:pointer;
  display:flex;flex-direction:column;gap:2px;}
.alerttext:focus-visible{outline:2px solid var(--miss);outline-offset:2px;border-radius:6px;}
.alertline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.alerttime{display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;padding:2px 6px;border-radius:6px;background:#fff;
  border:1px solid #EFC9C4;color:var(--miss);font-size:11px;font-weight:700;
  letter-spacing:.2px;}
.alertago{font-size:11px;font-weight:500;color:#8E4A42;opacity:.85;}
.alertacts{display:flex;gap:7px;flex:none;}
.abtn{width:34px;height:34px;border-radius:12px;background:#fff;border:1px solid #EFC9C4;
  color:var(--miss);display:flex;align-items:center;justify-content:center;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-miss-soft);transition:var(--btn-ease);}
.abtn.ok{background:var(--ok);border-color:var(--ok);color:#fff;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok);}
.abtn.snz{color:#8E4A42;opacity:.85;}
.abtn.snz:hover,.abtn.snz:focus-visible{opacity:1;outline:none;}
.abtn:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-miss-soft);opacity:.9;}
.abtn.ok:active{box-shadow:0 0 0 0 var(--ledge-ok);}
/* Stacked missed-dose banner. Collapsed by default: the newest alert sits
   on top and the older ones peek out behind as slim ghost bars, hinting
   at the pile without competing for attention. Tapping the chip below
   toggles S.missesExpanded, which re-renders as a plain list (oldest at
   top) with per-row snooze chips. */
.alertstack{position:relative;margin-bottom:12px;}
.alertstack .alert{margin-bottom:0;}
.alertstack:not(.open) .alertstacktop{position:relative;z-index:3;}
.alertstub{position:absolute;left:6px;right:6px;height:14px;border-radius:12px;
  background:var(--miss-bg);border:1px solid #EFC9C4;
  opacity:calc(1 - var(--i) * .28);
  top:calc(var(--i) * -6px);
  z-index:calc(2 - var(--i));
  pointer-events:none;}
.alertstack.open{display:flex;flex-direction:column;gap:8px;
  /* When the pile is expanded and the bulk-action bar is showing, wrap
     the whole group in a lighter-red halo so the reader sees it as
     "one group of things you can act on together" rather than a bar
     stacked on top of a list of bars. Padding creates the frame; the
     inner .alert rows keep their own darker outline against the paler
     halo background, which reads like a matte around a photograph. */
  padding:10px;background:#fff;
  border:1px solid #F7E7E3;border-radius:12px;
  box-shadow:0 0 0 6px rgba(239, 201, 196, 0.20);}
.alertexpand{margin-top:6px;width:100%;background:#fff;border:1px solid #EFC9C4;
  border-radius:8px;padding:7px 10px;font-size:12.5px;font-weight:600;
  color:var(--miss);cursor:pointer;letter-spacing:.1px;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-miss-soft);transition:var(--btn-ease);}
.alertexpand:hover,.alertexpand:focus-visible{background:var(--miss-bg);outline:none;}
.alertexpand:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-miss-soft);}
/* Bulk-action bar as the header of the framed .alertstack.open. Now that
   the outer stack carries the halo, the bar loses its own background/
   border so it reads as part of the frame; a dashed divider separates
   it from the alert rows below. */
.alertbulk{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:4px 12px 10px;background:transparent;border:0;border-radius:0;
  border-bottom:1px dashed #EFC9C4;}
.alertbulkcount{font-size:12.5px;font-weight:600;color:var(--miss);letter-spacing:.1px;}
.alertbulkacts{display:flex;gap:7px;flex:none;}
/* "Show less" chip inside the halo, matching the bulk bar's transparent
   frame so it reads as part of the surround rather than a stray button. */
.alertstack.open .alertexpand{margin-top:2px;background:transparent;border:0;
  border-top:1px dashed #EFC9C4;border-radius:0;padding:8px 4px 2px;}
.alertstack.open .alertexpand:hover,
.alertstack.open .alertexpand:focus-visible{background:transparent;color:#8E4A42;}
/* Compact historical reminder summary: lighter than a live red alert,
  because it is reporting a backlog in aggregate rather than asking for an
  immediate yes/no action on a specific slot. */
.alert.recap{background:#FCF7F5;border-color:#F2DDD8;}
.alert.recap .alerttime{color:#A35B51;border-color:#F0D3CD;background:#FFF8F6;}
.alert.recap .alertago{color:#A0675C;}
/* Preview list inside the bulk-resolve confirm dialog. Two columns:
   medication name on the left, scheduled time (monospace) on the right.
   Picks up the dialog's own cream palette (#FFFDF7 / #E4DDCB / #4A5A52)
   rather than the amber warning palette that used to clash with the
   body copy and made the names look like a yellow highlight. The time
   chip inherits the same dark-green ink as .alerttime elsewhere so the
   row reads as "scheduled slot" and not as a numeric suffix. */
.resolveall{list-style:none;margin:10px 0 4px;padding:4px 0;
  background:#FBF8F0;border:1px solid #E4DDCB;border-radius:12px;
  font-size:calc(13.5px * var(--ts));color:#2B3833;}
.resolveall li{display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:9px 14px;border-bottom:1px solid #EFE8D6;line-height:1.4;}
.resolveall li:last-child{border-bottom:0;}
.resolveall li.more{justify-content:center;font-style:italic;color:#8A7A52;
  font-size:calc(12.5px * var(--ts));padding:7px 14px;}
.resolveall-nm{font-weight:600;color:#1B2A24;}
.resolveall-tm{color:#2E5E4A;background:#F0F5EC;border:1px solid #D9E4D2;
  border-radius:8px;padding:2px 8px;font-size:calc(12.5px * var(--ts));
  font-weight:600;letter-spacing:.2px;}
/* Small dismiss button on the amber "not taken" banner. Deliberately less
   visually loud than .abtn because tapping it does not change the outcome
   \u2014 it just hides the row for the rest of the day. */
.alerthide{width:24px;height:24px;border-radius:6px;background:transparent;border:0;
  color:#8A5A1B;opacity:.55;display:flex;align-items:center;justify-content:center;
  flex:none;padding:0;}
.alerthide svg{width:14px;height:14px;}
.alerthide:hover,.alerthide:focus-visible{opacity:1;outline:none;}
.alerthide:active{opacity:.75;}
.note{font-size:11px;color:var(--txt-3);line-height:1.5;margin-top:14px;}

/* controls */
.stp{display:flex;justify-content:space-between;align-items:center;padding:8px 0;gap:10px;}
.stp>span{font-size:12.5px;color:var(--txt-2);font-weight:500;}
/* Stepper holder. Pale sage pill that groups the +/\u2212 pair around the
   value \u2014 the buttons sit flush white inside it with no ledge, which
   reads cleaner next to the dense form content around them. The stock
   top-up "+" in the care plan list has its own raised .stockplus look
   (see below) \u2014 that one needed depth; these in-form ones didn't. */
.stp .ctl{display:flex;align-items:center;gap:4px;background:#EBF1EE;border-radius:12px;padding:3px;}
.stp .ctl button{width:33px;height:33px;border-radius:8px;background:#fff;border:1px solid var(--line);
  font-size:16px;font-weight:600;line-height:1;}
.stp .ctl button:active{background:#E2EAE5;}
.stp .ctl b{min-width:62px;text-align:center;font-size:13.5px;font-weight:600;}
.fld{margin:9px 0;}
.fld label{display:block;font-size:11px;font-weight:600;color:var(--txt-2);margin-bottom:5px;}
.fld input{width:100%;border:1px solid var(--line);border-radius:8px;padding:11px 12px;font-size:13.5px;
  background:#fff;color:var(--txt);font-family:inherit;line-height:1.3;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;}
.fld input:focus{border-color:var(--ok);outline:none;}
/* Native <input type="date"> — the browser paints a raised grey calendar
   button on the right that reads Windows-9x on Chromium/Edge. Strip it, then
   render our own calendar glyph as a background-image on the field. The
   picker indicator still occupies its native area, so clicking the glyph
   opens the calendar as usual — we just made it invisible. */
.fld input[type="date"]{
  padding-right:34px;cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><rect x='1.5' y='2.5' width='11' height='10' rx='1.5' fill='none' stroke='%2364746C' stroke-width='1.3'/><path d='M1.5 5.5h11M4.5 1.5v2M9.5 1.5v2' fill='none' stroke='%2364746C' stroke-width='1.3' stroke-linecap='round'/></svg>");
  background-repeat:no-repeat;background-position:right 11px center;background-size:14px;}
.fld input[type="date"]::-webkit-calendar-picker-indicator{opacity:0;cursor:pointer;}
.fld input[type="date"]::-webkit-datetime-edit{color:var(--txt);font-family:inherit;}
.fld input[type="date"]::-webkit-datetime-edit-fields-wrapper{padding:0;}
.fld input[type="date"]::-webkit-inner-spin-button{display:none;}
.fld input[type="date"]::-webkit-clear-button{display:none;}
.datefield{display:flex;align-items:center;gap:4px;}
.datefield input[type="date"]{flex:1;min-width:0;}
.datefield .dpick{margin-left:0;flex:none;}
/* Native <select> styled to match .fld input so onboarding forms don't get
   the browser's default Windows-9x chrome. `appearance:none` strips the
   built-in caret; the SVG background renders our own. */
.fld select{width:100%;border:1px solid var(--line);border-radius:8px;
  padding:11px 34px 11px 12px;font-size:13.5px;background:#fff;color:var(--txt);
  -webkit-appearance:none;-moz-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%2364746C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;background-position:right 12px center;background-size:12px;
  font-family:inherit;line-height:1.3;cursor:pointer;}
.fld select:focus{border-color:var(--ok);outline:none;}
/* Inline gender button group ('Female / Male / Other'): stays compact so it
   doesn't stretch the whole row like the permission-level .lvl bars do. */
.fld .lvl.inline{display:inline-flex;width:auto;}
.tog{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;}
.tog>div{font-size:12.5px;font-weight:500;}
.tog>div small{display:block;font-size:11px;color:var(--txt-3);margin-top:2px;font-weight:400;}
/* Toggle titles now carry an inline "?" info button instead of a <small>
   subtext. The title span keeps the toggle name and its ? aligned on one
   baseline, with a small left margin between them so the ? never feels
   attached to the last letter of the label. */
.togtitle{display:inline-flex;align-items:center;gap:6px;line-height:1.25;}
.toginfo{width:20px;height:20px;border-radius:50%;background:#E7EFEA;color:var(--txt-2);
  font-size:12.5px;font-weight:700;line-height:1;display:inline-flex;align-items:center;
  justify-content:center;padding:0;flex:none;border:0;cursor:pointer;
  transition:background .12s;}
.toginfo:hover,.toginfo:focus-visible{background:#D9E5DD;color:var(--txt);outline:none;}
.toginfo:active{transform:scale(.94);}
/* Small buttons keep their look but get a finger-sized hit area (they were
   16–21 px tall). */
.toginfo,button.tag{position:relative;}
.toginfo::after{content:'';position:absolute;inset:-8px;}
button.tag::after{content:'';position:absolute;inset:-7px -3px;}
.sw{width:46px;height:27px;border-radius:12px;background:#D2DCD6;position:relative;flex:none;transition:background .18s;}
.sw.on{background:var(--ok);}
.sw i{position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:#fff;
  transition:transform .18s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.sw.on i{transform:translateX(19px);}
.pick{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;}
.pick button{font-size:12.5px;font-weight:600;padding:8px 12px;border-radius:8px;background:#EBF1EE;color:var(--txt-2);}
.pick button.on{background:var(--slate);color:#fff;}
/* Picker chips for people who don't have access to the current room
   (time / therapy / money / love). Visually greyed and desaturated, but
   still a real button so a tap can open the noAccessDialog explanation.
   .pdot (the person-colour swatch) fades with the chip so an admin
   doesn't read it as a different Maya from the one on their own card. */
.pick button.off{background:#F3F6F4;color:#9BA7A1;border:1px dashed #D4DED9;}
.pick button.off .pdot{opacity:.45;filter:grayscale(.5);}
.pick button.off:hover,.pick button.off:focus-visible{background:#ECF1EE;color:#8A978F;outline:none;}
.pick button.off:active{background:#E4ECE7;}
/* .pick.equal3 \u2014 same look and height as the base .pick chips, but the
   buttons are laid out on a 3-column equal-width grid instead of a
   flow row. Used by the therapy editor's Kind-of-care picker so all
   six buttons line up in two neat rows of three. Height is unchanged
   (padding still comes from .pick button). */
.pick.equal3{display:grid;grid-template-columns:repeat(3,1fr);}
.pick.equal3 button{padding:8px 6px;text-align:center;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;}
/* .pick.equal7 \u2014 same idea as .equal3 but for the shift-form day picker
   (Mon\u2013Sun). A plain flex row wraps Sunday onto a second line the moment
   the card is even a little narrower than the widest guess the layout made,
   which reads as a bug. A 7-column grid guarantees one row with equal cells,
   and the tightened padding + ellipsis keep the labels legible on the
   narrowest phones we target. */
.pick.equal7{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}
.pick.equal7 button{padding:8px 2px;text-align:center;
  display:inline-flex;align-items:center;justify-content:center;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.seg2{display:flex;background:#E2EAE5;border-radius:12px;padding:3px;margin-bottom:14px;}
.seg2 button{flex:1;padding:9px;font-size:12.5px;font-weight:600;color:var(--txt-2);border-radius:8px;}
.seg2 button.on{background:#fff;color:var(--txt);box-shadow:0 1px 3px rgba(0,0,0,.09);}
.mnav{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 12px;}
.mnav b{font-size:13.5px;font-weight:600;}
/* Month-nav arrows share the raised-white look of .stp .ctl steppers so
   the ‹ / › on the calendar header and the − / + on the shift/dose
   forms read as the same control at the same visual depth. */
.mnav button{width:34px;height:34px;border-radius:8px;background:#fff;border:1px solid var(--line);
  font-size:19px;line-height:1;color:var(--txt-2);font-weight:600;}
.mnav button:active{background:#E2EAE5;}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.cal .dh{font-size:11px;font-weight:700;color:var(--txt-3);text-align:center;padding-bottom:5px;letter-spacing:.4px;}
.cal button{aspect-ratio:1;border-radius:8px;background:#fff;border:1px solid var(--line);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:0;min-height:38px;}
.cal button .n{font-size:12.5px;font-weight:600;}
.cal button.out{opacity:.32;}
.cal button.today{border-color:var(--ok);border-width:2px;}
.cal button.today .n{color:var(--ok);}
.cal button.imp{background:var(--pend-bg);border-color:#E8CFA4;}
/* the away view mutes the whole month so absences read at a glance */
.cal.greyed button{background:#F6FAF7;border-color:#E5ECE8;}
.cal.greyed button .n{color:#9AACA2;}
.cal.greyed button.awayday{background:#DDE6E1;border-color:#C7D4CD;}
.cal.greyed button.awayday .n{color:#46655A;}
.cal.greyed button.today{border-color:#9AACA2;}
.cal.greyed button.on{background:var(--slate);border-color:var(--slate);}
.cal.greyed button.on .n{color:#fff;}
.awaytog{padding-top:0;margin-bottom:4px;border-bottom:1px solid var(--line);padding-bottom:10px;}
.cal button.on{background:var(--slate);border-color:var(--slate);}
.cal button.on .n{color:#fff;}
.cal .cbars{display:flex;gap:2px;height:4px;align-items:center;justify-content:center;
  width:100%;padding:0 3px;}
/* Whole-pixel height so every cell rounds identically on the physical
   pixel grid — 3.5px was rounding up on some rows and down on others,
   which made the bars look inconsistently thick. */
.cal .cbars i{flex:1;max-width:9px;height:4px;border-radius:2px;}
.cal button.on .cbars i{opacity:.9;}
.legend{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:11px;padding-top:10px;border-top:1px solid var(--line);}
.legend span{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--txt-3);}
.legend i{width:9px;height:4px;border-radius:2px;}
.legend .lgamber{padding-left:14px;position:relative;}
.legend .lgamber:before{content:"";position:absolute;left:0;top:2px;width:9px;height:9px;
  border-radius:3px;background:var(--pend-bg);border:1px solid #E8CFA4;}
/* shift cover track */
/* shift preview */
/* the circle, turning, at the top of the account screen */
.wheel{width:min(80%,262px);margin:2px auto 8px;}
.wheel svg{display:block;overflow:visible;}
.acorbit{transform-box:fill-box;transform-origin:center;
  animation:orbit 64s linear infinite;}
/* each helper turns the other way, so the initials stay the right way up */
.acp{transform-box:fill-box;transform-origin:center;
  animation:orbitback 64s linear infinite;}
@keyframes orbitback{from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}
.wheelcap{text-align:center;font-size:11px;color:var(--txt-2);margin-top:6px;}
.wheelcap b{color:var(--txt);font-weight:600;}
@media (prefers-reduced-motion:reduce){
  /* Reduced-motion trap: this rule was killing the rotation on every
     .acorbit/.acp \u2014 including the joinLanding wheel, where the
     rotation is the point of the screen. Exempt any wheel inside
     .jl-wheel-wrap so it keeps turning; the Account-pane wheel still
     honours the reduced-motion preference as before. */
  .acorbit:not(.jl-wheel-wrap .acorbit),
  .acp:not(.jl-wheel-wrap .acp){animation:none!important;}
}

/* Admin header + document vault */
.archbtn{display:flex;align-items:center;justify-content:space-between;width:100%;
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 15px;
  font-size:12.5px;font-weight:600;color:var(--txt-2);}
.card.arch{background:#F6FAF7;}
.premium{border-color:#C9D9D0;background:#F7FBF9;}
/* ---- popup dialogs · unified visual language ----
   Every helper-side popup (Remove med, Leave without saving, Unpair,
   Remove media, Remove shift, Away review, etc.) uses .overlay > .dialog.
   The persona-side "Leave the circle?" question uses .tdialog > .tbox.solid.
   Both share the same visual language now: dark green backdrop with a
   soft fade-in, cream card with a subtle border, big generous corner
   radius, a warm entrance slide, dark serif-adjacent typography for
   the title and a calmer secondary body colour. That way any confirm
   or picker in the app reads as part of the same family regardless of
   which subsystem opened it. */
.overlay{position:absolute;inset:0;background:rgba(16,44,35,.72);z-index:60;
  display:flex;align-items:center;justify-content:center;padding:clamp(20px,5vw,48px);
  animation:tdIn .18s ease both;}
.overlay.steady{animation:none;}
.overlay.steady .dialog{animation:none;}
.shell.modal-steady .overlay{animation:none;}
.shell.modal-steady .overlay .dialog{animation:none;}
.dialog{background:#FFFDF7;border:1.5px solid #E4DDCB;border-radius:24px;
  padding:clamp(20px,3vh,28px);width:100%;max-width:420px;color:#23302B;
  box-shadow:0 22px 60px rgba(11,28,22,.35);
  display:flex;flex-direction:column;font-family:var(--grot);
  animation:tdUp .22s cubic-bezier(.34,1.2,.5,1) both;}
.dtitle{font-family:var(--grot);font-size:16px;font-weight:700;
  color:#1B2A24;margin-bottom:8px;letter-spacing:0;line-height:1.35;}
.dbody{font-family:var(--grot);font-size:13.5px;color:#4A5A52;
  line-height:1.6;font-weight:500;margin-bottom:16px;}

/* Date-picker overlay — a small month grid shared by every form that
   asks for a day. Sits in the same .overlay / .dialog frame as other
   helper dialogs so it inherits the frosted-backdrop treatment. */
.dpick{width:33px;height:33px;border-radius:8px;background:#fff;border:1px solid var(--line);
  color:var(--txt-2);cursor:pointer;margin-left:4px;padding:0;
  display:inline-flex;align-items:center;justify-content:center;}
.dpick:active{background:#E2EAE5;}
.dpick svg{display:block;}
.dpnav{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 12px;}
.dpnav b{font-size:13.5px;font-weight:600;color:var(--txt);}
.dpnav button{width:34px;height:34px;border-radius:8px;background:#EBF1EE;border:none;
  font-size:20px;color:var(--txt-2);cursor:pointer;line-height:1;padding:0;}
.dpnav button:active{background:#D8E4DE;}
.dpgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.dph{font-size:11px;font-weight:600;color:var(--txt-3);text-align:center;padding:4px 0;
  letter-spacing:.6px;text-transform:uppercase;}
.dpcell{aspect-ratio:1;border-radius:8px;background:#F7FBF9;border:1px solid transparent;
  font-size:13.5px;font-weight:500;color:var(--txt);cursor:pointer;padding:0;
  display:flex;align-items:center;justify-content:center;}
.dpcell:active{background:#E2EAE5;}
.dpcell.dim{color:var(--txt-3);opacity:.45;background:transparent;}
.dpcell.today{border-color:var(--ok);font-weight:700;}
.dpcell.on{background:var(--ok);color:#fff;font-weight:700;border-color:var(--ok);}
.panehead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 12px;}
.panehead .lbl{color:var(--txt-3);}
/* with the room label gone, the two ways out of the room share the row */
.panehead .vaultbtn{flex:1;justify-content:center;padding:0 10px;gap:7px;min-width:0;}
.panehead .vaultbtn svg{flex:none;}
.vaultbtn{display:flex;align-items:center;justify-content:center;gap:9px;background:var(--ok-bg);color:var(--ok);
  border-radius:12px;padding:0 16px;min-height:42px;box-sizing:border-box;font-size:13.5px;font-weight:600;text-align:center;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok-soft);transition:var(--btn-ease);}
.vaultbtn:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-ok-soft);background:#D8E9E0;}
.vaultn{background:var(--ok);color:#fff;border-radius:12px;padding:2px 8px;font-size:11px;}
.backrow{font-size:calc(12.5px * var(--ts));font-weight:600;color:var(--txt-2);padding:4px 0 10px;}
.vaulthead{display:flex;align-items:center;gap:12px;background:#F7FBF9;border:1px solid #C9D9D0;
  border-radius:12px;padding:14px 15px;margin-bottom:12px;}
.foldercard{display:flex;align-items:center;gap:12px;width:100%;background:#fff;
  border:1px solid var(--line);border-radius:12px;padding:13px 15px;margin-bottom:9px;text-align:left;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-neutral);transition:var(--btn-ease), border-color .15s;}
.foldercard:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-neutral);border-color:var(--ok);}
.folderic{width:34px;height:34px;border-radius:12px;background:#FBF3E7;display:flex;
  align-items:center;justify-content:center;flex:none;}
.foldern{background:#EBF1EE;color:var(--txt-2);border-radius:8px;padding:2px 8px;
  font-size:11px;font-weight:600;}
.docic{width:28px;height:28px;border-radius:8px;background:#EBF1EE;display:flex;
  align-items:center;justify-content:center;flex:none;margin-top:1px;}
.dosein{width:74px;text-align:center;border:1px solid var(--line);border-radius:8px;
  background:#fff;font-size:13.5px;font-weight:600;color:var(--txt);padding:8px 4px;
  font-family:var(--grot);appearance:textfield;-moz-appearance:textfield;}
.dosein::-webkit-outer-spin-button,.dosein::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.dosein:focus{outline:none;border-color:var(--ok);}
/* Free-form time input used in every +/- time stepper (therapy Time of
   day, appointment Time, shift Starts/Ends, night Asleep/Awake). Same
   visual weight as the dose steppers so the whole row still reads as
   one grouped control. A little wider to fit "HH:MM" plus the native
   clock icon that browsers append inside the field. */
.timein{width:104px;text-align:center;border:1px solid var(--line);border-radius:8px;
  background:#fff;font-size:13.5px;font-weight:600;color:var(--txt);padding:8px 4px;
  font-family:var(--grot);-webkit-appearance:none;-moz-appearance:none;appearance:none;}
.timein::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer;padding:0;}
.timein:focus{outline:none;border-color:var(--ok);}
/* Unit dropdown that lives inside a .stp .ctl next to the dose input.
   Native <select> chrome is kept minimal (no OS caret in the button
   slot, our own chevron background) so the whole row reads as one
   coherent control instead of "input + operating-system widget". */
.unitsel{height:33px;border:1px solid var(--line);border-radius:8px;background:#fff;
  padding:0 24px 0 10px;font-size:12.5px;font-weight:600;color:var(--txt);
  font-family:var(--grot);cursor:pointer;
  -webkit-appearance:none;-moz-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2364786D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 2l4 4 4-4'/></svg>");
  background-repeat:no-repeat;background-position:right 8px center;background-size:10px 7px;}
.unitsel:focus{outline:none;border-color:var(--ok);}
/* Twin holder used by the How many + Dosage rows. The stepper (.ctl) is
   one grouped control; the unit dropdown sits alongside it as its own
   thing. Splitting them means the number and the unit read as two
   independent choices \u2014 which they are \u2014 and the two rows come out
   graphically identical to each other. */
.dosectl{display:flex;align-items:center;gap:8px;}
/* Unit tag next to the size input ("10 [mg]"). Just a text stamp \u2014 no
   border chrome, no background \u2014 so the eye reads it as a label on the
   number rather than a second interactive thing. */
.unitcap{padding:0 8px;font-size:12.5px;font-weight:600;color:var(--txt-2);
  font-variant-numeric:tabular-nums;}
/* Small suffix that hangs off a stepper's number, like "5 [days left]".
   Sits inline in the .ctl b slot without stealing weight from the number. */
.ctlsuf{font-size:11px;font-weight:500;margin-left:3px;color:var(--txt-3);}
.doseprev{margin-top:9px;background:var(--ok-bg);border-radius:8px;padding:9px 11px;
  font-size:11px;color:#2E6B51;line-height:1.5;font-variant-numeric:tabular-nums;}
.doseprev b{color:var(--ok);}
.nightbox{background:#EBF1EE;border-radius:12px;padding:8px 11px;margin-top:4px;}
.nightnote{font-size:11px;color:var(--txt-3);margin-top:5px;}
.stp .ctl button:disabled{opacity:.32;}

/* Care-item editor: keep all +/- rows on the same vertical rails. */
.taskedit .stp{--task-ctl-value-w:62px;}
.taskedit .stplbl{font-size:12.5px;font-weight:500;color:var(--txt-2);}
.taskedit .fld{margin:6px 0;}
.taskedit .fld:first-child{margin-top:2px;}
.taskedit .fld label{margin-bottom:3px;}
.taskedit .pick{margin-top:4px;}
.taskedit .tog{padding:7px 0;}
.taskedit .doseprev{margin-top:6px;padding:7px 10px;}
.taskedit .nightbox{margin-top:2px;padding:7px 10px;}
.taskedit .stp .ctl b,
.taskedit .timein,
.taskedit .dosein{
  width:var(--task-ctl-value-w);
  min-width:var(--task-ctl-value-w);
}
/* Remove the native clock icon in care-editor time steppers only. */
.taskedit .timein::-webkit-calendar-picker-indicator{opacity:0;display:none;}
.taskedit .timein::-webkit-clear-button,
.taskedit .timein::-webkit-inner-spin-button{display:none;}
/* Right selector in "How many" and "Dosage" should be same width. */
.taskedit .dosectl .unitsel{width:64px;min-width:64px;}

/* Appointment editor: same compact stepper rails as care-item editor. */
.apptedit .stp{--appt-ctl-value-w:62px;}
.apptedit .stp .ctl b,
.apptedit .timein{
  width:var(--appt-ctl-value-w);
  min-width:var(--appt-ctl-value-w);
}
/* Day row: calendar picker button sits to the left of the +/- bar. */
.apptedit .apptdayctl{display:flex;align-items:center;gap:4px;}
.apptedit .apptlbl{font-size:12.5px;font-weight:500;color:var(--txt-2);}
/* Keep appointment time input text-only inside the bar (no native clock glyph). */
.apptedit .timein::-webkit-calendar-picker-indicator{opacity:0;display:none;}
.apptedit .timein::-webkit-clear-button,
.apptedit .timein::-webkit-inner-spin-button{display:none;}

/* Shift editor: align field-label typography with Starts/Ends labels and
  keep time steppers text-only (no native clock glyph). */
.shiftedit .fld label{font-size:12.5px;font-weight:500;color:var(--txt-2);margin-bottom:5px;}
.shiftedit .timein::-webkit-calendar-picker-indicator{opacity:0;display:none;}
.shiftedit .timein::-webkit-clear-button,
.shiftedit .timein::-webkit-inner-spin-button{display:none;}

.pv{margin-top:14px;padding:13px 14px;background:#F5F9F6;border:1px solid var(--line);border-radius:12px;}
.pvhead{font-size:11px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;
  color:var(--txt-3);margin-bottom:9px;}
.pvrow{display:flex;align-items:center;gap:8px;margin-bottom:5px;}
.pvday{width:52px;flex:none;font-size:11px;font-weight:600;color:var(--txt-3);
  font-variant-numeric:tabular-nums;}
.pvrow.on .pvday{color:var(--txt);font-weight:700;}
.pvtrack{position:relative;flex:1;height:16px;background:#E5ECE8;border-radius:5px;overflow:hidden;}
.pvhave{position:absolute;top:4px;height:8px;border-radius:4px;opacity:.34;}
.pvdraft{position:absolute;top:1px;height:14px;border-radius:5px;
  box-shadow:0 0 0 1.5px #fff inset;}
.pvwarn{width:16px;height:16px;border-radius:50%;background:var(--pend);color:#fff;
  font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;}
.pvscale{display:flex;justify-content:space-between;margin:7px 0 0 60px;font-size:11px;color:var(--txt-3);}
.pvkey{display:flex;gap:14px;margin-top:9px;padding-top:9px;border-top:1px solid var(--line);flex-wrap:wrap;}
.pvkey span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--txt-2);}
.pvkey i{width:14px;height:8px;border-radius:3px;flex:none;display:inline-block;}
/* Legend swatches mirror how the bars actually render in the track:
   existing shifts are the person’s colour at 34% opacity, the draft is
   full-strength with a white inset outline. Using the SAME colour on
   both makes the difference read as “fainter vs bolder version of you”
   rather than two unrelated palette entries. */
.pvkey-have{opacity:.34;}
.pvkey-draft{box-shadow:0 0 0 1.5px #fff inset,0 0 0 1px rgba(0,0,0,.15);}
.pvnote{margin-top:9px;font-size:11px;line-height:1.5;color:var(--txt-2);}
.pvnote.warn{color:#8A5A1B;background:var(--pend-bg);border-radius:8px;padding:8px 10px;}
.cvrow{margin-top:8px;}
.card > .cvrow:first-child{margin-top:0;}
.cvmain{display:flex;align-items:flex-end;gap:9px;}
.cvfold{--cv-person:var(--line);flex:1;min-width:0;}
.cvhead{display:flex;align-items:flex-end;position:relative;padding-left:0;margin-bottom:6px;}
.cvname{display:inline-flex;align-items:center;gap:7px;max-width:min(100%,100%);
  font-size:12.5px;font-weight:700;line-height:1.15;color:color-mix(in srgb, var(--cv-person) 52%, #24342d 48%);
  background:none;border:0;border-radius:0;padding:0;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none;}
.cvname i{width:8px;height:8px;border-radius:50%;flex:none;}
.cvtrack{position:relative;flex:1;height:24px;background:#EBF1EE;border:1px solid #DDE7E1;
  border-radius:12px;overflow:visible;margin-top:0;}
.cvbar{position:absolute;top:0;bottom:0;border-radius:6px;}
/* Always white, always centred on its bar. The pill carries the carer's
   own colour (passed in as --pill, same hex as the underlying bar \u2014 no
   darkening, so the pill reads as a seamless slice of the bar). It is
   vertically slimmer than the bar, so a thin band of the full-width
   coloured bar stays visible above and below it \u2014 the slot's actual
   extent is still readable while the pill only takes the width of the
   digits inside. Height is fixed (not derived from line-height) and the
   pill uses inline-flex to centre the glyphs \u2014 otherwise the font's
   extra descender space pushes the digits upward and the peek-band below
   the pill looks fatter than the one above. */
.cvlab{position:absolute;top:0;bottom:0;display:flex;align-items:center;
  justify-content:center;color:#fff;font-size:11px;font-weight:800;letter-spacing:0;
  white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none;
  -webkit-font-smoothing:antialiased;}
.cvlab-pill{display:inline-flex;align-items:center;justify-content:center;
  height:14px;padding:0 7px;border-radius:5px;
  background:var(--pill, #0d1e16);font-weight:800;line-height:1;}
.cvx{width:22px;height:22px;border-radius:6px;background:#EBF1EE;color:var(--txt-3);font-size:16px;
  line-height:1;flex:none;}
.cvmeta{font-size:11px;color:var(--txt-3);margin:3px 0 0 0;}
/* Row-level ✎/× pair, always the same two buttons at the right of a
   carer's row regardless of how many shifts they have that day. A
   multi-shift row routes both buttons through a small "which shift?"
   picker (see pickShiftDialog); single-shift rows act on the shift
   directly. */
.cvacts{display:inline-flex;gap:4px;flex:none;align-items:center;margin-left:4px;}
/* Squared, not round — the row's other visuals (bars, name pill) are all
   rectangles, so a pair of little circles looked like they'd wandered in
   from a different UI. Same size, softer 6px corners keeps them tap-safe
   without looking like a control from a different family. */
.cvbar-btn{width:24px;height:24px;border-radius:6px;background:#fff;color:var(--slate);
  font-size:12.5px;line-height:1;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #D8E1DC;flex:none;box-shadow:0 1px 2px rgba(0,0,0,.06);}
.cvbar-btn:hover{background:var(--paper);color:var(--ink);}
/* Scale row mirrors the shift-row flex geometry (name column | flex track |
   acts column) so 12am–6am–12pm–6pm–12am lines up with the actual start
   and end of the coloured bars — not with the right edge of the card,
   which would otherwise put "12am" under the ✎/× buttons. */
.cvscalerow{display:flex;align-items:center;gap:9px;margin-top:10px;}
.cvscalewrap{flex:1;min-width:0;}
.cvscalerow .cvscale{margin:0;}
.cvacts-ghost{width:56px;flex:none;}   /* == 2*24 + 4 gap + 4 margin-left */
.cvscale{display:flex;justify-content:space-between;font-size:11px;color:var(--txt-3);}
.figic{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:none;
  overflow:hidden;}
.figic svg{display:block;}
/* ---- picking a figure ----
   Five across so the ten sit in two even rows, the same shape as her colour
   swatches. Selected state is a ring rather than a colour change, because the
   figures are all one colour and a tint would be invisible. */
.figpick{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:2px;}
.figpick .figopt{aspect-ratio:1;border-radius:12px;background:#F1F5F2;
  display:flex;align-items:center;justify-content:center;
  border:2px solid transparent;transition:transform .14s,background .14s,border-color .14s;}
.figpick .figopt:active{transform:scale(.94);}
.figpick .figopt.on{background:var(--ok-bg);border-color:var(--ok);}
.figpick .figopt svg{display:block;}
/* her tablet: same picker, bigger targets and on the dark background */
.figbox{width:clamp(42px,7vw,52px);height:clamp(42px,7vw,52px);border-radius:14px;flex:none;
  background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;}
.figpick.big{grid-template-columns:repeat(5,1fr);gap:clamp(7px,1.6vw,11px);}
.figpick.big .figopt{background:rgba(255,255,255,.14);border-radius:12px;border:2.5px solid transparent;}
.figpick.big .figopt.on{background:rgba(255,255,255,.3);border-color:#FFF9F0;}
.figic.persona{background:#E7EFE9;color:#3C6B55;}
.figic.helper{background:#E3EDEA;color:#4F8378;}
.figic.helper.on{background:var(--ok-bg);color:var(--ok);}
.personacard{border-color:#C9D9D0;background:#F7FBF9;}
/* care-plan rows sit tighter, with the action tucked under the status */
.card.task{padding:11px 12px;margin-bottom:8px;}
.taskside{--task-act-w:88px;--task-act-col:99px;display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none;min-width:var(--task-act-col);}
.taskside .tag{margin:0;}
/* Therapy-card Edit sits next to the Top up button on the same card, so
   its footprint has to match .stockact exactly \u2014 same font, same
   padding, same border radius. Only the fill differs (filled slate to
   read as primary vs Top up's white outline). Without this override the
   global .minibtn cascade produced a taller, more rounded chip that
   looked out of family with everything else in the card. */
.card.task .minibtn{font-size:12.5px;font-weight:600;color:#fff;background:var(--slate);
  border-radius:8px;height:34px;padding:0 11px;line-height:1;border:1px solid var(--slate);
  min-width:var(--task-act-w);width:var(--task-act-w);display:inline-flex;align-items:center;justify-content:center;
  text-align:center;box-sizing:border-box;
  box-shadow:0 var(--btn-lift) 0 0 var(--ledge-slate);transition:var(--btn-ease);}
.card.task .minibtn:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 var(--ledge-slate);}
.card.task .minibtn.ok{background:var(--ok);border-color:var(--ok);color:#fff;box-shadow:0 var(--btn-lift) 0 0 var(--ledge-ok);}
.card.task .minibtn.ok:active{box-shadow:0 0 0 0 var(--ledge-ok);}
/* --- medication stock (Proposal A) ---
   Two surfaces, both modelled on .alert: text-left, action-right, framed
   panel. Inline stock chips now keep a separate left rail for the raised +,
   matching the medicine icon column above. The chip itself only uses green
   and red, with red reserved for the most depleted state. */
.stockrow{margin-top:8px;display:flex;align-items:center;gap:11px;color:#2E5E48;}
.stockrow.out{color:#A63F34;}
.stockrail{width:32px;min-width:32px;display:flex;align-items:center;justify-content:center;align-self:center;flex:none;}
.stockchip{padding:5px 10px 5px 9px;border-radius:12px;
  margin-top:1px;
  display:flex;align-items:center;gap:10px;flex:1;min-width:0;
  background:#EFF6F0;border:1px solid #CFE2D2;color:#2E5E48;}
.stockchip:not(.has-meter):not(.has-pills){height:32px;padding-top:0;padding-bottom:0;}
.stockchip.has-pills{padding-top:6px;padding-bottom:6px;}
.stockchip.low{background:#EFF6F0;border-color:#CFE2D2;color:#2E5E48;}
.stockchip.out{background:#FCE7E4;border-color:#E5A6A0;color:#A63F34;}
/* Meter form: the stockleft stacks number on top and bar directly beneath,
   both sized to fit within the rail button height so the chip stays slim.
   The + lives outside the frame in its own left-hand rail. */
.stockchip.has-meter{position:relative;}
.stockchip .stockleft{flex:1;min-width:0;display:flex;align-items:center;gap:8px;}
.stockchip.has-meter .stockleft,.stockchip.has-pills .stockleft{flex-direction:column;align-items:stretch;gap:3px;justify-content:center;}
.stockline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;}
.stocktext{flex:1;font-size:13.5px;font-weight:600;line-height:1.35;
  display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.stockchip.has-meter .stocktext,.stockchip.has-pills .stocktext{flex:none;font-size:12.5px;line-height:1.2;}
.stocketa{font-size:11px;font-weight:600;color:rgba(46,94,72,.78);}
.stockchip.out .stocketa{color:rgba(138,48,40,.82);}
.stockmeta{display:flex;flex-wrap:wrap;gap:4px 6px;align-items:center;min-height:18px;flex:none;}
.stockbadge{display:inline-flex;align-items:center;justify-content:center;min-height:18px;
  font-weight:700;font-size:11px;padding:2px 7px;border-radius:999px;
  background:rgba(255,255,255,.72);border:1px solid currentColor;white-space:nowrap;line-height:1.1;}
.stockbadge.status.low{background:#F7C9C3;border-color:#D86E63;color:#8F3028;}
.stockbadge.status.out{background:#F7C9C3;border-color:#D86E63;color:#8F3028;}
.stockplus{width:32px;min-width:32px;height:32px;border-radius:12px;
  border:1px solid currentColor;background:#fff;color:inherit;
  font-size:18px;font-weight:700;line-height:1;cursor:pointer;padding:0;
  display:grid;place-items:center;box-sizing:border-box;flex:none;
  /* Ledge depth: a solid chip-tone drop under the white face so the +
     reads as a raised button instead of a flat colour swatch. Opacity
     bumped (was .22, invisible against the pale chip background) and
     colour pulled from a near-slate so it's distinct from the chip's
     own tint. Each state (ok/low/out) still gets its own matching
     tone below. */
  box-shadow:0 var(--btn-lift) 0 0 rgba(28,52,42,.55);transition:var(--btn-ease);}
.stockplus .plusglyph{display:block;line-height:1;transform:translateY(-1px);}
.stockplus:hover{background:rgba(255,255,255,.7);}
.stockplus:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 rgba(28,52,42,.55);background:#F3F7F4;}
.stockplus:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
/* Per-tone ledge: default stays green, while the red state carries the same
  stronger ledge so the isolated rail button still reads as tied to the chip. */
.stockrow.out .stockplus{box-shadow:0 var(--btn-lift) 0 0 rgba(163,63,52,.55);}
.stockrow.out .stockplus:active{box-shadow:0 0 0 0 rgba(163,63,52,.55);}
.stockact{flex:none;background:#fff;border:1px solid currentColor;color:inherit;
  font-size:12.5px;font-weight:600;padding:6px 12px;border-radius:8px;
  cursor:pointer;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;
  text-align:center;box-sizing:border-box;white-space:nowrap;}
.stockact:hover{background:rgba(255,255,255,.7);}
.stockact:active{transform:scale(.97);}
.stockact:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
.stockmeter{position:relative;height:7px;border-radius:999px;background:rgba(255,255,255,.45);
  overflow:hidden;margin-top:auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);}
.stockchip.has-meter .stockmeter{height:5px;margin-top:0;}
.stockmeter-fill{display:block;height:100%;border-radius:inherit;background:currentColor;}
.stockchip.low .stockmeter{background:rgba(46,94,72,.12);box-shadow:inset 0 0 0 1px rgba(46,94,72,.18);}
.stockchip.out .stockmeter{background:rgba(176,67,45,.12);box-shadow:inset 0 0 0 1px rgba(176,67,45,.16);}
.stockmode{display:flex;gap:6px;margin:6px 0 10px;}
.stockmode button{flex:1;font-size:12.5px;font-weight:600;padding:8px 12px;border-radius:8px;
  background:#EBF1EE;color:var(--txt-2);border:0;cursor:pointer;line-height:1.2;}
.stockmode button.on{background:var(--slate);color:#fff;}
.stockmode button:focus-visible{outline:2px solid var(--slate);outline-offset:2px;}
.stockbanner{margin:0 0 12px 0;padding:12px 13px;border-radius:12px;
  background:#E7F2EB;border:1px solid #C7DAC7;color:#254E39;}
.stockbanner.low{background:#FFF6E6;border-color:#EBD9B4;color:#7A4E12;}
.stockbanner.out{background:#FCEBE7;border-color:#EFC9C4;color:var(--miss);}
.stockbanner-txt{font-size:13.5px;line-height:1.4;}
.stockbanner-txt b{font-size:13.5px;font-weight:700;display:block;}
.stockbanner-txt small{display:block;margin-top:2px;font-size:12.5px;color:#3C6B55;}
.stockbanner.low .stockbanner-txt small{color:#8A6525;}
.stockbanner.out .stockbanner-txt small{color:#9A4B3D;}
.stockbanner-stack{display:flex;flex-direction:column;gap:8px;}
.stockbanner-actions{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,.72fr) minmax(0,1.56fr);gap:8px;margin-top:10px;align-items:stretch;}
.stockbanner-actions .stockact{width:100%;min-width:0;color:inherit;border:1px solid currentColor;min-height:34px;box-sizing:border-box;padding:0 8px;font-size:12.5px;font-weight:600;white-space:nowrap;line-height:1.1;text-align:center;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;box-sizing:border-box;box-shadow:0 var(--btn-lift) 0 0 rgba(36,78,57,.42);transition:var(--btn-ease);overflow:hidden;text-overflow:clip;}
.stockbanner-actions .stockact:hover{background:rgba(255,255,255,.82);}
.stockbanner-actions .stockact:active{transform:translateY(var(--btn-lift));box-shadow:0 0 0 0 rgba(36,78,57,.42);}
.stockbanner-actions .stockact:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
.stockbanner.low .stockbanner-actions .stockact,
.stockbanner.out .stockbanner-actions .stockact{box-shadow:0 var(--btn-lift) 0 0 rgba(163,63,52,.55);}
.stockbanner.low .stockbanner-actions .stockact:active,
.stockbanner.out .stockbanner-actions .stockact:active{box-shadow:0 0 0 0 rgba(163,63,52,.55);}
.stockbanner.low .stockbanner-actions .stockact:hover{background:#FFF8E9;}
.stockbanner.out .stockbanner-actions .stockact:hover{background:#FDEFEA;}
.tic{width:32px;height:32px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex:none;}
.tico{display:inline-flex;vertical-align:-2px;margin-right:4px;}
.bigtic{width:clamp(56px,9vw,74px);height:clamp(56px,9vw,74px);border-radius:24px;
  background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;flex:none;}
.pick button svg{vertical-align:-2px;margin-right:4px;}
.pdot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;}
.sw.amber.on{background:var(--pend);}

.pmini{width:34px;height:17px;border-radius:12px;overflow:hidden;display:flex;flex:none;}
.pmini i{flex:1;}

/* Optical centring for the 34px action buttons (Add / Book / Edit): Inter
   sits ~1.5px high in a line-height:1 flex box, so nudge the label down
   without changing the button's size. */
.sectioncta, .plansecrow .sectioncta, .card.task .minibtn, .apptcard .minibtn{padding-top:3px;}
