:root {
  --bg: #f4f6f9; --card: #fff; --ink: #14213d; --muted: #5b6577; --line: #dde2ea;
  --navy: #13294b; --red: #b3202a; --ok: #1d7a46; --chip: #eef1f6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1520; --card: #172031; --ink: #e8ecf3; --muted: #9aa5b8; --line: #2a3650; --chip: #213049; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.top { background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.brand { font-weight: 600; }
.mark { background: var(--red); padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.who { font-size: 13px; opacity: .9; display: flex; gap: 10px; align-items: center; }
.who button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 3px 10px; font-size: 12px; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.narrow { max-width: 420px; margin: 40px auto; }
h1 { font-size: 22px; margin: 0 0 6px; } h2 { font-size: 17px; margin: 0 0 10px; } h3 { font-size: 15px; margin: 14px 0 6px; }
.muted { color: var(--muted); }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
textarea { min-height: 110px; }
button { font: inherit; padding: 9px 16px; border-radius: 8px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }
button.ghost { background: var(--chip); color: var(--ink); }
button.link { background: none; color: var(--muted); text-decoration: underline; padding: 8px 0; }
button:disabled { opacity: .5; }
.msg { min-height: 20px; color: var(--red); font-size: 14px; }
.msg.ok { color: var(--ok); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.tabs button { background: var(--chip); color: var(--ink); white-space: nowrap; }
.tabs button.on { background: var(--navy); color: #fff; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .t { font-weight: 600; }
.row .s { color: var(--muted); font-size: 13px; }
.click { cursor: pointer; }
.click:hover .t { text-decoration: underline; }
.chip { display: inline-block; background: var(--chip); border-radius: 12px; padding: 1px 8px; font-size: 12px; margin: 2px 4px 2px 0; }
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.bar input { flex: 1; min-width: 160px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stat { background: var(--chip); border-radius: 8px; padding: 10px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }
.note { white-space: pre-wrap; font-size: 14px; }
.empty { color: var(--muted); padding: 8px 0; }
dialog { border: 0; border-radius: 12px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--card); color: var(--ink); }
dialog form { padding: 18px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 30px; }
.foot a, .card a { color: inherit; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
.scroll { overflow-x: auto; }
.callbar { display: block; background: var(--red); color: #fff; text-decoration: none; text-align: center; padding: 12px 16px; }
.callbar:hover .callnum { text-decoration: underline; }
.callnum { display: block; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.callsub { display: block; font-size: 13px; opacity: .95; margin-top: 2px; }
.help { color: #fff; font-size: 13px; }
.s a, .faq a { color: inherit; }
.faq h2 { margin-top: 4px; }
.faq h3 { margin-top: 18px; }
.faq ul, .faq ol { padding-left: 20px; margin: 6px 0; }
.faq li { margin: 4px 0; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq .say { background: var(--chip); border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-style: italic; }
.soon { display: inline-block; background: var(--chip); border-radius: 10px; padding: 0 8px; font-size: 12px; color: var(--muted); }
dialog a { color: inherit; }
