/* SamenOpPad - styles. Large text, large buttons, high contrast. */
:root {
  --primary: #1f57a8;
  --primary-strong: #17448a;
  --on-primary: #fff;
  --primary-soft: #e3edfb;
  --primary-soft-2: #d3e2f7;
  --link: #1f57a8;
  --bg: #f4f7fc;
  --surface: #fff;
  --surface-2: #eef2f8;
  --text: #14213d;
  --muted: #4b5565;
  --border: #d3dce8;
  --success: #3e9e4b;
  --success-soft: #e2f3e2;
  --danger: #c62828;
  --badge: #e53935;
  --warn-soft: #fff4d6;
  --header: #1f57a8;
  --shadow: 0 2px 8px rgba(20, 33, 61, 0.08);
  --radius: 18px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --lh: 1.5;
  color-scheme: light;
}
html[data-theme='donker'] {
  --primary: #2f6bc6;
  --primary-strong: #2558a6;
  --primary-soft: #1e2f4d;
  --primary-soft-2: #273b5e;
  --link: #9cc0f5;
  --bg: #0e1626;
  --surface: #17223a;
  --surface-2: #1e2b45;
  --text: #eef2f8;
  --muted: #b5c0d2;
  --border: #2c3b58;
  --success: #58b866;
  --success-soft: #1d3524;
  --warn-soft: #3a321a;
  --header: #17335f;
  --shadow: none;
  color-scheme: dark;
}
html[data-size='0'] { font-size: 100%; }
html[data-size='1'] { font-size: 112.5%; }
html[data-size='2'] { font-size: 131.25%; }
html[data-font='duidelijk'] {
  --font: Verdana, Tahoma, 'DejaVu Sans', sans-serif;
  --lh: 1.7;
  letter-spacing: 0.02em;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: var(--lh);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
html.voice-on body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.voice-on input, html.voice-on textarea { -webkit-user-select: text; user-select: text; }
h1, h2, h3, p { margin: 0; }
a { color: var(--link); }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
[tabindex='-1']:focus { outline: none; }
.icon { width: 1.5em; height: 1.5em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { max-width: 540px; margin: 0 auto; min-height: 100dvh; background: var(--bg); }
.screen { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--header); color: #fff; padding-top: env(safe-area-inset-top); }
.bar-inner { display: flex; align-items: center; gap: 4px; min-height: 64px; padding: 0 8px; }
.bar h1 { flex: 1; font-size: 1.25rem; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-btn { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.hdr-btn:active { background: rgba(255, 255, 255, 0.18); }
.hdr-gap { width: 52px; }
.hdr-right { display: flex; min-width: 52px; justify-content: flex-end; }

/* ---------- Content ---------- */
.content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.content.has-nav { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.content.has-chatbar { padding-bottom: 170px; }
.content.has-fab { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.content.has-fab .sticky-action { position: static; }
.lead { font-size: 1.05rem; color: var(--muted); }
.section-title { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 20px; border-radius: 16px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  background: var(--surface-2); color: var(--text);
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:active { background: var(--primary-strong); }
.btn-outline { background: var(--surface); border-color: var(--primary); color: var(--link); }
.btn-ghost { background: transparent; color: var(--link); }
.btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-xl { min-height: 64px; font-size: 1.25rem; border-radius: 20px; }
.btn-sm { min-height: 48px; padding: 8px 14px; font-size: 0.95rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; color: var(--link); text-decoration: underline; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--warn-soft); border: 1px solid var(--border); }
.notice .icon { margin-top: 2px; }
.notice-info { background: var(--primary-soft); }
.notice-ok { background: var(--success-soft); }
.notice p { margin-top: 2px; }
.badge { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; background: var(--badge); color: #fff; font-size: 0.85rem; font-weight: 700; }

/* ---------- Avatars ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--av, #5b7db1); color: #fff; font-weight: 700; object-fit: cover; }
.avatar-sm { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-md { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar-lg { width: 120px; height: 120px; font-size: 2.2rem; }
.avatars { display: flex; align-items: center; }
.avatars > * { margin-left: -10px; border: 3px solid var(--surface); }
.avatars > :first-child { margin-left: 0; }
.avatar-more { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 700; }

/* ---------- Welcome ---------- */
.welcome-wrap { padding: 0; position: relative; overflow: hidden; }
.welcome { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 24px 160px; gap: 14px; }
.welcome-top { align-self: flex-end; color: var(--link); min-height: 52px; }
.logo { width: min(240px, 70%); height: auto; margin-top: 8px; }
.brand { font-size: 2.4rem; font-weight: 800; color: var(--link); letter-spacing: -0.01em; }
.tagline { font-size: 1.35rem; margin-bottom: 16px; }
.welcome .stack { width: 100%; max-width: 340px; }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; }
.hills svg { width: 100%; height: 100%; display: block; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; font-size: 1.05rem; padding: 0; }
.field input, .field textarea {
  font: inherit; font-size: 1.1rem; min-height: 56px; padding: 12px 14px; border-radius: 14px;
  border: 2px solid var(--border); background: var(--surface); color: var(--text); width: 100%;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.hint { color: var(--muted); font-size: 0.95rem; }
.form-error { color: var(--danger); font-weight: 700; min-height: 1em; }
.form-error:empty { display: none; }
.loc { gap: 10px; }
.loc-status { font-weight: 600; }
.loc-status:empty { display: none; }
.loc-status.ok { color: var(--success); }
.loc-status.err { color: var(--danger); }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; min-height: 48px; }
.check input { width: 28px; height: 28px; accent-color: var(--primary); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px; border-radius: 24px; border: 2px solid var(--border); background: var(--surface); font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:checked + span::before { content: '\2713'; margin-right: 6px; }
.chip input:focus-visible + span { outline: 3px solid #f5a623; outline-offset: 2px; }
.add-row { display: flex; gap: 8px; align-items: stretch; margin-top: 4px; }
.add-row .grow { flex: 1; min-width: 0; }
.add-btn { flex: none; padding: 8px 14px; }
@media (max-width: 380px) { .add-btn span { display: none; } }
.tag { display: inline-block; padding: 4px 12px; border-radius: 14px; background: var(--primary-soft); font-weight: 600; font-size: 0.9rem; }

/* ---------- Home ---------- */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: calc(8px + env(safe-area-inset-top)); }
.home-head h1 { font-size: 1.7rem; font-weight: 800; }
.home-head .hdr-btn { color: var(--text); }
.home-head .hdr-btn .icon { width: 32px; height: 32px; }
.next-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--primary-soft); color: var(--text); text-decoration: none; }
.next-card .icon-lg { width: 48px; height: 48px; color: var(--link); }
.next-card .grow { flex: 1; }
.next-card strong { display: block; font-size: 1.15rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 136px; padding: 14px; border-radius: var(--radius); background: var(--primary-soft); color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 1.1rem; text-align: center;
}
.tile:active { background: var(--primary-soft-2); }
.tile .icon { width: 52px; height: 52px; color: var(--link); }
.tile .badge { position: absolute; top: 10px; right: 10px; }
.suggest { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.suggest-head { display: flex; gap: 12px; align-items: center; }

/* ---------- Bottom navigation ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.bottom-nav a[aria-current='page'] { color: var(--link); }
.bottom-nav a[aria-current='page']::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 4px; border-radius: 0 0 4px 4px; background: var(--primary); }
.bottom-nav .badge { position: absolute; top: 6px; left: 55%; min-width: 22px; height: 22px; font-size: 0.75rem; }

/* ---------- Activities ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; background: var(--surface-2); border-radius: 20px; }
.tabs a { display: grid; place-items: center; min-height: 52px; border-radius: 16px; text-decoration: none; color: var(--text); font-weight: 700; }
.tabs a[aria-selected='true'] { background: var(--primary); color: #fff; }
.tabs-3 { grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; }
.tabs-3 a { font-size: 0.95rem; text-align: center; padding: 4px; line-height: 1.2; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.list > li.card .act-item { padding-bottom: 6px; }
.search-box[hidden] { display: none; }
.act-item { display: flex; gap: 14px; align-items: center; padding: 12px; color: var(--text); text-decoration: none; }
.act-thumb { width: 96px; height: 84px; flex: none; border-radius: 14px; overflow: hidden; }
.art { display: block; width: 100%; height: 100%; }
.act-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.act-info strong { font-size: 1.1rem; line-height: 1.25; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.95rem; }
.meta .icon { width: 1.1em; height: 1.1em; }
.joined-tag { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 12px; background: var(--success-soft); color: var(--success); font-weight: 700; font-size: 0.85rem; }
.chev { color: var(--muted); }
.hero { margin: -16px -16px 0; height: 210px; overflow: hidden; }
.detail-title { font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.info-rows { display: flex; flex-direction: column; gap: 10px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; }
.info-row .icon { color: var(--link); margin-top: 1px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }
.sticky-action { position: sticky; bottom: 12px; margin-top: auto; }

/* ---------- Confirmation ---------- */
.confirm { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 24px; }
.confirm-check { width: 128px; height: 128px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; }
.confirm-check .icon { width: 76px; height: 76px; stroke-width: 3; }
.confirm h1 { font-size: 1.9rem; font-weight: 800; }
.confirm p { font-size: 1.2rem; }
.confirm .stack { width: 100%; max-width: 340px; margin-top: 12px; }

/* ---------- Contacts ---------- */
.person-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.person-row .name { flex: 1; min-width: 0; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 12px; }
.person-row .name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.person-row.plain { color: var(--text); text-decoration: none; }
.person-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-row .grow strong { font-size: 1.05rem; }
.person-row .grow small { color: var(--muted); font-size: 0.9rem; }
.participants { gap: 8px; }
.participants .person-row { flex-wrap: wrap; row-gap: 8px; }
.participants .person-row .name { flex: 1 1 190px; }
.participants .person-row > .btn, .participants .person-row > .hint { margin-left: auto; }
.avatar-anon { background: var(--surface-2); border: 2px solid var(--border); }
.person-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; }
.person-actions .btn { flex: 1; }
.profile-top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 8px; }
.profile-top h2 { font-size: 1.6rem; font-weight: 800; }
.avatar-edit { position: relative; display: inline-block; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.sheet { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 24px; padding: 22px 18px; background: var(--surface); color: var(--text); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.sheet::backdrop { background: rgba(10, 20, 40, 0.55); }
.sheet h2 { font-size: 1.35rem; font-weight: 800; text-align: center; margin-bottom: 16px; }
.photo-preview { display: block; width: 220px; height: 220px; margin: 0 auto 18px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-soft); }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--bg); background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.avatar-edit .cam .icon { width: 24px; height: 24px; }

/* ---------- Menu list ---------- */
.menu { list-style: none; margin: 0; padding: 0; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); font: inherit; font-size: 1.1rem; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.menu li:last-child a, .menu li:last-child button { border-bottom: 0; }
.menu .icon:first-child { color: var(--link); }
.menu .grow { flex: 1; }

/* ---------- Settings ---------- */
.setting { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting .grow { flex: 1; font-weight: 600; }
.setting small { display: block; font-weight: 400; color: var(--muted); }
.switch { position: relative; width: 64px; height: 36px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 18px; background: #9aa6b8; transition: background 0.2s; }
.switch .track::after { content: ''; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(28px); }
.switch input:focus-visible + .track { outline: 3px solid #f5a623; outline-offset: 2px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; padding: 0 14px 14px; }
.seg button { min-height: 56px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: #fff; }
.seg-label { padding: 14px 14px 10px; font-weight: 700; }

/* ---------- Help ---------- */
.help-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 0; }
.help-hero .icon { width: 84px; height: 84px; color: var(--link); }
.help-hero h2 { font-size: 1.6rem; font-weight: 800; }
.help-btn { flex-direction: column; gap: 0; }
.help-btn .line { display: inline-flex; gap: 10px; align-items: center; }
.help-btn small { font-weight: 400; }
.version { text-align: center; color: var(--muted); font-size: 0.9rem; padding: 4px 0 8px; }
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.install-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.install-steps p { font-size: 1.1rem; }
.install-steps .hint { font-size: 0.95rem; margin-top: 4px; }
.step-nr { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.key-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0 4px; border-radius: 10px; background: var(--primary-soft); color: var(--link); vertical-align: middle; }
.key-icon .icon { width: 24px; height: 24px; }
.steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Messages ---------- */
.conv { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--text); text-decoration: none; }
.conv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-info strong { font-size: 1.1rem; }
.conv-info .preview { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-size: 1.1rem; }
.msg.me .bubble { background: var(--primary-soft); border-color: transparent; }
.bubble time { display: block; text-align: right; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.chat-day { align-self: center; font-size: 0.85rem; color: var(--muted); }
.chatbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 540px; z-index: 30; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.quick button { flex: none; min-height: 44px; padding: 6px 14px; border-radius: 22px; border: 2px solid var(--primary); background: var(--surface); color: var(--link); font: inherit; font-weight: 600; cursor: pointer; }
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input { flex: 1; min-width: 0; min-height: 56px; padding: 10px 16px; border-radius: 28px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 1.05rem; }
.round-btn { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--primary); color: #fff; cursor: pointer; }
.round-btn.alt { background: var(--surface-2); color: var(--link); }

/* ---------- Voice ---------- */
.mic-fab { position: fixed; right: max(16px, calc(50% - 254px)); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 35; width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--success); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); cursor: pointer; }
.mic-fab.no-nav { bottom: calc(20px + env(safe-area-inset-bottom)); }
.mic-fab .icon { width: 34px; height: 34px; }
.voice-hint { font-size: 0.95rem; }
.voice-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10, 20, 40, 0.6); display: grid; place-items: center; padding: 24px; }
.voice-overlay[hidden] { display: none; }
.voice-card { width: 100%; max-width: 420px; background: var(--surface); color: var(--text); border-radius: 24px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.voice-pulse { width: 96px; height: 96px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; animation: pulse 1.4s infinite; }
.voice-pulse .icon { width: 48px; height: 48px; }
.vo-state { font-size: 1.4rem; font-weight: 800; }
.vo-text { font-size: 1.15rem; min-height: 1.5em; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 158, 75, 0.55); } 70% { box-shadow: 0 0 0 22px rgba(62, 158, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 158, 75, 0); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translate(-50%, -20px); width: calc(100% - 32px); max-width: 500px; z-index: 90; padding: 16px 18px; border-radius: 16px; background: #14213d; color: #fff; font-weight: 600; font-size: 1.05rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
