:root {
  color-scheme: light;
  --ground: #f4f4f7;
  --card: #ffffff;
  --ink: #14181c;
  --ink-2: #3a3f46;
  --muted: #5f6570;
  --line: #e2e2e8;
  --line-2: #cfcfd8;
  --coral: #ff6a45;
  --good: #2f7f5c;
  --out: #b0544f;
  --focus: #14181c;
  --font: 'Familjen Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--font); overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: var(--ink); text-underline-offset: 3px; }
.wrap { max-width: 600px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.wide { max-width: 880px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 28px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); flex: none; }
h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 10px; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.25; margin: 0 0 4px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.lede { color: var(--ink-2); font-size: 17px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.trust { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); margin: 18px 0 24px; }
.trust svg { flex: none; margin-top: 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; margin-bottom: 16px; min-width: 0; }
@media (min-width: 480px) { .card { padding: 24px; } }
.card > h2 + p { color: var(--muted); font-size: 14px; }
.field { display: block; margin-top: 16px; min-width: 0; }
.field > span.l { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.hint { display: block; color: var(--muted); font-size: 13px; margin: -2px 0 6px; }
input[type=text], input[type=email], input[type=password], input:not([type]), select {
  width: 100%; max-width: 100%; min-width: 0; height: 48px; padding: 0 14px; font: 16px var(--font); color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus-visible, select:focus-visible, button:focus-visible, .seg input:focus-visible + span, .file input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.field.bad input, .field.bad select { border-color: var(--out); }
.err { display: block; color: var(--out); font-size: 13px; margin-top: 6px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
@media (min-width: 480px) { .row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
fieldset { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.seg label { position: relative; display: block; min-width: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; background: var(--card); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.formbox { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--ground); font-size: 15px; }
.formbox strong { display: block; font-size: 17px; margin-bottom: 4px; }
.formbox p { margin: 0 0 8px; color: var(--ink-2); }
.formbox p:last-child { margin-bottom: 0; }
.file { display: block; margin-top: 16px; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file span.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 14px; text-align: center; cursor: pointer; background: var(--card); overflow-wrap: anywhere; }
.file span.drop b { font-weight: 600; }
.file.has span.drop { border-style: solid; border-color: var(--good); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 16px/1.2 var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.xs { min-height: 30px; padding: 0 11px; font-size: 13px; }
.status { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; min-height: 21px; }
.status.bad { color: var(--out); }
.state { text-align: center; padding: 36px 20px; }
.state .icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; background: var(--ground); }
.state h1 { font-size: 26px; }
.state p { color: var(--ink-2); }
.foot { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }

/* Admin */
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.bar .brand { margin: 0; }
.bar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.creator h2 { overflow-wrap: anywhere; }
.creator .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.chip { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--ground); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chip.form { background: #fff0eb; color: #9a3a22; }
dl.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 8px 0 0; }
dl.kv > div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
dl.kv dt { font-size: 13px; color: var(--muted); }
dl.kv dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
dl.kv .btns { display: flex; gap: 6px; }
@media (max-width: 520px) { dl.kv > div { grid-template-columns: minmax(0, 1fr) auto; } dl.kv dt { grid-column: 1 / -1; } }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; }
details.older { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.older summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.older .sub { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--ground); }
.sub h3 { font-size: 14px; margin: 0; }
.cardfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
