:root {
  --bg: #f6f5f1;
  --card: #ffffff;
  --ink: #1d1c1a;
  --muted: #625f58;
  --line: #e2dfd7;
  --accent: #2f5d50;
  --accent-ink: #ffffff;
  --warn: #8a5a00;
  --danger: #a12d2d;
  --tracked: #e6f0ec;
  --mock: #efe9fb;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
main { max-width: 40rem; margin: 0 auto; padding: 1rem 1rem 3rem; }
main.panel, main.wide { max-width: none; } /* full width: the landing page link lists need it */
.hero { max-width: 40rem; }
.links-table th, .links-table td { white-space: nowrap; }
.bar .tabs { margin: 0 0 0 auto; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0.75rem 0; }
h2 { font-size: 1.1rem; margin: 0; }
h3 { font-size: 0.9rem; margin: 0.75rem 0 0.4rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; word-break: break-all; }
.bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; padding: 0.75rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
.tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.6rem; }
.strip { margin: 0; padding: 0.4rem 1rem; font-size: 0.8rem; color: var(--muted); background: #eeece6; border-bottom: 1px solid var(--line); }
.strip.tracked { background: var(--tracked); color: var(--accent); }
.strip.mock { background: var(--mock); color: #4b2d83; }
.strip.connected { background: #fff3d6; color: var(--warn); }
.badge { font-size: 0.75rem; font-weight: 700; border-radius: 4px; padding: 0.1rem 0.5rem; }
.badge.mock { background: #4b2d83; color: #fff; }
.badge.connected { background: var(--warn); color: #fff; }
.lead { font-size: 1.05rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin: 0.75rem 0; }
.plan .price { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; align-items: center; }
button, .button { font: inherit; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 8px; padding: 0.55rem 1rem; cursor: pointer; text-decoration: none; display: inline-block; min-height: 2.5rem; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.secondary, a.secondary, .button.secondary { background: transparent; color: var(--accent); }
button.wallet { background: #111; border-color: #111; color: #fff; }
button.warn { background: var(--warn); border-color: var(--warn); }
button.danger { color: var(--danger); border-color: var(--danger); }
button.small { padding: 0.15rem 0.5rem; min-height: 0; font-size: 0.8rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
form.card { display: grid; gap: 0.6rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
legend { font-weight: 600; font-size: 1.15rem; margin-bottom: 0.4rem; }
.choice { display: flex; gap: 0.5rem; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.75rem; cursor: pointer; }
label { display: grid; gap: 0.25rem; font-size: 0.9rem; }
input, select { font: inherit; padding: 0.5rem 0.6rem; border: 1px solid #bcb8ad; border-radius: 6px; background: #fff; min-width: 0; }
.choice input { width: auto; }
.choice.offer.selected { border-color: var(--accent); background: var(--tracked); }
label.inline { display: flex; gap: 0.4rem; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.error { color: var(--danger); }
.note { background: #fff8e6; border: 1px solid #f0d58a; border-radius: 8px; padding: 0.5rem 0.75rem; word-break: break-all; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0.5rem 0; }
dt { color: var(--muted); }
dd { margin: 0; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.offer-links .currency-link { margin-right: 0.6rem; }
.offer-links { margin: 0.5rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.account-actions { display: grid; gap: 0.25rem; margin-top: 0.75rem; }
.tabs { display: flex; gap: 1rem; margin-bottom: 0.5rem; }
.tabs a[aria-current="page"] { font-weight: 700; text-decoration: none; color: var(--ink); }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: grid; align-items: end; justify-items: center; }
.sheet { background: var(--card); width: 100%; max-width: 28rem; border-radius: 14px 14px 0 0; padding: 1.25rem; display: grid; gap: 0.6rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: center; }
.steps { margin: 0.5rem 0; padding-left: 1.2rem; }
.grid2 { display: grid; gap: 0 0.75rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.form-grid { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); margin: 0.75rem 0; }
.form-grid .wide { grid-column: 1 / -1; }
details > summary { cursor: pointer; }
details > summary h2 { display: inline; }
.action-groups { display: grid; gap: 0.5rem 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.action-groups > div { display: flex; flex-wrap: wrap; gap: 0.4rem; align-content: start; }
.action-groups h3 { width: 100%; }
.job { border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.5rem; }
.job.failed p strong, .job.unexpected p strong { color: var(--danger); }
.job.accepted p strong { color: var(--accent); }
.json { background: #f3f2ee; border-radius: 6px; padding: 0.6rem; font-size: 0.8rem; overflow-x: auto; max-width: 100%; }
.journal tr.violation td { background: #fde8e8; }
.journal tr.suppressed td { color: var(--muted); }
.ladder { grid-template-columns: 1fr; }
.ladder > div { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 0.5rem; }
.runbar select { max-width: 100%; }
@media (max-width: 30rem) {
  h1 { font-size: 1.35rem; }
  .ladder > div, dl { grid-template-columns: 1fr; }
  .bar { padding: 0.6rem 0.75rem; }
}
