/* HayAICall — design system
   Tokens first; every component below uses only these. */

:root {
  /* Brand tokens (colors, fonts, radii, shadows) come from web/tokens.css; app-only values below. */
  --bubble-ai: var(--brand-soft);
  --bubble-them: var(--surface-2);
  --gutter: 16px;
  --col: 560px;
  --wide: 1180px;
  --side: 248px;
}
html[lang="vi"] body { font-family: var(--font-vi); }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ja { font-family: var(--font-ja); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- app shell ---------- */

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner {
  max-width: var(--col); margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-name b { color: var(--brand); font-weight: 700; }
.topbar .spacer { flex: 1; }

main {
  max-width: var(--col); margin: 0 auto;
  padding: 8px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}
.view { animation: rise .28s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- typography ---------- */

.eyebrow { font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .02em; }
.display { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.lede { color: var(--ink-2); font-size: 16px; }
.h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }

.hero { padding: 12px 0 20px; display: grid; gap: 8px; }

/* ---------- surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
}
.card + .card, .stack > * + * { margin-top: 12px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head .icon-badge { margin-right: 2px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 28px 4px 10px; }

.icon-badge {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
}
.icon-badge.success { background: var(--success-soft); color: var(--success); }
.icon-badge.warn { background: var(--warn-soft); color: var(--warn); }
.icon-badge.danger { background: var(--danger-soft); color: var(--danger); }

.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }

/* ---------- forms ---------- */

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--danger); display: flex; gap: 6px; align-items: center; }

.input, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 16px; /* ≥16px avoids iOS zoom on focus */
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }

.input-group { display: flex; align-items: stretch; }
.input-prefix {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line-strong); border-right: 0;
  border-radius: var(--r-md) 0 0 var(--r-md);
}
.input-group .input { border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 17px; letter-spacing: .02em; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--r-pill); padding: 7px 12px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .15s;
  display: inline-flex; gap: 6px; align-items: center;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.on-behalf {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface-2);
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 14px;
}
.on-behalf .who { line-height: 1.3; min-width: 0; }
.on-behalf .who strong { display: block; font-size: 15px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-cta); }
.btn-primary:hover:not(:disabled) { background: var(--brand-strong); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--ink-2); min-height: 40px; padding: 0 12px; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }
.btn .spinner { width: 18px; height: 18px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.trust {
  display: flex; gap: 8px; align-items: flex-start; justify-content: center;
  margin-top: 14px; font-size: 13px; color: var(--muted); text-align: left;
}
.trust .icon { color: var(--success); margin-top: 1px; }

/* ---------- feedback ---------- */

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: var(--r-md); padding: 12px 14px; font-size: 14px;
  background: var(--danger-soft); color: var(--ink);
}
.alert .icon { color: var(--danger); margin-top: 1px; }
.alert.warn { background: var(--warn-soft); }
.alert.warn .icon { color: var(--warn); }
.alert strong { display: block; }
.alert details { margin-top: 4px; color: var(--muted); font-size: 12.5px; word-break: break-word; }
.alert summary { cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge .dot.live { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton { display: grid; gap: 8px; }
.skeleton i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2));
  background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
.skeleton i:nth-child(2) { width: 92%; } .skeleton i:nth-child(3) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 14px; }
.empty .icon-badge { margin: 0 auto 10px; background: var(--surface-2); color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

/* ---------- recent calls ---------- */

.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 4px; border: 0; background: none; text-align: left; cursor: pointer;
  color: inherit; text-decoration: none;
  border-top: 1px solid var(--line);
}
.list li:first-child .list-item { border-top: 0; }
.list-item:hover .title { color: var(--brand); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.list-item .sub { font-size: 13px; color: var(--muted); }
.list-item .chev { color: var(--muted); }

/* ---------- live call ---------- */

.call-hero { text-align: center; padding: 20px 0 8px; display: grid; justify-items: center; gap: 10px; }
.call-number { font-size: 28px; font-weight: 700; letter-spacing: .01em; }
.call-goal { color: var(--muted); font-size: 14px; max-width: 34ch; }
.call-timer { font-size: 15px; color: var(--ink-2); }

.orb {
  position: relative; width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center; margin: 6px 0 4px;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--brand) 55%, white), var(--brand) 70%);
  color: #fff; box-shadow: var(--shadow-cta);
}
.orb::before, .orb::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: 0;
}
.orb[data-state="dialing"]::before, .orb[data-state="ringing"]::before { animation: ripple 1.6s ease-out infinite; }
.orb[data-state="speaking"]::before { animation: ripple 1.1s ease-out infinite; }
.orb[data-state="speaking"]::after { animation: ripple 1.1s ease-out .55s infinite; }
.orb[data-state="listening"], .orb[data-state="opening"] { animation: breathe 2.4s ease-in-out infinite; }
.orb[data-state="thinking"] { animation: breathe 1s ease-in-out infinite; }
.orb[data-state="ended"] { background: var(--surface-2); color: var(--muted); box-shadow: none; }
@keyframes ripple { from { opacity: .55; transform: scale(.92); } to { opacity: 0; transform: scale(1.35); } }
@keyframes breathe { 50% { transform: scale(1.04); } }

.ai-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); min-height: 22px; }
.bars { display: inline-flex; gap: 3px; align-items: center; height: 14px; }
.bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand); animation: bar .9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .15s; } .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.feed { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.feed-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px 8px; }
.bubble { max-width: 86%; display: grid; gap: 3px; }
.bubble .who { font-size: 12px; font-weight: 600; color: var(--muted); }
.bubble .text {
  padding: 10px 14px; border-radius: 16px;
  font-family: var(--font-ja); font-size: 15.5px; line-height: 1.6;
}
.bubble.them { align-self: flex-start; }
.bubble.them .text { background: var(--bubble-them); border-top-left-radius: 6px; }
.bubble.ai { align-self: flex-end; justify-items: end; }
.bubble.ai .text { background: var(--bubble-ai); border-top-right-radius: 6px; }
.bubble.partial .text { color: var(--muted); }
.bubble .cut { font-size: 12px; color: var(--muted); }

#view-live { padding-bottom: 132px; }
.call-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 28px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 62%, color-mix(in srgb, var(--bg) 0%, transparent));
  display: grid; justify-items: center; gap: 6px;
  pointer-events: none;
}
.call-actions > * { pointer-events: auto; }
#live-actions[hidden] + #live-terminal { margin-top: 20px; }
.end-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--danger); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(220, 58, 64, 0.35); transition: transform .08s;
}
.end-btn:active { transform: scale(.95); }
.end-btn:disabled { opacity: .5; }
.end-btn .icon { width: 28px; height: 28px; }

/* ---------- result ---------- */

.result-head { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 16px 0 20px; }
.result-head .icon-badge { width: 56px; height: 56px; border-radius: 18px; }
.result-head .icon-badge .icon { width: 28px; height: 28px; }
.meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.appt {
  background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #7c3aed));
  color: #fff; border: 0;
}
.appt .eyebrow { color: rgba(255, 255, 255, .8); }
.appt-date { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-top: 6px; }
.appt-time { font-size: 18px; font-weight: 600; opacity: .95; }
.appt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.appt .badge { background: rgba(255, 255, 255, .18); color: #fff; }
.appt .btn-secondary { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); min-height: 40px; font-size: 14px; padding: 0 14px; }
.appt .btn-secondary:hover { background: rgba(255, 255, 255, .24); }
.appt-place { margin-top: 4px; font-size: 14px; opacity: .9; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.checklist .icon { margin-top: 2px; color: var(--success); }
.checklist.warn .icon { color: var(--warn); }
.checklist.arrows .icon { color: var(--brand); }

.prose { font-size: 15.5px; color: var(--ink); }
details.more { margin-top: 12px; }
details.more > summary {
  cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary .icon { transform: rotate(180deg); }
details.more > summary .icon { transition: transform .15s; }
details.more .more-body { margin-top: 10px; }

.player { display: flex; align-items: center; gap: 12px; }
.player audio { width: 100%; height: 40px; }

.footer-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- gate ---------- */

.gate { display: grid; gap: 18px; padding-top: 28px; }

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .display { font-size: 32px; }
  .card { padding: 24px; }
}

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

/* Short screens (landscape phones, small laptop panes): keep the live call above the fold. */
@media (max-height: 700px) {
  .call-hero { padding-top: 8px; gap: 6px; }
  .orb { width: 64px; height: 64px; }
  .orb .icon-lg { width: 22px; height: 22px; }
  .call-number { font-size: 22px; }
  #view-live { padding-bottom: 116px; }
  .call-actions { padding-top: 18px; }
  .end-btn { width: 56px; height: 56px; }
}

/* ======================================================================
   v2: auth, navigation, wizard, history
   ====================================================================== */

.boot { min-height: 60vh; display: grid; place-items: center; color: var(--brand); }

/* ---------- top navigation ---------- */
.topnav { display: flex; align-items: center; gap: 4px; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: 12px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600;
}
.navlink:hover { background: var(--surface-2); }
.navlink[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.navlink .label-sm { display: none; }
@media (min-width: 520px) { .navlink .label-sm { display: inline; } }
.avatar-btn { width: 36px; height: 36px; font-size: 13px; text-decoration: none; }
.avatar-btn[aria-current="page"] { box-shadow: var(--ring); }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 24px 0 40px; display: grid; gap: 20px; }
.auth-head { display: grid; gap: 8px; text-align: center; justify-items: center; }
.auth-head .icon-badge { width: 52px; height: 52px; border-radius: 16px; }
.auth-head .icon-badge .icon { width: 26px; height: 26px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--muted); }
.link { color: var(--brand); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.link:hover { text-decoration: underline; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: var(--r-pill); margin: 0 auto; }
.lang-switch button { border: 0; background: none; padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.success-box { background: var(--success-soft); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; }
.success-box .icon { color: var(--success); }

/* ---------- page header ---------- */
.page-head { display: grid; gap: 6px; padding: 12px 0 18px; }
.page-head .display { font-size: 26px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 4px; background: none; border: 0; padding: 0; cursor: pointer; }
.back-link:hover { color: var(--ink); }

/* ---------- step indicator ---------- */
.steps { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.steps li { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.done::before, .steps li.current::before { background: var(--brand); }
.steps li.current { color: var(--brand); }
.steps li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- option cards (step 2) ---------- */
.options { display: grid; gap: 10px; }
@media (min-width: 520px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; border-radius: var(--r-lg); cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.option:hover { border-color: var(--line-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.option:has(input:focus-visible) { box-shadow: var(--ring); }
.option .title { font-weight: 600; font-size: 15px; }
.option .ja { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.option .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- choices (radio pills) ---------- */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; background: var(--surface);
  transition: all .15s;
}
.choice input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 600; }
.choice input:focus-visible + span { box-shadow: var(--ring); }
.choice input:disabled + span { opacity: .5; cursor: not-allowed; }
.choices.stacked { flex-direction: column; }
.choices.stacked .choice span { width: 100%; border-radius: var(--r-md); min-height: 48px; }

/* ---------- share checklist ---------- */
.share-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 10px; }
.share-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px;
  border-top: 1px solid var(--line); cursor: pointer;
}
.share-row:first-child { border-top: 0; }
.share-row input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 2px; }
.share-row .body { flex: 1; min-width: 0; }
.share-row .body strong { display: block; font-size: 14.5px; font-weight: 600; }
.share-row .body span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  font-size: 13px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere;
}
.share-row.locked { cursor: default; }

/* ---------- review list ---------- */
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.kv dd { margin: 0; font-size: 15.5px; font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.kv .ja { font-size: 12px; color: var(--muted); }
.pill-shared { font-size: 12px; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 4px; }
.pill-private { font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- wizard footer ---------- */
.wizard-foot {
  position: sticky; bottom: 0; z-index: 4;
  margin: 18px calc(-1 * var(--gutter)) 0; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, color-mix(in srgb, var(--bg) 0%, transparent));
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
}
.wizard-foot.single { grid-template-columns: 1fr; }

/* ---------- history ---------- */
.group-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 22px 4px 8px; }
.group-title:first-child { margin-top: 4px; }

/* ---------- misc ---------- */
.callout { display: flex; gap: 14px; align-items: flex-start; }
.callout .body { flex: 1; display: grid; gap: 4px; }
.card.cta { background: var(--brand); color: #fff; border: 0; }
.card.cta .lede { color: rgba(255, 255, 255, .88); }
.card.cta .btn { background: #fff; color: var(--brand-strong); box-shadow: none; margin-top: 16px; }
.card.cta .icon-badge { background: rgba(255, 255, 255, .18); color: #fff; }
.card.warn-card { background: var(--warn-soft); border-color: transparent; box-shadow: none; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
input[type="date"].input { min-height: 48px; }

/* ======================================================================
   v3: platform shell — personal (top nav + mobile tab bar) and
   business (sidebar + drawer); business components
   ====================================================================== */

.shell { min-height: 100dvh; }
body[data-ctx="biz"] .topbar-inner,
body[data-ctx="biz"] main { max-width: var(--wide); }
body[data-ctx="personal"] main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.view.wide { max-width: none; }
.btn-icon.menu-btn { border: 0; background: transparent; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.btn-icon.menu-btn:hover { background: var(--surface-2); }

/* context switcher */
.ctx { position: relative; }
.ctx > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 4px 10px 4px 6px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13.5px; font-weight: 600; max-width: 240px;
}
.ctx > summary::-webkit-details-marker { display: none; }
.ctx > summary:hover { border-color: var(--line-strong); }
.ctx > summary .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.ctx-mark.org { background: var(--teal-soft); color: var(--teal); }
.ctx-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px;
}
.ctx-menu .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px 4px; }
.ctx-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.ctx-menu a:hover { background: var(--surface-2); }
.ctx-menu a[aria-current="true"] { background: var(--brand-soft); }
.ctx-menu a .sub { font-size: 12px; color: var(--muted); display: block; }
.ctx-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (max-width: 520px) { .ctx > summary .nm { max-width: 90px; } }

/* personal mobile tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a.new .icon { background: var(--brand); color: #fff; border-radius: 10px; padding: 4px; width: 30px; height: 30px; margin-top: -4px; }
@media (min-width: 760px) { .tabbar { display: none !important; } body[data-ctx="personal"] main { padding-bottom: 48px; } }
@media (max-width: 759px) { body[data-ctx="personal"] .topnav .navlink:not(.keep) { display: none; } }

/* business sidebar */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--side);
  background: var(--surface); border-right: 1px solid var(--line);
  display: none; flex-direction: column; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); overflow-y: auto;
}
body[data-ctx="biz"] .sidebar { display: flex; }
.sidebar .brand { padding: 2px 6px 12px; }
.sidebar .ctx > summary { width: 100%; max-width: none; }
.sidebar .ctx-menu { width: 100%; min-width: 0; }
.side-nav { display: grid; gap: 2px; margin-top: 14px; }
.side-nav .grp { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 10px 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.side-nav a .icon { width: 18px; height: 18px; color: var(--muted); }
.side-nav a:hover { background: var(--surface-2); }
.side-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-nav a[aria-current="page"] .icon { color: var(--brand); }
.side-nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.side-role { font-size: 12px; color: var(--muted); padding: 4px 10px; }
.scrim { position: fixed; inset: 0; z-index: 25; background: rgba(15, 23, 42, .4); }
@media (min-width: 1024px) {
  body[data-ctx="biz"] .shell-main { margin-left: var(--side); }
  body[data-ctx="biz"] .topbar { display: none; }
  body[data-ctx="biz"] main { padding-top: 28px; }
  .scrim { display: none !important; }
}
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.drawer-open .sidebar { transform: none; }
  body[data-ctx="biz"] .topbar #ctx-slot { display: none; }
}

/* page header for wide views */
.bhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 20px; }
.bhead h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.bhead p { color: var(--muted); font-size: 14.5px; margin-top: 4px; max-width: 640px; }
.bhead .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--brand); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.wide .card { padding: 20px; }
.wide .card + .card { margin-top: 16px; }

/* layout grids */
.g2, .g3, .g4 { display: grid; gap: 16px; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .g4 { grid-template-columns: repeat(4, 1fr); } }
.split-main { display: grid; gap: 16px; }
@media (min-width: 1100px) { .split-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }

/* KPIs */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 4px; }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi strong { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; color: var(--muted); }
.kpi.ok strong { color: var(--success); } .kpi.hm strong { color: var(--warn); } .kpi.no strong { color: var(--danger); }
a.kpi { text-decoration: none; color: inherit; } a.kpi:hover { border-color: var(--line-strong); }

/* bar chart */
.bars-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bars-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bars-chart .track { flex: 1; width: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.bars-chart .bar { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: var(--brand-soft); position: relative; min-height: 2px; overflow: hidden; }
.bars-chart .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: inherit; }
.bars-chart .lbl { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bars-chart.dense { gap: 2px; } .bars-chart.dense .lbl { display: none; } .bars-chart.dense .lbl.show { display: block; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* meters */
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.meter.warn i { background: var(--warn); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table .strong { font-weight: 600; }
.table .sub { font-size: 12.5px; color: var(--muted); }
.table select { min-height: 34px; }
@media (max-width: 759px) {
  .table.stack-sm thead { display: none; }
  .table.stack-sm tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table.stack-sm td { border: 0; padding: 0; }
  .table.stack-sm td.hide-sm { display: none; }
}

/* segmented filters */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 200px; position: relative; }
.toolbar .search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.toolbar .search .input { padding-left: 38px; min-height: 40px; }
.select { min-height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); padding: 0 10px; font-size: 14px; }
.select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* tags & badges */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.brand { background: var(--brand-soft); color: var(--brand); }
.tag.teal { background: var(--teal-soft); color: var(--teal); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.ok { background: var(--success-soft); color: var(--success); }

/* template cards */
.tcard { display: grid; gap: 10px; align-content: start; }
.tcard h3 { font-size: 15.5px; font-weight: 700; }
.tcard p { font-size: 13.5px; color: var(--muted); }
.tcard .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tcard .foot { display: flex; gap: 8px; margin-top: 4px; }
.tcard.new { border-style: dashed; box-shadow: none; display: grid; place-items: center; text-align: center; color: var(--muted); text-decoration: none; min-height: 180px; }
.tcard.new:hover { border-color: var(--brand); color: var(--brand); }

/* editors */
.form-section { display: grid; gap: 4px; }
.form-section > h2 { font-size: 16px; font-weight: 700; }
.form-section > p.desc { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.rows { display: grid; gap: 8px; }
.row-edit { display: grid; gap: 8px; grid-template-columns: 1fr; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
@media (min-width: 760px) { .row-edit.fields { grid-template-columns: minmax(0, 2fr) 130px auto auto 36px; align-items: center; } .row-edit.results { grid-template-columns: minmax(0, 1.4fr) 120px minmax(0, 2fr) 36px; align-items: center; } }
.row-edit .input, .row-edit .select { min-height: 38px; font-size: 14px; background: var(--surface); }
.row-edit .opts { grid-column: 1 / -1; }
.row-edit label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; color: var(--ink-2); }
.icon-btn { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }
.add-row { justify-self: start; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); min-height: 46px; align-items: center; }
.taglist:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.taglist .tag { font-size: 13px; padding: 4px 6px 4px 10px; font-weight: 500; }
.taglist .tag button { border: 0; background: transparent; padding: 0; display: grid; cursor: pointer; color: inherit; opacity: .7; }
.taglist input { flex: 1; min-width: 160px; border: 0; outline: none; background: transparent; font-size: 14px; padding: 4px; }
.taglist.allowed .tag { background: var(--success-soft); color: var(--success); }
.taglist.restricted .tag { background: var(--warn-soft); color: var(--warn); }
.taglist.never .tag { background: var(--danger-soft); color: var(--danger); }
.taglist.confirm .tag { background: var(--info-soft); color: var(--info); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { appearance: none; -webkit-appearance: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-strong); position: relative; cursor: pointer; transition: background .15s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(16px); }
.save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: 16px; }
.save-bar .msg { margin-right: auto; font-size: 13.5px; color: var(--muted); }
.locked-rules { display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.locked-rules li { display: flex; gap: 8px; align-items: flex-start; }
.locked-rules .icon { color: var(--muted); margin-top: 2px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
.list-pick { display: grid; gap: 4px; }
.list-pick a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.list-pick a:hover { background: var(--surface-2); }
.list-pick a[aria-current="true"] { border-color: var(--brand); background: var(--brand-soft); }
.list-pick a .sub { font-size: 12.5px; color: var(--muted); }

/* permission matrix */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix .yes { color: var(--success); } .matrix .no { color: var(--line-strong); }

/* approvals & live questions */
.ask-card { border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 10px; }
.ask-card .q { font-size: 16px; font-weight: 600; }
.ask-card .qja { font-size: 13.5px; color: var(--ink-2); font-family: var(--font-ja); }
.ask-card .row { display: flex; gap: 8px; }
.ask-card .row .input { flex: 1; background: var(--surface); }
.ask-card .timer { font-size: 12.5px; color: var(--warn); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.ask-card .quick { display: flex; gap: 6px; flex-wrap: wrap; }
.ask-card .quick button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.qa { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa .a { color: var(--ink-2); }
.appr { display: grid; gap: 12px; }
.appr .top { display: flex; gap: 12px; align-items: flex-start; }
.appr .top .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.appr dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: 13.5px; }
.appr dt { color: var(--muted); } .appr dd { margin: 0; word-break: break-word; }
.appr .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.appr .acts .input { flex: 1; min-width: 180px; min-height: 38px; font-size: 14px; }

/* custom result fields */
.fields-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 640px) { .fields-grid { grid-template-columns: 1fr 1fr; } }
.fields-grid > div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.fields-grid small { font-size: 12px; color: var(--muted); font-weight: 600; }
.fields-grid strong { font-weight: 600; font-size: 15px; word-break: break-word; }
.fields-grid .empty-val { color: var(--muted); font-weight: 400; }

/* misc */
.secret { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; word-break: break-all; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.roadmap { display: grid; gap: 10px; }
.roadmap li { display: flex; gap: 10px; align-items: flex-start; }
.note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.note .icon { margin-top: 2px; }
.quick-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
.quick { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.quick:hover { border-color: var(--brand); }
.quick .icon { color: var(--brand); }
.org-card { display: flex; gap: 12px; align-items: center; }
.org-card .body { flex: 1; min-width: 0; }
.settings-list { display: grid; }
.settings-list > * { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.settings-list > *:first-child { border-top: 0; padding-top: 0; }
.settings-list > *:last-child { padding-bottom: 0; }
.settings-list .k { font-size: 13px; color: var(--muted); }
.navlink { white-space: nowrap; }
@media (min-width: 640px) { .fields-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.matrix td:first-child { min-width: 220px; }

/* ---------- voice settings ---------- */
.voice-status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14px; }
.voice-status.warn { background: var(--warn-soft); }
.voice-status .icon { flex: none; margin-top: 1px; }
.voice-status.warn .icon { color: var(--warn); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.voice-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-top: 12px; }
.voice-box audio { width: 100%; margin-top: 10px; }
.read-script { font-size: 15px; line-height: 1.8; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; margin: 10px 0; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: blink 1.2s ease-in-out infinite; display: inline-block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 12px; cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin-top: 1px; }
