html, body { background: #F5EFE4; }

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(geist.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(geist-mono.woff2) format("woff2"); }

:root {
  --ink: #0F1E2E; --ink-2: #182B3F; --ink-3: #24405A;
  --flare: #FF5A2C; --flare-deep: #C5360F;
  --foam: #A9E1D2; --foam-deep: #1F5A68;
  --paper: #F5EFE4; --paper-2: #ECE4D4; --card: #FFFCF6; --brass: #E3B341;
  --line: rgb(15 30 46 / .16); --muted: #55616E; --body: #33414F;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--flare-deep); }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 10px 20px; background: var(--ink); color: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); text-decoration: none; font: 600 20px/1 var(--sans); letter-spacing: -0.05em; }
.brand img { border-radius: 7px; border: 1px solid rgb(245 239 228 / .16); }
.bar-launch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.bar-plan { display: flex; align-items: center; gap: 10px; }
.bar select { min-height: 38px; max-width: 220px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink-3); background: var(--ink-2); color: var(--paper); font: 500 14px var(--sans); }
.pill { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--ink-3); color: var(--foam); }
.pill.is-pro { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* ---------- Buttons ---------- */
.tb { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: inherit; font: 500 14px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease); }
.tb:hover { border-color: currentColor; }
.tb:active { transform: scale(.97); }
.tb[disabled] { opacity: .45; cursor: not-allowed; }
.bar .tb { border-color: var(--ink-3); }
.tb-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tb-solid:hover { background: var(--ink-2); }
.bar .tb-solid { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.bar .tb-solid:hover { background: #fff; }
.tb-big { min-height: 50px; width: 100%; font-size: 16px; background: var(--flare); border-color: var(--flare); color: var(--ink); }
.tb-big:hover { background: #ff6d44; }
.linkish { background: none; border: 0; padding: 6px 0; color: var(--flare-deep); font: 500 14px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish[disabled] { opacity: .45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.status { font-size: 13.5px; color: var(--foam-deep); min-height: 1.2em; }

/* ---------- Layout ---------- */
.notice { margin: 16px 20px 0; padding: 14px 18px; border-radius: 16px; background: var(--brass); color: var(--ink); font-size: 15px; }
.work { display: grid; gap: 16px; padding: 16px 20px 80px; max-width: 1320px; margin: 0 auto; }
.col-desk, .col-chan { display: grid; gap: 16px; align-content: start; min-width: 0; }
.panel, .card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; min-width: 0; }
.kicker { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--flare-deep); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.pro-tag { background: var(--brass); color: var(--ink); padding: 4px 8px; border-radius: 999px; letter-spacing: .1em; }
h1, h2 { font-size: 30px; line-height: 1.05; font-weight: 500; letter-spacing: -0.04em; margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.panel-p { color: var(--body); margin: -6px 0 16px; max-width: 40em; }
.empty, .foot-note { color: var(--muted); font-size: 14.5px; padding: 4px 6px; max-width: 46em; }

label, .field-label { display: block; font-size: 13.5px; font-weight: 500; margin: 14px 0 6px; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=url], input[type=number], textarea, .card select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 400 15.5px/1.45 var(--sans); letter-spacing: -0.011em; transition: border-color .2s;
}
textarea { resize: vertical; display: block; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); }
input:disabled, textarea:disabled, select:disabled { background: var(--paper); color: var(--muted); }
.card select { width: auto; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* ---------- Preflight ---------- */
.checks { display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--body); }
.check-mark { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--brass); }
.check.is-fail .check-mark { background: var(--flare); }
.check.is-fail { color: var(--ink); font-weight: 500; }
.check.is-ok .check-mark { background: var(--foam-deep); }
.tick { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 400; font-size: 14.5px; cursor: pointer; }
.tick input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------- Picker ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 14.5px var(--sans); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-locked { color: var(--muted); border-style: dashed; }
.chip[disabled] { opacity: .5; cursor: not-allowed; }
.chip-pro { font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--brass); color: var(--ink); padding: 4px 7px; border-radius: 999px; }
.custom { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.custom-h { font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.custom-row { display: grid; gap: 8px; grid-template-columns: 1fr; }

/* ---------- Cards ---------- */
#cards { display: grid; gap: 16px; }
.card { display: grid; gap: 18px; transition: opacity .3s; }
.card[data-status=posted] { opacity: .62; }
.card[data-status=posted]:hover, .card[data-status=posted]:focus-within { opacity: 1; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.card-group { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rules { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 18px 20px; }
.rules-h { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 12px; }
.rules ul { display: grid; gap: 9px; }
.rules li { position: relative; padding-left: 18px; font-size: 15px; }
.rules li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--flare); }
.rules a { color: var(--foam); font-size: 13px; }
.rules-meta { margin-top: 14px; font-size: 13px; color: rgb(245 239 228 / .62); }
.fields { display: grid; gap: 18px; }
.field label, .field .field-label { margin-top: 0; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.field-head .field-label { margin: 0; }
.gauge-num { font: 500 12px/1.4 var(--mono); letter-spacing: .03em; color: var(--foam-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gauge-track { height: 4px; margin-top: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.gauge-bar { height: 100%; width: 0; background: var(--foam-deep); border-radius: 99px; transition: width .35s var(--ease), background-color .2s; }
.field.is-over .gauge-bar { background: var(--flare); }
.field.is-over .gauge-num { color: var(--flare-deep); }
.field .row { margin-top: 10px; }
.facts { background: var(--paper); border-radius: 16px; padding: 16px 18px; }
.facts .field-label { margin-top: 0; }
.facts-note { font-size: 14px; color: var(--body); margin-bottom: 12px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }
.reflink .field-label, .images .field-label { margin-top: 0; }
.reflink code { display: block; padding: 10px 14px; border-radius: 12px; background: var(--paper); font: 400 13.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.reflink .row { margin-top: 10px; }
.images ul { display: grid; gap: 4px; font-size: 14.5px; color: var(--body); }
.images a { font-size: 13px; }

/* ---------- Numbers ---------- */
.locked { background: var(--paper); border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; justify-items: start; color: var(--body); }
.table-wrap { overflow-x: auto; }
.numbers { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.numbers th, .numbers td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.numbers thead th { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.numbers tbody th { font-weight: 500; }
.numbers tfoot th, .numbers tfoot td { font-weight: 600; border-bottom: 0; font-variant-numeric: tabular-nums; }
.numbers input { width: 110px; min-height: 38px; }
.numbers code { font: 400 13px var(--mono); color: var(--foam-deep); }
.muted { color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgb(15 30 46 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-box { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: var(--card); border-radius: 28px; padding: 30px; animation: pop .35s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-box h2 { margin-bottom: 10px; padding-right: 40px; }
.modal-box > p { color: var(--body); }
.pro-list { margin: 18px 0 22px; border-top: 1px solid var(--line); }
.pro-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.license { margin-top: 22px; }
.license .row { flex-wrap: nowrap; }
.license-msg { margin-top: 10px; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.license-msg.err { color: var(--flare-deep); font-weight: 500; }
.modal .linkish { margin-top: 14px; }

@media (min-width: 640px) {
  .custom-row { grid-template-columns: 1.3fr 1.3fr 110px auto; }
}
@media (min-width: 1000px) {
  .work { grid-template-columns: minmax(340px, 420px) 1fr; gap: 20px; padding: 20px 28px 100px; }
  .col-desk { position: sticky; top: 78px; max-height: calc(100dvh - 94px); overflow: auto; padding-bottom: 4px; }
  .notice { margin: 20px 28px 0; }
  .bar { padding: 10px 28px; }
}
@media (max-width: 560px) {
  .bar-launch { margin-left: 0; order: 3; width: 100%; }
  .bar-plan { margin-left: auto; }
  .bar select { flex: 1; max-width: none; }
  .panel, .card { padding: 20px; border-radius: 20px; }
  .license .row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
