:root {
  --accent: #ff1500;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --bg: #fafafa;
  --ok: #15803d;
  --warn: #b45309;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: 'Lexend', system-ui, sans-serif; }
body { max-width: 1040px; margin: 0 auto; padding: 0 16px 32px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; }
.brand { font-weight: 700; font-size: 20px; color: var(--accent); letter-spacing: -0.3px; }
.brand .for { color: var(--ink); font-weight: 500; font-size: 15px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.card.narrow { max-width: 420px; margin: 24px auto; }
h1 { font-size: 22px; font-weight: 600; margin: 0; line-height: 1.3; }
h2 { font-size: 17px; font-weight: 600; margin: 4px 0 12px; }
.line { margin: 8px 0 0; font-size: 15px; color: #3f3f46; line-height: 1.45; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.muted { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.label { margin: 0; font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.big { margin: 4px 0 0; font-size: 26px; font-weight: 600; }
.small-big { font-size: 18px; }
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fffbeb; color: var(--warn); font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.field input, .field select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
  font-size: 15px; color: var(--ink); background: #fff; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; min-height: 44px; }
.check input { width: 20px; height: 20px; }
.row-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.row-form .field { flex: 1 1 180px; }
.stack-form { max-width: 460px; }
.two { display: flex; gap: 12px; }
.two .field { flex: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; min-height: 48px; padding: 0 20px;
  border: none; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; }
.button:disabled { opacity: 0.6; cursor: default; }
.card.narrow .button { width: 100%; }
.button.ghost, .ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ghost.small { min-height: 40px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.msg { min-height: 1em; margin: 10px 0 0; font-size: 14px; color: #b91c1c; }
.msg.ok { color: var(--ok); }
.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
th { font-size: 12px; font-weight: 500; color: var(--muted); background: #fafafa; }
tbody tr:last-child td { border-bottom: none; }
.num { text-align: right; }
td.plus { color: var(--ok); }
.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #f4f4f5; font-size: 11px; color: var(--muted); }
.actions { display: flex; gap: 12px; }
.link { min-height: 32px; padding: 0; border: none; background: none; font: inherit; font-size: 14px; color: var(--ink);
  text-decoration: underline; cursor: pointer; }
.link.danger { color: #b91c1c; }
.instructions { white-space: pre-wrap; margin: 6px 0 16px; padding: 12px; border-radius: 10px; background: #fafafa;
  border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.st-pending { color: var(--warn); }
.st-confirmed { color: var(--ok); }
.st-rejected { color: #b91c1c; }
.foot { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 560px) {
  .two { flex-direction: column; gap: 0; }
  .big { font-size: 22px; }
}
