:root { --bg: #f7f7f5; --surface: #fff; --text: #1d1d1b; --muted: #6b6b66; --border: #e3e3de; --accent: #0b5cad; --danger: #a8231c; }
@media (prefers-color-scheme: dark) { :root { --bg: #161615; --surface: #1f1f1d; --text: #ececea; --muted: #a3a39d; --border: #34342f; --accent: #6aa9ec; --danger: #ef8a83; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Segoe UI", system-ui, sans-serif; }
main { max-width: 560px; margin: 48px auto; padding: 0 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
h1 { font-size: 20px; margin: 0 0 4px; }
p.muted, .muted { color: var(--muted); font-size: 13px; }
label { display: block; font-size: 13px; margin: 16px 0 6px; }
input { width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
button { margin-top: 16px; padding: 9px 16px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); margin-left: 8px; }
button:disabled { opacity: .6; cursor: default; }
ul { padding-left: 18px; }
.error { color: var(--danger); }
main.wide { max-width: 1080px; }
h2 { font-size: 16px; margin: 24px 0 8px; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.top button { margin-top: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border); margin: 16px 0; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.cards { display: flex; flex-wrap: wrap; gap: 12px; }
.card.small { padding: 14px 18px; min-width: 180px; }
.big { font-size: 22px; font-weight: 600; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
td.c { text-align: center; }
.scroll { overflow-x: auto; }
table.grid th:not(:first-child) { text-align: center; }
iframe.letter { width: 100%; height: 900px; border: 1px solid var(--border); border-radius: 8px; margin-top: 16px; background: #fff; }
