/* 1click-astropay · ธีม Glass Mono (ต้นแบบ: claude.ai artifact "AstroPay ตารางรายการ" + design system Glass Mono)
   สลับโหมด: <html data-theme="dark|light"> · ฟอนต์ = ฟอนต์กลาง CodexPHub (ห้าม SF Pro: ลิขสิทธิ์ Apple) */
@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700&display=swap");
@font-face {
  font-family: "CodexPHub Thai"; font-weight: 400 700; font-display: swap;
  src: url("https://fonts.gstatic.com/s/notosansthailooped/v16/B50iF6pOpWTRcGrhOVJJ3-oPfY7WQuFu5R36MIjwurFMX_p0KVmQBWnPNGrg.woff2") format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

/* ── tokens ── */
:root[data-theme="light"] {
  --bg-000:#eceef3; --bg-100:#f6f7f9; --bg-glow-1:#ffffff; --bg-glow-2:#dde2ee;
  --glass-100:#ffffffb8; --glass-200:#ffffffe0; --glass-border:#0000001f; --glass-highlight:#ffffff;
  --field-border:#858590; --ink:#070708; --ink-muted:#4b4b54; --ink-faint:#5c5c66;
  --solid:#070708; --on-solid:#f5f5f7; --accent:#0a5fd0; --on-accent:#ffffff; --ring:#0a5fd0;
  --success:#0a6035; --success-bg:#0a603514; --danger:#a61c16; --danger-bg:#a61c1614; --warning:#7a4800; --warning-bg:#7a480014;
  --money-in:#0a6035; --money-out:#a61c16; --money-fee:#7a4800; --money-total:#6b32c9; --ref:#0a5fd0;
  --shadow-glass:0 8px 32px #00000014, 0 1px 0 #ffffffcc inset; --shadow-pop:0 2px 8px #00000024;
  --glow-in:none; --glow-out:none; --glow-fee:none; --glow-total:none; --glow-ref:none;
  --scrim:#0000004d; color-scheme: light;
}
:root, [data-theme="dark"] {
  --bg-000:#000000; --bg-100:#070708; --bg-glow-1:#101216; --bg-glow-2:#0a0b0e;
  --glass-100:#ffffff0d; --glass-200:#ffffff1a; --glass-border:#ffffff2e; --glass-highlight:#ffffff4d;
  --field-border:#9a9aa4; --ink:#f5f5f7; --ink-muted:#bcbcc6; --ink-faint:#aaaab4;
  --solid:#f5f5f7; --on-solid:#050506; --accent:#5eaeff; --on-accent:#04101f; --ring:#6cb4ff;
  --success:#34f5a0; --success-bg:#34f5a024; --danger:#ff5470; --danger-bg:#ff547024; --warning:#ffd447; --warning-bg:#ffd44724;
  --money-in:#34f5a0; --money-out:#ff5470; --money-fee:#ffd447; --money-total:#b98cff; --ref:#4aa3ff;
  --shadow-glass:0 14px 40px #00000099, 0 1px 0 #ffffff1f inset; --shadow-pop:0 2px 10px #00000099;
  --glow-in:0 0 14px #08c876; --glow-out:0 0 10px #b90000; --glow-fee:0 0 12px #ffd4474d; --glow-total:0 0 14px #b98cff8c; --glow-ref:0 0 10px #4aa3ff59;
  --scrim:#0000008c; color-scheme: dark;
}
:root {
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-6:24px; --space-8:32px;
  --radius-sm:8px; --radius-md:12px; --radius-lg:22px; --radius-pill:999px;
  --blur-glass:28px; --saturate-glass:180%;
  --font-sans:"CodexPHub Thai", "Google Sans", "Noto Sans Thai", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg-000); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.hide { display: none !important; }
button { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Glass Mono components ── */
.gm-glass {
  position: relative; overflow: hidden;
  background: var(--glass-100); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--saturate-glass));
  backdrop-filter: blur(var(--blur-glass)) saturate(var(--saturate-glass));
}
.gm-glass::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent); pointer-events: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .gm-glass { background: var(--bg-100); } }
.gm-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--glass-border); }
.gm-panel-head h3 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.gm-sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.gm-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-pill); font: 400 15px/22px var(--font-sans); cursor: pointer; white-space: nowrap; transition: opacity .15s, transform .1s; text-decoration: none; }
.gm-btn:hover { opacity: .88; }
.gm-btn:active { transform: scale(.98); }
.gm-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.gm-btn--solid { background: var(--solid); color: var(--on-solid); box-shadow: var(--shadow-pop); }
.gm-btn--glass { background: var(--glass-200); color: var(--ink); border-color: var(--glass-border); }
.gm-btn--danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.gm-btn--icon { width: 36px; padding: 0; }
.gm-btn .ti { font-size: 18px; }

.gm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 13px; line-height: 18px; color: var(--ink); background: var(--glass-200); border: 1px solid var(--glass-border); white-space: nowrap; }
.gm-chip--success { color: var(--success); background: var(--success-bg); border-color: var(--success); }
.gm-chip--danger { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.gm-chip--warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning); }
.gm-chip--success::before { content: "✓"; }
.gm-chip--danger::before { content: "✕"; }
.gm-chip--warning::before { content: "!"; font-weight: 600; }

.gm-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.gm-stat { padding: var(--space-4) var(--space-6); min-width: 0; }
.gm-stat__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-faint); }
.gm-stat__value { margin-top: var(--space-1); font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gm-stat__delta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.gm-stat__value--in { color: var(--money-in); text-shadow: var(--glow-in); }
.gm-stat__value--out { color: var(--money-out); text-shadow: var(--glow-out); }
.gm-stat__value--fee { color: var(--money-fee); text-shadow: var(--glow-fee); }
.gm-stat__value--total { color: var(--money-total); text-shadow: var(--glow-total); }

.gm-amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.gm-amt--in { color: var(--money-in); text-shadow: var(--glow-in); }
.gm-amt--out { color: var(--money-out); text-shadow: var(--glow-out); }
.gm-amt--fee { color: var(--money-fee); text-shadow: var(--glow-fee); }
.gm-amt--total { color: var(--money-total); text-shadow: var(--glow-total); }
.gm-ref { color: var(--ref); text-shadow: var(--glow-ref); font-variant-numeric: tabular-nums; white-space: nowrap; }
button.gm-ref, .gm-ref[data-copy] { cursor: copy; background: none; border: 0; padding: 0; font: inherit; }

.gm-field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.gm-field > label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.gm-input, .gm-field input, .gm-field textarea {
  min-height: 38px; padding: 0 var(--space-3); border-radius: var(--radius-md);
  background: var(--glass-200); color: var(--ink); border: 1px solid var(--field-border);
  font: 400 15px/22px var(--font-sans); width: 100%;
}
.gm-field textarea, textarea.gm-input { padding: var(--space-2) var(--space-3); resize: vertical; }
.gm-input::placeholder, .gm-field input::placeholder, .gm-field textarea::placeholder { color: var(--ink-faint); }
.gm-hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.gm-err { font-size: 13px; line-height: 18px; color: var(--danger); }

/* ── page ── */
.ap-app { min-height: 100vh; padding: var(--space-8) var(--space-6);
  background:
    radial-gradient(640px 420px at 6% 0%, var(--bg-glow-1), transparent 70%),
    radial-gradient(560px 420px at 100% 100%, var(--bg-glow-2), transparent 70%),
    var(--bg-000); }
.ap-wrap { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); }
.ap-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: var(--space-2); }
.ap-brand { display: flex; align-items: center; gap: 20px; min-width: 0; }
.ap-brand > div { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.ap-logo { width: 72px; height: 72px; object-fit: contain; flex: none; display: block; border-radius: 18px; }
.ap-titlerow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 20px; }
.ap-title { margin: 0; font-size: 34px; line-height: 41px; font-weight: 600; letter-spacing: -0.02em; }
.ap-by { display: flex; align-items: center; gap: var(--space-3); padding-left: 20px; border-left: 1px solid var(--glass-border); }
.ap-by-logo { height: 30px; width: 30px; object-fit: contain; display: block; border-radius: 8px; }
.ap-by-name { font-size: 17px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; margin-left: calc(var(--space-1) * -1); }
.ap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ap-viewer { color: var(--warning); }

/* stat cards: each wears its own colour border + a type symbol */
.ap-stat-head { display: flex; align-items: center; gap: var(--space-3); }
.ap-ico { order: 2; margin-left: auto; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; background: var(--glass-200); }
.ap-ico--in { color: var(--money-in); background: var(--success-bg); }
.ap-ico--out { color: var(--money-out); background: var(--danger-bg); }
.ap-ico--fee { color: var(--money-fee); background: var(--warning-bg); }
.ap-ico--total { color: var(--money-total); }
.ap-card--in { border: 1.5px solid var(--money-in); }
.ap-card--out { border: 1.5px solid var(--money-out); }
.ap-card--fee { border: 1.5px solid var(--money-fee); }
.ap-card--total { border: 1.5px solid var(--money-total); }
[data-theme="dark"] .ap-card--in { box-shadow: var(--shadow-glass), 0 0 18px -6px var(--money-in); }
[data-theme="dark"] .ap-card--out { box-shadow: var(--shadow-glass), 0 0 18px -6px var(--money-out); }
[data-theme="dark"] .ap-card--fee { box-shadow: var(--shadow-glass), 0 0 18px -6px var(--money-fee); }
[data-theme="dark"] .ap-card--total { box-shadow: var(--shadow-glass), 0 0 18px -6px var(--money-total); }

/* receiving accounts strip */
.ap-accs { display: flex; gap: var(--space-3); overflow-x: auto; padding: var(--space-3) var(--space-4); }
.ap-acc { flex: none; display: grid; grid-template-columns: auto 1fr; gap: 2px var(--space-3); align-items: center; padding: var(--space-2) var(--space-3); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-200); min-width: 210px; }
.ap-acc .cx-bank, .ap-acc .bank0 { grid-row: span 2; }
.ap-acc b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ap-acc .gm-sub { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.ap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-faint); display: inline-block; flex: none; }
.ap-dot--ok { background: var(--success); box-shadow: var(--glow-in); }
.ap-dot--warn { background: var(--warning); }
.ap-dot--bad { background: var(--danger); }

/* table panel toolbar */
.ap-layout { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.ap-main { flex: 999 1 600px; min-width: 0; }
.ap-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--glass-border); }
.ap-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--glass-200); border: 1px solid var(--glass-border); }
.ap-seg button { height: 30px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ap-seg button.on { background: var(--solid); color: var(--on-solid); box-shadow: var(--shadow-pop); }
.ap-seg small { font-size: 12px; min-width: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--danger); color: var(--on-solid); }
.ap-seg small:empty { display: none; }
.ap-search { position: relative; flex: 1 1 240px; max-width: 380px; margin-left: auto; }
.ap-search .ti { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.ap-search input { padding-left: 36px; padding-right: 36px; height: 36px; border-radius: var(--radius-pill); }
.ap-search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 12px var(--font-sans); color: var(--ink-faint); border: 1px solid var(--glass-border); border-radius: 6px; padding: 0 6px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ap-q { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--glass-border); background: transparent; cursor: pointer; white-space: nowrap; font-size: 14px; }
.ap-q:hover { border-color: var(--field-border); }
.ap-q.on { background: var(--glass-200); border-color: var(--ink); }
.ap-q .n { font-size: 12px; min-width: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--glass-200); text-align: center; font-variant-numeric: tabular-nums; }
.ap-q .n.warn { color: var(--warning); background: var(--warning-bg); }
.ap-q .n.bad { color: var(--danger); background: var(--danger-bg); }
.ap-q .n.zero { opacity: .55; }
.ap-q .cx-bank { transform: scale(.85); }
.ap-count { margin-left: auto; }

/* table made of rows: every row is one real button */
.ap-scroll { overflow-x: auto; }
.ap-grid { min-width: 940px; }
.ap-head, .ap-rowbtn { display: grid; grid-template-columns: 104px 92px minmax(200px, 1.5fr) minmax(176px, 1fr) 128px 100px 140px; gap: 0 12px; align-items: center; padding: 8px var(--space-6); }
.ap-rowbtn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-st { display: inline-flex; align-items: center; gap: 6px; }
/* account cell: name on top, bank + masked account below */
.ap-acct { display: flex; flex-direction: column; min-width: 0; line-height: 18px; }
.ap-acct b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-acct small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.ap-acct .bk { width: 16px; height: 16px; border-radius: 4px; }
.ap-conf { font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ap-head { background: var(--glass-200); border-bottom: 1px solid var(--glass-border); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-faint); }
.ap-rows { list-style: none; margin: 0; padding: 0; }
.ap-rows li { border-bottom: 1px solid var(--glass-border); }
.ap-rows li:last-child { border-bottom: 0; }
.ap-rowbtn { width: 100%; margin: 0; border: 0; background: transparent; text-align: left; cursor: pointer; transition: background .15s; }
.ap-rowbtn:hover, .ap-rowbtn.is-selected { background: var(--glass-200); }
.ap-rowbtn:focus-visible { outline-offset: -2px; }
.ap-rowbtn > span { min-width: 0; font-variant-numeric: tabular-nums; }
.ap-head .num, .ap-rowbtn .num { text-align: right; }
.ap-head .mid, .ap-rowbtn .mid { text-align: center; }

/* table layout formula (design-system data-table pattern):
   one parent grid · header + every row = subgrid → all rows share the same column lines (no drift)
   each column = its longest real content (max-content) · leftover width split equally between columns (space-between, ≥32px)
   8pt rhythm: header 44px · row 64px · side padding --space-6 · text left, numbers/dates right with tabular figures */
@supports (grid-template-columns: subgrid) {
  /* columns = longest content · spare width split EQUALLY between columns (tested: weighted tracks made gaps 65–143px, unequal) */
  .ap-grid { display: grid; grid-template-columns: repeat(7, max-content); justify-content: space-between; column-gap: 32px; min-width: max-content; }
  .ap-rows, .ap-rows li { display: contents; }
  .ap-head, .ap-rowbtn { grid-column: 1 / -1; grid-template-columns: subgrid; gap: 0 32px; padding: 0 var(--space-8); }
  .ap-head { min-height: 44px; }
  .ap-rowbtn { min-height: 64px; border-bottom: 1px solid var(--glass-border); }
  .ap-rows li:last-child .ap-rowbtn { border-bottom: 0; }
  .ap-rowbtn > span { overflow: visible; }
  .ap-head .num, .ap-rowbtn .num { justify-self: end; }
  .ap-acct { gap: 2px; line-height: 20px; }
  .ap-acct small { line-height: 18px; }
  /* one axis per column, header and cells on the same line (ruler test):
     ref · type · account · status · fee = centre · amount · date = right edge */
  .ap-head > :is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(6)),
  .ap-rowbtn > :is(:nth-child(1), :nth-child(2), :nth-child(3), :nth-child(4), :nth-child(6)) { justify-self: center; text-align: center; }
  .ap-rowbtn > .ap-acct { align-items: center; }
  .ap-st { position: relative; } /* the chip itself sits on the axis; its % hangs to the right */
  .ap-st .ap-conf { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }
  .ap-acct small { justify-content: center; }
}

/* counts: a glowing coloured number, no box */
.ap-q .n, .ap-q .n.warn, .ap-q .n.bad { background: none; padding: 0; min-width: 0; font-weight: 700; }
.ap-q .n { color: var(--ink-muted); }
.ap-q .n.warn { color: var(--warning); text-shadow: var(--glow-fee); }
.ap-q .n.bad { color: var(--danger); text-shadow: var(--glow-out); }
.ap-seg small { background: none; color: var(--danger); text-shadow: var(--glow-out); font-weight: 700; font-size: 13px; padding: 0; min-width: 0; }

/* detail: one screen, three columns (decide · facts · forecast) — a layout system, not one-off tweaks:
   8px grid (every block height and gap is a multiple of 8) · 4 type sizes: 12/16 · 14/24 · 17/24 · 30/40
   one axis per column: labels left, values right, buttons fill the column · columns share the same top line and stretch to the same bottom.
   Separators are inset shadows (0px tall) so they never push a row off the grid. */
.ap-side > .ap-dx { max-width: 1160px; }
.ap-dx { font-size: 14px; line-height: 24px; }
.ap-dx .ap-detail-head { min-height: 72px; padding: 0 var(--space-6); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--glass-border); }
.ap-dx-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; padding: var(--space-6); align-items: stretch; }
.ap-dx-col { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.ap-dx-col > section { display: flex; flex-direction: column; gap: var(--space-2); }
/* column title: same height + same line in all three columns */
.ap-dx-h { margin: 0; height: 32px; display: flex; align-items: center; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .02em; color: var(--ink-faint); box-shadow: inset 0 -1px 0 var(--glass-border); }
.ap-dx .ap-section { margin: 0; height: 16px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-faint); }
.ap-dx .gm-sub, .ap-dx .ap-metric__note, .ap-dx .ap-confirm__sub, .ap-dx-col > section > p { font-size: 12px; line-height: 16px; margin: 0; }
.ap-dx .gm-chip { height: 24px; padding: 0 10px; font-size: 12px; line-height: 16px; box-sizing: border-box; }

/* decide */
.ap-dx .ap-confirm { min-height: 64px; padding: 0 var(--space-4); border-radius: var(--radius-md); gap: var(--space-3); }
.ap-dx .ap-confirm__mark { width: 32px; height: 32px; font-size: 14px; }
.ap-dx .ap-confirm__title { font-size: 17px; line-height: 24px; }
.ap-dx-amt { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.ap-dx .ap-big { font-size: 30px; line-height: 40px; }
.ap-dx .ap-cands { gap: var(--space-2); }
.ap-dx .ap-cand { min-height: 64px; padding: 8px var(--space-4); border-radius: var(--radius-md); gap: 0 var(--space-3); }
.ap-dx .ap-cand .l1, .ap-dx .ap-cand > span:not(.l2) { line-height: 24px; }
.ap-dx .ap-notice summary { height: 24px; line-height: 24px; font-size: 12px; }
.ap-dx .ap-btnrow { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ap-dx .ap-btnrow .gm-btn { width: 100%; height: 40px; font-size: 14px; }
.ap-dx .ap-btnrow .gm-btn:only-child, .ap-dx .ap-btnrow .ap-btn--ok, .ap-dx .ap-btnrow .ap-btn--slip { grid-column: 1 / -1; }

/* facts: every row 32px, label left / value right on the same baseline */
.ap-dx .ap-dl { gap: 0; }
.ap-dx .ap-dl__row { height: 32px; align-items: center; box-shadow: inset 0 -1px 0 #ffffff12; }
.ap-dx .ap-dl dt, .ap-dx .ap-dl dd { line-height: 24px; font-size: 14px; }
.ap-dx .ap-dl dd { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); }
.ap-dx .ap-log li { height: 48px; padding: 4px 0; gap: 0; justify-content: center; box-shadow: inset 0 -1px 0 #ffffff12; border-bottom: 0; }
.ap-dx .ap-log li span:first-child { font-size: 14px; line-height: 24px; font-weight: 600; }

/* forecast: hints 32px each · metrics 72px each (label/value 24 · bar 8 · note 16 · gaps 8) */
.ap-dx .ap-hints { gap: var(--space-2); }
.ap-dx .ap-hint { min-height: 32px; padding: 3px 12px; font-size: 14px; line-height: 24px; border-radius: var(--radius-sm); }
.ap-dx .ap-hint--head { font-size: 14px; font-weight: 700; }
.ap-dx .ap-metric { display: grid; grid-template-rows: 24px 8px 16px; row-gap: 8px; height: 72px; padding: 0; border-top: 0; align-content: center; box-shadow: inset 0 1px 0 var(--glass-border); }
.ap-dx .ap-metric__row { height: 24px; align-items: center; }
.ap-dx .ap-metric__label { font-size: 14px; line-height: 24px; }
.ap-dx .ap-metric__value { font-size: 17px; line-height: 24px; }
.ap-dx .ap-bar { height: 8px; margin: 0; }
.ap-dx .ap-bar--none { visibility: hidden; }
@media (max-width: 960px) { .ap-dx-body { grid-template-columns: 1fr; row-gap: var(--space-6); } }
.ap-two { display: flex; flex-direction: column; min-width: 0; }
.ap-two > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-who { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ap-muted { color: var(--ink-muted); }
.ap-age { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.ap-age.w { color: var(--warning); }
.ap-age.r { color: var(--danger); }
.ap-empty { padding: var(--space-8) var(--space-6); text-align: center; display: flex; flex-direction: column; gap: var(--space-1); }
.ap-empty b { font-size: 17px; }
.ap-more { display: block; width: calc(100% - 48px); margin: var(--space-3) auto var(--space-4); }

/* confidence meter */
.ap-meter { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.ap-meter i { width: 44px; height: 6px; border-radius: var(--radius-pill); background: var(--glass-200); border: 1px solid var(--glass-border); overflow: hidden; display: block; }
.ap-meter i b { display: block; height: 100%; background: var(--money-out); }
.ap-meter.mid i b { background: var(--money-fee); }
.ap-meter.hi i b { background: var(--money-in); box-shadow: var(--glow-in); }
.ap-meter span { font-size: 13px; font-variant-numeric: tabular-nums; }

/* bank badge: white mark on the bank colour (colours from public/banks/banks.css) */
.bk { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; flex: none; background: #3a3a40; box-shadow: 0 0 0 1px #ffffff1f inset; }
.bk img { width: 68%; height: 68%; object-fit: contain; }
.bk-baac { background: #4b9b1d; }
.bk-bay { background: #fec43b; }
.bk-bbl { background: #1e4598; }
.bk-bnp { background: #14925e; }
.bk-boa { background: #e11e3c; }
.bk-cacib { background: #0e765b; }
.bk-cimb { background: #7e2f36; }
.bk-citi { background: #1583c7; }
.bk-db { background: #0522a5; }
.bk-ghb { background: #f57d23; }
.bk-gsb { background: #eb198d; }
.bk-hsbc { background: #fd0d1b; }
.bk-ibank { background: #184615; }
.bk-icbc { background: #c50f1c; }
.bk-jpm { background: #321c10; }
.bk-kbank { background: #138f2d; }
.bk-kk { background: #199cc5; }
.bk-ktb { background: #1ba5e1; }
.bk-lhb { background: #6d6e71; }
.bk-mb { background: #150b78; }
.bk-mega { background: #815e3b; }
.bk-mufg { background: #d61323; }
.bk-pp { background: #00427a; }
.bk-rbs { background: #032952; }
.bk-sc { background: #0f6ea1; }
.bk-scb { background: #4e2e7f; }
.bk-smbc { background: #a0d235; }
.bk-tbank { background: #fc4f1f; }
.bk-tcrb { background: #0a4ab3; }
.bk-tisco { background: #12549f; }
.bk-tmb { background: #1279be; }
.bk-tmn { background: #f58220; }
.bk-ttb { background: #0a5be0; }
.bk-uob { background: #0b3979; }
.bank0 { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--glass-200); color: var(--ink-faint); flex: none; }

/* side sheet (detail · help · staff) */
.ap-side { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-4); background: var(--scrim); overflow: auto; }
.ap-side > * { width: 100%; max-width: 520px; flex: none; background: var(--bg-100); }
.ap-side > *:first-child { margin-top: auto; }
.ap-side > *:last-child { margin-bottom: auto; }
.ap-detail-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--glass-border); }
.ap-detail-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); }
.ap-detail-body > section { display: flex; flex-direction: column; gap: var(--space-2); }
.ap-hero { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.ap-big { font-size: 34px; line-height: 41px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ap-dl { margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ap-dl__row { display: flex; justify-content: space-between; gap: var(--space-4); }
.ap-dl dt { color: var(--ink-muted); flex: none; }
.ap-dl dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.ap-section { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-faint); }
.ap-metric { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) 0; border-top: 1px solid var(--glass-border); }
.ap-metric__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.ap-metric__label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ap-metric__value { font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-metric__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ap-bar { height: 8px; margin: var(--space-1) 0; border-radius: var(--radius-pill); background: var(--glass-200); border: 1px solid var(--glass-border); overflow: hidden; }
.ap-bar__fill { height: 100%; border-radius: var(--radius-pill); }
.ap-bar__fill--total { background: var(--money-total); box-shadow: var(--glow-total); }
.ap-bar__fill--ref { background: var(--ref); box-shadow: var(--glow-ref); }
.ap-bar__fill--in { background: var(--money-in); box-shadow: var(--glow-in); }
.ap-bar__fill--fee { background: var(--money-fee); box-shadow: var(--glow-fee); }
.ap-bar__fill--out { background: var(--money-out); box-shadow: var(--glow-out); }
.ap-tone--ink { color: var(--ink); }
.ap-tone--in { color: var(--money-in); text-shadow: var(--glow-in); }
.ap-tone--out { color: var(--money-out); text-shadow: var(--glow-out); }
.ap-tone--fee { color: var(--money-fee); text-shadow: var(--glow-fee); }
.ap-tone--total { color: var(--money-total); text-shadow: var(--glow-total); }
.ap-tone--ref { color: var(--ref); text-shadow: var(--glow-ref); }

.ap-confirm { display: flex; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); border: 1px solid currentColor; }
.ap-confirm__mark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; font-size: 16px; }
.ap-confirm__title { font-size: 20px; line-height: 26px; font-weight: 600; }
.ap-confirm__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ap-confirm--in { color: var(--money-in); background: var(--success-bg); }
.ap-confirm--out { color: var(--money-out); background: var(--danger-bg); }
.ap-confirm--warn { color: var(--money-fee); background: var(--warning-bg); }
.ap-confirm--bad { color: var(--money-out); background: var(--danger-bg); }
.ap-confirm--plain { color: var(--ink); background: var(--glass-200); border-color: var(--glass-border); }

.ap-btnrow { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); align-self: stretch; }
.ap-btn--ok { color: var(--money-in); background: var(--success-bg); border-color: var(--money-in); }
.ap-btn--no { color: var(--money-out); background: var(--danger-bg); border-color: var(--money-out); }
.ap-btn--slip { color: var(--ref); background: var(--glass-200); border-color: var(--ref); }
.ap-btn--ok:hover, .ap-btn--no:hover, .ap-btn--slip:hover { opacity: 1; filter: brightness(1.15); }
.ap-btnrow kbd { font: 12px var(--font-sans); opacity: .8; border: 1px solid currentColor; border-radius: 6px; padding: 0 5px; }

.ap-hints { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.ap-hint { padding: var(--space-2) var(--space-3); border-radius: 12px; border: 1px solid currentColor; font-size: 14px; line-height: 20px; }
.ap-hint--head { font-weight: 600; font-size: 16px; }
.ap-hint--ok { color: var(--money-in); background: var(--success-bg); }
.ap-hint--warn { color: var(--money-fee); background: var(--warning-bg); }
.ap-hint--bad { color: var(--money-out); background: var(--danger-bg); }
.ap-hint--plain { color: var(--ink-muted); background: var(--glass-200); border-color: var(--glass-border); }

/* bill candidates */
.ap-cands { display: flex; flex-direction: column; gap: var(--space-2); }
.ap-cand { display: grid; grid-template-columns: auto 1fr auto; gap: 2px var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-200); cursor: pointer; }
.ap-cand.on { border-color: var(--money-in); }
.ap-cand input { grid-row: span 2; accent-color: var(--money-in); }
.ap-cand .l2 { grid-column: 2 / 4; }
.ap-mch { display: inline-block; padding: 0 8px; border-radius: var(--radius-sm); background: var(--glass-200); border: 1px solid var(--glass-border); font-size: 13px; }

.ap-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ap-log li { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) 0; border-bottom: 1px solid var(--glass-border); }
.ap-log li:last-child { border-bottom: 0; }

/* help */
.ap-help-title { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.ap-cases { display: flex; flex-direction: column; gap: var(--space-2); }
.ap-case { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-200); text-align: left; cursor: pointer; }
.ap-case:hover { border-color: var(--field-border); }
.ap-case__text { display: flex; flex-direction: column; min-width: 0; }
.ap-case__title { font-weight: 600; }
.ap-case--warn { border-left: 4px solid var(--money-fee); }
.ap-case--warn .ap-case__title, .ap-case-h--warn { color: var(--money-fee); }
.ap-case--bad { border-left: 4px solid var(--money-out); }
.ap-case--bad .ap-case__title, .ap-case-h--bad { color: var(--money-out); }
.ap-case--fee { border-left: 4px solid var(--money-total); }
.ap-case--fee .ap-case__title, .ap-case-h--fee { color: var(--money-total); }
.ap-case--big { border-left: 4px solid var(--ref); }
.ap-case--big .ap-case__title, .ap-case-h--big { color: var(--ref); }
.ap-casebody { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.ap-case-h { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.ap-case-p { margin: 0; align-self: stretch; }
.ap-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-2); align-self: stretch; }
.ap-casebody .ap-section { margin-top: var(--space-2); }
.ap-related { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.ap-relbtn { height: 32px; padding: 0 var(--space-3); border: 1px solid var(--glass-border); border-radius: var(--radius-pill); background: var(--glass-200); color: var(--ref); text-shadow: var(--glow-ref); font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ap-relbtn:hover { border-color: var(--ref); }
.ap-sources { display: flex; flex-direction: column; gap: var(--space-2); align-self: stretch; }
.ap-source { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-200); text-align: left; cursor: pointer; text-decoration: none; color: inherit; }
.ap-source:hover { border-color: var(--ref); }
.ap-feed { display: flex; flex-direction: column; gap: var(--space-2); align-self: stretch; }
.ap-feed article { padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-200); display: flex; flex-direction: column; gap: 2px; }
.ap-feed article.warn { border-color: var(--warning); }
.ap-feed pre { margin: 4px 0 0; white-space: pre-wrap; font: 13px/18px var(--font-sans); color: var(--ink-muted); }

/* staff */
.ap-staff__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: 16px; background: var(--glass-200); }
.ap-staff__who { display: flex; flex-direction: column; flex: 1 1 120px; min-width: 0; }
.ap-staff__name { font-weight: 600; }
.ap-staff__acts { display: flex; flex-wrap: wrap; gap: var(--space-2); width: 100%; }
.ap-menu { display: flex; flex-direction: column; gap: var(--space-2); }

/* modal (slip · forms) */
.ap-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--space-4); background: var(--scrim); }
.ap-modal[hidden] { display: none; }
.ap-modal__box { width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; background: var(--bg-100); }
.ap-form { display: flex; flex-direction: column; gap: var(--space-4); }
.ap-form .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.ap-secret { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; overflow-wrap: anywhere; }
.ap-qrbox { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 1px solid var(--glass-border); border-radius: var(--radius-md); background: var(--glass-200); }
.ap-links { display: flex; flex-direction: column; gap: var(--space-2); }

/* first-login setup */
.ap-setup { max-width: 520px; margin: 10vh auto 0; }

/* status line */
.ap-status { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-6); }
.ap-status span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.ap-status .end { margin-left: auto; }
.ap-status .bad { color: var(--danger); }

/* toast */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 60; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--solid); color: var(--on-solid); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.spin .ti { animation: ap-spin .8s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* what's new popup (shared markup from the version check) */
.cx-sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--space-4); background: var(--scrim); }
.whatsnew { width: 100%; max-width: 420px; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--bg-100); border: 1px solid var(--glass-border); box-shadow: var(--shadow-glass); display: flex; flex-direction: column; gap: var(--space-3); }
.whatsnew .wn-ver { color: var(--ref); }
.wn-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: var(--space-1); }
.wn-head { list-style: none; margin-left: -20px; font-weight: 600; color: var(--ink-faint); }
.wn-ok { align-self: flex-end; background: var(--solid); color: var(--on-solid); border: 0; border-radius: var(--radius-pill); height: 36px; padding: 0 var(--space-4); cursor: pointer; }

@media (max-width: 640px) {
  .ap-app { padding: var(--space-4); }
  .ap-title { font-size: 28px; line-height: 34px; }
  .ap-logo { width: 56px; height: 56px; }
  .ap-by { padding-left: 12px; }
  .ap-search { max-width: none; margin-left: 0; }
  .ap-detail-body { padding: var(--space-4); }
}

/* ── login (login.html · login-staff.html): admin back office — one black gloss-glass card on black, no marketing · red only on the button ── */
:root { --lg-red: #ff1f1f; }
.lg { position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; padding: var(--space-8) var(--space-4); background: #000; }
:root[data-theme="light"] .lg { background: var(--bg-000); }
.lg-gloss { position: absolute; inset: 0; pointer-events: none; /* faint sheen so the glass has something to catch */
  background: radial-gradient(700px 420px at 50% 18%, #ffffff12, transparent 70%), radial-gradient(500px 360px at 50% 100%, #ffffff08, transparent 70%); }
:root[data-theme="light"] .lg-gloss { background: radial-gradient(700px 420px at 50% 18%, #ffffff, transparent 70%); }
.lg-wrap { position: relative; width: 100%; max-width: 420px; animation: lg-rise .5s ease-out both; }
.lg-card { width: 100%; background: linear-gradient(180deg, #ffffff14, #ffffff05 46%, #ffffff03); border-color: #ffffff26; }
[data-theme="dark"] .lg-card { box-shadow: 0 30px 80px #000000d0, 0 1px 0 #ffffff2e inset, 0 0 0 1px #00000080; }
:root[data-theme="light"] .lg-card { background: var(--glass-100); }
.lg-card::after { /* glossy top half */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, #ffffff10, transparent); }
.lg-card-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-8) var(--space-6) var(--space-2); text-align: center; }
.lg-card-head .ap-logo { width: 84px; height: 84px; border-radius: 50%; margin-bottom: var(--space-2); box-shadow: 0 0 0 1px #ffffff26, 0 10px 30px #000000b0; }
.lg-name { margin: 0; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.lg-by { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.lg-by img { width: 24px; height: 24px; object-fit: contain; }
.lg-by b { color: var(--ink); font-weight: 700; }
.lg-card-head .gm-sub { margin-top: var(--space-1); }
.lg-form { position: relative; padding: var(--space-6) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.lg-form .gm-field input { height: 48px; background: #00000066; }
:root[data-theme="light"] .lg-form .gm-field input { background: var(--glass-200); }
.lg-form .gm-field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #ffffff26; }
.lg-go { width: 100%; height: 48px; font-weight: 600; font-size: 16px; } /* = gm-btn--solid (theme primary) */
.lg-foot { position: relative; display: flex; justify-content: center; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-6); border-top: 1px solid var(--glass-border); }
.lg-err { min-height: 18px; text-align: center; }
#c { font-size: 24px; letter-spacing: .3em; text-align: center; height: 52px; font-variant-numeric: tabular-nums; }
.lg-modal .ap-modal__box { max-width: 380px; }
.lg-modal .ap-detail-body, .lg-kick .ap-detail-body { text-align: center; align-items: stretch; }
.lg-theme { position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2; }
@keyframes lg-rise { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 480px) { .lg-form .gm-field input { font-size: 16px; } .lg-card-head, .lg-form { padding-left: var(--space-4); padding-right: var(--space-4); } }

/* evidence table (money in ↔ bill): 32px rows on the same 8px grid · criterion · money in · bill · points */
.ap-ev { display: flex; flex-direction: column; }
.ap-ev__row { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr) 56px; column-gap: 8px; align-items: center; height: 32px; box-shadow: inset 0 -1px 0 #ffffff12; font-size: 14px; line-height: 24px; }
.ap-ev__row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-ev__row > span:nth-child(1) { color: var(--ink-muted); }
.ap-ev__row > span:last-child { text-align: right; }
.ap-ev__head { height: 24px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-faint); }
.ap-ev__head > span { color: var(--ink-faint) !important; }
.ap-ev__pts { font-weight: 700; }
.ap-ev__pts--ok { color: var(--money-in); }
.ap-ev__pts--warn { color: var(--money-fee); }
.ap-ev__pts--bad { color: var(--money-out); }
.ap-ev__total { box-shadow: none; font-weight: 700; }
.ap-ev__total > span:nth-child(1) { color: var(--ink); }
.ap-ev__bar { grid-column: span 2; }
.ap-ev__bar .ap-bar { display: block; height: 8px; margin: 0; }
.ap-ev__bar .ap-bar__fill { display: block; }
.ap-dx textarea.gm-input { font-size: 14px; line-height: 24px; }

.ap-dx .ap-mch { font-size: 12px; line-height: 16px; }
/* one line each so a narrow column never breaks the 8px rhythm (long text ends in …, full text is in the facts column) */
.ap-dx .ap-confirm > div { min-width: 0; }
.ap-dx .ap-confirm__title, .ap-dx .ap-confirm__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-dx .ap-cand { grid-template-columns: auto minmax(0, 1fr) auto; height: 64px; align-content: center; }
.ap-dx .ap-cand > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ap-dx .ap-cand .l2 { line-height: 16px; font-size: 12px; }
.ap-dx .ap-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* staff accounts page (company.html): create panel + list, same 8px grid and tokens as 1click */
.co-grid { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.co-form { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }
.co-user { display: flex; align-items: stretch; border: 1px solid var(--field-border); border-radius: var(--radius-md); background: var(--glass-200); overflow: hidden; }
.co-user:focus-within { outline: 2px solid var(--ring); outline-offset: 1px; }
.co-prefix { display: flex; align-items: center; padding: 0 var(--space-3); font-weight: 700; color: var(--ink-muted); box-shadow: inset -1px 0 0 var(--glass-border); }
.co-user input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--ink); padding: 0 var(--space-3); font: 400 15px/24px var(--font-sans); outline: none; }
.co-check { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-3); border: 1px solid var(--glass-border); border-radius: var(--radius-md); cursor: pointer; }
.co-check input { width: 18px; height: 18px; accent-color: var(--money-in); }
.co-check span { display: flex; flex-direction: column; }
.co-go { height: 48px; width: 100%; font-weight: 600; } /* = gm-btn--solid (theme primary) */
.co-made { display: flex; flex-direction: column; gap: var(--space-4); padding: 0 var(--space-6) var(--space-6); }
.co-kv .ap-dl__row { height: 32px; align-items: center; box-shadow: inset 0 -1px 0 #ffffff12; }
.co-rows { list-style: none; margin: 0; padding: 0; }
.co-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; min-height: 64px; padding: 0 var(--space-6); box-shadow: inset 0 -1px 0 var(--glass-border); }
.co-row:last-child { box-shadow: none; }
.co-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--glass-200); box-shadow: 0 0 0 1px var(--glass-border) inset; }
.co-who { display: flex; flex-direction: column; min-width: 0; line-height: 20px; }
.co-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-state { display: flex; gap: var(--space-2); }
.co-acts { display: flex; gap: var(--space-2); }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } .co-row { grid-template-columns: 40px minmax(0, 1fr); } .co-state, .co-acts { grid-column: 2; } }
