:root { --bg: #f6f7f9; --card: #fff; --line: #e3e6ea; --text: #1d2430; --muted: #667085; --pri: #146c5b; --red: #b42318; --amber: #b54708; --green: #067647; }
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
.top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.top .sub { color: var(--muted); }
.top #logout { margin-left: auto; }
main { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
main.center { max-width: 560px; margin-top: 60px; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--card); padding: 7px 14px; border-radius: 20px; cursor: pointer; font: inherit; }
.tabs button.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.btn { border: 1px solid var(--line); background: var(--card); padding: 7px 14px; border-radius: 8px; cursor: pointer; font: inherit; }
.btn.primary { background: var(--pri); color: #fff; border-color: var(--pri); }
.btn.danger { color: var(--red); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .6; cursor: default; }
label.f { display: block; margin: 8px 0; }
label.f span { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; width: 100%; max-width: 520px; background: #fff; }
textarea { min-height: 90px; font-family: ui-monospace, monospace; font-size: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row label.f { flex: 1 1 160px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eef1f4; }
.tag.paid { background: #dcfae6; color: var(--green); }
.tag.pending { background: #fef0c7; color: var(--amber); }
.tag.underpaid, .tag.failed { background: #fee4e2; color: var(--red); }
.alert { padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.alert.ok { background: #dcfae6; }
.alert.warn { background: #fef0c7; }
.alert.err { background: #fee4e2; }
.mono { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.scroll { overflow-x: auto; }
#toast { position: fixed; bottom: 16px; right: 16px; max-width: 420px; }
