/* Channel Builder (helper app). Mobile first: 16px side gutters, nothing wider than the screen,
   every tap target at least 44px, no sliders and no sideways-scrolling rows. Light by default,
   dark when the phone is in dark mode. */
:root {
  color-scheme: light dark;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --bg: #f5f6fa; --surface: #ffffff; --surface-2: #f0f2f8; --surface-3: #e5e8f1;
  --line: rgba(15, 23, 42, .1); --line-2: rgba(15, 23, 42, .2);
  --text: #0c1222; --text-2: #3e485c; --muted: #6a7487;
  --brand: #4f53e6; --brand-2: #0891b2; --brand-soft: rgba(79, 83, 230, .1); --brand-ink: #fff;
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, .11);
  --warn: #b45309; --warn-soft: rgba(217, 119, 6, .13);
  --bad: #c62828; --info: #0369a1; --info-soft: rgba(3, 105, 161, .09);
  --violet: #6d28d9; --blue: #1d4ed8; --amber: #b45309; --green: #15803d; --slate: #475569;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 22px -14px rgba(15, 23, 42, .25);
  --r: 14px; --r-lg: 18px; --r-sm: 10px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17; --surface: #131925; --surface-2: #1a2130; --surface-3: #232c3e;
    --line: rgba(148, 163, 184, .14); --line-2: rgba(148, 163, 184, .26);
    --text: #eef1f8; --text-2: #b7c0d1; --muted: #8791a5;
    --brand: #8d93ff; --brand-2: #22d3ee; --brand-soft: rgba(141, 147, 255, .16); --brand-ink: #0b0d1c;
    --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .13);
    --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .13);
    --bad: #f87171; --info: #7dd3fc; --info-soft: rgba(125, 211, 252, .1);
    --violet: #c4b5fd; --blue: #93c5fd; --amber: #fcd34d; --green: #86efac; --slate: #cbd5e1;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 26px -14px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mono { font-family: var(--mono); word-break: break-all; }
.tiny { font-size: 13px; color: var(--muted); margin-top: 10px; }
.center { text-align: center; }
.ic { flex: none; }
.noscript { padding: 24px var(--gutter); }

.app { min-height: 100vh; min-height: 100dvh; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spin { display: inline-block; flex: none; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.spin-lg { width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } * { scroll-behavior: auto !important; } }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px var(--gutter); min-height: 56px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.top-brand { display: flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: -.02em; min-height: 44px; min-width: 44px; }
.top-brand span { white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.top-name { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; max-width: 30vw; min-width: 0; }
@media (max-width: 420px) { .top-brand span { display: none; } .top-name { max-width: 38vw; } }
.sess-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px var(--gutter); background: var(--warn-soft); color: var(--text); font-size: 14px; border-bottom: 1px solid var(--line); }
.sess-note .ic { color: var(--warn); margin-top: 2px; }

.main { width: 100%; max-width: 640px; margin: 0 auto; padding: 16px var(--gutter) calc(48px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; outline: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 650; font-size: 15px;
  cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.is-busy { position: relative; pointer-events: none; opacity: .75; }
.btn-primary { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #fff); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
.btn-attn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--text); }
.btn-sm { font-size: 14px; padding: 0 12px; gap: 6px; }
.btn-xl { min-height: 56px; font-size: 17px; border-radius: 14px; }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn-row > .btn { flex: 1 1 auto; }
.btn-row-split { justify-content: space-between; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--text-2); font-weight: 600; margin-left: -6px; padding: 0 6px; align-self: flex-start; }

/* ---------- pills and notes ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--slate); }
.pill-blue { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.pill-amber { background: var(--warn-soft); color: var(--amber); }
.pill-violet { background: color-mix(in srgb, var(--violet) 14%, transparent); color: var(--violet); }
.pill-green { background: var(--ok-soft); color: var(--green); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.note > .ic, .note > .spin { margin-top: 2px; }
.note b { font-weight: 700; }
.note-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.note-info > .ic { color: var(--info); }
.note-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.note-ok > .ic { color: var(--ok); }
.note-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.note-warn > .ic { color: var(--warn); }
.note-lock { background: var(--surface-2); }
.note-lock > .ic { color: var(--muted); }
.note-busy { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.card .note, .card .acts, .card .btn-row { margin-top: 12px; }

/* ---------- cards, sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.sect { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sect-title { font-size: 17px; font-weight: 700; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.center-card { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 28px 20px; }
.center-card p { color: var(--text-2); }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand h1 { font-size: 22px; }
.login-brand p { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.login form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.input { width: 100%; min-height: 50px; padding: 0 14px; font-size: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); outline: none; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--surface); }
.input::placeholder { color: var(--muted); }
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.45; }
.field-err { color: var(--bad); font-size: 14px; font-weight: 600; min-height: 0; }
.field-err:empty { display: none; }

/* ---------- home ---------- */
.hero { border-radius: 22px; padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; color: var(--text);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 62%), var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); box-shadow: var(--shadow); }
.hero .eyebrow { margin: 0; color: var(--brand); }
.hero-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hero-txt { min-width: 0; }
.hero-txt h1 { font-size: 24px; overflow-wrap: anywhere; }
.hero-txt p, .hero-empty p { color: var(--text-2); }
.hero-empty h1 { font-size: 22px; }
.hero-prog { font-size: 14px; color: var(--text-2); margin-top: -6px; }
.hero-link { text-align: center; min-height: 44px; display: grid; place-items: center; color: var(--text-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.limit-line { color: var(--text-2); text-align: center; font-size: 15px; }
.tile { display: inline-grid; place-items: center; flex: none; border-radius: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--ink, #fff); background: linear-gradient(135deg, var(--a, #6366f1), var(--b, #1e1b4b)); overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 6px 14px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bcard-main { display: flex; align-items: center; gap: 12px; min-height: 64px; padding-top: 8px; min-width: 0; }
.bcard-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bcard-txt b { font-size: 16px; overflow-wrap: anywhere; }
.bcard-txt small { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.bcard-go { color: var(--muted); display: inline-flex; }
.bcard-prog { display: flex; flex-direction: column; gap: 6px; }
.bcard-prog small { color: var(--text-2); font-size: 13px; }
.bcard-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); font-size: 13.5px; font-weight: 650; }

/* ---------- brand page ---------- */
.bhead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bhead-txt { flex: 1; min-width: 0; }
.bhead-txt h1 { font-size: 22px; overflow-wrap: anywhere; }
.bhead-txt p { color: var(--text-2); font-size: 15px; overflow-wrap: anywhere; }
.bhead-meta { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.acct-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; flex-wrap: wrap; }
.claim { display: flex; flex-direction: column; gap: 10px; }
.claim h2 { font-size: 20px; }
.claim p { color: var(--text-2); }
.step { display: flex; flex-direction: column; gap: 4px; border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); scroll-margin-top: 72px; }
.step .eyebrow { color: var(--brand); }
.step-title { font-size: 22px; overflow-wrap: anywhere; }
.step-why { color: var(--text-2); font-size: 16px; margin-top: 4px; }
.step-blocked { border-color: var(--line); }
.acts { display: flex; flex-direction: column; gap: 8px; }
.act {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s;
}
.act:hover { border-color: var(--brand); }
.act:active { transform: scale(.99); }
.act-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }
.act-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.act-label { font-weight: 700; font-size: 16px; }
.act-body small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act.copied, .btn.copied { border-color: var(--ok); background: var(--ok-soft); }
.act.copied .act-ic { background: var(--ok-soft); color: var(--ok); }
.path { margin-top: 12px; }
.path ol { margin-top: 6px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.path li { font-size: 16px; line-height: 1.45; padding-left: 4px; }
.path li::marker { color: var(--brand); font-weight: 700; }
.handle-pick { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 15px; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.chip-on { border-color: var(--brand); background: var(--brand-soft); }
.input-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.detect-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; margin-top: 12px; }
.card .step-why + .note, .card .path + .btn-row { margin-top: 12px; }
.step > .btn-xl { margin-top: 12px; }
.mono-val { font-family: var(--mono); }

.steps { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.srow-ro { cursor: default; }
.srow-on { border-color: var(--brand); background: var(--brand-soft); }
.srow-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--text-2); }
.srow-done { background: var(--ok); color: #fff; }
.srow-blocked { background: transparent; border: 1.5px dashed var(--line-2); color: var(--muted); }
.srow-warn { background: var(--warn-soft); color: var(--warn); }
.srow-t { min-width: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.srow-t small { color: var(--muted); font-weight: 500; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.kit > summary { display: flex; flex-direction: column; gap: 2px; min-height: 44px; justify-content: center; position: relative; padding-right: 28px; }
.kit > summary::after, .lockcard > summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.kit[open] > summary::after, .lockcard[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.kit-sub { color: var(--muted); font-size: 14px; }
.kit-body { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.kit-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kit-val { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.kit-val.clamp { max-height: 9.5em; overflow: auto; }
.art { display: grid; grid-template-columns: 1fr; gap: 14px; }
.art figure { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.art img { border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.art-icon img { width: 96px; height: 96px; }
.art-banner img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.art figcaption { font-size: 13px; color: var(--muted); font-weight: 600; }

.lockcard { padding: 4px 16px; }
.lockcard > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 650; position: relative; padding-right: 26px; }
.lockcard > summary .pill { margin-left: auto; margin-right: 6px; }
.lockcard > summary .ic { color: var(--muted); }
.lock-why { color: var(--text-2); font-size: 15px; padding-bottom: 8px; }
.lock-steps { padding: 0 0 14px 22px; color: var(--text-2); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.lockcard + .lockcard { margin-top: 0; }

.foot { display: flex; flex-direction: column; gap: 12px; }
.foot .btn-row { margin-top: 0; }
.blockers { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); }
.blockers ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }

/* connect step */
.pick-title { font-weight: 700; margin-top: 12px; }
.picks { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pick { display: block; position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pick-body { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface-2); }
.pick input:checked + .pick-body { border-color: var(--brand); background: var(--brand-soft); }
.pick input:focus-visible + .pick-body { outline: 3px solid var(--brand); outline-offset: 2px; }
.pick-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.pick-av-ph { display: inline-grid; place-items: center; color: var(--muted); }
.pick-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-txt b { overflow-wrap: anywhere; }
.pick-txt small { color: var(--muted); font-size: 13px; }
.pick-tick { color: var(--brand); opacity: 0; }
.pick input:checked + .pick-body .pick-tick { opacity: 1; }

/* ---------- skeleton ---------- */
.skel { display: flex; flex-direction: column; gap: 12px; }
.sk { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 var(--gutter); pointer-events: none; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; padding: 13px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; cursor: pointer; }
.toast.in { opacity: 1; transform: none; }
.toast-error { background: var(--bad); color: #fff; }
.toast-ok { background: var(--ok); color: #fff; }
@media (prefers-color-scheme: dark) { .toast-ok { color: #06240f; } .toast-error { color: #2a0606; } }

/* ---------- bottom sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 14, .55); opacity: 0; transition: opacity .2s; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; outline: none;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5);
  transform: translateY(24px); opacity: 0; transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s; padding-bottom: var(--safe-b);
}
.sheet-wrap.in .sheet-backdrop { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; opacity: 1; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 4px 20px; }
.sheet-title { font-size: 19px; }
.sheet-body { padding: 4px 20px 20px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; }
.sheet-text { color: var(--text-2); font-size: 16px; }
.sheet-text b { color: var(--text); }
.sheet-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.sheet-actions .btn { flex: 1 1 140px; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }
