/* askit Partner — pharmacy registration.
 *
 * Same tokens as partner_webapp/app.css (one brand, every surface). Phone-first: one
 * column, large tap targets, nothing wider than the screen. Light and dark at token
 * level; no component hard-codes a colour (the illustrations included).
 *
 * Layout rule for this page: one card per real group of fields, plain headings in
 * sentence case, and anything optional or secondary behind a <details> disclosure so
 * a counter assistant on a small phone sees only what they must fill in.
 */

:root {
  --background: 150 30% 98%;
  --foreground: 175 35% 12%;
  --card: 0 0% 100%;
  --primary: 168 76% 28%;
  --primary-foreground: 150 30% 98%;
  --secondary: 158 45% 92%;
  --muted: 150 25% 95%;
  --muted-foreground: 175 15% 40%;
  --accent: 14 90% 64%;
  --destructive: 0 72% 46%;
  --warn: 35 92% 40%;
  --warn-bg: 42 100% 94%;
  --ok: 152 60% 32%;
  --border: 158 25% 86%;
  --ring: 168 76% 38%;
  --shadow-card: 0 1px 2px hsl(168 40% 20% / .06);
  --r-md: 12px;
  --r-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: 174 30% 7%;
    --foreground: 150 25% 93%;
    --card: 174 26% 11%;
    --primary: 158 60% 46%;
    --primary-foreground: 174 30% 7%;
    --secondary: 168 25% 17%;
    --muted: 172 22% 15%;
    --muted-foreground: 158 12% 70%;
    --accent: 14 85% 66%;
    --destructive: 0 70% 62%;
    --warn: 40 90% 60%;
    --warn-bg: 38 40% 16%;
    --ok: 152 55% 55%;
    --border: 170 20% 22%;
    --ring: 158 60% 50%;
    --shadow-card: none;
  }
}

:root[data-theme="dark"] {
  --background: 174 30% 7%;
  --foreground: 150 25% 93%;
  --card: 174 26% 11%;
  --primary: 158 60% 46%;
  --primary-foreground: 174 30% 7%;
  --secondary: 168 25% 17%;
  --muted: 172 22% 15%;
  --muted-foreground: 158 12% 70%;
  --accent: 14 85% 66%;
  --destructive: 0 70% 62%;
  --warn: 40 90% 60%;
  --warn-bg: 38 40% 16%;
  --ok: 152 55% 55%;
  --border: 170 20% 22%;
  --ring: 158 60% 50%;
  --shadow-card: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
[hidden] { display: none !important; }

.app { max-width: 640px; margin: 0 auto; min-height: 100vh; padding-bottom: 48px; }
main { padding: 0 16px; }

/* ── App bar ── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 8px;
  background: hsl(var(--background) / .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.bar-logo { border-radius: 9px; display: block; }
.bar-pill {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: hsl(var(--primary)); background: hsl(var(--secondary));
  padding: 3px 9px; border-radius: 999px;
}
.bar-spacer { flex: 1; }
.bar-back, .bar-link {
  font: inherit; font-weight: 700; font-size: 15px; border: 0; background: none;
  color: hsl(var(--primary)); padding: 8px 4px; cursor: pointer; min-height: 44px;
}
.bar-back::before { content: "\2039"; font-size: 22px; line-height: 1; margin-right: 4px; }

/* ── Type ── */
h1 { font-size: 26px; line-height: 1.2; margin: 18px 0 8px; font-weight: 800; letter-spacing: -.01em; }
h2, h3 { margin: 0; }
.step-title { font-size: 22px; font-weight: 800; margin: 4px 0 12px; outline: none; }
.lede { color: hsl(var(--muted-foreground)); margin: 0 0 18px; }
.fine { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 14px 0; }
.fine.center { text-align: center; }
.fine a, .link { color: hsl(var(--primary)); font-weight: 700; }
.muted { color: hsl(var(--muted-foreground)); }
.help { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 6px 0 0; }
.step-help { margin: -4px 0 14px; font-size: 14px; }
.sec-help { margin: 0 0 12px; }
.note { background: hsl(var(--muted)); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 12px; }
.opt { color: hsl(var(--muted-foreground)); font-weight: 600; font-size: 12px; margin-left: 4px; }
.warn { color: hsl(var(--warn)); }

/* ── Cards ── */
.card {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--r-lg); padding: 16px; margin: 0 0 12px;
  box-shadow: var(--shadow-card);
}
.sec-title { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.stack > * + * { margin-top: 10px; }
.checklist, .howto { margin: 0; padding-left: 20px; }
.checklist li, .howto li { margin: 6px 0; }
.checklist li.opt { font-size: 15px; margin-left: 0; }

/* ── Welcome: illustration, steps ── */
.hero-art { display: block; width: 100%; height: auto; max-height: 150px; margin: 10px 0 2px; }
.i-bg { fill: hsl(var(--secondary)); }
.i-ground { fill: hsl(var(--border)); }
.i-card { fill: hsl(var(--card)); }
.i-stroke { stroke: hsl(var(--border)); stroke-width: 1.5; }
.i-stroke-ink { stroke: hsl(var(--foreground) / .55); stroke-width: 2; }
.i-pri { fill: hsl(var(--primary)); }
.i-pri-soft { fill: hsl(var(--primary) / .32); }
.i-acc { fill: hsl(var(--accent)); }
.i-acc-soft { fill: hsl(var(--accent) / .5); }
.i-awn { fill: hsl(var(--card)); stroke: hsl(var(--primary) / .35); stroke-width: 1; }
.i-onpri { fill: hsl(var(--primary-foreground)); }
.i-onpri-soft { fill: hsl(var(--primary-foreground) / .72); }
.i-ink { fill: hsl(var(--foreground) / .82); }
.i-ink-soft { fill: hsl(var(--foreground) / .3); }
.i-glass { fill: hsl(var(--muted)); }
.i-shelf { fill: hsl(var(--border)); }
.i-door { fill: hsl(var(--primary) / .14); stroke: hsl(var(--border)); stroke-width: 1.5; }
.i-screen { fill: hsl(var(--background)); }
.i-bubble { fill: hsl(var(--secondary)); }
.i-shadow { fill: hsl(var(--foreground) / .08); }
.i-dash { fill: none; stroke: hsl(var(--primary)); stroke-width: 1.75; stroke-dasharray: 3 4;
  stroke-linecap: round; }
.i-check { fill: none; stroke: hsl(var(--card)); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }

.steps { list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.steps li { display: flex; gap: 12px; align-items: flex-start; position: relative; padding: 0 0 14px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px;
  background: hsl(var(--border));
}
.steps b { display: block; font-size: 15px; }
.steps li > span:last-child { font-size: 14px; color: hsl(var(--muted-foreground)); padding-top: 1px; }
.steps li > span:last-child b { color: hsl(var(--foreground)); }
.step-ic {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  background: hsl(var(--secondary)); color: hsl(var(--primary));
}
.step-ic svg, .callout-ic, .st-ic {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.step-ic svg { width: 20px; height: 20px; }

/* ── Disclosures ── */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.acc-group { margin: 22px 0 0; border-top: 1px solid hsl(var(--border)); }
.acc { border-bottom: 1px solid hsl(var(--border)); }
.acc > summary { position: relative; padding: 14px 32px 14px 0; display: block; min-height: 44px; }
.acc-title { display: block; font-weight: 800; }
.acc-meta { display: block; font-size: 14px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.acc > summary::after, .sum summary::after {
  content: ""; position: absolute; right: 6px; top: 22px; width: 8px; height: 8px;
  border-right: 2px solid hsl(var(--muted-foreground)); border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg); transition: transform .2s ease;
}
.acc[open] > summary::after, .sum details[open] > summary::after { transform: rotate(-135deg); top: 26px; }
.acc > :not(summary) { margin-bottom: 14px; }
.acc .checklist { font-size: 15px; }
.acc .network-note { font-size: 14px; margin: 0 0 14px; line-height: 1.55; }

.more { margin: 2px 0 16px; }
.more:last-child { margin-bottom: 0; }
.more > summary, .chips-more > summary {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; font-size: 15px; color: hsl(var(--primary));
}
.more > summary .opt { white-space: nowrap; }
.more > summary::before, .chips-more > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-weight: 800; line-height: 1;
  background: hsl(var(--secondary)); color: hsl(var(--primary));
}
.more[open] > summary::before, .chips-more[open] > summary::before { content: "\2212"; }
.more[open] > summary { margin-bottom: 8px; }

/* ── Fields ── */
.fld { margin: 0 0 16px; min-width: 0; }
.fld:last-child { margin-bottom: 0; }
.lbl { display: block; font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.field {
  width: 100%; min-width: 0; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: hsl(var(--foreground)); background: hsl(var(--background));
  border: 1.5px solid hsl(var(--border)); border-radius: var(--r-md);
  padding: 12px 14px; min-height: 48px; outline: none;
  -webkit-appearance: none; appearance: none;
}
select.field {
  background-image: linear-gradient(45deg, transparent 50%, hsl(var(--muted-foreground)) 50%),
                    linear-gradient(135deg, hsl(var(--muted-foreground)) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
textarea.field { resize: vertical; min-height: 84px; }
.field:focus { border-color: hsl(var(--ring)); box-shadow: 0 0 0 3px hsl(var(--ring) / .2); }
.field.upper { text-transform: uppercase; }
.field.bad { border-color: hsl(var(--destructive)); }
.field-code { font-size: 24px; letter-spacing: .4em; text-align: center; font-weight: 800; }
.field-code::placeholder { font-size: 16px; letter-spacing: normal; font-weight: 600; }
.nowrap, #code-phone { white-space: nowrap; }
.err { color: hsl(var(--destructive)); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid2 .fld:last-child { margin-bottom: 16px; }
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.cc { display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-md);
  background: hsl(var(--muted)); font-weight: 800; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 4px 0 16px;
  cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: hsl(var(--primary)); }

/* ── Chips and yes/no ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg-btn {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  border: 1.5px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--foreground)); border-radius: 999px; padding: 9px 14px; min-height: 44px;
}
.chip[aria-pressed="true"], .seg-btn[aria-pressed="true"] {
  background: hsl(var(--primary)); border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips-more { width: 100%; }
.chips-more[open] > summary { margin-bottom: 8px; }
.chips-more .chips-rest { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Buttons ── */
.btn {
  display: flex; width: 100%; align-items: center; justify-content: center;
  font: inherit; font-weight: 800; font-size: 16px; min-height: 52px;
  border-radius: 999px; border: 1.5px solid transparent; padding: 12px 18px;
  cursor: pointer; margin: 10px 0 0; text-decoration: none;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-secondary { background: hsl(var(--secondary)); color: hsl(var(--primary)); margin-top: 4px; }
.btn-ghost { background: transparent; color: hsl(var(--primary)); border-color: hsl(var(--border)); }
.btn-danger { background: transparent; color: hsl(var(--destructive)); border-color: hsl(var(--border)); }
.btn-sm { display: inline-flex; width: auto; min-height: 44px; font-size: 15px; padding: 8px 16px; }
.link { font: inherit; font-weight: 700; background: none; border: 0; padding: 10px 0; cursor: pointer;
  display: inline-block; min-height: 44px; }
.link:disabled { color: hsl(var(--muted-foreground)); cursor: default; }
.row-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
#screen-welcome #btn-start { margin-top: 4px; }

/* ── Progress ── */
.progress { margin: 6px 0 14px; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin-bottom: 8px; font-size: 13px; }
.progress-label { font-weight: 800; color: hsl(var(--foreground)); }
.progress-next { color: hsl(var(--muted-foreground)); text-align: right; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.progress-segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.progress-segs span { height: 5px; border-radius: 99px; background: hsl(var(--muted)); }
.progress-segs span.done { background: hsl(var(--primary) / .55); }
.progress-segs span.current { background: hsl(var(--primary)); }

/* ── Banners and callouts ── */
.banner { border-radius: var(--r-md); padding: 12px 14px; margin: 0 0 14px; font-size: 15px;
  background: hsl(var(--muted)); }
.banner-warn { background: hsl(var(--warn-bg)); }
.banner ul { margin: 6px 0 0; padding-left: 20px; }
.banner li button { padding: 4px 0; min-height: 0; }
.callout { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; padding: 12px 14px;
  border-radius: var(--r-md); background: hsl(var(--muted)); }
.callout-ic { flex: none; width: 20px; height: 20px; color: hsl(var(--muted-foreground)); margin-top: 1px; }
.callout .network-note { margin: 0; font-size: 13px; line-height: 1.55; }

/* ── Location ── */
.loc-box { margin: 12px 0 4px; padding: 12px; border-radius: var(--r-md); background: hsl(var(--muted)); }
.loc-line { margin: 0 0 4px; font-size: 14px; overflow-wrap: anywhere; }

/* ── Documents ── */
.doc-group { margin: 0 0 6px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 6px 0 10px; }
.group-title { font-size: 16px; font-weight: 800; }
.group-count { font-size: 13px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.group-count.all { color: hsl(var(--ok)); }
.doc-more { margin: 14px 0 0; border-top: 1px solid hsl(var(--border)); }
.doc-more > summary { position: relative; display: block; padding: 14px 32px 14px 0; min-height: 44px; }
.doc-more > summary::after {
  content: ""; position: absolute; right: 6px; top: 22px; width: 8px; height: 8px;
  border-right: 2px solid hsl(var(--muted-foreground)); border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg); transition: transform .2s ease;
}
.doc-more[open] > summary::after { transform: rotate(-135deg); top: 26px; }
.doc { padding: 14px 16px; margin-bottom: 10px; }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.doc-name { font-weight: 800; }
.doc .help { margin-top: 2px; }
.need { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 8px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.need-required { background: hsl(var(--warn-bg)); color: hsl(var(--warn)); }
.need-done { background: hsl(var(--secondary)); color: hsl(var(--ok)); }
.files { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.file { width: 84px; min-width: 0; }
.thumb { width: 84px; height: 84px; border-radius: 12px; border: 1px solid hsl(var(--border));
  background: hsl(var(--muted)) center / cover no-repeat; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 13px; color: hsl(var(--muted-foreground));
  cursor: pointer; padding: 0; font-family: inherit; overflow: hidden; }
.file-name { font-size: 12px; margin: 4px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-remove { font: inherit; font-size: 13px; font-weight: 700; color: hsl(var(--destructive));
  background: none; border: 0; padding: 4px 0; cursor: pointer; min-height: 32px; }
.upload-btn { margin-top: 10px; }
.upload-btn input, .add-tile input { display: none; }
.add-tile { flex-direction: column; gap: 2px; border: 1.5px dashed hsl(var(--primary) / .6);
  background: transparent; color: hsl(var(--primary)); }
.add-tile::before { content: "+"; font-size: 24px; line-height: 1; font-weight: 700; }
.bar-progress { height: 4px; border-radius: 99px; background: hsl(var(--muted)); overflow: hidden; margin-top: 10px; }
.bar-progress span { display: block; height: 100%; width: 0; background: hsl(var(--primary)); }

/* ── Review ── */
.sum-list { margin: 0 0 12px; }
.sum { position: relative; padding: 0; margin-bottom: 8px; }
.sum summary { position: relative; display: block; padding: 13px 92px 13px 16px; min-height: 52px; }
.sum summary::after { right: 18px; }
.sum-title { display: block; font-weight: 800; font-size: 15px; }
.sum-digest { display: block; font-size: 13px; color: hsl(var(--muted-foreground));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-edit { position: absolute; top: 4px; right: 40px; z-index: 1; font-size: 14px; }
.sum dl { margin: 0; padding: 0 16px 14px; display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%); gap: 4px 10px; font-size: 14px; }
.sum dt { color: hsl(var(--muted-foreground)); }
.sum dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.declaration .sec-title { margin-bottom: 2px; }
.declaration #decl-hint { margin: 0 0 10px; }
.decl-box { max-height: 300px; overflow-y: auto; padding: 12px 14px; border-radius: var(--r-md);
  background: hsl(var(--muted)); font-size: 14px; line-height: 1.55; outline: none; }
.decl-box:focus-visible { box-shadow: 0 0 0 3px hsl(var(--ring) / .25); }
.declaration ol { padding-left: 20px; margin: 10px 0; }
.declaration li { margin: 8px 0; }
.declaration p { margin: 0; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.ticks li { position: relative; padding-left: 22px; margin: 6px 0; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 10px; height: 5px;
  border-left: 2px solid hsl(var(--ok)); border-bottom: 2px solid hsl(var(--ok)); transform: rotate(-45deg);
}

/* ── Status ── */
.status-head { text-align: left; }
.st-art { width: 56px; height: 56px; border-radius: 50%; margin: 18px 0 12px; display: flex;
  align-items: center; justify-content: center; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.st-art[data-kind=""] { display: none; }
.st-ic { display: none; width: 28px; height: 28px; stroke-width: 2.2; }
.st-art[data-kind="pending"] { background: hsl(var(--secondary)); color: hsl(var(--primary)); }
.st-art[data-kind="ok"] { background: hsl(var(--secondary)); color: hsl(var(--ok)); }
.st-art[data-kind="warn"] { background: hsl(var(--warn-bg)); color: hsl(var(--warn)); }
.st-art[data-kind="bad"] { background: hsl(var(--destructive) / .12); color: hsl(var(--destructive)); }
.st-art[data-kind="pending"] .st-ic-pending, .st-art[data-kind="ok"] .st-ic-ok,
.st-art[data-kind="warn"] .st-ic-warn, .st-art[data-kind="bad"] .st-ic-bad,
.st-art[data-kind="expired"] .st-ic-expired { display: block; }
.status-badge { display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.st-art[data-kind=""] + .status-badge { margin-top: 16px; }
.status-badge.ok { background: hsl(var(--secondary)); color: hsl(var(--ok)); }
.status-badge.warn { background: hsl(var(--warn-bg)); color: hsl(var(--warn)); }
.status-badge.bad { background: hsl(var(--destructive) / .12); color: hsl(var(--destructive)); }
.status-head h1 { margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid hsl(var(--border)); background: hsl(var(--card));
}
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: hsl(var(--border));
}
.timeline li.done::before { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.timeline li.done:not(:last-child)::after { background: hsl(var(--primary) / .5); }
.timeline li.current::before { border-color: hsl(var(--primary)); box-shadow: 0 0 0 4px hsl(var(--primary) / .15); }
.timeline .t-title { display: block; font-weight: 800; }
.timeline .t-text { display: block; font-size: 14px; color: hsl(var(--muted-foreground)); }
.app-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.app-card .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.app-card .ref { font-size: 13px; color: hsl(var(--muted-foreground)); }

/* ── Form actions ── */
.form-actions { margin: 8px 0 0; }
.actions-row { display: flex; gap: 10px; }
.actions-row .btn { margin-top: 10px; }
.actions-row #btn-prev { flex: 0 0 34%; }
.actions-row #btn-next { flex: 1; }

/* ── Dialog + toast ── */
.dialog-backdrop { position: fixed; inset: 0; z-index: 50; background: hsl(0 0% 0% / .45);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.dialog { width: 100%; max-width: 480px; background: hsl(var(--card)); border-radius: var(--r-lg);
  padding: 20px; box-shadow: 0 10px 30px -14px hsl(0 0% 0% / .45); }
.dialog h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.dialog p { margin: 0 0 6px; color: hsl(var(--muted-foreground)); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 520px) { .dialog-backdrop { align-items: center; } }
.toast { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 60; max-width: 480px;
  margin: 0 auto; background: hsl(var(--foreground)); color: hsl(var(--background));
  border-radius: var(--r-md); padding: 12px 16px; font-weight: 700; text-align: center; }
.viewer { position: fixed; inset: 0; z-index: 55; background: hsl(0 0% 0% / .85); display: flex;
  flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.viewer img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.viewer button { margin-top: 12px; max-width: 240px; }

/* ── One-time registration fee / launch offer (onboarding/fee.py) ── */
.offer { border-color: hsl(var(--accent) / .55); background: hsl(var(--accent) / .06); margin-bottom: 14px; }
.offer-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.offer-kind { font-size: 13px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.offer-badge { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; background: hsl(var(--accent));
  border-radius: 999px; padding: .2rem .65rem; }
.offer-price { margin: .1rem 0 .25rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; }
.offer-was { color: hsl(var(--muted-foreground)); font-size: 1.05rem; font-weight: 600; }
.offer-now { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.offer-only { font-size: .95rem; font-weight: 700; color: hsl(var(--muted-foreground)); }
.offer-what { margin: 0; font-size: .92rem; }
.offer-ends { margin: .35rem 0 0; font-size: .85rem; font-weight: 700; color: hsl(var(--accent)); }
#fee-state { margin-top: .6rem; }
