/* OllyOlly portal styles. Tokens, fonts, themes and the shared ui-* components come from
   ui/tokens.css and ui/components.css (loaded first). This file has two parts:
   1. the portal frame and screens (classes start with "p-"), and
   2. the older classes the modules (notebook, stories, library, guides, email) still use. */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; /* [ios] dvh: the real visible height */
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-inner); border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 7vw, 40px); font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; }

/* ---------- boot ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 18px; text-align: center; padding: 24px;
  background: radial-gradient(380px 300px at 50% 35%, rgba(242, 169, 59, 0.3), transparent 70%), linear-gradient(180deg, var(--brand), var(--brand-2));
  color: var(--on-brand);
}
.boot img { width: 96px; height: 96px; margin: 0 auto; border-radius: 24px; }
.boot .ui-btn { justify-self: center; }

/* =====================================================================================
   1. Portal frame and screens
   ===================================================================================== */

/* App bar with the compact sky: the text follows the sky (dark by day, light at dusk and night). */
.p-appbar { background: var(--brand); }
.p-appbar:has(> .ui-sky[data-phase="day"]), .p-appbar:has(> .ui-sky[data-phase="dawn"]), .p-appbar:has(> .ui-sky[data-phase="golden"]) { color: #1C2233; }
.p-appbar .ui-appbar-title { text-shadow: 0 1px 0 color-mix(in srgb, var(--bg) 30%, transparent); }
:where([data-skin="grown"]) .p-appbar > .ui-sky { opacity: 0.9; }
/* The Library reader and its own tool bar take the whole screen. */
body.lib-reading .ui-tabbar { display: none; }
body.lib-reading.ui-with-tabbar { padding-bottom: 0; padding-left: 0; }

.ui-main { min-height: 50vh; }
/* [ios] Screens without an app bar (kid home, sign in): keep clear of the notch and the clock, and
   in the Home Screen app give the clock (always white there: black-translucent) a dark strip. */
#top[hidden] ~ #app { padding-top: calc(var(--space-4) + env(safe-area-inset-top, 0px)); }
@media (display-mode: standalone) {
  body:has(> #top[hidden])::before {
    content: ""; position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px);
    background: var(--brand); pointer-events: none;
  }
}
.p-grow { flex: 1; }
.p-small { font-size: var(--text-sm); }
.p-big { font-size: var(--text-lg); font-weight: 700; }
.p-center { text-align: center; }
.p-legal-links .ui-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; } /* [a11y2] the Privacy and Terms links: 44px to tap */
.p-pad { padding: var(--space-4); }
.p-ok { color: var(--success-text, var(--success)); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.p-loading { display: grid; gap: var(--space-4); padding-top: var(--space-3); }
.p-section { display: grid; gap: var(--space-2); }
.p-section > .ui-section-head { margin: 0; align-items: center; }
.p-section-sub { font-size: var(--text-sm); }
.p-list-card { padding: var(--space-1) var(--space-3); }
.p-list-card > .ui-list > .ui-row, .p-list-card > .ui-list > .p-kidperson { padding-inline: var(--space-1); }
.p-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.p-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: var(--space-3); }
.p-row-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-sunken); color: var(--ink-muted); flex: none; }
.p-row-icon.is-danger { background: var(--danger-soft); color: var(--danger-text); }
/* [ops] Admin, Server: health checks (green, amber, red); the shape of the icon says it too */
.p-row-icon.is-ok { background: var(--success-soft); color: var(--success-text, var(--success)); }
.p-row-icon.is-warn { background: var(--warning-soft); color: var(--warning-text, var(--warning)); }
.p-health { align-items: flex-start; }
.p-health .ui-row-sub { overflow-wrap: anywhere; }
.p-health-todo { display: block; margin-top: 2px; font-size: var(--text-sm); color: var(--ink); overflow-wrap: anywhere; }
.p-server-dot { display: inline-flex; position: relative; } /* keeps its hidden label inside the scrolling tabs */
.p-server-dot:empty { display: none; }
.p-row-art { display: inline-grid; flex: none; }
.p-row-art > svg { border-radius: 10px; }
.p-bigicon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.p-steps { font-weight: 700; font-size: var(--text-sm); }
.p-help ul, .p-help ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.p-help a { color: var(--accent-text); font-weight: 700; }

/* Sections headed "Needs you", sub text under the head */
.p-section .ui-card > .ui-list:only-child { margin: 0; }

/* [settings] Grown-up Settings: the quick-action rows and the folding groups */
.p-quick { display: grid; gap: var(--space-3); }
.p-group { display: grid; gap: var(--space-3); }
.p-group-head {
  display: flex; align-items: center; gap: var(--space-2); width: 100%; min-height: var(--tap);
  padding: var(--space-1) 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
}
.p-group-head > h2 { flex: 1; min-width: 0; margin: 0; font: var(--weight-display) var(--text-xl) / 1.2 var(--font-display); }
.p-group-chev { display: grid; place-items: center; color: var(--ink-muted); transition: transform 0.15s ease; }
.p-group-head[aria-expanded="true"] .p-group-chev { transform: rotate(180deg); }
.p-group-body { display: grid; gap: var(--space-5); }
.p-group-body[hidden] { display: none; }

/* Save status: "All changes saved" */
.p-savebar { position: sticky; top: calc(var(--appbar-h) + env(safe-area-inset-top, 0px) + 4px); z-index: 5; display: flex; justify-content: flex-end; pointer-events: none; }
.p-saved { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-full); background: var(--success-soft); color: var(--success-text, var(--success)); font-size: var(--text-xs); font-weight: 700; box-shadow: var(--shadow-1); }
.p-saved .ui-icon { width: 16px; height: 16px; }
.p-saved.is-busy { background: var(--surface-sunken); color: var(--ink-muted); }
.p-saved.is-busy .ui-icon { visibility: hidden; }
.p-saved.is-error { background: var(--danger-soft); color: var(--danger-text); }

/* Tabs inside a page (child page, admin): scrollable pills with aria-current */
.p-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 4px; margin-inline: -2px; } /* [ux] wraps, so Safety and Profile & devices are not hidden off the side of a phone */
.p-tabs::-webkit-scrollbar { display: none; }
.p-tabs a {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: var(--tap); padding: 8px 16px;
  border-radius: var(--radius-full); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: var(--weight-strong) var(--text-sm) / 1.2 var(--font-body); text-decoration: none; white-space: nowrap;
}
.p-tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); } }
:root[data-theme="dark"] .p-tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.p-tabbody { display: grid; gap: var(--space-5); }

.p-childhead { display: flex; align-items: center; gap: var(--space-3); }
.p-childhead-name { font: var(--weight-display) var(--text-xl) / 1.15 var(--font-display); }

/* ---------- sign in ---------- */
.p-hero > .ui-sky { min-height: 220px; }
.p-hero-text { display: grid; justify-items: start; gap: 6px; padding-bottom: 40px; }
.p-hero-text h1 { font-size: clamp(30px, 8vw, 44px); }
.p-hero-logo { width: 56px; height: 56px; border-radius: 16px; box-shadow: var(--shadow-2); }
.p-hero-line { font-size: var(--text-lg); font-weight: 600; opacity: 0.9; }
.p-signin { gap: var(--space-4); }
.p-email .card { box-shadow: none; }

/* ---------- codes and QR ---------- */
.p-codebox { display: grid; gap: var(--space-3); justify-items: center; text-align: center; background: var(--surface-sunken); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4); }
.p-code { font-family: var(--font-mono); font-size: 34px; font-weight: 800; letter-spacing: 0.1em; user-select: all; }
.p-qr { width: 220px; height: 220px; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 12px; }
.p-codebox .ui-label { display: flex; align-items: center; gap: 6px; }

/* ---------- family name ---------- */
.p-address { min-height: 24px; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.p-address-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--success-text, var(--success)); font-weight: 600; }
.p-address-ok b { color: var(--ink); }
.p-address-taken { display: flex; gap: 6px; align-items: flex-start; color: var(--danger-text); font-weight: 600; }
.p-address-taken .ui-icon { flex: none; margin-top: 2px; }

/* ---------- sheets: guided steps and options ---------- */
.p-option {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; padding: var(--space-3);
  border: 2px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer;
}
.p-option:hover { border-color: var(--line-strong); }
.p-option.is-recommended { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.p-option .ui-row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.p-option-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-sunken); flex: none; }
.p-sheet-nav { display: flex; justify-content: space-between; gap: var(--space-2); }
.p-summary { font-weight: 700; font-size: var(--text-lg); }
.p-details > summary { cursor: pointer; font-weight: 700; min-height: var(--tap); display: flex; align-items: center; color: var(--accent-text); }
.p-perms { display: grid; gap: 2px; }
.p-perms .ui-switch { font-size: var(--text-sm); }
.p-time { width: auto; min-width: 7.5em; }
.p-quiet { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.p-quiet > .ui-input:first-child { flex: 1 1 140px; width: auto; }
.p-item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) 0; }
.p-item + .p-item { border-top: 1px solid var(--line); }
.p-item > .ui-seg { grid-column: 1 / -1; }
.p-levels { display: grid; gap: var(--space-2); }
.p-level { position: relative; display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3); border: 2px solid var(--line); border-radius: var(--radius-md); cursor: pointer; }
.p-level input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.p-level > span { display: grid; gap: 2px; }
.p-level:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface)); }
.p-level:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.p-stepper { display: flex; }

/* ---------- review items ---------- */
.p-flags { display: grid; gap: var(--space-3); }
.p-flag { display: grid; gap: var(--space-2); }
.p-flag.is-reviewed { opacity: 0.7; }
.p-flag + .p-flag { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.p-quote { margin: 0; padding: 10px 12px; background: var(--surface-sunken); border-radius: var(--radius-sm); white-space: pre-wrap; word-break: break-word; user-select: text; }

/* ---------- time today (child page) ---------- */
.p-usage { display: grid; gap: var(--space-3); justify-items: start; }
.p-usage-big { font: var(--weight-display) var(--text-2xl) / 1.1 var(--font-display); }

/* ---------- avatar picker ---------- */
.p-avatar-head { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.p-avatar-head > .ui-field { flex: 1; min-width: 180px; }
.ui-avatar-pick button { display: grid; place-items: center; min-height: var(--tap); }
.ui-avatar-pick button > svg { width: 100%; height: auto; max-width: 64px; }
.p-colors { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.p-color { width: var(--tap); height: var(--tap); border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.p-color[aria-pressed="true"], .p-color[aria-checked="true"] { box-shadow: 0 0 0 3px var(--ink); }

/* ---------- kid screens ---------- */
.p-kid { display: grid; gap: var(--space-5); }
.p-kid-sky { min-height: 190px; margin-top: calc(-1 * var(--space-2)); }
:where([data-skin="little"]) .p-kid-sky { min-height: 230px; }
:where([data-skin="teen"]) .p-kid-sky { min-height: 150px; }
.p-kid-head { display: flex; align-items: center; gap: var(--space-4); padding-bottom: 36px; position: relative; padding-right: 48px; }
.p-kid-me { flex: none; border-radius: 50%; }
.p-kid-me .ui-avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.75); }
.p-kid-hello { flex: 1; min-width: 0; }
.p-kid-hello h1 { font-size: clamp(24px, 7vw, 40px); overflow-wrap: break-word; }
:where([data-skin="little"]) .p-kid-hello h1 { font-size: clamp(32px, 9vw, 46px); }
:where([data-skin="teen"]) .p-kid-hello h1 { font-size: clamp(24px, 6vw, 32px); }
.p-kid-hand { font-size: clamp(24px, 6.5vw, 32px); }
.p-kid-sub { opacity: 0.85; font-weight: 600; }
.p-kid-help { position: absolute; top: -6px; right: -8px; background: rgba(255, 255, 255, 0.35); }
.p-kid-help.p-kid-search { top: 42px; } /* [ux] the search button, under help */
.p-together { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); } /* [ux] grown-up home: things to do together */
.p-together > .ui-tile { min-width: 0; }

.p-timeleft { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.p-timeleft.is-soon { background: var(--warning-soft); border-color: var(--warning); }

.p-turns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: var(--space-3); }
a.p-turn, .p-turn {
  display: flex; align-items: center; gap: var(--space-3); min-height: 76px; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg); background: var(--brand); color: var(--on-brand); text-decoration: none; box-shadow: var(--shadow-2);
  transition: transform var(--dur-fast) var(--press-ease);
}
.p-turn:active { transform: scale(var(--press-scale)); }
/* [your-games] Games in play waiting on the other person: calmer than the "your turn" cards, still tappable. */
.p-turn--waiting { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); opacity: .92; }
.p-turn--waiting .p-turn-text span { color: var(--ink-muted); }
.p-turn--waiting .p-turn-art > .ui-avatar { box-shadow: 0 0 0 3px var(--surface); }
.p-turn-art { position: relative; flex: none; width: 56px; }
.p-turn-art > svg { border-radius: 14px; }
.p-turn-art > .ui-avatar { position: absolute; right: -8px; bottom: -6px; box-shadow: 0 0 0 3px var(--brand); }
.p-turn-text { display: grid; min-width: 0; }
.p-turn-text b { font-size: var(--text-md); }
.p-turn-text span { font-size: var(--text-sm); color: var(--on-brand-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p-tile-wrap { position: relative; display: grid; }
.p-say { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, 0.7); color: var(--ink); }
:where([data-skin="little"]) .ui-tile { font-size: 21px; }
:where([data-skin="little"]) .ui-tile:active { animation: p-bounce 420ms var(--ease-play); }
@keyframes p-bounce { 40% { transform: scale(0.92) rotate(-2deg); } 70% { transform: scale(1.03) rotate(1deg); } }
:where([data-skin="teen"]) .ui-tile--sm > svg { width: 40px; height: 40px; }
.ui-tile > svg.ui-tile-art { width: var(--tile-icon); height: var(--tile-icon); }
.ui-tile { margin-top: 6px; } /* room for a peeking avatar */

.p-people { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.p-person {
  display: grid; justify-items: center; gap: 6px; width: 88px; padding: var(--space-2) 4px; border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--ink); font: var(--weight-strong) var(--text-sm) / 1.2 var(--font-body); text-align: center; cursor: pointer;
}
button.p-person:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
:where([data-skin="little"]) .p-person { width: 112px; font-size: var(--text-md); }
.p-person-head { display: grid; justify-items: center; gap: var(--space-2); }
.p-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--space-2); }
.p-pick-btn { display: grid; justify-items: center; gap: 6px; padding: var(--space-3) var(--space-2); border: 2px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: var(--weight-strong) var(--text-sm) / 1.2 var(--font-body); cursor: pointer; }
.p-pick-btn:hover { border-color: var(--accent); }
.p-pick-btn > svg { border-radius: 14px; }
.p-kidperson { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-2) 0; }
.p-kidperson + .p-kidperson { border-top: 1px solid var(--line); }
.p-kidperson-main { display: flex; align-items: center; gap: var(--space-3); flex: 1 1 180px; min-height: var(--tap); border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-md); padding: 4px; }
.p-kidperson-main > span { display: grid; }
.p-kidperson-acts { display: flex; gap: var(--space-2); }

/* firefly jar */
.p-jar-row { display: flex; align-items: center; gap: var(--space-4); }
.p-jar { position: relative; flex: none; width: 72px; height: 92px; }
.p-jar-lid { position: absolute; left: 14px; right: 14px; top: 0; height: 12px; border-radius: 4px; background: #8A6A4B; }
.p-jar-glass {
  position: absolute; inset: 10px 4px 0; border-radius: 16px 16px 20px 20px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 85%, transparent), var(--brand-2)); border: 3px solid color-mix(in srgb, var(--info) 40%, var(--line-strong));
}
.p-jar-fly { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #FFE29A; box-shadow: 0 0 8px 3px rgba(255, 214, 110, 0.65); animation: ui-drift 6s ease-in-out infinite; }

.p-soon { display: grid; gap: var(--space-2); }
.p-soon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.p-soon li { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--radius-full); background: var(--surface-sunken); color: var(--ink-muted); font-size: var(--text-sm); font-weight: 600; }
.p-soon li > svg { border-radius: 8px; opacity: 0.7; }
.p-timeup { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .p-jar-fly, :where([data-skin="little"]) .ui-tile:active { animation: none !important; }
}
:where([data-motion="reduce"]) :is(.p-jar-fly, .ui-tile) { animation: none !important; }

/* =====================================================================================
   2. Older classes still used by the modules (notebook, stories, library, guides, email)
   ===================================================================================== */

.hero {
  border-radius: 24px; padding: 22px 20px; color: var(--on-brand); display: grid; gap: 8px;
  background: radial-gradient(420px 260px at 85% 0%, rgba(242, 169, 59, 0.32), transparent 70%), linear-gradient(180deg, var(--brand), var(--brand-2));
}
.hero .sub { color: var(--on-brand-muted); }
.hero .row { display: flex; align-items: center; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; gap: var(--space-3); align-content: start; box-shadow: var(--shadow-2); }
.card > h2, .card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-head h2 { margin-right: auto; font-size: var(--text-lg); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hand { font-family: var(--font-greeting); font-size: 26px; line-height: 1.1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.stack { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.kid { display: grid; gap: var(--space-4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 700 16px var(--font-body); padding: 12px 18px; border-radius: var(--radius-md); border: 0; background: var(--surface-sunken); color: var(--ink);
  min-height: 44px;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); }
.btn.danger { background: transparent; color: var(--danger-text); border: 2px solid currentColor; }
.btn.ghost { background: transparent; border: 2px solid var(--line); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn.big { width: 100%; padding: 16px; font-size: 18px; }
.btn[aria-busy="true"] { opacity: 0.6; }
.help {
  width: 26px; height: 26px; min-width: 26px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; position: relative;
  font: 800 14px var(--font-body); background: var(--accent-soft); color: var(--accent-text); display: inline-grid; place-items: center; vertical-align: middle;
}
.help::after { content: ""; position: absolute; inset: -9px; } /* 44px tap area */
label.field, .field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field > span { display: flex; align-items: center; gap: 6px; }
:is(input[type=text], input[type=number], input[type=time], input[type=email], input[type=search], input:not([type]), select, textarea):not(.ui-input) {
  font: 500 17px var(--font-body); color: var(--ink); background: var(--surface); border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 46px; width: 100%;
}
:is(input, select, textarea):not(.ui-input):focus { border-color: var(--focus); outline: none; }
input.code { font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + .track { background: var(--success); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--surface-sunken); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font: 700 14px var(--font-body); color: var(--ink); padding: 8px 12px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.error { color: var(--danger-text); font-weight: 600; }
.ok { color: var(--success-text, var(--success)); font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-sunken); color: var(--muted); white-space: nowrap; }
.pill.amber { background: var(--accent-soft); color: var(--accent-text); }
.pill.good { background: var(--success-soft); color: var(--success-text, var(--success)); }
.pill.bad { background: var(--danger-soft); color: var(--danger-text); }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.colors button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.colors button.on { border-color: var(--ink); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 700; }
.list .sub { color: var(--muted); font-size: 14px; }
.list > li.link { cursor: pointer; }

a.turn-card, .turn-card {
  background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 14px 16px; text-decoration: none;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-2);
}
.turn-card .big-ico { font-size: 34px; }
.turn-card b { display: block; font-size: 17px; }
.turn-card span { font-size: 14px; color: var(--on-brand-muted); }
.people { display: flex; flex-wrap: wrap; gap: 14px; }
.person { display: grid; justify-items: center; gap: 4px; font-size: 14px; font-weight: 600; width: 72px; text-align: center; }

@media (max-width: 480px) {
  .card { padding: 15px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.p-kid-hello { text-shadow: 0 1px 8px color-mix(in srgb, var(--brand) 25%, transparent); }
.ui-sky[data-phase="day"] .p-kid-hello, .ui-sky[data-phase="dawn"] .p-kid-hello, .ui-sky[data-phase="golden"] .p-kid-hello { text-shadow: 0 1px 8px rgba(255, 255, 255, 0.6); }
:where([data-skin="teen"]) .ui-tiles--sm { grid-template-columns: repeat(auto-fill, minmax(min(156px, 100%), 1fr)); gap: var(--space-2); }
.ui-tile--sm > :not(svg) { overflow-wrap: break-word; hyphens: manual; }

/* birthdays and turning 18 (screens/kid-home.js birthdayCard, grown-home.js noticeCards, child.js nudge) */
.p-bday { position: relative; overflow: hidden; display: grid; gap: var(--space-1); }
.p-bday-sky { position: absolute; inset: 0; pointer-events: none; }
.p-bday-title { position: relative; margin: 0; font-size: var(--text-xl); line-height: 1.15; }
.p-bday--little .p-bday-title { font-size: var(--text-2xl); }
.p-bday--teen .p-bday-title { font: var(--weight-display) var(--text-lg) / 1.2 var(--font-display); }
.p-bday-line { position: relative; margin: 0; opacity: 0.9; }
.p-notice { display: grid; gap: var(--space-3); }
.p-notice h2 { margin: 0 0 var(--space-1); font: var(--weight-display) var(--text-lg) / 1.2 var(--font-display); }
.p-notice p { margin: 0; }
.p-notice > .ui-btn { justify-self: start; }
.p-nudge { margin: var(--space-3) 0; }
.p-nudge .ui-banner { align-items: center; }

/* Privacy section on the child page (consent, download, delete) and the kids' "who can read" line. */
.p-check { display: flex; gap: 0.5rem; align-items: flex-start; line-height: 1.4; }
.p-check input { margin-top: 0.2rem; width: 1.2rem; height: 1.2rem; flex: none; }
.p-consent-list { margin: 0; padding-left: 1.2rem; }
.p-consent-list li + li { margin-top: 0.25rem; }
.m-readers { margin: 0 0 0.75rem; }

/* ---------- [clubhouse] clubhouse, support access, platform, consent, gifts, cousins ---------- */
.p-support-banners { margin-bottom: var(--space-3); }
.p-support-banners .ui-banner { flex-wrap: wrap; }
.p-support-banners .ui-banner-text { flex: 1 1 14rem; }
.p-banner-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; }
.p-grant-head { display: flex; align-items: flex-start; gap: var(--space-3); }
.p-grant-head .p-grow, .p-grant-head > div { flex: 1; min-width: 0; }
.p-grant-head > .ui-btn, .p-grant-head > .p-row-icon { flex: none; }
.p-grant-title { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.p-grant-head p { margin: 0; }
.p-member { flex-wrap: wrap; }
.p-member .ui-row-main { min-width: 10rem; }
.p-member .ui-row-end .ui-switch { min-height: var(--tap); gap: var(--space-2); }
.p-row-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.p-checklist { margin: 0; padding-left: 1.3rem; display: grid; gap: var(--space-2); }
.p-option.is-off { opacity: 0.6; cursor: not-allowed; }
.p-option input[type="radio"] { width: 1.2rem; height: 1.2rem; flex: none; }
.p-waiting .ui-avatar { margin-inline: auto; }
.p-signin h2 { margin: var(--space-3) 0 0; font-size: var(--text-lg); }

/* ---------- [grownup-all] Everything the kids can use; See what Maya sees ---------- */
.p-childhead { flex-wrap: wrap; }
.p-childhead-preview { margin-left: auto; }
.p-every-lead { margin: 0 0 var(--space-3); }
.p-every-ages-pick { margin: var(--space-3) 0 var(--space-2); }
.p-every-tile { text-decoration: none; }
.p-every-ages { display: block; font-weight: var(--weight-body); font-size: var(--text-xs); color: var(--ink-muted); }
.p-preview-note { margin-bottom: var(--space-3); }
.p-preview-facts { margin: var(--space-2) 0 var(--space-3); }
.p-preview { border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: var(--space-3); background: var(--bg); overflow: hidden; user-select: none; }
.p-preview .p-kid-sky { margin-top: 0; }

/* ---------- [kid-mode] a grown-up's device lent to a kid ---------- */
.p-kidmode-bar { margin-bottom: var(--space-3); }
.p-kidmode-bar .ui-banner { flex-wrap: wrap; }
.p-kidmode-bar .ui-banner-text { flex: 1 1 10rem; }
.p-kidcode { letter-spacing: 0.4em; font-size: var(--text-xl); text-align: center; max-width: 14rem; }
.p-kidmode-list { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-2); }
/* [kidlock] the lock guide button in the bar, and the "Lock the phone to OllyOlly" guide */
.p-kidmode-actions { display: inline-flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.p-kidlock-part { display: grid; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.p-kidlock-part h3 { margin: 0; font-size: var(--text-lg); }
.p-kidlock-art { display: block; color: var(--ink-muted); }
.p-kidlock-art svg { display: block; max-width: 100%; height: auto; }
.p-kidlock-art .p-kidlock-mark, .p-kidlock-art .p-kidlock-dot { stroke: var(--accent); }
.p-kidlock-art .p-kidlock-dot { fill: var(--accent); }
.p-kidlock-when { margin: 0; font-weight: 700; }
.p-kidlock-steps { margin: 0; padding-left: 1.4rem; display: grid; gap: var(--space-2); }
.p-kidlock-hide { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.p-kidlock-hide input { width: 22px; height: 22px; flex: none; }

/* [review-tools] Admin > Hazel (the Listen list) and Admin > Dictionary (public/screens/admin-review.js) */
.p-review-count { margin: 0 0 var(--space-2); }
.p-review-bar { height: 10px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.p-review-bar > span { display: block; height: 100%; min-width: 2px; background: var(--success); border-radius: inherit; }
.p-review-item { display: grid; gap: var(--space-2); padding: var(--space-4); border-top: 1px solid var(--line); min-width: 0; }
.p-review-item:first-child { border-top: 0; }
.p-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); min-width: 0; }
.p-review-word { margin: 0; font: var(--weight-display) var(--text-lg) / 1.2 var(--font-display); overflow-wrap: anywhere; }
.p-review-rank { margin-left: auto; }
.p-review-quote { margin: 0; padding: var(--space-2) var(--space-3); border-left: 3px solid var(--line-strong); color: var(--ink-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.p-review-quote b { color: var(--ink); }
.p-review-def { margin: 0; overflow-wrap: anywhere; }
.p-review-ex { margin: 0; font-style: italic; color: var(--ink-muted); overflow-wrap: anywhere; }
.p-review-def.is-struck, .p-review-ex.is-struck { text-decoration: line-through; opacity: 0.7; }
.p-review-status { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-weight: var(--weight-strong); font-size: var(--text-sm); }
.p-review-status .ui-icon { flex: none; width: 20px; height: 20px; }
.p-review-status.is-ok { color: var(--success-text, var(--success)); }
.p-review-status.is-fix { color: var(--accent-text); }
.p-review-status.is-removed { color: var(--danger-text); }
.p-review-fix { padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); }
.p-review-text { min-height: 64px; }
.p-review-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--text-sm); }
.p-review-checks li { display: flex; align-items: flex-start; gap: var(--space-2); }
.p-review-checks .ui-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.p-review-checks .is-ok { color: var(--success-text, var(--success)); }
.p-review-checks .is-bad { color: var(--danger-text); }
.p-review-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.p-review-pager > .ui-muted { font-size: var(--text-sm); text-align: center; }

/* [decisions-28] Review: "Asks to open" (public/screens/asks.js): who asks, why, and the code for JavaScript. */
.p-ask { display: grid; gap: var(--space-3); }
.p-ask p { margin: 0; overflow-wrap: anywhere; }
.p-ask-head { display: flex; gap: var(--space-3); align-items: center; }
.p-codeview { margin: 0; max-height: 320px; overflow: auto; padding: var(--space-3); background: var(--surface-sunken); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; white-space: pre; tab-size: 2; user-select: text; }
.p-ask > * { min-width: 0; }

/* [devnames] Rename and Sign out side by side in a device list (they stack on a narrow phone). */
.p-dev-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
@media (max-width: 420px) { .p-dev-actions { flex-direction: column; align-items: stretch; } }

/* [landscape] A phone on its side (wide and short): a lower sky on the kid home, so the tiles show. */
@media (orientation: landscape) and (max-height: 500px) {
  .p-kid-sky, :where([data-skin="little"]) .p-kid-sky, :where([data-skin="teen"]) .p-kid-sky { min-height: 112px; }
  .p-kid-head { padding-bottom: 18px; }
  .p-kid-hello h1, :where([data-skin="little"]) .p-kid-hello h1, :where([data-skin="teen"]) .p-kid-hello h1 { font-size: clamp(24px, 8vh, 34px); }
  .p-kid-hand { font-size: clamp(20px, 6vh, 26px); }
  .p-hero > .ui-sky { min-height: 150px; }
  .p-hero-text { padding-bottom: 20px; }
}

/* [a11y] big text and zoom (see components.css): one-column grids shrink to the screen, and on a very
   narrow screen (a phone zoomed to 200%) the hello stacks the picture above the words and people's
   buttons wrap. */
.p-section, .p-kid, .p-tabbody { grid-template-columns: minmax(0, 1fr); }
.p-kidperson-acts { flex-wrap: wrap; }
@media (max-width: 340px) {
  .p-kid-head { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .p-kid-hello h1, :where([data-skin="little"]) .p-kid-hello h1, :where([data-skin="teen"]) .p-kid-hello h1 { font-size: var(--text-xl); }
  .p-kid-hand { font-size: var(--text-lg); }
  .p-childhead { flex-wrap: wrap; }
}

/* [reports] Problem reports: "Report a problem" (grown-ups), what kids see, Admin > Reports from families,
   Admin > Server > Problems in the app (public/screens/reports.js). */
.p-capturing dialog, .p-capturing dialog::backdrop { visibility: hidden; }
.p-report-shot:empty { display: none; }
.p-report-shot { display: grid; gap: var(--space-2); justify-items: start; }
.p-report-shot img, .p-report-thumb img, .p-report-full { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.p-report-shot img { max-height: 220px; width: auto; }
.p-report-kid { margin: 0; color: var(--ink-muted); }
.p-help-report { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
.p-report { display: grid; gap: var(--space-2); margin-bottom: var(--space-3); min-width: 0; }
.p-report-head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.p-report-who { display: grid; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.p-report-status { flex: none; padding: 2px 10px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 700; background: var(--surface-sunken); color: var(--ink); }
.p-report--new .p-report-status { background: var(--warning-soft); color: var(--warning-text); }
.p-report-kind { flex: none; padding: 2px 10px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 700; background: var(--accent-soft, var(--surface-sunken)); color: var(--accent-text, var(--ink)); } /* [feedback] */
.p-report-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.p-report-thumb { justify-self: start; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); max-width: min(100%, 320px); }
.p-report-thumb img { max-height: 200px; width: auto; }
.p-report-replies p { margin: 0 0 var(--space-1); overflow-wrap: anywhere; }
.p-report-done > summary, .p-problem-fixed > summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: 700; min-height: 44px; }
.p-problem { align-items: flex-start; flex-wrap: wrap; }
.p-problem .ui-row-main { min-width: 0; flex: 1 1 240px; }
.p-problem .ui-row-sub { overflow-wrap: anywhere; }
.p-problem-msg { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--text-sm); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.p-problem-tag { display: inline-block; margin: 2px 0; font-size: var(--text-sm); font-weight: 700; color: var(--ink-muted); }
.p-problem-tag.is-new { color: var(--warning-text); }
.p-problem.is-fixed .p-problem-msg { color: var(--ink-muted); }

/* [keys] Admin > Keys: big fields for pasting keys on a phone, with the eye beside the box. */
.p-keyrow { display: flex; gap: 8px; align-items: center; }
.p-keyrow .p-keyinput { flex: 1 1 auto; min-width: 0; }
.p-keyinput { font-size: 18px; min-height: 52px; font-family: var(--font-mono, monospace); }
.p-keyeye { flex: 0 0 auto; min-width: 52px; min-height: 52px; }
.p-keygroup .ui-cluster { flex-wrap: wrap; }

/* [storeready] Report, Block, the safety reminder and the grown-up gate (public/screens/safety-kit.js, public/gate.js) */
.p-report-choices { display: grid; gap: var(--space-2); }
.p-report-choice { display: flex; gap: var(--space-3); align-items: flex-start; text-align: start; min-height: 48px; padding: var(--space-3); border: 2px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.p-report-choice > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.p-report-choice[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); }
.p-report-choice.is-big { font-size: 1.15rem; min-height: 64px; align-items: center; }
.p-remind-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.p-remind-list li { display: flex; gap: var(--space-3); align-items: flex-start; overflow-wrap: anywhere; }
.p-remind-icon { flex: none; color: var(--accent-text); }
.p-remind.is-little .p-remind-list li { font-size: 1.2rem; align-items: center; }
.p-gate-words { font-size: 1.35rem; font-weight: 700; margin: var(--space-2) 0; overflow-wrap: anywhere; }
.p-gate-q p { margin: 0; }
.p-flag-pic { max-width: min(100%, 320px); height: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.p-block { display: grid; gap: var(--space-2); }
.p-block p { margin: 0; overflow-wrap: anywhere; }
.p-gate [hidden] { display: none !important; }
/* ---------- [calls] voice and video calls (public/calls.js, public/screens/call.js) ---------- */
.p-call-btns { display: inline-flex; gap: var(--space-2); flex-wrap: wrap; }
.p-call-btns--big .ui-btn { min-height: 56px; font-size: var(--text-lg); padding-inline: var(--space-4); }
.p-call-later { display: inline-flex; align-items: center; gap: 4px; }
/* The ringing sheet: big, friendly answer and decline buttons. */
.p-ring .ui-sheet-title { text-align: center; font-size: var(--text-xl); }
.p-ring-who { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-block: var(--space-3); }
.p-ring-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); margin: 0; }
.p-ring-acts, .p-call-answer { display: flex; justify-content: center; gap: var(--space-6); padding-block: var(--space-3); flex-wrap: wrap; }
.p-ring-btn { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); min-width: 112px; min-height: 112px; justify-content: center;
  border: 0; border-radius: var(--radius-full); color: #fff; font: inherit; font-weight: var(--weight-strong); cursor: pointer; padding: var(--space-3); }
.p-ring-btn--yes { background: #1f7a45; }
.p-ring-btn--no { background: #b3261e; }
.p-ring-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.p-ring--big .p-ring-btn { min-width: 136px; min-height: 136px; font-size: var(--text-lg); }
/* The call page: a dark stage, your own small picture in a corner, controls at the bottom. */
body.p-on-call { overflow: hidden; }
.p-call { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: #10172a; color: #f4f6fb; padding: max(var(--space-3), env(safe-area-inset-top)) var(--space-3) max(var(--space-3), env(safe-area-inset-bottom)); }
.p-call-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.p-call-name { margin: 0; font-size: var(--text-xl); color: #fff; }
.p-call-status { margin: 2px 0 0; color: #c9d1e3; font-variant-numeric: tabular-nums; }
.p-call-report { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-full);
  border: 2px solid #ffb4ab; background: transparent; color: #ffdad6; font: inherit; font-weight: var(--weight-strong); cursor: pointer; }
.p-call-stage { position: relative; flex: 1 1 auto; min-height: 0; margin-block: var(--space-3); border-radius: var(--radius-lg); overflow: hidden; background: #0a0f1d; display: flex; align-items: center; justify-content: center; }
.p-call-remote { width: 100%; height: 100%; object-fit: cover; background: #0a0f1d; }
.p-call-face { display: flex; align-items: center; justify-content: center; }
.p-call-face .ui-avatar, .p-call-face svg { width: min(40vw, 180px); height: min(40vw, 180px); }
.p-call-stage .p-call-face { position: absolute; inset: 0; }
.p-call-camnote { position: absolute; bottom: var(--space-3); left: 50%; transform: translateX(-50%); margin: 0; padding: 4px 12px; border-radius: var(--radius-full); background: rgba(0,0,0,.55); color: #fff; font-size: var(--text-sm); }
.p-call-self { position: absolute; right: var(--space-3); top: var(--space-3); width: 28%; max-width: 160px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-md); border: 2px solid rgba(255,255,255,.7); background: #222; transform: scaleX(-1); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.p-call-controls { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.p-call-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; min-height: 76px; padding: var(--space-2);
  border: 0; border-radius: var(--radius-lg); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: var(--text-sm); cursor: pointer; }
.p-call-btn.is-off { background: #fff; color: #10172a; }
.p-call-btn--leave { background: #b3261e; min-width: 104px; font-weight: var(--weight-strong); }
.p-call-btn--home { background: rgba(255,255,255,.18); margin-top: var(--space-5); align-self: center; min-width: 140px; }
.p-call-btn:focus-visible, .p-call-report:focus-visible, .p-call-voiceonly:focus-visible { outline: 3px solid #ffd35c; outline-offset: 3px; }
.p-call-voiceonly { flex-basis: 100%; background: none; border: 0; color: #c9d1e3; text-decoration: underline; font: inherit; min-height: 44px; cursor: pointer; }
.p-call--big .p-call-btn { min-width: 96px; min-height: 96px; font-size: var(--text-md); }
.p-call--big .p-call-btn--leave { min-width: 128px; }
.p-call--over { align-items: center; justify-content: center; text-align: center; gap: var(--space-3); }
.p-call-endmsg { font-size: var(--text-lg); margin: var(--space-3) 0 0; max-width: 32rem; }
.p-call-endnote { color: #c9d1e3; max-width: 32rem; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .p-ring-btn--yes { animation: p-ring-pulse 1.6s ease-in-out infinite; } }
@keyframes p-ring-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,122,69,.5); } 50% { box-shadow: 0 0 0 14px rgba(31,122,69,0); } }
