/* Pictures of the Family HQ app, rebuilt from the app's own components and Design System v0.2
   (apps/mobile/src/theme/tokens.ts, components/today/TodayAgendaCard.tsx, ResponsibilityBadge.tsx).
   They always use the app's light palette and its platform font: they show the product, not page chrome. */
.app{
  --a-bg:#FBF5EC;--a-surface:#FFFDF9;--a-surface-2:#F5EFE7;--a-primary:#284F53;--a-primary-deep:#11393E;--a-on-primary:#FDFAF4;--a-primary-soft:#D8ECEF;
  --a-text:#0F171D;--a-text-2:#5C656B;--a-border:#E5E1DA;--a-hair:#E4E1DB;--a-att:#E08256;--a-att-soft:#FFE4CF;--a-att-text:#662703;--a-att-surface:#FFF0E3;
  --a-ok:#4C735A;--a-ok-soft:#D6EFDE;--a-error:#B33830;--a-violet:#7B5EA7;
  font-family:Roboto,"SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--a-text);font-size:14px;line-height:1.35;letter-spacing:0;text-align:left;font-weight:400;color-scheme:light;
  -webkit-font-smoothing:antialiased
}
.app *{box-sizing:border-box}
.app button{font:inherit;color:inherit}

/* --- screen chrome ------------------------------------------------------------------- */
.a-screen{position:relative;background:var(--a-bg);height:100%;overflow:hidden;display:flex;flex-direction:column}
.a-status{display:flex;justify-content:space-between;align-items:center;padding:14px 22px 4px;font-size:13.5px;font-weight:500;font-variant-numeric:tabular-nums}
.a-status svg{height:12px;width:auto;fill:var(--a-text)}
.a-sys{display:flex;gap:5px;align-items:center}
.a-head{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 16px 0}
.a-h1{font-size:28px;font-weight:700;letter-spacing:-.01em;line-height:1.1}
.a-date{font-size:14px;color:var(--a-text-2);margin-top:2px}
.a-head-r{display:flex;gap:8px;align-items:center;margin-top:2px}
.a-chip{display:inline-flex;align-items:center;gap:4px;height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--a-border);background:var(--a-surface);font-size:13px;font-weight:500;white-space:nowrap}
.a-chip svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}
.a-ava{width:36px;height:36px;border-radius:50%;background:var(--a-primary);display:grid;place-items:center}
.a-ava svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.8}
.a-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;margin:12px 16px 0;background:var(--a-surface);border:1px solid var(--a-border);border-radius:999px;padding:3px;font-size:13.5px;font-weight:600;color:var(--a-text-2)}
.a-seg span{text-align:center;padding:8px 2px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-seg .on{background:var(--a-primary);color:var(--a-on-primary)}
.a-scroll{flex:1;min-height:0;overflow:hidden;padding:12px 12px 0;display:flex;flex-direction:column;gap:10px}
.a-scroll>*{flex:none}
.a-tabs{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(3,1fr) 76px;align-items:center;padding:8px 6px 14px;background:var(--a-surface);border-top:1px solid var(--a-border)}
.a-tab{display:grid;justify-items:center;gap:3px;font-size:11.5px;font-weight:500;color:var(--a-text-2)}
.a-tab svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.a-tab.on{color:var(--a-primary);font-weight:600}
.a-fab{justify-self:center;width:54px;height:54px;border-radius:50%;background:var(--a-primary);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:300;margin-top:-34px;box-shadow:0 8px 18px -8px rgba(17,57,62,.7),0 0 0 4px var(--a-bg)}

/* --- activity card (TodayAgendaCard) ---------------------------------------------------- */
.a-card{border-radius:24px}
.a-card-h{position:relative;overflow:hidden;border-radius:24px 24px 0 0;padding:4px 12px 12px 16px;color:var(--ink,#FDFAF4)}
.a-card-h>svg{position:absolute;inset:0;width:100%;height:100%}
.a-card-h>*:not(svg){position:relative}
.a-card-row{display:flex;align-items:center;gap:8px;min-height:44px}
.a-time{width:56px;flex:none;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;line-height:20px;white-space:nowrap}
.a-card-title{flex:1;min-width:0;font-size:17px;font-weight:600;line-height:1.2}
.a-pill{flex:none;padding:2px 8px;border-radius:999px;font-size:12.5px;font-weight:600}
.a-more{flex:none;width:30px;text-align:center;font-size:18px;font-weight:700;letter-spacing:1px}
.a-meta{margin-left:64px;margin-top:-4px;font-size:13.5px}
.a-bar{margin:8px 0 0 64px;height:6px;border-radius:6px;overflow:hidden}
.a-bar i{display:block;height:100%;border-radius:6px;transition:width .5s}
.a-card-b{background:var(--a-surface);border:1px solid var(--a-border);border-top:0;border-radius:0 0 24px 24px;padding:4px 11px 3px 15px}
.a-row{position:relative;display:flex;align-items:center;gap:8px;min-height:46px;padding:2px 0}
.a-row+.a-row::before{content:"";position:absolute;top:0;left:64px;right:0;height:1px;background:var(--a-hair)}
.a-row .a-t{width:56px;flex:none;font-size:13.5px;color:var(--a-text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.a-copy{flex:1;min-width:0;display:grid;gap:1px;padding:4px 0}
.a-copy b{font-size:15px;line-height:20px;font-weight:500}
.a-copy small{font-size:13px;color:var(--a-text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.a-row.done .a-copy b{text-decoration:line-through;color:var(--a-text-2)}
.a-who{flex:0 1 auto;min-width:0;overflow-wrap:anywhere;max-width:38%;display:flex;align-items:center;gap:6px;justify-content:flex-end;font-size:13.5px;color:var(--a-text-2);text-align:right}
.a-who svg{width:20px;height:20px;flex:none}
.a-who{min-width:26px}
.a-who.stacked{justify-content:flex-start;max-width:none;text-align:left;margin-top:3px;font-size:13px}
.a-who.stacked svg{width:16px;height:16px}
.a-who.awaiting{color:var(--a-att-text)}
.a-who.unassigned{color:var(--a-error)}
.a-circle{flex:none;width:44px;height:44px;display:grid;place-items:center}
.a-circle i{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--a-primary);background:var(--a-surface)}
.a-row.done .a-circle i{background:var(--a-primary);position:relative}
.a-row.done .a-circle i::after{content:"";position:absolute;left:8.5px;top:5px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.a-add{border-top:1px solid var(--a-border);text-align:center;font-size:13.5px;font-weight:600;color:var(--a-primary);padding:8px 0 6px}
.a-row.flash{animation:aflash 1.4s ease-out}
@keyframes aflash{0%{background:rgba(214,239,222,0)}20%{background:rgba(214,239,222,.95)}100%{background:rgba(214,239,222,0)}}

/* --- generic surfaces ------------------------------------------------------------------- */
.a-sheet{background:var(--a-surface);border:1px solid var(--a-border);border-radius:24px;padding:16px;display:grid;gap:12px;box-shadow:0 24px 48px -30px rgba(15,23,29,.35)}
.a-sheet.attention{background:var(--a-att-surface);border-color:#F4D7C0}
.a-grab{width:40px;height:4px;border-radius:4px;background:#D9D3C9;justify-self:center;margin:-6px 0 2px}
.a-label{font-size:12px;font-weight:600;color:var(--a-text-2);letter-spacing:.02em}
.a-title{font-size:19px;font-weight:600;line-height:1.25;letter-spacing:-.005em}
.a-body{font-size:15px;line-height:1.4}
.a-hint{font-size:13px;line-height:1.4;color:var(--a-text-2)}
.a-tag{justify-self:start;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:4px 10px;font-size:12.5px;font-weight:600;background:var(--a-att-soft);color:var(--a-att-text)}
.a-tag.ok{background:var(--a-ok-soft);color:#2F5240}
.a-tag.quiet{background:var(--a-surface-2);color:var(--a-text-2)}
.a-fact{display:flex;gap:10px;align-items:center;font-size:14px}
.a-fact .ic{width:32px;height:32px;flex:none;border-radius:10px;display:grid;place-items:center;background:var(--a-primary-soft);color:var(--a-primary)}
.a-fact .ic svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.a-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a-btn{min-height:46px;border-radius:999px;display:grid;place-items:center;font-size:15px;font-weight:600;background:var(--a-primary);color:var(--a-on-primary);border:0;cursor:pointer;padding:0 16px}
.a-btn.ghost{background:transparent;color:var(--a-primary);box-shadow:inset 0 0 0 1.5px #C9D9DA}
.a-person{display:flex;align-items:center;gap:10px}
.a-pav{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff;background:var(--a-primary)}
.a-pav.v{background:var(--a-violet)}.a-pav.w{background:#B9683F}.a-pav.g{background:#4C735A}
.a-steps{display:grid;gap:0;margin-top:2px}
.a-step{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;min-height:40px;position:relative}
.a-step::before{content:"";position:absolute;left:10px;top:0;bottom:0;width:2px;background:var(--a-ok-soft)}
.a-step:first-child::before{top:50%}.a-step:last-child::before{bottom:50%}
.a-step i{position:relative;width:22px;height:22px;border-radius:50%;background:var(--a-ok);box-shadow:0 0 0 3px var(--a-surface)}
.a-step i::after{content:"";position:absolute;left:7.5px;top:4.5px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.a-step b{font-size:15px;font-weight:500}
.a-step span{font-size:13.5px;color:var(--a-text-2);font-variant-numeric:tabular-nums}
.a-field{border:1px solid var(--a-border);border-radius:14px;padding:8px 12px;background:#fff;display:grid;gap:1px}
.a-field small{font-size:12px;color:var(--a-text-2)}
.a-field span{font-size:15px}
.a-chips{display:flex;flex-wrap:wrap;gap:6px}
.a-c{border:1px solid var(--a-border);border-radius:999px;padding:6px 12px;font-size:13.5px;font-weight:500;background:#fff}
.a-c.on{background:var(--a-primary);border-color:var(--a-primary);color:var(--a-on-primary)}
.a-perm{display:grid;grid-template-columns:1fr auto;gap:2px 12px;align-items:center;padding:8px 0;border-top:1px solid var(--a-hair)}
.a-perm b{font-size:15px;font-weight:500}
.a-perm small{grid-column:1;font-size:12.5px;color:var(--a-text-2);line-height:1.35}
.a-sw{grid-row:1 / span 2;grid-column:2;width:44px;height:26px;border-radius:999px;background:#D7D2C9;position:relative}
.a-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:left .2s}
.a-sw.on{background:var(--a-primary)}.a-sw.on::after{left:21px}
.a-week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center}
.a-week b{font-size:11px;font-weight:600;color:var(--a-text-2)}
.a-week i{display:block;height:30px;border-radius:9px;font-style:normal;font-size:12px;font-weight:700;line-height:30px;color:#fff}
.a-week .A{background:var(--a-primary)}.a-week .B{background:var(--a-violet)}
.a-week .Q{background:transparent;box-shadow:inset 0 0 0 1.5px var(--a-att);color:var(--a-att-text)}
.a-legend{display:flex;gap:14px;font-size:12.5px;color:var(--a-text-2)}
.a-legend span{display:inline-flex;align-items:center;gap:6px}
.a-legend span::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--c,var(--a-primary))}

/* --- stories (interactive scenes) ---------------------------------------------------- */
.st .a-btn,.st .a-sw,.st .pk-chip,.st-again{font-family:inherit;-webkit-tap-highlight-color:transparent}
.st .a-btn:hover{background:var(--a-primary-deep)}
.st .a-btn.ghost:hover{background:var(--a-primary-soft)}
.st .a-btn.sm{min-height:40px;flex:none;padding:0 18px;font-size:14.5px}
.st .a-btn:focus-visible,.st .a-sw:focus-visible,.st .pk-chip:focus-visible,.st-again:focus-visible{outline:2px solid var(--a-primary);outline-offset:3px}
.st .a-sw{border:0;padding:0;cursor:pointer;flex:none}
@media (prefers-reduced-motion: no-preference){.st-pop{animation:st-in .35s cubic-bezier(.2,.8,.2,1) both}}
@keyframes st-in{from{opacity:.01;transform:translateY(8px)}to{opacity:1;transform:none}}
.st-phone{font-size:12.5px;font-weight:600;color:var(--a-text-2);letter-spacing:.02em;display:flex;align-items:center;gap:8px;margin:4px 0 -4px 4px}
.st-phone::before{content:"";width:10px;height:16px;border-radius:3px;border:1.5px solid currentColor}
.st-note{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0;font-size:14.5px;line-height:1.4;color:var(--a-text)}
.st-note>span:first-child:not(.a-tag){flex:1 1 220px}
.st-again{background:none;border:0;padding:8px 0;font-size:14px;font-weight:500;color:var(--a-primary);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.a-tag svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.a-fact.warn .ic{background:var(--a-att-soft);color:var(--a-att-text);font-weight:700;font-size:16px}
.st-list{display:grid;gap:6px;font-size:14px}
.st-list span{display:flex;gap:8px;align-items:center}
.st-list svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--a-ok);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
/* Coverage Packet (app/(app)/coverage-packet.tsx) */
.packet{gap:14px}
.pk-hero{background:var(--a-primary);color:var(--a-on-primary);border-radius:20px;padding:16px 18px;display:grid;gap:2px}
.pk-hero small{font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;opacity:.82}
.pk-hero b{font-size:21px;font-weight:600}
.pk-hero span{font-size:13.5px;opacity:.88}
.pk-sec{display:grid;gap:6px}
.pk-box{border:1px solid var(--a-primary);border-radius:16px;padding:10px 12px;font-size:14.5px;font-weight:500;display:grid;gap:2px}
.pk-box.warn{border-color:var(--a-att);background:var(--a-att-surface)}
.pk-box.warn span{font-weight:400;font-size:13px;color:var(--a-text-2)}
.pk-item{border:1px solid var(--a-border);border-radius:18px;padding:12px;display:grid;gap:8px}
.pk-top{display:grid;gap:1px}
.pk-top span,.pk-top small{font-size:12.5px;color:var(--a-text-2)}
.pk-top b{font-size:17px;font-weight:600}
.pk-chips{display:flex;flex-wrap:wrap;gap:6px}
.pk-chip{min-height:36px;padding:0 14px;border-radius:999px;border:0;background:var(--a-primary-soft);color:var(--a-primary);font-size:13px;font-weight:600;cursor:pointer}
.pk-chip:hover:not(:disabled){background:#C4E2E6}
.pk-chip:disabled{opacity:.45;cursor:default}
