:root{--brand:#4f46e5;--line:#e5e7eb;--muted:#6b7280;--bg:#f4f5f7;--err:#b91c1c;--ok:#15803d}
*{box-sizing:border-box}
body{margin:0;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:#111827}
header{background:#fff;border-bottom:1px solid var(--line);padding:10px 24px;display:flex;align-items:center;gap:16px}
header b{color:var(--brand);font-size:16px}header .sp{flex:1}
nav{display:flex;gap:4px;padding:0 24px;background:#fff;border-bottom:1px solid var(--line)}
nav button{border:0;background:none;padding:10px 14px;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;font:inherit}
nav button.on{color:var(--brand);border-color:var(--brand);font-weight:600}
main{max-width:980px;margin:20px auto;padding:0 24px}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin-bottom:16px}
.card h2{margin:0 0 4px;font-size:15px}.card p.d{margin:0 0 12px;color:var(--muted);font-size:13px}
label{display:block;font-size:12px;color:var(--muted);margin:10px 0 3px}
input,select{width:100%;height:34px;border:1px solid #cbd5e1;border-radius:7px;padding:0 10px;font:inherit;background:#fff}
input[type=checkbox]{width:auto;height:auto}
.row{display:flex;gap:12px}.row>*{flex:1}
button.b{height:34px;padding:0 16px;border-radius:7px;border:1px solid #cbd5e1;background:#f9fafb;cursor:pointer;font:inherit}
button.p{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
button.sm{height:28px;padding:0 10px;font-size:12px}button.danger{color:var(--err)}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
th{color:var(--muted);font-weight:600;font-size:12px}
.note{font-size:12px;color:var(--muted)}.msg{font-size:13px;margin-top:8px}.msg.err{color:var(--err)}.msg.ok{color:var(--ok)}
.tok{font:13px ui-monospace,Menlo,Consolas,monospace;background:#fefce8;border:1px solid #fde68a;border-radius:7px;padding:8px 10px;word-break:break-all;margin-top:8px}
.login{max-width:340px;margin:12vh auto}
.pill{display:inline-block;border-radius:99px;padding:0 8px;font-size:12px;background:#eef2ff;color:var(--brand)}.pill.off{background:#f3f4f6;color:var(--muted)}
