:root { --bg: #f6f7f9; --card: #fff; --ink: #1d2330; --muted: #5d6675; --line: #e2e5ea; --accent: #2f6fdd; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171c; --card: #1d2129; --ink: #e6e9ef; --muted: #9aa3b2; --line: #2c323d; --accent: #6d9cf0; }
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 -apple-system, system-ui, sans-serif; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
       padding: 12px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 18px; }
.narrow { max-width: 420px; margin: 40px auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.tile span { display: block; color: var(--muted); font-size: 13px; }
.tile strong { font-size: 22px; }
label { display: block; margin: 10px 0; }
label.inline { display: flex; gap: 8px; align-items: center; }
input, select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
label.inline input { width: auto; }
button { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; width: 100%; padding: 11px; }
button.link { border: 0; background: none; color: var(--accent); padding: 0 4px; }
.or { text-align: center; color: var(--muted); margin: 16px 0 4px; }
.row { display: flex; gap: 8px; } .row select { width: auto; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
#msg { color: #c0392b; min-height: 1.5em; }
