:root { --bg: #0b1220; --card: #111b2e; --line: #2a3a55; --text: #e6edf6; --muted: #93a4bd; --accent: #22d3ee;
        --bad: #fca5a5; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
header .link { margin-left: auto; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.narrow { max-width: 380px; margin: 40px auto; }
h1 { font-size: 20px; margin: 0 0 12px; } h2 { font-size: 16px; margin: 0 0 8px; }
input { width: 100%; padding: 11px; margin-bottom: 10px; border-radius: 10px; border: 1px solid var(--line);
        background: var(--bg); color: inherit; font: inherit; }
button { width: 100%; padding: 11px; border: 0; border-radius: 10px; background: var(--accent); color: #04131a;
         font: inherit; font-weight: 600; cursor: pointer; }
button.link { width: auto; background: none; color: var(--muted); padding: 4px 8px; font-weight: 400; }
.tag { font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.k { color: var(--muted); } code { word-break: break-all; }
#qr { display: block; margin: 8px auto 12px; background: #fff; border-radius: 8px; }
#msg { min-height: 1.5em; color: var(--bad); text-align: center; }
.disclaimer { color: var(--muted); font-size: 13px; text-align: center; }
[hidden] { display: none !important; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; color: var(--text); }
.stats div span { display: block; color: var(--muted); font-size: 13px; }
.stats div b { font-size: 20px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--text); }
th, td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-weight: 500; }
.pos { color: #86efac; } .neg { color: var(--bad); }
