:root { --bg:#0f172a; --card:#1e293b; --line:#334155; --fg:#e2e8f0; --muted:#94a3b8;
  --accent:#38bdf8; --ok:#4ade80; --warn:#fbbf24; --bad:#f87171; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg); color:var(--fg); }
a { color:var(--accent); text-decoration:none; }
header { padding:16px 24px; border-bottom:1px solid var(--line); display:flex; gap:20px;
  align-items:center; background:#0b1220; position:sticky; top:0; }
header .brand { font-weight:700; letter-spacing:.5px; }
header nav a { margin-right:16px; color:var(--muted); }
header nav a:hover, header nav a.active { color:var(--fg); }
main { max-width:960px; margin:0 auto; padding:24px; }
h1 { font-size:22px; margin:0 0 4px; } h2 { font-size:17px; margin:24px 0 8px; }
.sub { color:var(--muted); margin:0 0 20px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:18px 20px; margin-bottom:18px; }
label { display:block; font-size:13px; color:var(--muted); margin:10px 0 4px; }
input, select, textarea { width:100%; padding:9px 11px; background:#0b1220;
  border:1px solid var(--line); border-radius:8px; color:var(--fg); font:inherit; }
.row { display:flex; gap:12px; flex-wrap:wrap; } .row > div { flex:1; min-width:140px; }
button { margin-top:14px; padding:9px 16px; background:var(--accent); color:#04222f;
  border:0; border-radius:8px; font-weight:600; cursor:pointer; }
button.ghost { background:transparent; color:var(--accent); border:1px solid var(--line); }
button:disabled { opacity:.5; cursor:not-allowed; }
table { width:100%; border-collapse:collapse; margin-top:8px; font-size:14px; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
th { color:var(--muted); font-weight:600; }
.pill { padding:2px 9px; border-radius:20px; font-size:12px; font-weight:600; }
.pill.active,.pill.PAID,.pill.SETTLED,.pill.GRANTED { background:#0d3b2e; color:var(--ok); }
.pill.disabled,.pill.suspended,.pill.FAILED,.pill.REJECTED,.pill.REFUNDED { background:#3b1516; color:var(--bad); }
.pill.PENDING_APPROVAL,.pill.AML_HOLD,.pill.SUBMITTED,.pill.PAYING,.pill.closed,.pill.pending { background:#3b2f0d; color:var(--warn); }
.out { white-space:pre-wrap; word-break:break-all; background:#0b1220; border:1px solid var(--line);
  border-radius:8px; padding:12px; margin-top:12px; font:13px/1.5 ui-monospace,Menlo,monospace; }
.muted { color:var(--muted); font-size:13px; } .err { color:var(--bad); }
.tabs { display:flex; gap:8px; margin-bottom:16px; }
.tabs button { margin:0; background:transparent; border:1px solid var(--line); color:var(--muted); }
.tabs button.on { background:var(--card); color:var(--fg); border-color:var(--accent); }
.hide { display:none; }
