/* KazaCall. Logical properties throughout, so right-to-left layout follows dir="rtl". */
:root {
  --bg: #f6f8f7; --surface: #ffffff; --fg: #14201b; --muted: #56655e; --line: #dde5e1;
  --accent: #0b6e4f; --accent-fg: #ffffff; --danger: #b3261e; --ok: #1d6b3a; --focus: #1a73e8;
  --radius: 14px; --tap: 48px;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif;
  font-size: 100%; line-height: 1.45; color-scheme: light dark; /* 100%: the phone's own text size, up to 200% */
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1412; --surface: #17201c; --fg: #e8efec; --muted: #9db0a7; --line: #2a3631; --accent: #3cc497; --accent-fg: #06261a; --danger: #ff8a80; --ok: #7fd39b; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { min-height: 100dvh; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* On the dark and coloured surfaces the ring is white, so it is seen there too */
:is(.call, .hero-card, .auth-side, .toast, .callbar, .land-cta) :focus-visible, .big-btn.sos:focus-visible { outline-color: #fff; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.muted, small { color: var(--muted); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.row, .toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-block: 8px; }
.toolbar > input, .toolbar > .field { flex: 1; min-width: min(100%, 12rem); }

/* Frame */
.bar { position: sticky; top: 0; z-index: 2; background: var(--surface); border-block-end: 1px solid var(--line); padding: 12px 16px; padding-block-start: max(12px, env(safe-area-inset-top)); }
.bar h1 { margin: 0; font-size: 1.25rem; }
main { max-width: 44rem; margin-inline: auto; padding: 16px; padding-block-end: calc(48px + 3rem); } /* clear of the tabs, which grow with the text */
main:focus { outline: none; }
.tabs { position: fixed; inset-inline: 0; bottom: 0; display: flex; background: var(--surface); border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); z-index: 2; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; min-height: var(--tap); text-decoration: none; color: var(--muted); font-size: .75rem; }
.tabs a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tabs .icon { font-size: 1.3rem; line-height: 1; }
.area-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.area-strip .chip { flex: none; text-decoration: none; }
.area-strip .chip[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Controls */
button, .button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none; }
button:disabled { opacity: .6; cursor: progress; }
.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.danger { color: var(--danger); }
button.danger, .button.danger { border-color: var(--danger); }
.link { border: 0; background: none; color: var(--accent); padding: 0 4px; min-height: 44px; }
.icon-btn { width: var(--tap); padding: 0; font-size: 1.2rem; }
input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); }
[aria-invalid="true"] { border-color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 4px; margin-block: 10px; }
.field label { font-weight: 600; font-size: .9rem; }
.check { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.check input { width: 22px; min-height: 22px; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin-block: 10px; }
.notice { min-height: 1.4em; margin-block: 8px; }
.notice.error { color: var(--danger); }
.notice.ok { color: var(--ok); }
details summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-block: 12px; }
.card h2 { margin-block: 0 8px; font-size: 1.1rem; }
.empty { color: var(--muted); text-align: center; padding: 32px 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-block-end: 1px solid var(--line); min-height: 60px; }
.list li.missed strong { color: var(--danger); }
.avatar { width: min(2.75rem, 60px); height: min(2.75rem, 60px); font-size: min(1rem, 22px); border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--fg); font-weight: 700; object-fit: cover; } /* grows a little with the text, the letters always inside */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-block: 6px; }
.chip { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); min-height: 44px; display: inline-flex; align-items: center; }
.chip[aria-current="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.back { display: inline-block; margin-block-end: 8px; }
.prose p { margin-block: 0 12px; }
.code { font-size: 2rem; letter-spacing: .4em; font-weight: 700; text-align: center; }

/* Sign-in */
.auth { max-width: 26rem; }
.brand { text-align: center; padding-block: 32px 8px; }
.brand h1 { color: var(--accent); margin: 0; font-size: 2rem; }
/* The logo (logo.ts): the mark, then "Kaza" in the text colour and "Call" in the brand's; sized by the font around it */
.logo { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--fg); unicode-bidi: isolate; white-space: nowrap; }
.logo-mark { width: 1.5em; height: 1.5em; flex: none; display: block; }
.logo-name b { font-weight: inherit; color: var(--accent); }
.logo.on-dark, .logo.on-dark .logo-name b { color: #fff; }
.logo.on-dark .logo-name b { opacity: .82; }
.logo-link { display: inline-block; text-decoration: none; font-size: 1rem; }
.brand h1 .logo { color: var(--fg); }
.brand h1 small { font-size: .55em; color: var(--muted); font-weight: 600; }

/* Cards */
.share { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.qr { width: 160px; height: 160px; background: #fff; border-radius: 8px; flex: none; }
.link-text { word-break: break-all; color: var(--muted); font-size: .9rem; }
.public-card { max-width: 28rem; text-align: center; }
.public-card .avatar { width: 96px; height: 96px; font-size: 2rem; margin-block-start: 8px; }
.public-card .logo { max-height: 48px; max-width: 160px; }
.public-card h1 { margin-block: 12px 4px; }
.facts { list-style: none; padding: 0; }
.facts li { padding: 4px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-block: 16px; }
.scan-video { width: 100%; max-height: 50vh; border-radius: var(--radius); background: #000; }

/* Keypad */
.dial { font-size: 2rem; text-align: center; border: 0; background: transparent; direction: ltr; }


/* Calls */
.call { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: #0b1512; color: #fff; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 32px 16px; padding-block-end: max(32px, env(safe-area-inset-bottom)); }
.call[hidden] { display: none; }
.call .remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.call .self { position: absolute; inset-inline-end: 16px; top: 16px; width: 28vw; max-width: 160px; border-radius: 12px; transform: scaleX(-1); }
.call-peer { text-align: center; margin-block-start: 10vh; }
.call-peer .avatar { width: 96px; height: 96px; font-size: 2rem; background: #23332d; color: #fff; }
.call-peer h2 { margin-block: 16px 4px; font-size: 1.6rem; }
.call-status { font-size: 1.1rem; opacity: .85; }
.call-controls { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.round { flex-direction: column; min-width: 84px; min-height: 84px; border-radius: 42px; background: #23332d; color: #fff; border: 0; font-size: .8rem; }
.round span { font-size: 1.6rem; }
.round.answer { background: #1f9d55; }
.call .round:focus { outline: 3px solid #fff; outline-offset: 3px; } /* the call screen puts the keyboard on Answer itself: always show where it is */
.call .muted { color: rgb(255 255 255 / .75); }
.round.decline { background: #d93025; }
.round[aria-pressed="true"] { background: #fff; color: #0b1512; }
body.ringing .call { animation: flash 1s steps(2, end) infinite; }
@keyframes flash { 50% { background: #13493a; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Admin */
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
th, td { text-align: start; padding: 8px; border-block-end: 1px solid var(--line); vertical-align: top; }
td code { white-space: pre-wrap; word-break: break-all; font-size: .8rem; }
tr.muted td { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 12px; }
.stats .card { margin: 0; }
.stats h2 { font-size: 1.8rem; margin: 4px 0 0; }
.providers { align-items: center; }
.apple { background: #000; color: #fff; border-color: #000; min-width: 320px; }
.call-text { width: 100%; max-width: 28rem; }
.call-text ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.call-text li { background: #23332d; padding: 6px 10px; border-radius: 12px; align-self: flex-start; max-width: 85%; }
.call-text li.mine { background: #1f6f55; align-self: flex-end; }
.call-text input { background: #17201c; color: #fff; border-color: #2a3631; }
.booking { text-align: start; border-block-start: 1px solid var(--line); margin-block-start: 16px; padding-block-start: 8px; }
.booking h3 { font-size: .95rem; margin-block: 12px 4px; }
.booking .chip[aria-checked="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.booking input[type=text] { margin-block: 12px 4px; }
.day-hours .check { min-width: 9rem; }
.day-hours input[type=time] { width: auto; flex: 1; }
.balance { font-size: 1.4rem; margin: 0; }
bdi.ok { color: var(--ok); }
bdi.danger { color: var(--danger); }
.sos-page .brand h1 { color: var(--danger); }
.sos-button { background: #d93025; border-color: #d93025; color: #fff; font-size: 1.15rem; min-height: 60px; width: 100%; }
.call.sos { background: #3b0a0a; }
body.ringing .call.sos { animation: flash-sos .6s steps(2, end) infinite; }
@keyframes flash-sos { 50% { background: #b3261e; } }
.lead { text-align: start; border-block-start: 1px solid var(--line); margin-block-start: 16px; padding-block-start: 8px; }
.stats-line { font-size: .85rem; margin-block: 8px 0; }
.sms { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sms li { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 12px; align-self: flex-start; max-width: 85%; display: flex; flex-direction: column; }
.sms li.mine { background: var(--accent); color: var(--accent-fg); align-self: flex-end; }
.sms li small { color: inherit; opacity: .7; }
.sms li.mine.failed { background: var(--surface); color: var(--fg); border-color: var(--danger); }
.sms-failed { color: var(--danger); font-weight: 600; opacity: 1; }

/* Meetings */
.meet { display: flex; flex-direction: column; gap: 12px; min-height: calc(100dvh - 32px); padding: 16px; }
.meet-title { margin: 0; font-size: 1.1rem; }
.meet-grid { flex: 1; display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); align-content: center; }
.meet-tile { position: relative; aspect-ratio: 4 / 3; background: #1f2a2e; border-radius: 12px; overflow: hidden; display: grid; place-items: center; outline: 3px solid transparent; }
.meet-tile.speaking { outline-color: var(--accent, #0a7d5a); }
.meet-tile.screen { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.meet-tile video { width: 100%; height: 100%; object-fit: cover; }
.meet-tile.screen video { object-fit: contain; }
.meet-name { position: absolute; inset-inline-start: 8px; bottom: 6px; color: #fff; font-size: .85rem; text-shadow: 0 1px 2px #000; display: flex; gap: 6px; align-items: center; }
.meet-name .link { color: #ffd6d6; }
.meet-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meet-controls .round[aria-pressed="false"] { opacity: .55; }
.avatar.large { width: 72px; height: 72px; font-size: 1.6rem; }

.qr { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: 8px; }
.list li.column { flex-direction: column; align-items: stretch; }

/* Settings: a list of sections, one screen each */
.me-card { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.me-card small, .settings-list small { display: block; color: var(--muted); font-weight: 400; }
.settings-list { padding: 4px 0; }
.settings-list .list li { padding: 0; }
.settings-list a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: var(--tap); text-decoration: none; color: inherit; width: 100%; }
.set-icon { width: 28px; text-align: center; font-size: 1.2rem; flex: none; }
.chev { color: var(--muted); font-size: 1.4rem; flex: none; }
[dir="rtl"] .chev { transform: scaleX(-1); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .8rem; flex: none; }
.dev-state { display: block; } .dev-state.screen { color: var(--ok); } .dev-state.background { color: var(--accent); } .dev-state.closed { color: var(--muted); }
details.more { margin-block: 12px; }
details.more > summary { cursor: pointer; color: var(--accent); padding-block: 8px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 16px 0 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.grow { min-width: 0; }
/* A day of booking hours: the day, then its times underneath, only when it is on. */
.row.day-hours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.row.day-hours > :first-child { grid-column: 1 / -1; }
.row.day-hours input[type="time"] { width: 100%; min-width: 0; }
.row.day-hours:not(:has(input[type="checkbox"]:checked)) input[type="time"] { display: none; }
.tabs a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; min-width: 0; }
.tabs a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* large text: the word shortens, never runs into the next tab */

/* Toasts: above the tabs, on every screen */
.toasts { position: fixed; inset-inline: 12px; bottom: calc(28px + 3rem + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; background: #10201b; color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 24px rgb(0 0 0 / .25); animation: toast-in .2s ease-out; }
.toast .link { color: #fff; font-size: 1.2rem; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0 } to { transform: none; opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none } }

/* The mini call bar, above the tabs on every screen */
.callbar { position: fixed; inset-inline: 8px; bottom: calc(14px + 3rem + env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px; background: #0d3b33; color: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .3); }
.callbar[hidden] { display: none; }
.callbar-main { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-start; gap: 8px; background: none; border: 0; color: inherit; font: inherit; text-align: start; padding: 6px; cursor: pointer; }
.callbar-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callbar-time { opacity: .8; font-variant-numeric: tabular-nums; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff7a59; flex: none; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35 } }
.round.small { width: 44px; height: 44px; min-width: 44px; font-size: 1.1rem; padding: 0; }
body.has-callbar main { padding-block-end: calc(92px + 3rem); }
body.has-callbar .toasts { bottom: calc(82px + 3rem + env(safe-area-inset-bottom)); }
.call-min, .meet-min { position: absolute; top: max(12px, env(safe-area-inset-top)); inset-inline-start: 12px; z-index: 2; background: rgb(255 255 255 / .15); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; min-height: 44px; font: inherit; cursor: pointer; }
.stage { position: fixed; inset: 0; z-index: 20; background: var(--bg, #f6f8f7); overflow: auto; }
.stage[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none } }

/* ── Warm signal: KazaCall's own look (deep teal, warm coral, rounded) ── */
:root {
  --brand: #0d4f4a; --brand-2: #14857a; --coral: #ff7a59; --coral-deep: #e8613f;
  --accent: #0f6b64; --radius: 18px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) { :root { --accent: #4fd1c0; --brand: #0a2f2c; --brand-2: #0f5c55; } }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.bar h1 { font-size: 1.35rem; letter-spacing: -.01em; }
.section-title { font-size: 1rem; margin: 20px 4px 4px; color: var(--muted); font-weight: 600; }

/* Your card, as the home screen's hero */
.hero-card { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; color: #fff; margin-block: 4px 12px;
  background: radial-gradient(120% 140% at 100% 0%, var(--coral) 0%, transparent 38%), linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 10px 30px rgb(13 79 74 / .28); animation: rise .35s ease-out; }
.hero-top { display: flex; gap: 12px; align-items: flex-start; }
.hero-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.hero-name { font-size: 1.5rem; line-height: 1.2; margin-block: 2px; }
.hero-user { opacity: .85; margin-block-start: 4px; }
.hero-line { display: inline-block; margin-block-start: 4px; color: inherit; font-weight: 600; text-decoration: none; }
.hero-qr { background: #fff; border: 0; border-radius: 14px; padding: 6px; min-height: 0; flex: none; cursor: pointer; }
.hero-qr img { display: block; width: 84px; height: 84px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 14px; }
.button.light { background: #fff; color: var(--brand); border-color: #fff; font-weight: 600; }
.button.ghost { background: rgb(255 255 255 / .14); color: #fff; border-color: transparent; }
.qr-dialog { border: 0; border-radius: 24px; padding: 24px; text-align: center; max-width: min(92vw, 360px); }
.qr-dialog::backdrop { background: rgb(6 30 28 / .6); }
.qr.big { width: min(72vw, 280px); height: auto; }
@keyframes rise { from { transform: translateY(8px); opacity: 0 } to { transform: none; opacity: 1 } }

/* Quick actions */
.quicks { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-block: 8px 4px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--fg); font-size: .8rem; padding: 10px 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.quick-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* Empty states with something to do */
.empty-state { text-align: center; padding: 28px 12px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p { margin-block: 6px; }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 1.8rem; background: color-mix(in srgb, var(--coral) 16%, transparent); }
.center-row { justify-content: center; }

/* The dialer */
.dialer { max-width: 22rem; margin-inline: auto; }
.dial { width: 100%; font-size: 2.1rem; text-align: center; border: 0; background: transparent; direction: ltr; padding: 12px 0; font-variant-numeric: tabular-nums; }
.dial::placeholder { font-size: 1rem; color: var(--muted); }
.dial-results { margin-block: 0 8px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; margin: 12px auto; direction: ltr; justify-items: center; }
.key { width: 74px; height: 74px; min-height: 0; padding: 0; border-radius: 50%; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .06); touch-action: manipulation; user-select: none; }
.key:active { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); transform: scale(.96); }
.key-n { font-size: 1.7rem; line-height: 1; }
.key-l { font-size: .62rem; letter-spacing: .12em; color: var(--muted); min-height: .8em; }
.dial-row { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; align-items: center; direction: ltr; margin-block: 8px; }
.dial-call { width: 74px; height: 74px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: #1f9d55; color: #fff; font-size: 1.8rem; box-shadow: 0 8px 20px rgb(31 157 85 / .35); }
.dial-call:disabled { background: color-mix(in srgb, #1f9d55 35%, var(--line)); box-shadow: none; }
.dial-add[hidden] { display: inline-flex; visibility: hidden; } /* keeps its place: the call button stays centred */
.dial-add { background: none; border: 0; font-size: 1.15rem; color: var(--accent); min-height: 48px; min-width: 48px; }
.dial-del { background: none; border: 0; font-size: 1.5rem; color: var(--muted); min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none } .key:active { transform: none } }

.card-block { margin-block: 8px 20px; }
.card-more { margin-block: 4px; }
.button.small { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.link-text, .hero-card bdi { overflow-wrap: anywhere; }

.sos-code { font-size: 2rem; text-align: center; letter-spacing: .12em; direction: ltr; font-variant-numeric: tabular-nums; }

/* The top bar: back arrow, title, one action (the wallet chip) */
.bar { display: flex; align-items: center; gap: 8px; }
.bar h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-back { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: -8px; border-radius: 50%; text-decoration: none; color: var(--fg); font-size: 2rem; line-height: 1; flex: none; }
.bar-back:hover, .bar-back:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); }
[dir="rtl"] .bar-back span { display: inline-block; transform: scaleX(-1); }
.wallet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--fg); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }

/* A sticker's public page */
.tag-page { max-width: 30rem; }
.tag-head { text-align: center; margin-block: 16px; }
.tag-icon { font-size: 3rem; display: block; }
.tag-head h1 { font-size: 1.6rem; margin-block: 8px 4px; }
.tag-label { font-weight: 700; font-size: 1.2rem; color: var(--accent); }
.tag-note { white-space: pre-line; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: start; }
.tag-call { width: 100%; min-height: 56px; font-size: 1.15rem; margin-block: 8px; }
.tag-quick { display: grid; gap: 10px; margin-block: 12px; }
.button.big { min-height: 56px; font-size: 1.05rem; width: 100%; }
.tag-free input { flex: 1; min-width: 0; }
.tag-status { font-size: 1.2rem; font-weight: 700; text-align: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 14px; padding: 14px; }
.tag-messages { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tag-messages li { max-width: 85%; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tag-messages li.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.tag-messages li.theirs { align-self: flex-start; }
.list li.off { opacity: .55; }

/* Printable stickers */
.sticker-sheet { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.sticker { width: 300px; border: 2px dashed var(--line); border-radius: 22px; padding: 16px; text-align: center; background: #fff; color: #10201b; break-inside: avoid; }
.sticker-brand { display: flex; justify-content: space-between; align-items: center; color: var(--brand, #0d4f4a); }
.sticker-label { font-weight: 800; font-size: 1.1rem; }
.sticker h2 { font-size: 1.2rem; margin: 10px 0; }
.sticker-qr { width: 220px; height: 220px; }
.sticker-link { font-weight: 700; direction: ltr; margin: 6px 0; }
.sticker-text { font-size: .9rem; margin: 4px 0; }
@media print {
  .bar, .tabs, .no-print, .toasts, #callbar { display: none !important; }
  main { padding: 0; max-width: none; }
  body { background: #fff; }
  .sticker { border-style: solid; border-color: #bbb; }
}

.list li.unread strong { font-weight: 800; }
.chat { min-height: 40vh; }
.chat-send { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: var(--bg); padding-block: 8px; }
.chat-send textarea { flex: 1; min-width: 0; resize: none; border-radius: 22px; padding: 10px 14px; }
/* Invite friends: the offer, then three small numbers side by side */
.ref-offer { font-size: 1.1rem; font-weight: 600; margin-block-start: 0; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.ref-stats .stat { background: var(--bg); border-radius: 12px; padding: 10px 4px; }
.ref-stats strong { display: block; font-size: 1.4rem; }
.ref-stats small { color: var(--muted); }
/* Caller ID: "Call from" and a compact select, on the dialer and in Settings */
.caller-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 4px 8px; }
.caller-id > span { color: var(--muted); }
.caller-id select { flex: 1; min-width: 0; direction: ltr; }
/* The closed box: our text (ends in …), the real select laid over it, invisible, so tapping opens the phone's own list */
.cid-pick { position: relative; flex: 1 1 8rem; min-width: 0; display: flex; align-items: center; min-height: 44px; padding-inline: 12px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cid-pick::after { content: '▾'; position: absolute; inset-inline-end: 10px; color: var(--muted); pointer-events: none; }
.cid-pick:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.cid-shown { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.caller-id .cid-pick select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.caller-id .notice { flex-basis: 100%; margin: 0; }
.dial-country { text-align: center; margin: -6px 0 6px; color: var(--muted); font-size: .95rem; direction: ltr; }
.dial-country:empty { display: none; }
.dial-price { text-align: center; font-weight: 600; margin-block: 4px; }
.badge-kc { display: inline-block; vertical-align: middle; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #1f9d55; color: #fff; }
.ext-big { font-size: 2rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 .25rem; font-variant-numeric: tabular-nums; }
.nudge { display: block; text-decoration: none; margin-block: 8px; }

/* Admin dashboard */
.dash h2 { font-size: 1.1rem; }
.dash-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dash-head h2 { display: flex; align-items: center; gap: 8px; margin-block: 8px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.stats strong { display: block; font-size: 1.8rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.live-now { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
.live-now strong { font-size: 2.4rem; color: var(--accent); }
.live-now .alert { border-color: var(--danger); }
.live-now .alert strong { color: var(--danger); }
.stats small { display: block; }
table.periods { table-layout: fixed; }
table.periods th:first-child { width: 40%; }
table.periods td, table.periods thead th { text-align: end; font-variant-numeric: tabular-nums; }
table.periods tbody th { font-weight: 400; }
@media (max-width: 420px) { table.periods { font-size: .85rem; } table.periods th, table.periods td { padding-inline: 4px; } table.periods th:first-child { width: 34%; } }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 16px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { font-weight: 600; margin-block-end: 6px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart rect { fill: var(--accent); }
.chart .axis { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 10px; }
.auth .passkey { display: flex; width: 100%; justify-content: center; margin-block: 8px; }

/* QR codes: the guided making, a code's tools and activity, visitors, readiness. */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; justify-content: center; }
.steps li { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-weight: 700; }
.steps li[aria-current] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.qr-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 10px; margin-block: 8px 16px; }
.qr-kinds.compact { grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); }
.qr-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: start; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font: inherit; cursor: pointer; text-decoration: none; min-height: var(--tap); }
.qr-kind:hover, .qr-kind:focus-visible { border-color: var(--accent); }
.qr-kind small { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.qr-kinds.compact .qr-kind { align-items: center; text-align: center; }
.qr-kind-icon { font-size: 1.7rem; }
.qr-chosen { margin-top: 0; }
.qr-big { display: block; margin: 0 auto; width: min(220px, 70vw); height: auto; background: #fff; padding: 8px; border-radius: 12px; }
.button.wide { width: 100%; justify-content: center; }
.badge.danger { background: var(--danger); }
.checklist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .tick { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-weight: 700; }
.checklist li.ok .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist p { margin: 4px 0; }
.visitor { width: 100%; min-width: 0; }
.visitor p { margin: 2px 0; overflow-wrap: anywhere; }
.visitor-what small { color: var(--muted); }
.ip { font-family: ui-monospace, monospace; direction: ltr; }
.list.visitors li { align-items: flex-start; }
.qr-bars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-block: 12px; }
.qr-bars span { flex: 1; height: max(var(--h), 2px); background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; }
.qr-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 0 16px; }
.qr-top { list-style: none; padding: 0; margin: 0; }
.qr-top li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-block-end: 1px solid var(--line); }
.qr-list small + small { margin-top: 2px; }
.tag-link { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-block: 12px; text-align: center; }
.tag-url { font-weight: 700; direction: ltr; overflow-wrap: anywhere; }
.tag-report form { display: grid; gap: 8px; margin-top: 8px; }
.tag-report label { display: grid; gap: 4px; }
.install-steps { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.install-all dt { font-weight: 700; margin-top: 10px; }
.install-all dd { margin: 2px 0 0; color: var(--muted); }
.devices .badge { align-self: flex-start; width: fit-content; margin-block: 2px; }
.first-qr h2 { margin-top: 0; }

/* The front page (signed out). */
.landing { min-height: 100vh; background: var(--bg); }
.landing main { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
.land-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 64rem; margin: 0 auto; padding: 12px 16px; }
.land-bar nav { display: flex; gap: 12px; align-items: center; }
.land-logo { font-size: 1.3rem; color: var(--fg); }
.land-hero { display: grid; gap: 28px; align-items: center; padding-block: 24px 40px; }
@media (min-width: 52rem) { .land-hero { grid-template-columns: 1.1fr .9fr; padding-block: 48px 64px; } }
.land-kicker { color: var(--accent); font-weight: 700; margin: 0; }
.land-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 8px 0 12px; }
.land-lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 16px; }
.land-free { color: var(--muted); font-size: .9rem; }
.button.big { min-height: 52px; padding: 0 22px; font-size: 1.05rem; font-weight: 700; }
.land-hero .button.ghost { color: var(--accent); background: transparent; border-color: var(--line); }
.land-demo { position: relative; display: flex; justify-content: center; align-items: center; gap: 14px; }
.land-sticker { background: #fff; color: #10201b; border-radius: 22px; padding: 14px; text-align: center; box-shadow: 0 10px 30px rgb(13 79 74 / .18); transform: rotate(-4deg); flex: none; width: 150px; }
.land-sticker strong { color: #0d4f4a; }
.land-sticker p { margin: 4px 0 8px; font-weight: 700; }
.land-sticker img { width: 120px; height: 120px; display: block; margin: 0 auto; }
.land-phone { width: 200px; border: 8px solid #14201b; border-radius: 30px; background: var(--surface); padding: 18px 12px; display: grid; gap: 8px; box-shadow: 0 14px 40px rgb(0 0 0 / .18); }
.land-phone-title { text-align: center; font-weight: 800; margin: 0 0 4px; }
.land-btn { display: block; text-align: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px; font-size: .85rem; background: var(--bg); }
.land-btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 700; }
.land-toast { margin: 6px 0 0; font-size: .75rem; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 12px; padding: 8px; }
@media (max-width: 26rem) { .land-sticker { width: 120px; } .land-sticker img { width: 92px; height: 92px; } .land-phone { width: 170px; } }
.land-section { padding-block: 32px; border-top: 1px solid var(--line); }
.land-section h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 6px; }
.land-sub { color: var(--muted); margin: 0 0 16px; }
.land-uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.land-uses a { display: block; height: 100%; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.land-uses a:hover, .land-uses a:focus-visible { border-color: var(--accent); }
.land-uses h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.land-uses p { margin: 0; color: var(--muted); font-size: .92rem; }
.land-pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 12px; background: #e8f3ee; }
.land-uses .land-pic { margin-bottom: 4px; }
.land-steps h3 { display: flex; align-items: center; gap: 10px; }
.land-steps .land-n { width: 32px; height: 32px; font-size: 1rem; flex: none; }
.land-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.land-steps h3 { margin: 8px 0 4px; }
.land-steps p { margin: 0; color: var(--muted); }
.land-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 1.1rem; }
.land-points { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.land-points li { display: flex; gap: 12px; align-items: flex-start; }
.land-points h3 { margin: 0 0 4px; font-size: 1.05rem; }
.land-points p { margin: 0; color: var(--muted); }
.land-i { width: 96px; height: 64px; flex: none; border-radius: 10px; background: #e8f3ee; }
.land-platforms { font-weight: 700; }
.land-cta { margin-block: 24px 40px; padding: 32px 20px; border-radius: 24px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, var(--coral) 0%, transparent 38%), linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%); }
.land-cta h2 { margin: 0 0 16px; font-size: clamp(1.4rem, 4vw, 2rem); }
.land-foot { text-align: center; color: var(--muted); padding: 24px 16px 40px; border-top: 1px solid var(--line); }
.landing .button { width: auto; display: inline-flex; align-items: center; justify-content: center; }
.land-hero .row { gap: 10px; }

/* Which devices ring. */
.switch { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .75rem; color: var(--muted); flex: none; }
.switch input[type="checkbox"] { width: 44px; min-width: 44px; height: 26px; min-height: 0; padding: 0; border: 0; flex: none; appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: inset-inline-start .15s; }
.switch input[type="checkbox"]:checked { background: var(--accent); }
.switch input[type="checkbox"]:checked::after { inset-inline-start: 21px; }
.switch input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Install steps, each with a drawing of the browser's own screen; the button to tap is ringed. */
.inst-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.inst-steps p { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; }
.inst-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: .85rem; }
.mock { position: relative; border: 6px solid #1c2622; border-radius: 22px; background: #f3f5f4; color: #14201b; overflow: hidden; display: flex; flex-direction: column; font-size: .72rem; height: 220px; max-width: 220px; }
.mock.screen { border-radius: 10px; border-width: 5px; max-width: 280px; height: 170px; }
.mock-page { flex: 1; background: repeating-linear-gradient(#fff 0 14px, #eef2f0 14px 18px); }
.mock-page.dim { background: #9aa5a0; }
.mock-page.short { flex: 0 0 26px; }
.mock-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.mock-row.bar { background: #e6ebe8; justify-content: space-between; }
.mock-row.bar.mac { justify-content: flex-start; gap: 12px; }
.mock-row.bar.app { justify-content: flex-start; background: #0b6e4f; color: #fff; }
.mock-row.bar.dock { justify-content: center; background: rgb(0 0 0 / .08); }
.mock-row.head { justify-content: space-between; background: #fff; border-bottom: 1px solid #dde5e1; }
.mock-row.item { background: #fff; border-bottom: 1px solid #e6ebe8; justify-content: space-between; }
.mock-row.end { justify-content: flex-end; gap: 12px; }
.mock-url { flex: 1; background: #fff; border-radius: 999px; padding: 4px 8px; color: #56655e; display: flex; justify-content: space-between; align-items: center; direction: ltr; }
.mock-cell { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; font-size: .95rem; }
.mock .glyph { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mock-sheet, .mock-menu { position: absolute; inset-inline: 0; bottom: 0; background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 14px rgb(0 0 0 / .2); }
.mock-menu { top: 34px; bottom: auto; inset-inline-start: auto; inset-inline-end: 4px; width: 70%; border-radius: 8px; }
.mock-menu.start { inset-inline-start: 40px; inset-inline-end: auto; top: 30px; width: 60%; }
.mock-dialog { position: absolute; inset-inline: 10px; top: 30%; background: #fff; border-radius: 12px; padding: 10px; display: grid; gap: 4px; justify-items: start; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.mock-link { color: #0b6e4f; }
.mock-btn { background: #0b6e4f; color: #fff; border-radius: 999px; padding: 3px 12px; }
.mock.home { background: linear-gradient(160deg, #4a7c8c, #2e4f5e); }
.mock-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 12px; }
.mock-app { aspect-ratio: 1; border-radius: 10px; background: rgb(255 255 255 / .35); display: grid; place-items: center; min-width: 26px; }
.mock-app.kc { background: none; color: #fff; gap: 2px; }
.mock-app img { border-radius: 9px; display: block; }
.mock .hit { outline: 3px solid var(--coral, #ff7a59); outline-offset: 1px; border-radius: 8px; background-color: rgb(255 122 89 / .22); animation: hit 1.4s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes hit { 50% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .mock .hit { animation: none; } }
.mock .mock-btn.hit { background-color: #0b6e4f; }

/* Sign-in screens: the brand side and the panel. A short band on a phone. */
.auth-shell { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-side { color: #fff; padding: 20px 20px 56px; padding-block-start: max(20px, env(safe-area-inset-top));
  background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--coral) 70%, transparent) 0%, transparent 45%), linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%); }
.auth-logo { display: inline-flex; text-decoration: none; font-size: 1.35rem; }
.auth-pitch { display: none; }
.auth-side-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 800; margin: 0 0 24px; }
.auth-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-pitch li { display: flex; gap: 12px; align-items: center; font-size: 1.05rem; }
.auth-pitch li span { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgb(255 255 255 / .16); }
.auth-shell main.auth { width: 100%; max-width: 29rem; margin: -40px auto 0; padding: 0 16px 32px; }
.auth-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px; box-shadow: 0 18px 50px rgb(13 79 74 / .14); }
.auth-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.auth-head p { margin: 4px 0 16px; color: var(--muted); }
.auth-panel form.card { border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.auth-panel form .primary[type=submit] { width: 100%; margin-block-start: 8px; min-height: 52px; font-size: 1.05rem; }
.auth-panel input { border-radius: 12px; background: var(--bg); }
.auth-panel input:focus { border-color: var(--accent); background: var(--surface); outline: 3px solid var(--focus); outline-offset: 0; }
.auth-switch { margin: 18px 0 0; }
.auth-switch a { font-weight: 700; }
.auth-foot { color: var(--muted); margin-block-start: 16px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-block: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.seg button { min-height: 44px; border: 0; background: none; color: var(--muted); padding: 0 8px; font-size: .92rem; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); font-weight: 700; box-shadow: 0 1px 4px rgb(0 0 0 / .12); }
.field.pw { position: relative; }
.field.pw input { padding-inline-end: 72px; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: calc(1.45em + 6px); min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: .88rem; }
.field-hint { color: var(--muted); font-size: .82rem; }
.pw-meter { display: grid; gap: 4px; }
.pw-meter span { height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.pw-meter span::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--danger); transition: width .2s; }
.pw-meter[data-level="1"] span::after { width: 33%; }
.pw-meter[data-level="2"] span::after { width: 66%; background: #d79b00; }
.pw-meter[data-level="3"] span::after { width: 100%; background: var(--ok); }
.pw-meter small { color: var(--muted); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .pw-meter span::after { transition: none; } }
@media (min-width: 56rem) {
  .auth-shell { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(28rem, 36rem); }
  .auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; min-height: 100dvh; position: sticky; top: 0; }
  .auth-pitch { display: block; max-width: 30rem; margin-block-end: 15vh; }
  .auth-shell main.auth { margin: 0 auto; align-self: center; padding: 40px 32px; }
  .auth-panel { padding: 32px 28px; box-shadow: none; border: 0; background: none; }
}
/* NFC tag writer on a code's page */
.nfc { border-top: 1px solid var(--line); margin-block-start: 16px; padding-block-start: 8px; }
.nfc h3 { margin-block: 8px 4px; }
.nfc-hold { font-weight: 600; margin: 0; flex: 1; }

/* Front page scenes: a photo of someone scanning, with the two real screens
   (what the visitor sees, what the owner gets) in phone frames pulled up over
   its lower corner; the caption follows below. */
.land-scene { margin: 0; }
.land-section > .land-scene { margin-block: 8px 24px; max-width: 46rem; }
.land-scene-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: 0 14px 40px rgb(0 0 0 / .16); }
.land-scene-phones { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; gap: 10px; margin-block-start: -30%; padding-inline-end: 12px; }
.land-scene-phone { margin: 0; width: 26%; max-width: 170px; text-align: center; }
.land-scene-phone img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1169; border: 5px solid #14201b; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgb(0 0 0 / .28); }
.land-scene-phone.owner { margin-block-end: 14px; }
.land-scene-phone figcaption { margin-block-start: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.land-scene-caption { margin-block-start: 12px; font-weight: 600; max-width: 34rem; }
/* After a visitor writes: get KazaCall so they can reach you */
.reach { margin-block: 16px; padding: 16px; border-radius: var(--radius); text-align: start;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.reach h2 { font-size: 1.1rem; margin: 0 0 6px; }
.reach p { margin: 6px 0; }
/* Sharing a number or credit */
.shares { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.share p { margin: 4px 0; }
.share-usage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-block: 8px; }
.share-bar { display: grid; gap: 2px; }
.share-bar progress { width: 100%; height: 8px; accent-color: var(--accent); }
.share-text textarea { width: 100%; margin-block: 6px; }
.share-convo { max-height: 18rem; overflow-y: auto; }
/* A call to a phone number: the keypad over the call screen */
.pstn-pad { max-width: 18rem; }
.pstn-pad .key { background: #23332d; color: #fff; }

/* The keypad never moves while typing: fixed rows, keys sized to the screen's height */
.dialer { display: grid; grid-template-rows: auto auto min(8.5rem, 14dvh) auto auto; } /* by the screen's height too: large text never pushes the call button off it */
.dial { height: 3.6rem; overflow: hidden; text-overflow: ellipsis; }
.dial-info { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.dial-info .dial-country:empty { display: block; min-height: 1.4em; }
.key, .dial-call { width: min(max(56px, 9dvh), 4.75rem, 26vw); height: min(max(56px, 9dvh), 4.75rem, 26vw); } /* grow with the text, three always fit across, five rows always fit down */
.pad { gap: clamp(8px, 1.6dvh, 14px) 18px; margin: 4px auto; }
@media (max-height: 700px) { .dialer { grid-template-rows: auto auto min(6.5rem, 18dvh) auto auto; } } /* until the keypad fits the area to the screen */
/* Recent calls on the keypad */
.dial-info .dial-results li { padding-block: 0; }
.dial-recent-title { padding: 0 4px; border: 0; min-height: 0; }
.dial-recent-title small { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.dial-recent { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.dial-recent .link-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: start; border: 0; background: none; padding: 2px 4px; min-height: 44px; border-radius: 10px; color: var(--fg); overflow: hidden; }
.dial-recent .link-row strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dial-recent .link-row small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.dial-recent-at { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.dial-recent .icon-btn { width: 44px; min-height: 44px; height: 44px; }
.dialer:not(:has(.dial-country:not(:empty))) .dial-info .dial-country { display: none; }

/* The keypad's number shrinks to fit (never runs into the line below), and the caller ID never gets cut */
.dial { font-size: min(clamp(1.3rem, calc(3.4rem - var(--len, 0) * .11rem), 2.1rem), 7dvh); line-height: 1.2; height: auto; min-height: min(3.2rem, 8dvh); padding-block: 8px 2px; }
.dial-info .dial-country { margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The caller ID: its own row between the number and what it finds, with room around it */
.dial-from { container-type: inline-size; }
.dial-from:empty { display: none; }
.dial-from .caller-id { position: relative; justify-content: center; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 10px; padding-inline: 4px; }
.dial-from .caller-id .notice { position: absolute; inset: 100% 0 auto; text-align: center; font-size: .8rem; } /* "Saved" never pushes the keys */
.dial-from .caller-id .notice:empty { display: none; }
.dial-from .caller-id > span { flex: none; font-size: .85rem; }
.dial-from .cid-pick { flex: 0 1 15rem; max-width: 100%; min-height: 40px; font-size: .9rem; }
@container (max-width: 19em) { .dial-from .caller-id > span:first-child { display: none; } } /* large text: the box alone (it keeps its label for screen readers) */
/* Asking to be reachable (notifications, installing) */
.reach2 { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.reach2-head { display: flex; gap: 12px; align-items: flex-start; }
.reach2-head h2 { font-size: 1.05rem; margin: 0 0 4px; }
.reach2-head p { margin: 0 0 8px; }
.reach2-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.reach2-actions { align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.reach2-actions > * { margin: 0; }
/* Voicemail */
.voicemails audio { width: 100%; margin-block-start: 6px; height: 36px; }
.voicemails li.unheard strong::after { content: " •"; color: var(--accent); }
.vm-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.land-emergency .land-scene-photo { max-width: 46rem; margin-block: 8px 16px; }
/* Wallet cards (emergency, business): ISO ID-1, 85.6 × 54 mm with 3.18 mm corners, front and back.
   --u is one card millimetre: exactly 1mm in print, less on a screen too narrow for the true size. */
.wallet-pair { container-type: inline-size; display: flex; flex-wrap: wrap; gap: 14px; margin-block: 8px 20px; }
.wallet-card { --u: min(1mm, 100cqi / 85.6); --ink: #10201c; --teal: #0d4f4a; --teal-2: #14857a; --coral: #ff7a59;
  position: relative; flex: none; width: calc(85.6 * var(--u)); height: calc(54 * var(--u)); border-radius: calc(3.18 * var(--u));
  padding: calc(4 * var(--u)) calc(4.6 * var(--u)); overflow: hidden; font-size: calc(2.5 * var(--u)); line-height: 1.3; color: #fff;
  background: radial-gradient(60% 85% at 100% 0%, rgb(64 200 180 / .32), transparent 70%),
    repeating-radial-gradient(circle at 0 120%, transparent 0 calc(1.9 * var(--u)), rgb(255 255 255 / .06) 0 calc(2.1 * var(--u))),
    linear-gradient(135deg, #093a36, var(--teal) 40%, var(--teal-2));
  box-shadow: 0 1px 2px rgb(6 30 28 / .2), 0 12px 28px -8px rgb(6 30 28 / .45);
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
:where(.wallet-card) :is(p, ol) { margin: 0; }
.wallet-card > div { height: 100%; display: flex; flex-direction: column; }
.wallet-card .ar { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
/* The wordmark: KazaCall's handset curve on a coral tile, then the name */
.wc-brand { display: inline-flex; align-items: center; gap: calc(1.4 * var(--u)); font-size: calc(3.5 * var(--u)); font-weight: 800; letter-spacing: -.01em; }
.wc-mark { width: calc(4.6 * var(--u)); height: calc(4.6 * var(--u)); flex: none; background: url(/logo-light.svg) center / 100% no-repeat; } /* the logo's mark: white on the teal front */
.back .wc-mark { background-image: url(/logo.svg); }
.wc-brand.small { font-size: calc(2.6 * var(--u)); opacity: .9; }
.wc-brand.small .wc-mark { width: calc(3.4 * var(--u)); height: calc(3.4 * var(--u)); }
.wc-company { font-size: calc(3.4 * var(--u)); font-weight: 800; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-top { display: flex; justify-content: space-between; align-items: center; gap: calc(2 * var(--u)); }
/* The SOS mark: a coral SOS plate, then "Emergency card" */
.wc-tag { display: inline-flex; align-items: center; gap: calc(1.2 * var(--u)); font-size: calc(2 * var(--u)); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.wc-sos { background: var(--coral); color: #fff; border-radius: calc(1 * var(--u)); padding: calc(.5 * var(--u)) calc(1.4 * var(--u)); font-size: calc(3 * var(--u)); font-weight: 900; letter-spacing: .08em;
  box-shadow: 0 0 0 calc(.5 * var(--u)) rgb(255 122 89 / .3); }
.wc-body { flex: 1; min-height: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: calc(3 * var(--u)); }
.wc-body > div { min-width: 0; }
.wc-name { font-size: calc(4.4 * var(--u)); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; overflow-wrap: anywhere; }
.wc-user { margin-block: calc(.6 * var(--u)) calc(2.4 * var(--u)); font-size: calc(2.8 * var(--u)); opacity: .85; font-variant-numeric: tabular-nums; }
.wc-line { font-size: calc(2.3 * var(--u)); opacity: .92; overflow-wrap: anywhere; }
.wc-line + .wc-line { margin-block-start: calc(.5 * var(--u)); }
.front .wc-line.ar { padding-block-start: calc(.6 * var(--u)); margin-block-start: calc(.8 * var(--u)); border-block-start: calc(.2 * var(--u)) solid rgb(255 255 255 / .25); }
/* The QR on its white quiet zone (the code carries 4 white modules of its own): 25 mm, dark on light */
.wc-qr { display: block; flex: none; width: calc(26.6 * var(--u)); height: calc(26.6 * var(--u)); padding: calc(.8 * var(--u)); background: #fff; border-radius: calc(2 * var(--u)); }
.wc-qr-pending { display: flex; align-items: center; justify-content: center; text-align: center; color: #56655e; font-size: calc(2.4 * var(--u)); line-height: 1.25; border: calc(.3 * var(--u)) dashed #b9c6c0; }
/* The back: white, a teal stripe at the top like a card's magnetic stripe, then EN | AR steps, the PIN, the note */
.wallet-card.back { color: var(--ink); background: #fff; padding-block-start: calc(9.6 * var(--u)); box-shadow: inset 0 0 0 calc(.25 * var(--u)) #d3ddd9, 0 1px 2px rgb(6 30 28 / .14), 0 12px 28px -8px rgb(6 30 28 / .3); }
.wc-stripe { position: absolute; inset: calc(2.6 * var(--u)) 0 auto; height: calc(4.4 * var(--u));
  background: linear-gradient(90deg, var(--teal), var(--teal-2)); border-block-end: calc(.45 * var(--u)) solid var(--coral); }
.wc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: calc(3.4 * var(--u)); }
.wc-cols > .ar { border-inline-end: calc(.2 * var(--u)) solid #e3ebe8; padding-inline-end: calc(3.4 * var(--u)); }
.wc-head { font-weight: 800; font-size: calc(2.7 * var(--u)); color: var(--teal); margin-block-end: calc(1.2 * var(--u)); }
.wc-steps { list-style: none; padding: 0; font-size: calc(2.15 * var(--u)); line-height: 1.25; }
.wc-steps li { display: flex; gap: calc(1.2 * var(--u)); }
.wc-steps li + li { margin-block-start: calc(.9 * var(--u)); }
.wc-n { flex: none; width: calc(2.9 * var(--u)); height: calc(2.9 * var(--u)); border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-size: calc(1.8 * var(--u)); font-weight: 800; line-height: 1; }
.wc-pin { margin-block-start: auto; display: flex; align-items: center; justify-content: space-between; gap: calc(2 * var(--u));
  padding: calc(1.2 * var(--u)) calc(2.6 * var(--u)); border-radius: calc(1.8 * var(--u)); background: #eef6f4; border: calc(.25 * var(--u)) solid #cde2dc;
  color: var(--teal); font-size: calc(2.1 * var(--u)); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wc-pin strong { color: var(--ink); font-size: calc(4.4 * var(--u)); font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; text-transform: none; white-space: nowrap; }
.wc-pin .muted { color: #6a7a73; font-size: calc(2 * var(--u)); font-weight: 400; letter-spacing: 0; text-transform: none; }
.wc-note { display: flex; align-items: center; gap: calc(1 * var(--u)); margin-block-start: calc(1.4 * var(--u)); font-size: calc(1.9 * var(--u)); font-weight: 600; color: #b3261e; }
.wc-warn { flex: none; font-style: normal; width: calc(2.6 * var(--u)); height: calc(2.6 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: #b3261e; color: #fff; font-size: calc(1.8 * var(--u)); font-weight: 900; }
/* The business card's back: the wordmark, the line and the link, centred */
.wallet-biz .back > div { align-items: center; justify-content: center; text-align: center; gap: calc(1.4 * var(--u)); padding-block-end: calc(2 * var(--u)); }
.wallet-biz .back .wc-brand { color: var(--teal); }
.wallet-biz .back .wc-head { font-size: calc(3.4 * var(--u)); color: var(--ink); margin: 0; }
.wallet-biz .back .wc-line { color: var(--teal); font-weight: 700; font-size: calc(2.6 * var(--u)); opacity: 1; }
.wallet-biz .back .wc-note { color: #56655e; font-weight: 400; }
.wallet-biz select { margin-block-end: 4px; }
.wallet-cut { display: none; }
.wallet-sheet[data-em="false"] .wallet-em, .wallet-sheet[data-biz="false"] .wallet-biz { display: none; }
@media (prefers-color-scheme: dark) { .wallet-card, .wallet-card.back { box-shadow: 0 1px 2px rgb(0 0 0 / .4), 0 14px 32px -8px rgb(0 0 0 / .7); } }
/* Print: always light, true size, each side inside a dashed cut line, the sheet on A4 */
@page wallet { size: A4 portrait; margin: 14mm; }
@media print {
  html:has(.wallet-sheet), html:has(.wallet-sheet) body { background: #fff; color: #10201c; color-scheme: light; }
  html:has(.wallet-sheet) main { outline: 0; }
  .wallet-sheet { page: wallet; }
  .wallet-sheet section { break-inside: avoid; margin-block-end: 12mm; }
  .wallet-pair { container-type: normal; gap: 8mm; margin: 0; }
  .wallet-card { --u: 1mm; box-shadow: none; outline: .2mm dashed #8a9b95; outline-offset: 0; }
  .wallet-card.back { box-shadow: inset 0 0 0 .15mm #d3ddd9; }
  .wallet-cut { display: block; margin-block-start: 3mm; font-size: 8pt; color: #56655e; }
  .wallet-biz select { display: none; }
}
.land-hero-pic { margin: 0; }
.pin-once .code { font-size: 1.6rem; letter-spacing: .08em; }
.below-cost td { color: var(--danger); font-weight: 600; }

/* High contrast: on when the phone asks for more contrast, or by the switch in
   Settings → Language & display (prefs.ts sets the class): black on white
   (white on black in the dark), solid colours, firmer borders. */
:root.contrast { --bg: #fff; --surface: #fff; --fg: #000; --muted: #1f1f1f; --line: #000; --accent: #00524b; --accent-fg: #fff;
  --danger: #a00000; --ok: #005a1e; --focus: #0040d0; --brand: #00332f; --brand-2: #00332f; --coral: #00332f; }
@media (prefers-color-scheme: dark) {
  :root.contrast { --bg: #000; --surface: #000; --fg: #fff; --muted: #f0f0f0; --line: #fff; --accent: #7ff0dd; --accent-fg: #000;
    --danger: #ffb3ab; --ok: #9ff5b0; --focus: #ffd600; --brand: #002420; --brand-2: #002420; --coral: #002420; }
}
.contrast :is(button, .button, input, select, textarea, .card, .chip, .quick, .big-btn) { border-width: 2px; }
.contrast :is(.primary, .badge, .chip[aria-current="true"]) { color: var(--accent-fg); }
.contrast .badge-kc { background: var(--ok); color: var(--bg); }
.contrast :is(p, li, dd) > a:not(.button, .chip) { text-decoration: underline; }
.contrast .hero-card { box-shadow: none; outline: 2px solid var(--line); }

/* Simple mode (a switch on this device): the home screen is big buttons only, in large text */
.simple-home { display: grid; gap: 14px; }
.simple-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.big-btn { display: flex; align-items: center; justify-content: flex-start; gap: 16px; width: 100%; min-height: 5.5rem; padding: 14px 20px; border-radius: 24px;
  border: 2px solid var(--line); background: var(--surface); color: var(--fg); font-size: 1.4rem; font-weight: 700; line-height: 1.2; text-align: start; text-decoration: none; }
.big-btn.person { flex-direction: column; justify-content: center; text-align: center; min-height: 10rem; gap: 10px; overflow-wrap: anywhere; }
.big-btn .avatar { width: 4.5rem; height: 4.5rem; font-size: 1.6rem; }
.big-icon { font-size: 2.2rem; line-height: 1; flex: none; }
.big-btn.sos { background: #b3261e; border-color: #b3261e; color: #fff; }
.simple-none { font-size: 1.2rem; }
.simple-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 1.15rem; }
.simple-links a { display: inline-flex; align-items: center; min-height: 48px; }
.simple .tabs a { font-size: .85rem; min-height: 60px; }
.simple .tabs .icon { font-size: 1.6rem; }
.ready-check .checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.ready-check .checks .ok span { color: var(--ok); } .ready-check .checks .bad span { color: var(--danger); } .ready-check .checks .neutral span { color: var(--muted); }
/* A new page arrives with a short slide and fade (not on redraws, not for reduced motion). */
main.arriving { animation: page-in .18s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main.arriving { animation: none; } }
.notice:empty { min-height: 0; margin: 0; padding: 0; border: 0; } /* empty: no space, but still there for screen readers to announce what comes */
body.has-callbar main.auth { padding-block-end: calc(92px + 3rem); } /* the SOS and card pages too: the call bar never covers their end */

/* Prepaid cards: an agent's batches, the print sheet (85.6 × 54 mm, ten to an A4 page), the claim page */
.pp-batch { flex-wrap: wrap; align-items: flex-start; }
.pp-batch details { flex-basis: 100%; margin-top: 6px; }
.pp-batch .row input[type=number] { width: 5.5rem; }
.pp-sheet-page { padding: 16px; }
.pp-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 190mm; margin: 0 auto 16px; }
.pp-sheet { display: grid; grid-template-columns: repeat(auto-fill, 85.6mm); gap: 4mm; justify-content: center; }
.pp-card { position: relative; width: 85.6mm; height: 54mm; box-sizing: border-box; display: flex; gap: 3mm; align-items: center; padding: 3.5mm;
  background: #fff; color: #10201c; border: .25mm dashed #8a9b95; border-radius: 3mm; overflow: hidden; break-inside: avoid; font-size: 2.6mm; line-height: 1.3; }
.pp-card.sold::after { content: 'sold'; position: absolute; top: 2mm; inset-inline-end: 3mm; font-size: 2.2mm; color: #8a9b95; }
.pp-qr { flex: none; width: 31mm; height: 31mm; }
.pp-qr svg { width: 100%; height: 100%; display: block; }
.pp-body { min-width: 0; display: flex; flex-direction: column; gap: 1.2mm; }
.pp-body p { margin: 0; }
.pp-brand { font-size: 3.4mm; margin: 0; }
.pp-brand .logo { color: #14201b; } .pp-brand .logo-name b { color: #0b6e4f; } /* print: the light colours always */
.pp-value { font-size: 6.4mm; font-weight: 800; line-height: 1.05; }
.pp-value small { font-size: 2.8mm; font-weight: 600; color: #3c5650; }
.pp-how { font-size: 2.3mm; color: #3c5650; }
.pp-pin { display: flex; align-items: baseline; gap: 2mm; padding: 1.2mm 2mm; border-radius: 1.5mm; background: repeating-linear-gradient(45deg, #e6ece9 0 1mm, #d7dfdb 1mm 2mm); }
.pp-pin span { font-size: 2.2mm; font-weight: 700; color: #3c5650; }
.pp-pin strong { font-size: 4.4mm; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.pp-small { font-size: 2mm; color: #5b706a; }
.pp-share { position: absolute; bottom: 2mm; inset-inline-end: 2mm; width: 7mm; height: 7mm; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid #c8d3cf; background: #fff; cursor: pointer; }
.pp-claim { text-align: center; }
.pp-claim-value { font-size: 2.6rem; font-weight: 800; margin: 8px 0 0; }
.pp-claim-value small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.pp-claim form { text-align: start; }
.pp-pin-input { font-size: 1.6rem; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .no-print, nav.tabs, header.bar { display: none !important; }
  .pp-sheet-page { padding: 0; }
  .pp-sheet { gap: 3mm; grid-template-columns: repeat(2, 85.6mm); }
  .pp-card.sold::after { display: none; }
}

/* /agents: the sample card in the hero, "coming" badges, questions */
.ag-hero-card { display: grid; place-items: center; padding: 24px; }
.ag-sample { transform: rotate(-3deg) scale(1.25); box-shadow: 0 18px 40px rgb(0 0 0 / .18); border-style: solid; border-color: #d6dfdb; }
.ag-sample .pp-qr img { width: 100%; height: 100%; }
.ag-soon { margin-inline-start: 8px; font-size: .7rem; vertical-align: 2px; }
.ag-faq { display: flex; flex-direction: column; gap: 8px; max-width: 46rem; }
.ag-q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.ag-q summary { cursor: pointer; font-weight: 600; }
.ag-q p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 600px) { .ag-sample { transform: rotate(-2deg) scale(.95); } }
a.land-logo { text-decoration: none; color: inherit; }
.pp-number { font-size: 4.4mm; }
.pp-extra { font-size: 3.2mm; font-weight: 700; }
.pp-extra small { font-weight: 600; color: #3c5650; }
.pp-claim-extra { font-size: 1.3rem; font-weight: 700; margin: 4px 0 0; }
/* Very short screens: slightly smaller keys and gaps, so the caller ID row and the call button both fit */
@media (max-height: 620px) {
  .key, .dial-call { width: 50px; height: 50px; }
  .pad { gap: 6px 18px; }
  .dial-row { margin-block: 4px; }
  .dial-from .caller-id { margin: 2px 0 6px; }
}
/* Add nearby: the big start button, the code as sound, QR and text */
.near .near-go { width: 100%; margin-block: 8px; }
.near-status { text-align: center; color: var(--muted); min-height: 1.4em; margin: 4px 0; }
body.near-on .near-go { animation: near-pulse 1.6s ease-in-out infinite; }
@keyframes near-pulse { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent); } }
@media (prefers-reduced-motion: reduce) { body.near-on .near-go { animation: none; } }
.near-person { display: flex; align-items: center; gap: 10px; }
.near-person small { display: block; color: var(--muted); }
.near-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.near-qr { width: 160px; height: 160px; background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.near-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.near-typed { text-transform: uppercase; letter-spacing: .1em; flex: 1; min-width: 0; }
/* Offline calls: the network line, the link exchange, the people, the call over any screen */
.lan-net { font-weight: 600; margin: 0 0 6px; }
.lan-net.off { color: var(--danger); }
.lan-net.on { color: var(--ok); }
.lan-qr { display: flex; justify-content: center; }
.lan-qr svg { width: min(340px, 88vw); height: auto; margin-block: 8px; border-radius: 10px; } /* large: another phone's camera reads it from close */
.lan-linker .scan-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; }
.lan-more { margin-top: 8px; }
.lan-peer { align-items: flex-start; }
.lan-peer .row { margin-block: 6px; flex-wrap: wrap; gap: 8px; }
.lan-up { color: var(--ok); font-weight: 600; }
.lan-log { list-style: none; padding: 0; margin: 4px 0; font-size: .92rem; }
.lan-log li { padding: 2px 0; overflow-wrap: anywhere; }
.lan-log li.out { color: var(--muted); }
.lan-call { position: fixed; inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; z-index: 50; max-width: 26rem; margin-inline: auto; padding: 16px;
  display: grid; justify-items: center; gap: 6px; text-align: center; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 40px rgb(0 0 0 / .25); }
.lan-call h2 { margin: 0; font-size: 1.2rem; }
.lan-call-status { margin: 0; color: var(--muted); }
/* Signing in by QR: the code and the number on the new device; the three numbers on the phone */
.qr-signin { display: grid; justify-items: center; gap: 10px; }
.qr-signin-code svg { width: min(240px, 70vw); height: auto; border-radius: 12px; }
.qr-number { font-size: 1.1rem; margin: 0; }
.qr-number strong { font-size: 2.4rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; vertical-align: middle; }
.qr-steps { margin: 0; padding-inline-start: 1.2em; color: var(--muted); }
.qr-device { font-size: 1.05rem; }
.qr-choices { gap: 12px; margin-block: 8px 12px; }
.qr-choice { min-width: 4.5rem; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.qr-done { font-weight: 600; color: var(--ok); }
/* A paired screen (kazacall.com/screen): full screen, dark, the media as large as it fits; idle, a clock */
html.screen-mode, html.screen-mode body { background: #000; color: #fff; height: 100%; overflow: hidden; }
.scr { position: fixed; inset: 0; max-width: none; margin: 0; overflow: auto; display: grid; place-items: center; text-align: center; padding: 24px; } /* the whole display, past the app's page width */
.scr-unpaired { background: linear-gradient(150deg, #0b6e4f, #0d4f4a); align-content: center; gap: 12px; }
.scr-unpaired h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.4rem); }
.scr-brand .logo { font-size: 1.6rem; }
.scr-pair { display: grid; justify-items: center; gap: 12px; }
.scr-qr svg { width: min(50vh, 70vw); height: auto; border-radius: 14px; } /* large: a phone reads it from across the room */
.scr-number { font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin: 0; }
.scr-number strong { font-size: 2.2em; letter-spacing: .1em; vertical-align: middle; }
.scr-unpaired .qr-steps { color: #d8efe7; text-align: start; max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.scr-paired { padding: 0; }
.scr-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.scr-media { max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; object-fit: contain; }
.scr-cloud-touch { position: absolute; inset: 0; touch-action: none; cursor: default; } /* the cloud page driven from the screen itself, while its person allows */
.cb-stage.cb-tall { margin-inline: auto; } /* a phone's page: tall, as on a phone (its width set from its shape) */
.scr-text { font-size: clamp(2rem, 6vw, 6rem); font-weight: 800; line-height: 1.15; padding: 4vw; overflow-wrap: anywhere; }
.scr-audio p:first-child { font-size: 8rem; margin: 0; }
.scr-idle { position: relative; }
.scr-idle[hidden] { display: none; }
.scr-clock { font-size: clamp(4rem, 16vw, 14rem); font-weight: 200; margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.scr-name { font-size: clamp(1.2rem, 3vw, 2.4rem); margin: 0; font-weight: 700; }
.scr .muted { color: #9fb7ae; }
.scr-hint { margin-top: 2em; }
.scr-progress { position: absolute; inset: auto 10% 8% 10%; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .18); }
.scr-progress span { display: block; height: 100%; width: 0; border-radius: 3px; background: #3cc497; transition: width .2s; }
.scr-note { position: absolute; inset: auto 0 14% 0; font-size: 1.3rem; }
.scr-full { position: absolute; inset: 16px 16px auto auto; margin: 0; font-size: .9rem; }
.scr-corner { position: absolute; inset: auto auto 16px 16px; opacity: .6; font-size: .9rem; }
.scr-stage:not(:empty) ~ .scr-corner, .scr-stage:not(:empty) ~ .scr-full { display: none; }
/* The phone's remote */
.scr-now { font-weight: 600; }
.scr-send { width: 100%; }
.scr-remote input[type=range] { width: 100%; }
.scr-remote .row { align-items: center; gap: 12px; margin-block: 6px; }
.scr-list a small { display: block; color: var(--muted); }
.scr-caster { position: absolute; inset: 16px auto auto 16px; margin: 0; padding: 4px 12px; border-radius: 999px; background: rgb(0 0 0 / .45); font-size: .95rem; }
.scr-caster:empty { display: none; }
.scr-live { flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.scr-people li { align-items: center; }
/* The screen's sound button: big and in the middle, for a finger or a TV remote's OK */
.scr-unlock { position: absolute; inset: auto 0 5% 0; margin-inline: auto; width: min(34rem, 86vw); display: grid; justify-items: center; gap: 6px; padding: 22px 28px;
  border: 0; border-radius: 22px; background: #3cc497; color: #06261a; font: inherit; cursor: pointer; box-shadow: 0 12px 40px rgb(0 0 0 / .45); z-index: 2; }
.scr-unlock span { font-size: 2.6rem; line-height: 1; }
.scr-unlock strong { font-size: clamp(1.4rem, 3vw, 2.2rem); }
.scr-unlock small { font-size: clamp(.95rem, 1.6vw, 1.15rem); color: #0b3d2e; }
.scr-paired:has(.scr-unlock:not([hidden])) .scr-idle { padding-bottom: clamp(9rem, 26vh, 14rem); } /* the name and owner stay above the button */
.scr-unlock:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
.scr-unlock[hidden] { display: none; }
/* A modal dialog (ui.ts modal) */
.modal { width: min(32rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 18px; background: var(--surface); color: var(--fg); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
.modal::backdrop { background: rgb(0 0 0 / .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 1.15rem; }
.scr-link-url { width: 100%; font-family: ui-monospace, monospace; font-size: .9rem; margin-block: 6px 10px; }
.scr-link-send { flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.scr-links li, .scr-people li { align-items: center; gap: 8px; }
.scr-links small { display: block; color: var(--muted); }
/* The join code on the screen: top right, readable across a room, with a QR to the code filled in */
.scr-code { position: absolute; inset: 16px 16px auto auto; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: rgb(0 0 0 / .55); text-align: start; z-index: 1; }
.scr-code[hidden] { display: none; }
.scr-code-where { margin: 0; font-size: clamp(.95rem, 1.5vw, 1.3rem); color: #cfe7df; }
.scr-code-value { margin: 2px 0 0; font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: #fff; }
.scr-code-qr svg { width: clamp(84px, 11vw, 140px); height: auto; border-radius: 8px; display: block; }
.scr-stage:not(:empty) ~ .scr-code { transform: scale(.75); transform-origin: top right; opacity: .9; } /* smaller over what is shown */
.scr-code-big { font-size: 1.4rem; letter-spacing: .1em; }
.scr-code-input { text-transform: uppercase; letter-spacing: .15em; font-size: 1.6rem; font-weight: 700; text-align: center; }
/* The cloud browser: an address bar, the live page (as large as fits, its shape kept), tools */
.cb-bar { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; }
.cb-bar[hidden] { display: none; }
.cb-bar input { flex: 1; min-width: 0; height: 36px; min-height: 36px; padding: 4px 8px; font-size: .9rem; }
.cb-bar .icon-btn, .cb-bar .button.small { width: auto; min-width: 36px; height: 36px; min-height: 36px; padding: 0 6px; font-size: 1rem; } /* slim: under the phone's own browser bar */
.cb-title { margin: 0 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.cb-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.cb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cb-touch { position: absolute; inset: 0; touch-action: none; cursor: default; outline: none; }
.cb-keys { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cb-tools, .cb-cast { gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cb-cast[hidden] { display: none; }
main:has(.cb-stage) { max-width: 72rem; } /* wider on a computer: the page is 1280 wide */

/* The cloud browser's AI agent (docs/agent.md) */
.cb-agent-steps { margin: .5rem 0; padding-inline-start: 1.25rem; max-height: 14rem; overflow-y: auto; }
.cb-agent-steps li { margin: .2rem 0; }
.cb-agent-task { font-weight: 600; list-style: none; margin-inline-start: -1.25rem; }
.cb-agent-end { list-style: none; margin-inline-start: -1.25rem; font-weight: 600; }
.cb-talk.listening, .cb-bar .listening { background: var(--danger, #c0392b); color: #fff; }
.cb-talk, .cb-bar button { touch-action: none; user-select: none; -webkit-user-select: none; }

/* The cloud browser's page has no title bar (more room for the page); the tabs stay, for the way around. */
body:has(.cb) header.bar { display: none; }
main:has(.cb-stage) { padding: .25rem .375rem calc(48px + 3rem); }
main:has(.cb-stage) .cb-tools, main:has(.cb-stage) .cb-bar { margin-block: .25rem; }
.cb-agent { padding: .5rem .75rem; margin-block: .25rem; }

/* A cloud browser's bar on a screen (docs/screens.md): its page, and back, forward, reload, an address while allowed. */
.scr-cloud-wrap { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr-cloud-box { position: relative; flex: 1; min-height: 0; }
.scr-cloud-box .scr-media { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.scr-cloud-bar { display: flex; gap: 6px; align-items: center; padding: 3px 8px; background: #111; color: #fff; font-size: .85rem; }
.scr-cloud-bar[hidden] { display: none; }
.scr-cloud-bar input { min-width: 0; height: 28px; min-height: 28px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px; padding: 2px 8px; font-size: .85rem; }
.scr-cloud-bar .icon-btn { color: #fff; width: 34px; height: 30px; min-height: 30px; padding: 0; font-size: 1rem; }
.scr-cloud-agent { padding: 4px 10px; background: #1b2a3a; color: #fff; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-cloud-agent[hidden] { display: none; }
.scr-cloud-bar .icon-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .25); border-radius: 6px; }
.scr-cloud-title { max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; font-size: .9em; }

/* The picture off on this phone (it saves data): the page stays drivable, as a touchpad. */
.cb-stage.cb-nopicture .cb-video { visibility: hidden; }
.cb-stage.cb-nopicture::after { content: attr(data-off); position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; font-size: .95rem; pointer-events: none; text-align: center; padding: 1rem; }

/* Printed cards (docs/getfree.md): each piece sized in millimetres, its background running 3 mm past the cut (the
   bleed), its words and QR inside a further 3 mm safe margin. Three looks: clean (white), bold (brand green), night. */
.pc { position: relative; box-sizing: border-box; padding: calc(var(--bleed) + 3mm); overflow: hidden; border-radius: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif; line-height: 1.2; }
.pc-clean { background: #ffffff; color: #14201b; }
.pc-bold { background: #0b6e4f; color: #ffffff; }
.pc-night { background: #14201b; color: #ffffff; }
.pc-safe { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6mm; text-align: center; }
.pc-row { display: flex; align-items: center; gap: 3mm; width: 100%; height: 100%; }
.pc-col { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.2mm; flex: 1; min-width: 0; text-align: start; }
.pc-say { margin: 0; }
.pc-head { font-size: 4.2mm; font-weight: 800; }
.pc-small { font-size: 2.6mm; opacity: .9; }
.pc-tiny { font-size: 1.9mm; font-weight: 700; }
.pc-label { margin: 0; font-size: 3.6mm; font-weight: 700; overflow-wrap: anywhere; }
.pc-big { font-size: 7mm; }
.pc-note { margin: 0; font-size: 2.6mm; font-style: italic; overflow-wrap: anywhere; }
.pc-site { margin: 0; font-size: 2.4mm; letter-spacing: .02em; opacity: .85; }
.pc-qr { width: 34mm; height: 34mm; border-radius: 1.2mm; flex: none; }
.pc-brand .logo { gap: 1mm; font-size: 3mm; }
.pc-brand .logo-mark { width: 4.5mm; height: 4.5mm; }
.pc-art { width: 64mm; height: auto; border-radius: 2mm; }
.pc-bold .pc-head, .pc-night .pc-head { color: #ffffff; }
.pc-clean .pc-head { color: #0b6e4f; }
/* Each piece's own sizes */
.pc-door-sticker .pc-qr { width: 38mm; height: 38mm; }
.pc-door-plaque .pc-safe { justify-content: space-between; }
.pc-door-plaque .pc-qr { width: 46mm; height: 46mm; }
.pc-door-plaque .pc-head { font-size: 6.5mm; }
.pc-lost-fob .pc-qr { width: 21mm; height: 21mm; }
.pc-lost-fob .pc-safe { gap: .6mm; }
.pc-lost-fob { padding: calc(var(--bleed) + 1.5mm); }
.pc-hole .pc-safe { padding-left: 9mm; } /* clear of the strap's hole, always at the left edge (where it is punched) */
.pc-findme-wallet .pc-qr, .pc-findme-bag .pc-qr, .pc-lost-tag .pc-qr { width: 36mm; height: 36mm; }
.pc-steps { gap: 1.4mm; }
.pc-steps .pc-small { white-space: pre-line; }
/* The preview: a piece as cut, scaled to fit; the hidden bleed; drawing pieces off-screen for printing */
.pc-preview { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-preview figcaption { font-size: .85rem; color: var(--muted); }
.pc-window { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); background: #fff; }
.pc-window.pc-round { border-radius: 50%; }
.pc-scaled { position: absolute; transform-origin: 0 0; }
.pc-offscreen { position: fixed; left: -10000px; top: 0; }

/* Get one free (docs/getfree.md): the product's page, its live cards, the picks */
.gf-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.gf-art { width: min(100%, 320px); border-radius: 16px; }
.gf-hero h2 { margin: 0 0 6px; }
.gf-steps { margin: 8px 0 0; padding-inline-start: 1.2rem; }
.gf-make { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .gf-make { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; } main:has(.gf-make) { max-width: 72rem; } }
.gf-cards { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-end; padding: 8px 0; }
.gf-choice { border: 0; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gf-choice legend { font-weight: 600; margin-bottom: 6px; }
.gf-option { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.gf-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.gf-style-bold { background: #0b6e4f; color: #fff; } .gf-style-night { background: #14201b; color: #fff; } .gf-style-clean { background: #fff; color: #14201b; }
.gf-others { margin-top: 18px; text-align: center; }
.gf-pick { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gf-pick-one { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; height: 100%; }
.gf-pick-one img { width: 100%; border-radius: 12px; }
.gf-pick-one .button { align-self: flex-start; margin-top: auto; }
.gf-get { flex-wrap: wrap; gap: 8px; }
.gf-option input { width: auto; min-height: 0; margin: 0; } /* a radio, not a text field's full width */
.pc-punch { position: absolute; left: calc(var(--bleed) + 4.5mm); top: calc(50% - 2.5mm); width: 5mm; height: 5mm; border-radius: 50%; background: #ffffff; border: .3mm solid rgba(0, 0, 0, .35); } /* where the strap's hole is punched */

/* Getting started (docs/phases.md) */
.start-steps { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.start-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.start-step h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.start-step.done { opacity: .85; }
.start-n { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--line); }
.start-step.done .start-n { background: var(--accent); color: var(--accent-fg); }
.start-step > div { flex: 1; min-width: 0; }
.start-go { margin-top: 8px; align-items: center; gap: 12px; }
.verify-first { display: grid; gap: 10px; }
.cb-memory-box { margin-top: 8px; }
.cb-memory-box summary { cursor: pointer; font-weight: 600; }
.cb-memory small { display: block; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Anonymous complaints (complaint.ts) */
.cp-anon { font-size: .92rem; }
.cp-form textarea { width: 100%; }
.cp-cats { flex-wrap: wrap; }
.cp-cats .chip input { accent-color: var(--accent); }
.cp-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-block: 8px; }
.cp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-thumbs figure { margin: 0; position: relative; }
.cp-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.cp-thumbs button { position: absolute; inset-block-start: -6px; inset-inline-end: -6px; background: var(--surface); border-radius: 50%; min-height: 0; padding: 2px 6px; }
.cp-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; background: color-mix(in srgb, var(--accent) 12%, transparent); white-space: nowrap; }
.cp-status.cp-new { background: #f3c969; color: #14201b; }
.cp-status.cp-resolved { background: #cfe3da; color: #0b6e4f; }
.cp-thread { list-style: none; padding: 0; display: grid; gap: 10px; }
.cp-thread li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; max-width: 92%; }
.cp-thread li.theirs { justify-self: start; }
.cp-thread li.mine { justify-self: end; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.cp-thread small { display: block; opacity: .6; margin-top: 4px; }
.cp-photo { max-width: 100%; border-radius: 8px; display: block; }
.cp-thread audio { width: 100%; }
.cp-move { flex-wrap: wrap; overflow: visible; }
.cp-move .chip[aria-pressed="true"], .cb-memory-box .chip[aria-pressed="true"], details.card .chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Every other kind's printed pieces (printcards.ts layouts): sizes follow the piece (--qr, --k). */
.pc-l-sticker .pc-qr, .pc-l-card .pc-qr, .pc-l-sign .pc-qr, .pc-l-bumper .pc-qr { width: var(--qr); height: var(--qr); }
.pc-l-sticker .pc-head { font-size: calc(4.2mm * var(--k)); }
.pc-l-sticker .pc-label { font-size: calc(3.4mm * var(--k)); }
.pc-l-card .pc-head { font-size: calc(3.8mm * var(--k)); }
.pc-l-card .pc-small { font-size: calc(2.3mm * var(--k)); }
.pc-l-sign .pc-safe { justify-content: space-between; padding-block: calc(4mm * var(--k)); }
.pc-l-sign .pc-head { font-size: calc(6.5mm * var(--k)); }
.pc-l-sign .pc-big { font-size: calc(7mm * var(--k)); }
.pc-l-sign .pc-small { font-size: calc(3.6mm * var(--k)); }
.pc-l-sign .pc-site { font-size: calc(2.8mm * var(--k)); }
.pc-l-sign .pc-art { width: calc(64mm * var(--k)); }
.pc-l-sign .pc-brand .logo { font-size: calc(3mm * var(--k)); }
.pc-l-bumper .pc-row { gap: 8mm; padding-inline: 4mm; }
.pc-l-bumper .pc-col { gap: 3mm; }
.pc-l-bumper .pc-head { font-size: calc(5.6mm * var(--k) * .75); line-height: 1.25; }
.pc-l-bumper .pc-site { font-size: 5mm; margin-top: 2mm; }
