:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f1f1f2;
  --text: #0a0a0a;
  --muted: #6e6e76;
  --border: #e7e7ea;
  --primary: #0a0a0a;
  --on-primary: #ffffff;
  --accent: #3d5afe;
  --on-accent: #ffffff;
  --danger: #d1344b;
  --ok: #1f8a57;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --surface: #131316; --surface-2: #1c1c20; --text: #f5f5f6; --muted: #8d8d96;
    --border: #26262b; --primary: #f5f5f6; --on-primary: #09090b; --accent: #8396ff; --on-accent: #09090b;
    --danger: #ff7a8f; --ok: #6fdba0; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b; --surface: #131316; --surface-2: #1c1c20; --text: #f5f5f6; --muted: #8d8d96;
  --border: #26262b; --primary: #f5f5f6; --on-primary: #09090b; --accent: #8396ff; --on-accent: #09090b;
  --danger: #ff7a8f; --ok: #6fdba0; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-weight: 400; margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .2s, color .2s;
}
h1 { font-size: clamp(1.2rem, 3.6vw, 1.4rem); font-weight: 600; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.025em; }
h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
h2.section { margin: 1.5rem 0 .5rem; font-size: .8rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
a { color: inherit; }
strong { font-weight: 600; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px max(16px, env(safe-area-inset-left)); max-width: 960px; width: 100%; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 600; min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo {
  width: 34px; height: 34px; border-radius: 16.67%; flex: none; display: block;
}
.topbar-right { display: flex; align-items: center; gap: .5rem; }
.chip { background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 500; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
img.theme-dark { display: none; }
:root[data-theme="dark"] img.theme-light { display: none; }
:root[data-theme="dark"] img.theme-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.theme-light { display: none; }
  :root:not([data-theme="light"]) img.theme-dark { display: block; }
}
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

.page { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 8px 16px 32px; display: flex; justify-content: center; align-items: flex-start; }
.card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow);
}
.card.wide { max-width: 720px; }
.center { text-align: center; }
.eyebrow { margin: 0 0 .4rem; color: var(--muted); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.greeting { margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; }
.lead { color: var(--muted); font-size: .95rem; margin: 0 0 1.1rem; }
.muted, .hint { color: var(--muted); font-size: .9rem; }
.hint { text-align: center; margin: 1rem 0 0; }
.link { color: var(--muted); font-size: .9rem; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }

.stack { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--text); padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: transparent; color: var(--text); width: 100%;
}
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.alert { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); padding: 10px 14px; border-radius: 12px; font-size: .9rem; }

.btn {
  font: inherit; font-weight: 500; padding: 11px 20px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 100%;
  transition: transform .05s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.secondary:hover { filter: brightness(.96); }
.pill { font: inherit; font-weight: 500; font-size: .8rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.pill:hover { background: var(--surface-2); }
.section-row { margin: 1.4rem 0 .5rem; align-items: center; }
.section-row h2.section { margin: 0; }
.actions { display: flex; gap: 10px; margin-top: 1.5rem; }
.actions .btn { flex: 1; }
.actions.stacked { flex-direction: column-reverse; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

.list { display: grid; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px;
  background: transparent; border: 1px solid var(--border);
}
.item-main { display: grid; flex: 1; min-width: 0; }
.item-main strong { font-weight: 500; }
.item-main small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.amount { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount.neg { color: var(--danger); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.selectable { cursor: pointer; }
.selectable input { position: absolute; opacity: 0; pointer-events: none; }
.selectable:has(input:checked) { border-color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.selectable:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--muted); flex: none; display: grid; place-items: center; }
.radio .check { border-radius: 50%; }
.selectable input:checked + .check { background: var(--primary); border-color: var(--primary); }
.selectable input:checked + .check::after { content: ""; width: 5px; height: 9px; border: solid var(--on-primary); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.radio input:checked + .check::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--on-primary); transform: none; }

.info { margin-top: 1rem; border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; }
.info summary { cursor: pointer; font-weight: 500; padding: 14px 0; }
.info dl, .kv { margin: 0; }
.info dl { padding-bottom: 12px; }
.info dt, .kv dt { color: var(--muted); font-size: .8rem; margin-top: 10px; }
.info dd, .kv dd { margin: 2px 0 0; font-weight: 500; }
.tag { display: inline-block; background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 12px; margin: 2px 6px 2px 0; font-size: .8rem; font-weight: 500; }
.kv { border: 1px solid var(--border); border-radius: 14px; padding: 2px 14px 12px; }
.mono { font-variant-numeric: tabular-nums; word-break: break-all; }

.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 1rem; }
.country {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; text-decoration: none;
  background: transparent; border: 1px solid var(--border); transition: border-color .15s, transform .1s;
}
.country:hover { border-color: var(--primary); transform: translateY(-1px); }
.country .flag { font-size: 1.5rem; }
.country strong { display: block; line-height: 1.2; font-weight: 500; }
.country small { color: var(--muted); }
.launch { display: grid; gap: 10px; }

.sca { padding-top: 40px; padding-bottom: 36px; }
.app-icon { position: relative; width: 112px; height: 112px; margin: 0 auto 28px; display: grid; place-items: center; }
.phone-logo { position: relative; width: 84px; height: 84px; border-radius: 25%; display: block; box-shadow: var(--shadow); }
.pulse { position: absolute; inset: 0; border-radius: 25%; border: 2px solid var(--primary); opacity: 0; animation: pulse 1.8s ease-out infinite; }
.pulse.p2 { animation-delay: .9s; }
@keyframes pulse { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
#sca-status { transition: color .2s; }
#sca-status.ok { color: var(--ok); font-weight: 600; }
.approved-badge {
  position: absolute; right: 4px; bottom: 4px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ok); color: #fff;
  border: 3px solid var(--surface); transform: scale(0); opacity: 0;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s;
}
.app-icon.approved .approved-badge { transform: scale(1); opacity: 1; }
.app-icon.approved .pulse { animation: none; opacity: 0; }

.result { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; animation: pop .35s ease-out; }
.result.success { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.result.rejected, .result.cancelled { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.center .btn { margin-top: 8px; }

@media (min-width: 700px) {
  .page { padding-top: 24px; }
  .card { padding: 30px 30px; }
  .actions.stacked { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- Cross-document view transitions ---- */
@view-transition { navigation: auto; }
.brand .logo { view-transition-name: brand-logo; }
body.sca .brand .logo { view-transition-name: none; }   /* the big app icon takes over the shared name */
.phone-logo { view-transition-name: brand-logo; }
.card { view-transition-name: card; }
.topbar { view-transition-name: topbar; }
::view-transition-group(brand-logo) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(brand-logo), ::view-transition-new(brand-logo) { height: 100%; object-fit: contain; }
::view-transition-old(card) { animation: vt-out .22s ease-in both; }
::view-transition-new(card) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) .05s both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* launcher config */
.launch fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.launch legend { padding: 0; color: var(--muted); font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.opt { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--primary); }
.opt:has(input:disabled) { cursor: not-allowed; color: var(--muted); }
#lock-account[hidden], #lock-hint[hidden] { display: none; }
#lock-account, #debtor-select { min-width: 0; width: 100%; text-overflow: ellipsis; }
.hint-line { margin: 0; font-size: .85rem; }
details.adv { border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; }
details.adv summary { cursor: pointer; padding: 11px 0; font-weight: 500; font-size: .9rem; }
details.adv .stack { padding-bottom: 14px; }
.launch h2 { font-size: 1.05rem; }

.field select { font: inherit; font-size: .95rem; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); }

fieldset.stack { border: 0; padding: 0; margin: 0; min-width: 0; }
.opts { display: grid; gap: 8px; }
.opts .legend { color: var(--muted); font-size: .85rem; font-weight: 500; }
.field output { color: var(--text); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--primary); padding: 0; border: 0; height: 28px; }

.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover { filter: brightness(.96); }
.langmenu[open] summary svg { transform: rotate(180deg); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px; list-style: none; min-width: 160px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.menu a { display: block; padding: 8px 12px; border-radius: 9px; text-decoration: none; font-size: .9rem; }
.menu a:hover { background: var(--surface-2); }
.menu a[aria-current] { font-weight: 600; }
.menu a[aria-current]::after { content: " ✓"; color: var(--muted); }

.topbar { position: relative; z-index: 20; }

.page { flex-direction: column; align-items: center; }
.below { margin: 18px 0 0; text-align: center; }
.below .link { padding: 8px 12px; }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.passkey-btn { gap: 10px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(10, 4, 18, .55); backdrop-filter: blur(3px); animation: fade .2s ease-out; }
.sheet-backdrop[hidden] { display: none; }
.sheet { width: 100%; max-width: 340px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px 22px 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.sheet-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.sheet h2 { font-size: 1.1rem; margin: 0 0 4px; }
.sheet-account { margin: 0 0 8px; font-weight: 500; font-size: .9rem; }
.sheet-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 18px; font-size: .9rem; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--text); animation: spin .8s linear infinite; }
.sheet.done .spinner { animation: none; border-color: var(--ok); background: var(--ok); }
.sheet.done .sheet-status { color: var(--ok); font-weight: 500; }
.sheet-backdrop.done .spinner { animation: none; border-color: var(--ok); background: var(--ok); }
.sheet-backdrop.done .sheet-status { color: var(--ok); font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.timer { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; }
.timer.low { color: var(--danger); border-color: var(--danger); }
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px; animation: splash-in .7s cubic-bezier(.2, .8, .2, 1); }
.splash-logo { border-radius: 25%; margin-bottom: 18px; box-shadow: var(--shadow); }
.splash h1 { font-size: 1.8rem; margin: 0; letter-spacing: -.035em; }
.splash p { margin: 0; color: var(--muted); }
@keyframes splash-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* demo output */
.output { margin-top: 18px; }
.output h2 { margin-top: 2px; }
.code { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; max-height: 360px; margin: 10px 0; white-space: pre; }
.code.curl { max-height: 160px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tools select { font: inherit; font-size: .85rem; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); max-width: 100%; }
.btn.small { width: auto; padding: 7px 14px; font-size: .85rem; }
.row-actions { display: flex; justify-content: flex-end; }
.req { font-size: .85rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0 0; word-break: break-all; }
.res-status { font-weight: 600; font-size: .85rem; margin: 6px 0 0; }
.res-status.ok { color: var(--ok); } .res-status.err { color: var(--danger); }
.card.wide.output { max-width: 720px; }

.req .pill { white-space: nowrap; flex: none; }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: .85rem; transition: all .3s; }
.steps li b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 3.4em; }
.steps li.now { border-color: var(--text); color: var(--text); }
.steps li.done { border-color: var(--ok); color: var(--text); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.steps li.done b::after { content: " ✓"; color: var(--ok); }

/* ---- /test: launcher next to the test app (phone) ---- */
.test-layout { display: grid; grid-template-columns: minmax(0, 440px) minmax(320px, 1fr); gap: 28px; width: 100%; justify-content: center; align-items: start; }
.test-layout > .card { max-width: none; }
@media (max-width: 860px) { .test-layout { grid-template-columns: minmax(0, 1fr); } .client { position: static; } }
.client { position: sticky; top: 12px; display: grid; gap: 16px; justify-items: center; min-width: 0; }
.phone { width: 330px; max-width: 100%; border: 9px solid var(--text); border-radius: 40px; background: var(--bg); overflow: hidden; box-shadow: var(--shadow); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 4px; font-size: .72rem; font-weight: 600; }
.phone-island { width: 74px; height: 20px; border-radius: 12px; background: var(--text); }
.phone-screen { min-height: 540px; max-height: 640px; overflow-y: auto; padding: 4px 16px 18px; }
.pscreen { display: grid; gap: 12px; align-content: start; }
.pscreen h2 { font-size: 1.1rem; margin: 2px 0 0; }
.pscreen .muted { margin: 0; font-size: .85rem; }
.papp { display: flex; align-items: center; gap: 8px; font-size: .85rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.papp img { border-radius: 16.67%; }
.small-btn { padding: 10px 16px; font-size: .9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 3px; }
.seg button { font: inherit; font-size: .8rem; border: 0; border-radius: 999px; padding: 7px 8px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--text); animation: spin .8s linear infinite; margin: 6px auto; }
.pres { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; margin: 4px auto; }
.pres.good { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.pres.bad { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.pres.warn { background: color-mix(in srgb, #e0a100 18%, transparent); color: #b88400; }
.token { display: block; word-break: break-all; font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.tools-col { display: grid; gap: 8px; }
.tools-col select { font: inherit; font-size: .8rem; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); width: 100%; }
.app-wait { position: relative; width: 92px; height: 92px; margin: 6px auto; display: grid; place-items: center; }
.app-wait img { border-radius: 16.67%; position: relative; }
.app-wait .pulse { border-radius: 25%; }
.pscreen .field input { padding: 9px 12px; font-size: .9rem; }
.pscreen .stack { gap: 10px; }
.log { width: 100%; max-width: 420px; }
.log h2 { font-size: 1rem; margin: 0; }
.log .muted { font-size: .85rem; }
.log-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.log-item { border: 1px solid var(--border); border-radius: 12px; padding: 0 10px; background: var(--surface); }
.log-item summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; padding: 8px 0; font-size: .8rem; list-style: none; }
.log-item summary::-webkit-details-marker { display: none; }
.log-item .m { font-weight: 700; font-family: ui-monospace, Menlo, monospace; min-width: 4.2em; }
.log-item .u { flex: 1; word-break: break-all; color: var(--muted); }
.log-item .s { font-weight: 700; } .log-item .s.ok { color: var(--ok); } .log-item .s.err { color: var(--danger); }
.log-item .code { max-height: 220px; margin: 4px 0; }
.log-item .pill { margin: 4px 0 10px; }
.badge { font-size: .7rem; background: var(--surface-2); border-radius: 999px; padding: 1px 7px; }
.badge[hidden] { display: none; }

/* embedded payment: account picker in the phone */
.accts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.acct { width: 100%; text-align: left; font: inherit; font-size: .8rem; display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; }
.acct:hover, .acct:focus-visible { border-color: var(--text); }
.acct code { font-size: .72rem; word-break: break-all; }
.acct .bal { font-weight: 600; }


/* launcher: pickers, journey tabs, extra settings */
.pickers select { width: 100%; }
.launch .seg { margin: 4px 0; }
.launch .seg button { padding: 9px 8px; }
.more { border-top: 1px solid var(--border); padding-top: 12px; }
.more summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.more .stack { margin-top: 12px; }
fieldset[hidden] { display: none; }

/* phone: start button at the bottom, checkout card */
.pscreen.fill { display: flex; flex-direction: column; min-height: 500px; }
.pscreen .push { margin-top: auto; }
.checkout { border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.co-kind { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.co-amount { font-size: 1.7rem; font-weight: 700; }
.co-row { display: grid; gap: 1px; font-size: .82rem; }
.co-row strong { font-weight: 600; word-break: break-all; }
#pis-more { border-top: 0; padding-top: 0; }
.shared { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }

/* launcher: more room between the groups, options and collapsible sections */
.launch { gap: 22px; }
.launch fieldset, .launch fieldset.stack { gap: 20px; }
.launch .grid2 { gap: 16px; }
.launch .seg { margin: 0; }
.launch .seg button { padding: 11px 10px; }
.launch .opts { gap: 14px; }
.launch .opt { padding: 4px 0; line-height: 1.4; }
.launch .field { gap: 8px; }
.launch .more { padding-top: 18px; }
.launch .more summary { padding: 6px 0; }
.launch .more[open] > summary { margin-bottom: 4px; }
.launch .more .stack { gap: 18px; margin-top: 16px; }
.launch #pis-more { padding-top: 4px; }
/* phone: calmer cards */
.pscreen { gap: 16px; }
.checkout { padding: 18px; gap: 14px; }
.co-row { gap: 3px; }
.shared { gap: 8px; }
