@font-face { font-family: "Atkinson"; src: url("/m-fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/m-fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --bg: #131C21; --surface: #1B272E; --surface-2: #22313A; --surface-3: #2A3B45; --line: #2F3F48;
  --ink: #E9EFF1; --ink-2: #C7D2D7; --muted: #A3B3BA; --faint: #81949C;
  --accent: #5CCB9F; --accent-ink: #0D1A15; --accent-soft: #1D3A30; --accent-text: #74D8B0;
  --cta: #E79D63; --cta-ink: #1D120A; --warn: #EDBB63; --warn-soft: #3A2F18; --alert: #F2928A; --alert-soft: #3E2422;
  --info: #8FB4F2; --info-soft: #1E2C44;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 "Atkinson", system-ui, sans-serif; }
body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); padding-top: env(safe-area-inset-top); min-height: 100vh; }   /* 1.53.5 top: only when the phone says its top bar covers the page (0 in Chrome and in app 1.1.1) */
a { color: var(--accent-text); }
h1 { font-size: 22px; margin: 0 0 4px; line-height: 1.2; }
h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; font-weight: 700; }
.wrap { padding: 16px 16px 24px; max-width: 640px; margin: 0 auto; }
.center { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13.5px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 10px; }
.row { display: flex; gap: 12px; align-items: center; }
.grow { flex: 1; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 700 16px "Atkinson", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn.green { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.btn svg, .tabs svg, .act svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linkbtn { background: none; border: 0; color: var(--accent-text); font: inherit; padding: 8px 0; cursor: pointer; }
label.f { display: block; margin: 0 0 14px; }
label.f > span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 16px "Atkinson", system-ui, sans-serif; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }   /* 1.53.1 radios too (they took the text-box size) */
.check { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.chip.green { background: var(--accent-soft); color: var(--accent-text); } .chip.red { background: var(--alert-soft); color: var(--alert); }
.chip.amber { background: var(--warn-soft); color: var(--warn); } .chip.blue { background: var(--info-soft); color: var(--info); }
.flag { padding: 12px 14px; border-radius: 12px; margin: 0 0 12px; font-size: 15px; }
.flag.amber { background: var(--warn-soft); color: var(--warn); } .flag.red { background: var(--alert-soft); color: var(--alert); } .flag.green { background: var(--accent-soft); color: var(--accent-text); }
.err { color: var(--alert); min-height: 22px; margin: 6px 0; font-size: 15px; }
.tabs[hidden] { display: none; }   /* 1.52 the tab bar showed on the PIN and sign-in screens too (display:flex beat [hidden]) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #0E161A; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 700; }
.tabs a.on { color: var(--accent-text); }
.tabs a.wait span { color: var(--warn); } .tabs a.bad span { color: var(--alert); }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; position: sticky; top: env(safe-area-inset-top); background: var(--bg); z-index: 3; border-bottom: 1px solid var(--line); }
.top .back { min-height: 40px; padding: 0 10px; }
.photo { width: 56px; height: 56px; border-radius: 12px; background: var(--surface-3); object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.photo.big { width: 84px; height: 84px; border-radius: 16px; font-size: 26px; }
.list a.item { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; }
.act.off { opacity: .4; pointer-events: none; }
.pin { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; margin: 18px 0; }
.pin button { height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 24px "Atkinson", system-ui, sans-serif; }
.dots { display: flex; gap: 14px; justify-content: center; margin: 16px 0 4px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.entry { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; margin: 0 0 14px; }
.entry.call { border-color: var(--info); } .entry.visit { border-color: var(--accent); } .entry.wait { border-color: var(--warn); }
.entry .when { font-size: 13px; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 15px; }
.kv b { color: var(--muted); font-weight: 400; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); background: var(--surface-3); color: var(--ink); padding: 12px 14px; border-radius: 12px; z-index: 20; box-shadow: 0 6px 24px #0008; }
.toast.bad { background: var(--alert-soft); color: var(--alert); }
.viewer { position: fixed; inset: 0; background: #000e; z-index: 30; display: flex; flex-direction: column; }
.viewer img { flex: 1; object-fit: contain; width: 100%; min-height: 0; }
.viewer .bar { display: flex; gap: 10px; padding: 12px; justify-content: flex-end; }
.bar-progress { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.bar-progress i { display: block; height: 100%; background: var(--accent); }
.hide-conf { color: var(--faint); font-style: italic; }

/* 1.3 the signed-in person's picture */
.ava { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--muted); font-weight: 700; font-size: 15px; }
.ava.pic { overflow: hidden; padding: 0; }
.ava.pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ava.small { width: 24px; height: 24px; font-size: 10px; }
.me-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.me-line { display: inline-flex; align-items: center; gap: 8px; }

/* 1.8 home visit one step at a time, GOV.UK hints, big choices */
.hint { display: block; color: var(--muted); font-size: 14px; margin: -2px 0 8px; }
.lbl { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; font-weight: 700; }
.vs-bar { display: flex; gap: 5px; margin: 0 0 10px; }
.vs-bar i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); }
.vs-bar i.done { background: #3E8268; } .vs-bar i.on { background: var(--accent); }
.vs-count { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.vs-q { font-size: 24px; margin: 0 0 18px; }
.vs-step { min-height: 46vh; }
.choices { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.choice { min-height: 56px; text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 17px "Atkinson", system-ui, sans-serif; cursor: pointer; }
.choice.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--ink); padding: 11px 15px; }
.vs-nav { display: flex; gap: 10px; position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 0 4px; }
.vs-nav .btn { min-height: 54px; }

/* 1.9 steady on the phone: no bounce or pull-to-refresh, nothing wider than the screen */
html, body { overscroll-behavior-y: none; overflow-x: clip; }
.wrap { overflow-wrap: anywhere; }
.wrap img, .wrap video { max-width: 100%; }
.linkbtn { min-height: 44px; }

/* ================================================================== 1.10 the field app (design: claude/phone-app-design-references.md,
   canvas "Home of Hope phone app - redesign directions": A Field kit + B family groups + C guided visit) */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic.faint { color: var(--faint); width: 20px; height: 20px; }
body.flow { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.noscroll { overflow: hidden; }
.top .back { min-width: 48px; min-height: 48px; padding: 0; border: 0; background: none; }
.top .grow .small { font-weight: 400; }
.hello { font-size: clamp(19px, 6.4vw, 26px); margin: 2px 0 0; overflow-wrap: anywhere; }   /* 1.53.3 fits small phones */
.me-head > div:first-child { min-width: 0; }
.sline { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 16px; font-size: 14px; color: var(--ink-2); text-decoration: none; min-height: 32px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--accent); }
.dot.amber { background: var(--warn); } .dot.red { background: var(--alert); } .dot.green { background: var(--accent); }
.bigcard { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; margin: 0 0 12px; }
.bigcard b { display: block; font-size: 19px; } .bigcard small { display: block; color: var(--muted); font-size: 14px; }
.bigicon { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bigicon .ic { width: 26px; height: 26px; }
.bigcard .btn { min-height: 52px; font-size: 17px; }
.qgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 6px; }
.qbtn { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2; }
.qbtn .ic { color: var(--accent-text); }
.qbtn.wide { margin: 0 0 6px; }
.tlist { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow b, .trow > .grow > span { display: block; } .trow small { display: block; color: var(--muted); font-size: 13.5px; }
.ticon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--info); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ticon.overdue { color: var(--alert); } .ticon.week { color: var(--warn); }
.btn.quiet { background: none; }
.btn .ic { width: 20px; height: 20px; }
.btn.off { opacity: .45; pointer-events: none; }
.search { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); margin: 0 0 6px; }
.search input { border: 0; background: none; min-height: 52px; padding: 0; font-size: 17px; }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
/* the child page */
.chead h1 { font-size: 23px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.admitted { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.admitted .ic { color: var(--accent-text); width: 20px; height: 20px; }
.ids { margin: 6px 2px 12px; }
.flag .ic { width: 18px; height: 18px; vertical-align: -3px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sect h2 { flex: 1; }
.sect .linkbtn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.sect .linkbtn .ic { width: 18px; height: 18px; }
.plist { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pgroup { padding: 12px 14px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.prow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 60px; }
.prow b { display: inline; } .prow small { display: block; color: var(--muted); font-size: 13.5px; }
.prow a.ava { text-decoration: none; }
.waitline { display: flex !important; align-items: center; gap: 8px; color: var(--ink-2) !important; margin-top: 4px; font-size: 13px; }
.callbtn { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.padd { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--accent-text); text-decoration: none; font: 700 16px "Atkinson", system-ui, sans-serif; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; cursor: pointer; }
button.padd { border: 1px dashed var(--accent); border-radius: 14px; }
.acc { color: var(--accent-text); display: inline-flex; }
.card.row { margin-bottom: 4px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.dock a, .dock button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 700 13.5px "Atkinson", system-ui, sans-serif; cursor: pointer; }
.dock .main { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.dock .off { opacity: .4; pointer-events: none; }
.dock .ic { width: 24px; height: 24px; }
/* bottom sheet */
.scrim { position: fixed; inset: 0; background: rgba(4, 9, 12, .62); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 82vh; overflow: auto; overscroll-behavior: contain; padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; animation: sheetup .18s ease-out; }
.handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 4px auto 12px; }
.sheet-t { font-size: 18px; font-weight: 700; padding: 0 6px 6px; }
.sitem { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 6px; border: 0; background: none; color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; border-radius: 12px; }
.sitem > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); }
.sitem b { display: block; font-size: 16.5px; } .sitem small { display: block; color: var(--muted); font-size: 13.5px; }
/* 1.13.1 "already recorded?" sheet: the entries found are information, not choices */
.sitem.info { min-height: 48px; cursor: default; opacity: 1; } .sitem.info b { font-size: 15px; font-weight: 500; } .sitem.info > .ic { background: none; color: var(--muted); }
@keyframes sheetup { from { transform: translateY(30px); opacity: .5; } }
/* steps: relationship grid, people to tick, bottom buttons */
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.rgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rgrid .choice { text-align: center; padding: 10px 8px; font-size: 15.5px; min-height: 52px; }
.rgrid .choice.on { padding: 9px 7px; }
.choice.person { display: flex; align-items: center; gap: 12px; text-align: left; }
.choice.person small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; }
.tick { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--faint); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.choice.on .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tick .ic { width: 18px; height: 18px; }
.flownav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.flownav .btn { min-height: 54px; }
.flownav.col { flex-direction: column; border-top: 0; }
.overlay { position: fixed; inset: 0; z-index: 30; background: var(--bg); overflow: auto; padding-bottom: 100px; }
.overlay .flownav { z-index: 31; }
.vs-nav { display: none; }
.okrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 15px; }
.okdot { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; flex: none; font-style: normal; font-weight: 700; }
.okdot.no { background: var(--warn-soft); color: var(--warn); }
.okdot .ic { width: 16px; height: 16px; }
/* saved */
.savedhead { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 0 18px; }
.savedhead h1 { font-size: 25px; } .savedhead p { margin: 0; color: var(--ink-2); max-width: 320px; }
.bigtick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.bigtick .ic { width: 38px; height: 38px; }
.srow { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; }
.srow small { display: block; color: var(--muted); font-size: 13.5px; } .srow b { display: block; }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
body.flow .tabs { display: none !important; }

/* 1.15 screens slide like on an iPhone (m.js navRoute / mSlide); the bottom tabs stay still */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); mix-blend-mode: normal; }
html[data-nav=fwd]::view-transition-old(root), html[data-nav=step-fwd]::view-transition-old(root) { animation-name: m-out-left; }
html[data-nav=fwd]::view-transition-new(root), html[data-nav=step-fwd]::view-transition-new(root) { animation-name: m-in-right; }
html[data-nav=back]::view-transition-old(root), html[data-nav=step-back]::view-transition-old(root) { animation-name: m-out-right; z-index: 1; }
html[data-nav=back]::view-transition-new(root), html[data-nav=step-back]::view-transition-new(root) { animation-name: m-in-left; }
html[data-nav=fade]::view-transition-old(root), html[data-nav=fade]::view-transition-new(root) { animation-duration: .15s; }
@keyframes m-in-right { from { transform: translateX(100%); } }
@keyframes m-out-left { to { transform: translateX(-28%); filter: brightness(.55); } }
@keyframes m-in-left { from { transform: translateX(-28%); filter: brightness(.55); } }
@keyframes m-out-right { to { transform: translateX(100%); } }
#tabs { view-transition-name: mtabs; }
html[data-nav^=step] .top { view-transition-name: mtop; }
html[data-nav^=step] .flownav { view-transition-name: mnav; }
::view-transition-group(mtabs), ::view-transition-group(mtop), ::view-transition-group(mnav) { animation: none; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* 1.22 photos */
.phm-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px; }
.phm { all: unset; flex: 0 0 auto; width: 118px; display: grid; gap: 2px; font-size: 13px; cursor: pointer; }
.phm small { color: var(--muted, #9aa); font-size: 12px; }
.phm .phm-img, .phm img.phm-img { width: 118px; height: 150px; object-fit: cover; border-radius: 10px; background: #0004; display: grid; place-items: center; font-size: 11px; color: #9aa; }
.phm-prev { margin: 12px 0; }
.phm-prev img { width: 100%; max-height: 50vh; object-fit: contain; border-radius: 12px; background: #0004; }

/* 1.28 missing children (lost.js) */
.lostq { margin-top: 10px; }
.lostq small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
.lwall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lface { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lface-img { aspect-ratio: 4 / 5; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 28px; color: var(--muted); overflow: hidden; margin-bottom: 6px; }
.lface-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lface b { font-size: 15.5px; line-height: 1.2; }
.lface small { color: var(--muted); font-size: 12.5px; }
.lface .chip { align-self: flex-start; margin-top: 4px; }
.lface[hidden], .lsolved .item[hidden] { display: none; }
.lsolved summary { cursor: pointer; list-style: none; }
.lsolved summary::-webkit-details-marker { display: none; }
.lbig { object-fit: cover; }
.lsolved { margin-top: 18px; }
/* 1.29 Today: tiles with a count; the chosen tile's list opens under them */
.ttile { position: relative; width: 100%; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.ttile .grow { white-space: nowrap; }
/* 1.29.1 the count is a small badge on the tile's corner, so the word never breaks ("Overdu-e" on Jacek's phone) */
.ttile .chip { position: absolute; top: -7px; right: -5px; min-width: 24px; padding: 2px 7px; text-align: center; font-size: 12px; line-height: 16px; border: 2px solid var(--bg); }
.ttile .chip:not(.red):not(.amber):not(.blue):not(.green) { display: none; }
.ttile.empty { color: var(--muted); } .ttile.empty .ic { color: var(--muted); }
.ttile[aria-expanded="true"] { border-color: var(--accent); background: var(--surface-2); }
.ttile[data-tile="overdue"]:not(.empty) .ic { color: var(--alert); } .ttile[data-tile="week"]:not(.empty) .ic { color: var(--warn); }
.ttile .chip.red { background: var(--alert); color: var(--bg); } .ttile .chip.amber { background: var(--warn); color: var(--bg); }
.ttile .chip.blue { background: var(--info); color: var(--bg); } .ttile .chip.green { background: var(--accent); color: var(--bg); }
/* 1.31 child page: shortcuts to photos, documents, police & legal; legal files open */
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.jump { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.jump .ic { width: 18px; height: 18px; color: var(--accent-text); }
.jump b { background: var(--surface-3); border-radius: 999px; padding: 0 7px; font-size: 12.5px; }
.lfile { padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; gap: 10px; }
.lfile small { display: block; }
img.photo.big { cursor: zoom-in; }
#sec-photos, #sec-docs, #sec-legal { scroll-margin-top: 70px; }

/* 1.52 shared phone: "Who is using the phone?" and the name bar with "Hand over" */
.faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 20px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; cursor: pointer; }
.face.last { border: 2px solid var(--accent); }
.face b { font-size: 16.5px; text-align: center; }
.ava.big { width: 68px; height: 68px; font-size: 23px; color: var(--ink-2); }
#hb { position: relative; }
#hb .hb { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; background: var(--accent-soft); border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
#hb .hb .ava { width: 40px; height: 40px; border: 2px solid var(--accent); }
#hb .hb b { font-size: 16.5px; }
#hb .hb-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--accent-text); flex: none; }
#hb .hb-go .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#first .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 1.53.7 Children groups that open and close */
details.kgroup { margin: 10px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
details.kgroup > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 14px; cursor: pointer; min-height: 48px; }
details.kgroup > summary::-webkit-details-marker { display: none; }
details.kgroup > summary b { flex: 1; font-size: 16px; }
details.kgroup .kg-arrow { transition: transform .2s; opacity: .7; }
details.kgroup[open] .kg-arrow { transform: rotate(90deg); }
details.kgroup .kg-note { margin: -4px 14px 6px; }
details.kgroup .list { padding: 0 6px 6px; }

/* 1.54.1 show / hide the password */
.pwwrap { position: relative; display: block; }
.pwwrap > input { padding-right: 56px; }
.pwwrap > .peek { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 48px; height: 44px; border: 0; background: none;
  color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.pwwrap > .peek .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pwwrap > .peek[aria-pressed="true"] { color: var(--accent-text); }

/* 1.60 staff boxes: tap the people (several allowed) */
.choices.staffpick { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.staffpick .choice { min-height: 46px; font-size: 15px; padding: 10px 14px; }
.staffpick .choice.on { padding: 9px 13px; }
