:root { color-scheme: light; --ink:#17332c; --muted:#50665e; --line:#d9e2dd; --paper:#fff; --base:#f0f4f1; --accent:#12634e; --danger:#a13129; font:15px/1.5 system-ui,"Microsoft YaHei",sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--base); color:var(--ink); }
header { background:#143c32; color:#f5fbf7; }
header .muted { color:#bed7cd; }
.wrap { max-width:1120px; margin:auto; padding-inline:24px; }
.bar { min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { font-weight:750; font-size:19px; }
.subtitle { margin-inline-start:15px; }
main { padding-block:22px 40px; }
h1,h2,p { margin:0 0 12px; }
h1 { font-size:28px; } h2 { font-size:18px; }
.muted,label,th,.stats span { color:var(--muted); }
.panel { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:22px; margin-bottom:14px; box-shadow:0 1px 2px #274c3c0b,0 6px 18px #274c3c08; }
.login { max-width:430px; margin:24px auto; }
.login label { margin-bottom:14px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px; }
.stats div { background:#e3eee8; padding:13px 16px; border-radius:12px; }
.stats strong { display:block; font-size:26px; font-variant-numeric:tabular-nums; }
nav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
nav button { color:var(--ink); background:transparent; }
nav button[aria-pressed=true] { background:var(--accent); color:#fff; }
.toolbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; }
.toolbar.align { justify-content:space-between; align-items:center; }
.toolbar.align h2 { margin:0; }
label { display:grid; gap:5px; font-weight:650; }
input,select,textarea,button { font:inherit; border:1px solid var(--line); border-radius:8px; min-height:44px; padding:8px 12px; }
input,select,textarea { background:#fbfcfb; color:var(--ink); }
textarea { width:100%; resize:vertical; margin-bottom:8px; font:14px/1.6 ui-monospace,monospace; }
button { background:var(--accent); color:#fff; border-color:transparent; font-weight:650; cursor:pointer; transition:background-color .15s ease,transform .15s ease; }
button:hover { filter:brightness(.93); } button:active { transform:translateY(1px); }
button:disabled { opacity:.55; cursor:default; transform:none; }
.secondary { background:#e8efeb; color:var(--ink); }
.danger { background:var(--danger); color:white; }
:focus-visible { outline:3px solid #269477; outline-offset:2px; }
.table { margin-block:14px; overflow:auto; }
table { width:100%; border-collapse:collapse; white-space:nowrap; text-align:left; }
th,td { border-bottom:1px solid var(--line); padding:9px 11px; }
th { background:#f6f8f6; font-size:13px; }
tr:last-child td { border-bottom:0; }
.status { color:var(--accent); font-weight:700; }
.pager { align-items:center; }
.message { min-height:1.5em; margin:8px 0; color:var(--accent); }
.message[data-error] { color:var(--danger); }
.global { margin:0 0 10px; }
#issued { border-top:1px solid var(--line); margin-top:16px; padding-top:12px; }
dialog { width:min(420px,calc(100% - 32px)); color:var(--ink); border:1px solid var(--line); border-radius:12px; padding:23px; }
dialog::backdrop { background:#10261c75; }
@media(max-width:620px) { .wrap {padding-inline:14px} .stats {grid-template-columns:repeat(2,1fr)} .panel {padding:16px} .subtitle {display:none} }
@media(prefers-reduced-motion:reduce) { * {transition:none!important} }
