/* Signed-in surfaces: one console, a rail, and panels.
   Same material as the storefront (cream paper, one dark machine surface, Geist
   for reading, Geist Mono for anything a machine wrote, one accent) so the app
   reads as the same object as the landing page rather than a second product.
   Loaded after app.css, which still owns .view hide/show and the base tokens. */

html[data-view="app"] .view--app,
html[data-view="admin"] .view--admin { display: block; }

/* A classed element with display:flex/grid outranks the UA [hidden] rule, so a
   `hidden` toggle would silently do nothing on a .field or a .ticket. */
[hidden] { display: none !important; }

/* app.css never defined these, and every border and panel fill below hangs off
   them: undefined, the tables, cards and stat strip lost their lines and fill
   and the console read as loose text on paper. */
:root {
  --surface: #fbfaf7;
  --surface-2: #f5f3ee;
  --rule: rgba(35, 35, 35, 0.12);
  --rule-strong: rgba(35, 35, 35, 0.22);
  --ok: #1d6a55;
  --warn: #8a6412;
  --bad: #9c3a2a;
  --rail-w: 264px;
}

body { background: var(--cream); }

/* ── console: rail + panel ─────────────────────────────────────────────────── */
/* The rail's ink is painted on the grid as well, so a panel longer than the
   viewport never shows a cream gap under the sticky rail. */
.console {
  display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100svh;
  background: linear-gradient(90deg, var(--ink) 0 var(--rail-w), transparent var(--rail-w));
}

.rail {
  position: sticky; top: 0; align-self: start; height: 100svh;
  display: flex; flex-direction: column; gap: 26px;
  padding: 20px 16px 16px;
  background: var(--ink); color: var(--on-dark);
  overflow: auto; overscroll-behavior: contain;
}
.rail__brand { display: flex; align-items: center; gap: 12px; padding: 2px 4px; text-decoration: none; color: inherit; }
/* The mascot sits in a ring that turns slowly: the console is a running machine. */
.rail__mark {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, var(--accent), transparent 35%, transparent 65%, var(--accent));
  animation: spin 6s linear infinite;
}
.rail__mark img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%;
  background: var(--cream); animation: spin 6s linear infinite reverse;
}
.rail__brandtx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rail__name { font: 500 16px/1 var(--sans); letter-spacing: -0.01em; }
.rail__tag { margin: 0; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }

.rail__sec { display: flex; flex-direction: column; gap: 6px; }
.rail__kicker { margin: 0 0 4px 12px; font-size: 11.5px; color: var(--on-dark-dim); letter-spacing: 0.06em; }
.rail__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail__nav a {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 0 12px; border-radius: 8px;
  font: 400 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--on-dark-dim); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.rail__i { width: 18px; flex: none; font-size: 11px; color: rgba(255, 255, 255, 0.3); font-variant-numeric: tabular-nums; transition: color 0.2s; }
.rail__t { transition: transform 0.25s var(--ease-out); }
.rail__nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.06); }
.rail__nav a:hover .rail__t { transform: translateX(3px); }
.rail__nav a[aria-current="true"] { color: var(--on-dark); background: rgba(255, 255, 255, 0.09); }
.rail__nav a[aria-current="true"] .rail__i { color: var(--accent); }
.rail__nav a[aria-current="true"]::before {
  content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); transform-origin: center; animation: grow-y 0.35s var(--ease-out) both;
}
.rail__nav .cnt { margin-left: auto; color: var(--on-dark-dim); font-variant-numeric: tabular-nums; }

.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--on-dark-faint); padding-top: 16px; }
.rail__me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rail__av {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: var(--on-dark);
  font: 500 14px/1 var(--mono); text-transform: uppercase;
}
.rail__metx { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rail__who { margin: 0; font-size: 12px; color: var(--on-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
.rail__role { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--on-dark-dim); }
.rail__role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fbf8f; animation: halo-ok 2.4s ease-out infinite; }
.rail__actions { display: flex; align-items: center; gap: 8px; }
.rail__lang, .rail__out {
  height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--on-dark-dim);
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.02em;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.rail__out { flex: 1; }
.rail__lang:hover, .rail__out:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.32); }

/* A faint dot grid behind the head of every panel, fading out downwards, so the
   paper is a surface rather than an empty page. */
.panel { position: relative; padding: 40px clamp(20px, 3.4vw, 52px) 88px; min-width: 0; }
.panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 360px; pointer-events: none;
  background-image: radial-gradient(rgba(35, 35, 35, 0.13) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}
.panel__inner { position: relative; max-width: 1180px; margin: 0 auto; }

/* Every block of a freshly painted panel rises in turn; dash.js sets --i. */
.panel__inner > * { animation: rise 0.55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }

/* ── panel head: a kicker, a claim, one line of lede ───────────────────────── */
.phead {
  margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--rule);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 24px; flex-wrap: wrap;
}
.phead > div:first-child { min-width: 0; }
.phead__kicker { margin: 0 0 14px; color: #555; display: inline-flex; align-items: center; gap: 10px; }
.phead > div > .phead__kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.55); animation: halo 2s ease-out infinite;
}
.ptitle { margin: 0; font-weight: 500; font-size: clamp(30px, 3vw, 44px); line-height: 1.02; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.plede { margin: 14px 0 0; max-width: 620px; color: #4a4a4a; line-height: 1.4; }
.phead__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.rule { height: 1px; background: var(--rule); margin: 26px 0; }
.sub { margin: 0 0 14px; color: #555; }

section.block { margin-top: 44px; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.block__title { margin: 0; font-weight: 500; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -0.01em; }
.block__meta { margin: 0; color: #666; }

/* ── stat strip: an oversized numeral per claim, ruled, no shadow ──────────── */
/* Lines are drawn inside each cell (right + bottom) on a grid one pixel wider
   and taller than its frame, which clips the outer edge. A gap over a ruled
   background would leave a grey slab after a short last row. */
.stats { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); margin: 0 -1px -1px 0; }
.stat {
  position: relative; background: var(--surface); padding: 20px 20px 18px; min-width: 0;
  box-shadow: inset -1px -1px 0 var(--rule); transition: background-color 0.25s;
}
.stat::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease-out);
}
.stat:hover { background: #fff; }
.stat:hover::after { transform: scaleX(1); }
.stat__n {
  font-weight: 500; font-size: clamp(28px, 2.5vw, 38px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stat__u { font-size: 0.44em; color: #666; margin-left: 4px; letter-spacing: 0; }
.stat__k { margin: 12px 0 0; color: #666; font-size: 11.5px; }
.stat--accent::after, .stat--bad::after { transform: scaleX(1); }
.stat--accent::after { background: var(--accent); }
.stat--accent .stat__n { color: #d97a00; }
.stat--bad::after { background: var(--bad); }
.stat--bad .stat__n { color: var(--bad); }

/* ── cards / forms ─────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; transition: border-color 0.25s; }
.card:hover { border-color: var(--rule-strong); }
.card + .card, .kv + .card { margin-top: 18px; }
.card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: -4px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.card__title { margin: 0; font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.console .field { margin-bottom: 0; gap: 7px; }
.console .field__label { font-size: 11.5px; }
.console .field__input { height: 44px; padding: 0 14px; font-size: 15px; background: #fff; border-radius: 8px; }
.console .field textarea.field__input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.45; resize: vertical; }
.console .field select.field__input {
  appearance: none; cursor: pointer; padding-right: 38px;
  /* A native select hides behind the input style; keep the affordance. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23232323' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* Boolean fields sit at input height in the grid, the box beside its meaning. */
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.console input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.form-grid > .form-actions { margin-top: 0; min-height: 44px; }
.hint { color: #666; margin: 0; font-size: 14px; line-height: 1.4; }
.card > .hint { margin-top: 14px; }

/* ── tables ────────────────────────────────────────────────────────────────── */
.tbl-wrap { border: 1px solid var(--rule); border-radius: 14px; overflow-x: auto; overflow-y: hidden; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--surface-2);
  font: 400 11.5px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; color: #666; white-space: nowrap;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; transition: background-color 0.15s; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { animation: row-in 0.45s var(--ease-out) both; animation-delay: calc(120ms + var(--r, 0) * 35ms); }
.tbl tbody tr:hover td { background: #fff; }
.tbl tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
/* Keys, hosts and slugs are identifiers: a hyphen is not a break point. The
   wrap scrolls sideways instead. */
.tbl .m, .tbl .key { font-family: var(--mono); font-size: 12.75px; letter-spacing: 0.01em; white-space: nowrap; }
.tbl .nowrap { white-space: nowrap; }
.tbl td[colspan] { background: var(--surface-2); padding: 18px 16px; }
.tbl__actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.card .tbl-wrap { background: #fff; }
@media (max-width: 760px) { .tbl { min-width: 640px; } }

/* ── status: status colours are status-only ────────────────────────────────── */
.st { display: inline-flex; align-items: center; gap: 7px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st--ok { color: var(--ok); }
.st--warn { color: var(--warn); }
.st--bad { color: var(--bad); }
.st--dim { color: #777; }
/* Only a run that is actually moving pulses. */
.st--live { color: #d97a00; }
.st--live::before { box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.6); animation: halo 1.6s ease-out infinite; }

/* ── buttons: reuse .btn segments, add a small and a line variant ──────────── */
.console .btn__seg { height: 44px; font-size: 13px; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out); }
.console .btn:active .btn__seg { transform: translateY(1px); }
.btn--sm .btn__seg, .console .btn--sm .btn__seg { height: 36px; padding: 0 14px; font-size: 12px; }
.btn--line .btn__seg { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.btn--line:hover .btn__seg { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--danger .btn__seg { background: var(--bad); color: #fff; }
.btn--danger:hover .btn__seg { background: #7f2f22; }
.btn[aria-disabled="true"] .btn__seg { opacity: 0.5; cursor: not-allowed; }
button.btn { border: 0; padding: 0; background: none; cursor: pointer; }

/* inline action buttons behave like links in a table */
.act {
  height: 30px; padding: 0 11px; border-radius: 6px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--rule-strong); background: #fff; color: var(--ink);
  font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.act:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.act--danger { color: var(--bad); border-color: rgba(156, 58, 42, 0.35); }
.act--danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.act[disabled] { opacity: 0.45; cursor: not-allowed; }
.act[disabled]:hover { background: #fff; color: var(--ink); border-color: var(--rule-strong); }

/* ── filter tabs ───────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 0; border-radius: 7px; background: transparent; color: #555; cursor: pointer; text-decoration: none;
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em;
  transition: background-color 0.2s, color 0.2s;
}
.tabs a:hover, .tabs button:hover { background: var(--ghost); color: var(--ink); }
.tabs [aria-current="true"], .tabs [aria-current="true"]:hover { background: var(--ink); color: var(--cream); }
.tabs .cnt { color: inherit; opacity: 0.6; font-variant-numeric: tabular-nums; }

/* ── search row ────────────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 18px 0 16px; }
.toolbar .field { margin: 0; flex: 0 1 340px; }

/* ── run log: the stream is the product working ────────────────────────────── */
.run { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.runline { margin: -8px 0 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #555; }
.stage-list { list-style: none; margin: 0; padding: 6px 18px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); counter-reset: st; }
.stage-row { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 3px 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); opacity: 0.45; transition: opacity 0.4s var(--ease-out); }
.stage-row:last-child { border-bottom: 0; }
/* The thread between markers fills in as the run walks down the list. */
.stage-row:not(:last-child)::after {
  content: ""; position: absolute; left: 6px; top: 30px; bottom: -12px; width: 1px; background: var(--rule-strong);
}
.stage-row.is-done:not(:last-child)::after { background: var(--ok); }
.stage-row.is-active, .stage-row.is-done, .stage-row.is-failed, .stage-row.is-warn { opacity: 1; }
.stage-row__mk { position: relative; z-index: 1; grid-row: 1 / 3; width: 13px; height: 13px; margin-top: 3px; border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--surface); transition: background-color 0.3s, border-color 0.3s; }
.stage-row.is-active .stage-row__mk { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.6); animation: halo 1.4s ease-out infinite; }
.stage-row.is-done .stage-row__mk { border-color: var(--ok); background: var(--ok); }
.stage-row.is-failed .stage-row__mk { border-color: var(--bad); background: var(--bad); }
.stage-row.is-warn .stage-row__mk { border-color: var(--warn); background: var(--warn); }
.stage-row__t { font-size: 15px; }
.stage-row__id { font-family: var(--mono); font-size: 11.5px; color: #777; letter-spacing: 0.02em; }

.log { position: relative; background: var(--deep); color: var(--on-dark); border-radius: 14px; overflow: hidden; border: 1px solid #000; }
/* A slow scanline over the stream; decorative, under the text. */
.log::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 80px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 145, 0, 0.05), transparent);
  animation: scan 5s linear infinite;
}
.log__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--on-dark-faint); background: rgba(255, 255, 255, 0.03); }
.log__dots { display: inline-flex; gap: 6px; }
.log__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.log__bar .mono { color: var(--on-dark-dim); margin: 0; font-size: 11.5px; }
.log__state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--on-dark-dim); }
.log__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.log__state.is-live { color: var(--accent); }
.log__state.is-live::before { box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.6); animation: halo 1.4s ease-out infinite; }
.log__body { position: relative; margin: 0; padding: 16px 18px; min-height: 220px; max-height: 60vh; overflow: auto; font: 400 12.75px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.log__body > div { padding-left: 2px; }
.log__body .ln-in { animation: type-in 0.35s var(--ease-out) both; }
.log__body.is-live::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.log__body .lv-error { color: #ff9d8c; }
.log__body .lv-warn { color: #ffd18a; }
.log__body .lv-repair { color: #8fd6ff; }
.log__body .ln { color: rgba(255, 255, 255, 0.38); }
.log__empty { color: var(--on-dark-dim); }

/* ── provision wizard ──────────────────────────────────────────────────────────
   One card, three panes. The top carries the license and the stepper, the
   body one pane at a time in titled sections, the foot Back on the left and
   the way forward on the right. Grids are named per row so a field never
   lands in a column that is the wrong width for what it holds. */
.wiz { padding: 0; overflow: hidden; }
.wiz__top { padding: 18px 24px 0; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.wiz__body { padding: 8px 24px 4px; }
.wiz__note { margin: 0; padding: 10px 24px 0; font-size: 11.5px; line-height: 1.65; color: var(--muted, #6b675f); }
.wiz__body > .auth__error { margin: 18px 0 0; }
.wstep[hidden] { display: none; }
.wstep { animation: wstep-in 0.45s var(--ease-out) both; }
@keyframes wstep-in { from { opacity: 0; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }

.pgrid { display: grid; gap: 16px; align-items: end; }
.pgrid + .pgrid, .pgrid + .field { margin-top: 16px; }
.pgrid--top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-width: 720px; }
.pgrid--ssh { grid-template-columns: minmax(0, 2fr) minmax(0, 110px) minmax(0, 1fr); }
.pgrid--auth { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 1fr); }
.pgrid--gw { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
.pgrid--chan { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; margin-top: 18px; }
.pgrid > [hidden], .wiz .field[hidden] { display: none; }
.pgrid__act { display: flex; align-items: center; min-height: 44px; }
.field--wide { margin-top: 16px; }

.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 14px 0 0; padding: 0; }
.stepper__i { position: relative; }
.stepper__b {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 4px 12px; text-align: left;
  border: 0; background: none; color: inherit; font: inherit; cursor: default;
}
.stepper__b:not(:disabled) { cursor: pointer; }
.stepper__b:not(:disabled):hover .stepper__t { text-decoration: underline; text-underline-offset: 3px; }
/* The rail under the steps fills up to the current one. */
.stepper__i::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent;
  transform-origin: left; transform: scaleX(0); transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.stepper__i.is-done::after { background: var(--ok); transform: scaleX(1); }
.stepper__i.is-on::after { background: var(--ink); transform: scaleX(1); }
.stepper__n {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: var(--surface); font-size: 11px; color: #777;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.stepper__i.is-on .stepper__n { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.stepper__i.is-done .stepper__n { background: var(--ok); border-color: var(--ok); color: #fff; font-size: 0; }
/* A drawn tick, centred by the grid: a rotated border corner never sits
   in the middle of a circle. */
.stepper__i.is-done .stepper__n::before { content: ""; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.3 6.4l2.4 2.4 5-5.2' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: tick-pop 0.35s var(--ease-out) both; }
.stepper__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stepper__t { font-size: 15px; font-weight: 500; }
.stepper__d { font-size: 12.5px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper__i:not(.is-on):not(.is-done) .stepper__t { color: #777; }

.wsec { padding: 16px 0; }
.wsec + .wsec { border-top: 1px solid var(--rule); }
.wsec[hidden] { display: none; }
.wsec .wsec { padding: 0; border: 0; }
.wsec__head { margin-bottom: 12px; }
.wsec__t { margin: 0 0 4px; font: 400 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: #444; }
.wsec__head .hint { max-width: 80ch; font-size: 13.5px; }
.wsec__act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.wsec__act .hint { font-size: 13px; }

/* Choice cards: a radio you can hit anywhere on the tile. */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start;
  padding: 11px 14px; border: 1px solid var(--rule-strong); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, translate 0.2s var(--ease-out);
}
.choice:hover { border-color: #232323; translate: 0 -1px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__mk { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.choice__tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choice__t { font-size: 14.5px; font-weight: 500; }
.choice__d { font-size: 12.75px; line-height: 1.35; color: #666; }
.choice__tag { font-size: 10.5px; color: #777; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink) inset; }
.choice:has(input:checked) .choice__mk { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Chat channel guide: two numbered steps side by side, each with the link
   that gets the value, what to do there, and the field it goes in. */
.cguide { margin-top: 12px; padding: 16px 18px 14px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; animation: wstep-in 0.35s var(--ease-out) both; }
.cguide[hidden] { display: none; }
.cguide__head { margin-bottom: 14px; }
.cguide__title { margin: 0 0 3px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.cguide__head .hint { font-size: 13px; }
.cguide__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.cguide__step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-content: start; }
.cguide__n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 11.5px; }
.cguide__b { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cguide__t { margin: 2px 0 0; font-size: 14.5px; font-weight: 500; }
.cguide__d { font-size: 13px; line-height: 1.5; color: #555; }
.cguide .md p { margin: 0; }
.cguide .md strong { color: var(--ink); font-weight: 600; }
.cguide .md code { background: rgba(35, 35, 35, 0.07); color: var(--ink); }
.cguide .field__hint { font-size: 12.5px; color: #777; }
.cguide__row { display: flex; gap: 8px; }
.cguide__row .field__input { flex: 1; min-width: 0; }
.act.cguide__show { height: 44px; padding: 0 14px; }
.cguide__foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.cguide__foot .gwline { margin: 0; }
.cguide__note:empty { display: none; }
.cguide__note { margin-top: 10px; }
.extlink {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.extlink:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.extlink__i { font-size: 12px; transition: transform 0.2s var(--ease-out); }
.extlink:hover .extlink__i { transform: translate(2px, -2px); }
@media (max-width: 900px) { .cguide__steps { grid-template-columns: 1fr; } }

/* SSH probe result. */
.probe { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: #fff; animation: wstep-in 0.35s var(--ease-out) both; }
.probe[hidden] { display: none; }
.probe__head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; }
.probe__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #bbb; }
.probe.is-busy .probe__dot { background: var(--accent); animation: halo 1.2s ease-out infinite; }
.probe.is-busy .probe__head { color: #666; font-family: var(--mono); font-size: 12px; }
.probe.is-ok { border-color: rgba(29, 106, 85, 0.3); background: #f1f8f4; }
.probe.is-ok .probe__dot { background: var(--ok); }
.probe.is-ok .probe__head strong { color: var(--ok); font-weight: 500; }
.probe.is-bad { border-color: rgba(156, 58, 42, 0.3); background: #fdf1ef; }
.probe.is-bad .probe__dot { background: var(--bad); }
.probe.is-bad .probe__head strong { color: var(--bad); font-weight: 500; }
.probe__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.probe__kv { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.probe__kv .mono { font-size: 10.5px; color: #777; }
.probe__kv > span:last-child { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.probe__kv .is-ok { color: var(--ok); }
.probe__kv .is-bad, .probe__msg.is-bad { color: var(--bad); }
.probe__msg { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: #444; }

/* START gate: what the button is waiting for, ticked live. */
.gate { margin: 4px 0 22px; padding: 16px 18px; border-radius: 12px; border: 1px solid; transition: background-color 0.3s, border-color 0.3s; }
.gate.is-locked { border-color: rgba(176, 112, 0, 0.35); background: #fff7e8; }
.gate.is-ready { border-color: rgba(29, 106, 85, 0.3); background: #f1f8f4; }
.gate__head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14.5px; }
.gate__head strong { font-weight: 500; }
.gate.is-locked .gate__head strong { color: #8a5600; }
.gate.is-ready .gate__head strong { color: var(--ok); }
.gate__icon { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.gate.is-locked .gate__icon { background: #e2a33b; }
.gate.is-locked .gate__icon::before { content: "!"; color: #fff; font: 700 12px/1 var(--sans); }
.gate.is-ready .gate__icon { background: var(--ok); }
.gate.is-ready .gate__icon::before { content: ""; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.3 6.4l2.4 2.4 5-5.2' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation: tick-pop 0.35s var(--ease-out) both; }
/* Not tick-in: that one belongs to the paid mark and carries its rotation. */
@keyframes tick-pop { from { opacity: 0; scale: 0.4; } to { opacity: 1; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .stepper__i.is-done .stepper__n::before, .gate.is-ready .gate__icon::before { animation: none; } }
.gate ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.gate__row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.gate__mk { flex: none; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--rule-strong); background: #fff; transition: background-color 0.25s, border-color 0.25s; }
.gate__row.is-ok .gate__mk { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.gate__row.is-ok .gate__t { color: #333; }
.gate__row.is-todo .gate__t { color: #8a5600; }
.gate__row.is-soft .gate__mk { border-style: dashed; }
.gate__row.is-soft .gate__t { color: #666; }
.gate__n { font-size: 10.5px; color: #888; }

.wfoot { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--rule); background: var(--surface-2); }
.wfoot__gap { flex: 1; }
.wfoot .btn[hidden] { display: none; }
.wfoot .btn.is-ready .btn__seg { background: var(--accent); color: var(--ink); }
.wfoot .btn.is-ready:hover .btn__seg { background: #ffa733; }

@media (max-width: 900px) {
  .pgrid--ssh { grid-template-columns: minmax(0, 1fr) minmax(0, 100px); }
  .pgrid--ssh > :last-child { grid-column: 1 / -1; }
  .pgrid--auth, .pgrid--gw, .pgrid--chan, .pgrid--top { grid-template-columns: 1fr; }
  .choices, .choices--3 { grid-template-columns: 1fr; }
  .probe__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gate ul { grid-template-columns: 1fr; }
  .stepper__d { display: none; }
}
@media (max-width: 560px) {
  .wiz__top, .wiz__body { padding-left: 16px; padding-right: 16px; }
  .wfoot { padding: 14px 16px; }
  .stepper__b { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .wstep, .probe { animation: none; } }

/* ── repair log ────────────────────────────────────────────────────────────── */
.rep summary { cursor: pointer; color: #777; }
.rep summary:hover { color: inherit; }
.rep__pre {
  margin-top: 6px; max-width: 48ch; white-space: pre-wrap; word-break: break-word;
  font-size: 11px; line-height: 1.5; color: #777;
}

/* ── misc ──────────────────────────────────────────────────────────────────── */
.emptystate {
  position: relative; overflow: hidden;
  border: 1px dashed var(--rule-strong); border-radius: 14px; padding: 44px 24px; text-align: center;
  background: repeating-linear-gradient(-55deg, transparent 0 10px, rgba(35, 35, 35, 0.025) 10px 11px), var(--surface);
}
.emptystate__title { margin: 0 0 8px; font-weight: 500; font-size: 19px; }
.emptystate p { margin: 0 auto 20px; max-width: 460px; color: #555; line-height: 1.4; }
.emptystate p:last-child { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 1px; margin: 0; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.kv dt { background: var(--surface-2); padding: 13px 16px; margin: 0; color: #666; font: 400 11.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; }
.kv dd { background: var(--surface); padding: 13px 16px; margin: 0; word-break: break-word; }
.kv dd.m { font-family: var(--mono); font-size: 13px; }
.key { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.key:hover { color: #d97a00; text-decoration-color: var(--accent); }
.key--big { font-size: clamp(16px, 1.5vw, 20px); }
.flash { margin: 0 0 22px; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(29, 106, 85, 0.2); background: #e9f2ec; color: var(--ok); font-size: 14.5px; }
.flash--bad { border-color: rgba(156, 58, 42, 0.2); background: #fbe9e7; color: var(--bad); }
.pager { display: flex; gap: 10px; margin-top: 20px; color: #666; }

/* ── buy: catalogue cards ──────────────────────────────────────────────────── */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.shopcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 340px;
  border-radius: 16px; background: var(--ink); color: var(--on-dark); text-decoration: none;
  animation-delay: calc(180ms + var(--r, 0) * 110ms);
}
.shopcard--lead { grid-column: span 2; }
.shopcard.is-out { opacity: 0.6; }
.shopcard__art { position: relative; flex: 1; min-height: 150px; overflow: hidden; background: repeating-linear-gradient(-55deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px); }
.shopcard__art img { position: absolute; right: 5%; bottom: 0; height: 96%; width: auto; }
.shopcard__mono { position: absolute; left: 20px; bottom: 4px; font: 500 128px/1 var(--sans); letter-spacing: -0.06em; color: rgba(255, 255, 255, 0.1); }
.shopcard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; border-top: 1px dashed rgba(255, 255, 255, 0.25); }
.shopcard__n { margin: 0; font-size: 11.5px; color: var(--on-dark-dim); }
.shopcard__name { margin: 0; font-weight: 500; font-size: 26px; letter-spacing: -0.02em; line-height: 1.05; }
.shopcard__tag { margin: 0; color: var(--on-dark-dim); line-height: 1.4; font-size: 14.5px; }
.shopcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.shopcard__price { margin: 0; display: flex; align-items: baseline; gap: 8px; font-weight: 500; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.shopcard__price .mono { font-size: 11.5px; font-weight: 400; color: var(--on-dark-dim); }
.shopcard__cta { flex: none; white-space: nowrap; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11.5px; }
.buynote { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; color: #555; }
.buynote .mono { margin: 0; font-size: 11.5px; }
.paychips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.paychip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--rule-strong); background: #fff; font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
.paychip--qris { border-color: rgba(255, 145, 0, 0.5); background: #fff4e5; }
.paychip { animation: chip-in 0.5s var(--ease-out) both; }
.paychip:nth-child(2) { animation-delay: 0.08s; } .paychip:nth-child(3) { animation-delay: 0.16s; }
@keyframes chip-in { from { opacity: 0; scale: 0.6; } to { opacity: 1; scale: 1; } }

/* ── buy: checkout, steps on the left and the bill on the right ────────────── */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 22px; align-items: start; }
.checkout__steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step { position: relative; }
.step .card__title { margin: 0 0 16px; }
.step__n { position: absolute; top: 24px; right: 24px; margin: 0; font-size: 11.5px; color: #999; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pick__o {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-height: 84px;
  padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--rule-strong); background: #fff; color: var(--ink); font: 500 16px/1.15 var(--sans);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.pick__o::after { content: ""; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--rule-strong); background: #fff; transition: all 0.2s; }
.pick__o:hover { border-color: var(--ink); transform: translateY(-1px); }
.pick__o[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.6); }
.pick__o[aria-checked="true"]::after { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--ink); }
.pick__t { padding-right: 22px; }
.pick__s { margin-top: auto; text-transform: none; font-size: 12px; color: #666; font-variant-numeric: tabular-nums; }
.pick__o[aria-checked="true"] .pick__s { color: rgba(255, 255, 255, 0.65); }
.pick--pay { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pick__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--rule); }
.pick__o--qris .pick__ic { background:
  linear-gradient(var(--ink), var(--ink)) 6px 6px / 7px 7px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 17px 6px / 7px 7px no-repeat,
  linear-gradient(var(--ink), var(--ink)) 6px 17px / 7px 7px no-repeat,
  linear-gradient(var(--accent), var(--accent)) 17px 17px / 7px 7px no-repeat, #fff; }
.pick__o--crypto .pick__ic { background: radial-gradient(circle at 50% 50%, var(--accent) 0 6px, transparent 6.5px), #fff; }

.sum {
  position: sticky; top: 24px; display: flex; flex-direction: column; gap: 6px;
  padding: 24px; border-radius: 16px; background: var(--ink); color: var(--on-dark); overflow: hidden;
}
.sum::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.sum__k { margin: 0; font-size: 11.5px; color: var(--on-dark-dim); }
.sum__price { margin: 6px 0 0; font-weight: 500; font-size: clamp(30px, 2.6vw, 40px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sum__idr { margin: 4px 0 0; font-size: 11.5px; color: var(--on-dark-dim); text-transform: none; }
.sum__rows { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 18px 0; padding: 16px 0; border-top: 1px dashed rgba(255, 255, 255, 0.22); border-bottom: 1px dashed rgba(255, 255, 255, 0.22); }
.sum__rows dt { margin: 0; font: 400 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: var(--on-dark-dim); }
.sum__rows dd { margin: 0; text-align: right; font-size: 14.5px; }
.sum .auth__error { color: #ffb4a8; background: rgba(255, 120, 100, 0.12); }
.sum .buy { width: 100%; border: 0; font: inherit; cursor: pointer; }
.sum .buy[disabled] { cursor: progress; opacity: 0.8; }
.sum__note { margin: 12px 0 0; font-size: 13px; line-height: 1.4; color: var(--on-dark-dim); }

/* ── pay page: the QR is the hero ──────────────────────────────────────────── */
.payqr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.qr {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 22px 22px 20px; border-radius: 20px; background: var(--ink); color: var(--on-dark);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.7);
}
.qr__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.qr__brand { font: 600 18px/1 var(--sans); letter-spacing: 0.08em; }
.qr__test { height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 99px; background: rgba(255, 209, 138, 0.15); color: #ffd18a; font-size: 10.5px; }
.qr__frame { position: relative; padding: 10px; border-radius: 14px; background: #fff; overflow: hidden; }
.qr__canvas { display: block; image-rendering: pixelated; }
/* A scan line sweeps the code: something is listening for the payment. */
.qr__scan { position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; background: var(--accent); box-shadow: 0 0 14px 2px rgba(255, 145, 0, 0.55); animation: qrscan 2.6s ease-in-out infinite alternate; opacity: 0.85; }
@keyframes qrscan { from { transform: translateY(0); } to { transform: translateY(262px); } }
.qr__amt { margin: 2px 0 0; font-weight: 500; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.qr__left { font-size: 11.5px; color: var(--on-dark-dim); }
.qr__left.is-low { color: #ffb4a8; }
.payqr__side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.howto { list-style: none; margin: 0; padding: 0; counter-reset: how; display: flex; flex-direction: column; gap: 10px; }
.howto li { counter-increment: how; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: baseline; line-height: 1.4; }
.howto li::before { content: counter(how, decimal-leading-zero); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--rule); font: 400 11.5px/1 var(--mono); }
.payqr__wait { margin: 0; }
.payqr__alt { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }

.paid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; padding: 26px; border-radius: 16px; border: 1px solid rgba(29, 106, 85, 0.25); background: #e9f2ec; }
.paid__mark { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); animation: pop 0.5s var(--ease-out) both; }
.paid__mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: ring 1.4s ease-out 0.3s both; }
.paid__mark span { position: absolute; left: 23px; top: 17px; width: 14px; height: 26px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); transform-origin: center; animation: tick-in 0.35s var(--ease-out) 0.25s both; }
.paid__tx { min-width: 0; }
.paid__k { margin: 0 0 6px; color: var(--ok); font-size: 11.5px; }
.paid__key { margin: 0; word-break: break-all; }
.paid .form-actions { margin-top: 14px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
@keyframes tick-in { from { opacity: 0; transform: rotate(45deg) scale(0.4); } to { opacity: 1; transform: rotate(45deg); } }

/* checkout motion */
.pick__o[aria-checked="true"] { animation: pick-pop 0.4s var(--ease-out); }
.pick__o[aria-checked="true"]::after { animation: radio-ring 0.6s ease-out; }
.pick__ic { transition: transform 0.35s var(--ease-out); }
.pick__o:hover .pick__ic { transform: rotate(-8deg) scale(1.08); }
.pick__o--qris[aria-checked="true"] .pick__ic { animation: qris-blink 1.6s steps(2) infinite; }
.pick__o--crypto[aria-checked="true"] .pick__ic { animation: coin-spin 2.4s ease-in-out infinite; }
.checkout .sum { animation: sum-in 0.7s var(--ease-out) 0.15s both; }
.sum::before { background: linear-gradient(90deg, transparent, var(--accent), #ffd18a, var(--accent), transparent); background-size: 200% 100%; animation: sweep 3s linear infinite; }
.sum__price.is-bump { animation: bump 0.45s var(--ease-out); }
.sum__rows dd { transition: color 0.3s; }
.sum .buy::before { animation: sheen 3.6s ease-in-out 1s infinite; }
@keyframes pick-pop { 0% { scale: 0.96; } 60% { scale: 1.03; } 100% { scale: 1; } }
@keyframes radio-ring { 0% { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 0 rgba(255, 145, 0, 0.6); } 100% { box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 10px rgba(255, 145, 0, 0); } }
@keyframes qris-blink { 50% { filter: brightness(1.25) saturate(1.4); } }
@keyframes coin-spin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
@keyframes sum-in { from { opacity: 0; translate: 24px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes sweep { to { background-position: -200% 0; } }
@keyframes bump { 0% { opacity: 0.2; translate: 0 10px; } 100% { opacity: 1; translate: 0 0; } }

@media (max-width: 1100px) {
  .checkout { grid-template-columns: 1fr; }
  .sum { position: static; }
}
@media (max-width: 760px) {
  .shopcard--lead { grid-column: auto; }
  .payqr { grid-template-columns: 1fr; justify-items: center; }
  .payqr__side { width: 100%; }
}

/* ── settings: one card per concern, switches for on/off ───────────────────── */
.setnav { position: sticky; top: 12px; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; width: max-content; max-width: 100%; margin: 0 0 18px; padding: 4px; border-radius: 12px; border: 1px solid var(--rule); background: rgba(251, 250, 247, 0.92); backdrop-filter: blur(6px); }
.setnav a { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; color: #555; text-decoration: none; font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; transition: background-color 0.2s, color 0.2s; }
.setnav a:hover { background: var(--ink); color: var(--cream); }
.settings { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.sset { scroll-margin-top: 70px; }
.sset__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -4px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.sset__tx { min-width: 0; }
.sset__tx .hint { margin-top: 6px; max-width: 72ch; }
.sset__head > .st, .sset__head > .block__meta { flex: none; margin-top: 4px; }
/* Top-aligned: a key field carries a status line under its input, and
   bottom alignment would push its input above its neighbours'. */
.sset__grid { margin-top: 16px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sset__note { margin-top: 12px; }
.sset__ann { margin-top: 16px; }
.console .field__hint { font-size: 12.5px; color: #777; line-height: 1.35; }
.field__input[disabled] { opacity: 0.5; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--rule); cursor: pointer; }
.toggle:first-child { padding-top: 0; }
.toggle__tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.toggle__t { font-weight: 500; }
.toggle__d { font-size: 13.5px; color: #666; line-height: 1.4; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch__in { position: absolute; inset: 0; width: 100% !important; height: 100% !important; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__k { position: absolute; inset: 0; border-radius: 99px; background: #d8d4cc; transition: background-color 0.25s; }
.switch__k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-out); }
.switch__in:checked + .switch__k { background: var(--ink); }
.switch__in:checked + .switch__k::after { transform: translateX(20px); background: var(--accent); }
.switch__in:focus-visible + .switch__k { outline: 2px solid var(--accent); outline-offset: 2px; }

.keyline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 18px; }
.linkish { padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font: 400 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; text-decoration: underline; text-underline-offset: 3px; }
.linkish--bad { color: var(--bad); }
.urlrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--rule); }
.urlrow__k { font-size: 11px; color: #666; min-width: 110px; }
.urlrow__v { flex: 1; min-width: 0; font: 400 12.5px/1.4 var(--mono); overflow-wrap: anywhere; }

.savebar {
  position: sticky; bottom: 14px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px 12px 20px; border-radius: 14px; background: var(--ink); color: var(--on-dark-dim);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6); transition: color 0.3s;
}
.savebar__t { font-size: 14px; }
.savebar.is-dirty { color: var(--on-dark); }
.savebar.is-dirty .savebar__t::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); animation: halo 1.6s ease-out infinite; }
.savebar .btn--dark .btn__seg { background: var(--cream); color: var(--ink); }
.savebar.is-dirty .btn--dark .btn__seg { background: var(--accent); }

/* ── rail badge: unread replies / waiting conversations ────────────────────── */
.rail__badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  display: inline-grid; place-items: center; background: var(--accent); color: var(--ink);
  font: 500 11px/1 var(--mono); animation: badge-pop 0.4s var(--ease-out) both, halo 2s ease-out 0.4s infinite;
}
@keyframes badge-pop { from { scale: 0; } to { scale: 1; } }

/* ── provision: gateway fetch and ping ─────────────────────────────────────── */
.gwgrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.gwline { margin: 10px 0 0; min-height: 16px; font-size: 11.5px; color: #666; text-transform: none; }
.gwline.is-busy { color: #8a6412; }
.gwline.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.gwline.is-ok { color: var(--ok); }
.gwline.is-warn { color: var(--warn); }
.gwline.is-bad { color: var(--bad); }
.supported { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 16px; color: #555; }
.supported > .mono { font-size: 11.5px; }
.supported .paychip { text-transform: none; }
.ping { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.ping:empty { display: none; }
.ping__row {
  display: grid; grid-template-columns: 10px minmax(0, auto) 1fr; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--rule); background: #fff;
  animation: row-in 0.35s var(--ease-out) both;
}
.ping__dot { width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.ping__res { text-align: right; font-size: 11.5px; color: #666; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ping__row.is-busy .ping__dot { background: var(--accent); animation: halo 1.2s ease-out infinite; }
.ping__row.is-ok { border-color: rgba(29, 106, 85, 0.3); background: #f1f8f4; }
.ping__row.is-ok .ping__dot { background: var(--ok); }
.ping__row.is-ok .ping__res { color: var(--ok); }
.ping__row.is-bad { border-color: rgba(156, 58, 42, 0.3); background: #fdf1ef; }
.ping__row.is-bad .ping__dot { background: var(--bad); }
.ping__row.is-bad .ping__res { color: var(--bad); white-space: normal; }
/* START wakes up once the ping passes. */
.btn.is-ready .btn__seg { background: var(--accent); color: var(--ink); animation: ready 0.6s var(--ease-out); }
@keyframes ready { 0% { scale: 0.94; } 60% { scale: 1.05; } 100% { scale: 1; } }

/* ── pay page: cancel ──────────────────────────────────────────────────────── */
.cancel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cancel__q { margin: 0; font-size: 14px; color: #555; }

/* ── support: new ticket + list ────────────────────────────────────────────── */
.support { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.newticket__f { margin: 0; padding: 0; border: 0; min-width: 0; }
.newticket__f[disabled] { opacity: 0.55; }
.newticket .flash { margin-bottom: 16px; }
.slotline { display: flex; align-items: center; gap: 10px; }
.slots { display: inline-flex; gap: 4px; }
.slots i { width: 18px; height: 6px; border-radius: 3px; background: var(--rule-strong); transition: background-color 0.3s; }
.slots i.is-on { background: var(--accent); }
.tlist { min-width: 0; }
.tlist__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs--sm a, .tabs--sm button { height: 30px; padding: 0 12px; font-size: 11.5px; }
.console .tlist__q { height: 38px; flex: 0 1 220px; font-size: 14px; }
/* The list keeps the page's height: it scrolls in its own frame, and the edge
   fades so it is plain there is more below. */
.tlist__items {
  display: flex; flex-direction: column; gap: 8px;
  max-height: min(620px, calc(100svh - 300px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 2px 6px 18px 2px; margin-right: -6px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent);
  scrollbar-width: thin;
}
.tlist__empty { padding: 18px 4px; }
.support > .card + .card { margin-top: 0; }
.tlist__inner { display: flex; flex-direction: column; min-height: 0; }
.tlist .emptystate { flex: 1; }
/* Side by side, the list contributes no height to the row: the new-ticket
   card sets it, and the list fills the same box and scrolls inside. */
@media (min-width: 1101px) {
  .support { align-items: stretch; }
  .tlist { position: relative; min-height: 460px; }
  .tlist__inner { position: absolute; inset: 24px; }
  .tlist__items { flex: 1 1 auto; max-height: none; }
}
.trow { padding: 12px 14px; }
.trow {
  position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface);
  text-decoration: none; color: var(--ink);
  animation: row-in 0.45s var(--ease-out) both; animation-delay: calc(120ms + var(--r, 0) * 50ms);
  transition: border-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.trow:hover { border-color: var(--ink); transform: translateX(3px); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.5); }
.trow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.trow.is-unread .trow__dot { background: var(--accent); animation: halo 1.8s ease-out infinite; }
.trow.is-unread .trow__subj { font-weight: 600; }
.trow.is-closed { opacity: 0.6; }
.trow__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.trow__subj { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow__meta { font-size: 11px; color: #777; }
.trow__new { padding: 3px 8px; border-radius: 99px; background: #fff4e5; color: #b35f00; font-size: 10.5px; }
.tsubj { color: var(--ink); text-decoration: none; }
.tsubj:hover { text-decoration: underline; }
.tsubj.is-unread { font-weight: 600; }
.tsubj.is-unread::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }

/* ── support: the conversation ─────────────────────────────────────────────── */
.tview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.tview--staff { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.chat { display: flex; flex-direction: column; min-width: 0; height: min(72vh, 760px); border-radius: 16px; border: 1px solid var(--rule); background: var(--surface); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); background: #fff; }
.chat__name { margin: 0; font-weight: 500; }
.chat__sub { margin: 3px 0 0; }
.chat__list {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px;
  background-image: radial-gradient(rgba(35, 35, 35, 0.07) 1px, transparent 1.2px); background-size: 18px 18px;
  scroll-behavior: smooth;
}
.msg { display: flex; align-items: flex-end; gap: 10px; max-width: min(78%, 620px); }
.msg--me { flex-direction: row-reverse; align-self: flex-end; }
.msg.is-new { animation: msg-in 0.4s var(--ease-out) both; }
.msg__av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--ghost); font: 500 13px/1 var(--mono); text-transform: uppercase; }
.msg__av--staff { background: var(--cream); box-shadow: 0 0 0 2px var(--accent); }
.msg__av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.msg__col { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.msg--me .msg__col { align-items: flex-end; }
.msg__who { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #555; }
.msg__tag { padding: 2px 6px; border-radius: 99px; background: var(--ink); color: var(--accent); font-size: 9.5px; letter-spacing: 0.06em; }
.msg__at { font-size: 10.5px; color: #999; }
.msg__body {
  padding: 11px 14px; border-radius: 16px 16px 16px 4px; background: #fff; border: 1px solid var(--rule);
  line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg--staff .msg__body { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.msg--me .msg__body { border-radius: 16px 16px 4px 16px; }
.msg--me:not(.msg--staff) .msg__body { background: #fff4e5; border-color: rgba(255, 145, 0, 0.35); }
.chat__composer { padding: 12px 14px 10px; border-top: 1px solid var(--rule); background: #fff; }
.chat__box { display: flex; align-items: flex-end; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--rule-strong); background: var(--surface); transition: border-color 0.2s, box-shadow 0.2s; }
.chat__box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.18); }
.chat__input { flex: 1; min-height: 40px; max-height: 220px; padding: 10px 0; border: 0; outline: none; resize: none; background: transparent; font: 400 15px/1.4 var(--sans); color: var(--ink); }
.chat__send { flex: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 10px; cursor: pointer; background: var(--accent); transition: background-color 0.2s, transform 0.2s var(--ease-out); }
.chat__send span { position: absolute; inset: 0; }
.chat__send span::before { content: ""; position: absolute; left: 12px; top: 19px; width: 16px; height: 2px; background: var(--ink); }
.chat__send span::after { content: ""; position: absolute; left: 19px; top: 15px; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.chat__send:hover { background: #ffa22e; transform: translateX(2px); }
.chat__send[disabled] { opacity: 0.5; cursor: progress; }
.chat__hint { margin: 8px 2px 0; font-size: 10.5px; color: #999; text-transform: none; }
.chat__closed { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; border-top: 1px solid var(--rule); background: var(--surface-2); color: #555; }
.chat__closed p { margin: 0; }
.tside { position: sticky; top: 24px; display: flex; flex-direction: column; min-width: 0; }
.tside .kv { grid-template-columns: minmax(90px, 120px) 1fr; }
.tside__list { display: flex; flex-direction: column; gap: 6px; }
.tside__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; }
.tside__row .m { font-size: 12px; }
a.tside__row:hover { border-color: var(--ink); }
@keyframes msg-in { from { opacity: 0; translate: 0 10px; scale: 0.97; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (max-width: 1100px) {
  .support, .tview--staff { grid-template-columns: 1fr; }
  .tside { position: static; }
  .gwgrid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .msg { max-width: 92%; }
  .chat { height: 70vh; }
  .trow { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .trow .st { display: none; }
}

/* ── loading: the panel's shape, shimmering, instead of a word ─────────────── */
.skel { display: flex; flex-direction: column; gap: 14px; }
.skel i { display: block; border-radius: 8px; background: linear-gradient(90deg, #e6e2da 0%, #f3f0ea 40%, #e6e2da 80%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.skel__k { width: 120px; height: 12px; }
.skel__t { width: min(420px, 70%); height: 40px; }
.skel__l { width: min(560px, 90%); height: 14px; margin-bottom: 22px; }
.skel__stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 12px; }
.skel__stats i { height: 96px; border-radius: 12px; }
.skel__tbl { height: 220px; margin-top: 22px; border-radius: 14px; }

/* ── motion ────────────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes type-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(255, 145, 0, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(255, 145, 0, 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scan { from { transform: translateY(-80px); } to { transform: translateY(70vh); } }
@keyframes halo-ok { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 143, 0.55); } 70%, 100% { box-shadow: 0 0 0 6px rgba(63, 191, 143, 0); } }

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

/* ── mobile: the rail folds into a top bar ─────────────────────────────────── */
@media (max-width: 900px) {
  .console { grid-template-columns: 1fr; background: none; }
  .rail { position: relative; height: auto; gap: 12px; padding: 14px 16px 12px; }
  .rail__sec { gap: 0; }
  .rail__kicker { display: none; }
  .rail__nav { flex-direction: row; overflow-x: auto; gap: 4px; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .rail__nav::-webkit-scrollbar { display: none; }
  .rail__nav a { min-height: 36px; white-space: nowrap; }
  .rail__i { display: none; }
  .rail__nav a[aria-current="true"]::before { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 2px; border-radius: 2px; animation: none; }
  .rail__foot { flex-direction: row; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; position: absolute; top: 19px; right: 16px; }
  .rail__me { display: none; }
  .panel { padding: 26px 16px 64px; }
  .stats__grid, .skel__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 16px 16px 14px; }
  .run { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { padding-bottom: 4px; }
  .kv dd { padding-top: 4px; }
}

/* ── settings: login banner editor ─────────────────────────────────────────────
   Source on the left, the banner as the login page draws it on the right, on
   the same cream ground so the contrast check is the real one. */
.banner-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.banner-ed__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.banner-ed__tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.banner-ed__tools .act { min-width: 34px; text-transform: none; }
.banner-ed__tools .act:nth-child(1) { font-weight: 700; }
.banner-ed__tools .act:nth-child(2) { font-style: italic; }
.banner-ed__tools .act:nth-child(3) { text-decoration: line-through; }
.console .banner-ed__ta, .console .field__input--code { height: auto; min-height: 180px; padding: 12px 14px; font: 400 13.5px/1.55 var(--mono); text-transform: none; resize: vertical; }
.console .field__input--code { min-height: 110px; font-size: 12.5px; }
.banner-ed__src .hint { margin-top: 10px; font-size: 13px; }
.banner-ed__prev { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 16px; }
.banner-ed__stage { padding: 22px; border-radius: 12px; border: 1px dashed var(--rule-strong); background: var(--cream, #f1eee8); }
.banner-ed__stage .lbanner { margin: 0; max-width: 420px; }
.lbanner.is-empty { opacity: 0.55; }
@media (max-width: 900px) { .banner-ed { grid-template-columns: 1fr; } .banner-ed__prev { position: static; } }
