/* Paladium platform UI — lean, brand-consistent, no framework. */
:root {
  --brand: #8c3b1b; --brand-dark: #743015; --brand-wash: #8c3b1b14;
  --ink: #1c1c1e; --ink-2: #55555a; --ink-3: #8e8e93;
  --paper: #f5f4f2; --card: #ffffff; --wire: #e3e1dd; --wire-2: #d0cec9;
  --good: #1e7d46; --good-wash: #1e7d4614; --warn: #9a6a00; --warn-wash: #9a6a0014;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper); color: var(--ink); }
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 20px 80px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: #1d1c1a; color: #fff; }
.topbar .mark { font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.topbar .tag { font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid #ffffff44; border-radius: 999px; padding: 3px 10px; color: #ffffffcc; }
.topbar .who { margin-left: auto; font-size: 13px; color: #ffffffb0; }
h1 { font-size: 26px; margin: 22px 0 6px; }
h2 { font-size: 17px; margin: 26px 0 10px; }
.sub { color: var(--ink-2); margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--wire); border-radius: 10px; padding: 18px; }
.card + .card { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--wire); }
.row:first-child { border-top: none; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; }
.row .s { font-size: 13px; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip.good { color: var(--good); } .chip.good::before { background: var(--good); }
.chip.warn { color: var(--warn); } .chip.warn::before { background: var(--warn); }
.chip.brand { color: var(--brand); } .chip.brand::before { background: var(--brand); }
button, .btn { font: inherit; font-weight: 600; border: none; border-radius: 8px;
  padding: 10px 16px; cursor: pointer; background: var(--brand); color: #fff; }
button:hover { background: var(--brand-dark); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--wire-2); }
button.ghost:hover { background: var(--brand-wash); }
button.small { padding: 6px 12px; font-size: 13px; }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--wire-2);
  border-radius: 8px; background: #fff; width: 100%; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 12px 0 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.note { font-size: 13px; color: var(--ink-2); background: var(--brand-wash);
  border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.err { color: #b3261e; font-size: 13px; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--wire); }
td { padding: 11px 10px; border-bottom: 1px solid var(--wire); font-size: 14px; vertical-align: top; }
tr.click { cursor: pointer; } tr.click:hover { background: var(--brand-wash); }
.right { text-align: right; }
.muted { color: var(--ink-3); }
.gate { max-width: 420px; margin: 8vh auto; }
.gate .mark { text-align: center; font-weight: 700; letter-spacing: .18em; margin-bottom: 18px; }
.code { letter-spacing: .5em; text-align: center; font-size: 22px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px;
  background: #1d1c1a; color: #fff; border-radius: 10px; padding: 12px 18px; font-size: 14px;
  max-width: 90vw; box-shadow: 0 10px 30px #0006; }
.docline { font-size: 13px; color: var(--good); }
a { color: var(--brand); }
