:root {
  --bg: #f7f8fa; --card: #fff; --text: #1b2230; --muted: #5b6577;
  --line: #e2e6ee; --accent: #1d6b4f; --accent-soft: #e6f4ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d; --card: #1a2029; --text: #e8ecf3; --muted: #9aa5b8;
    --line: #2b3342; --accent: #4cc596; --accent-soft: #1b2d27;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--card); }
header.site .wrap { display: flex; justify-content: space-between; padding: 14px 16px; }
header.site a { color: var(--text); font-weight: 700; text-decoration: none; }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 28px 0 8px; }
h2 { font-size: 1.3rem; margin: 36px 0 8px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin: 16px 0;
}
form { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
form .full { grid-column: 1 / -1; }
label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
input, select {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
[hidden] { display: none !important; }
.headline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.headline > div { background: var(--accent-soft); border-radius: 10px; padding: 12px; }
.headline .label { display: block; font-size: .8rem; color: var(--muted); }
.headline strong { font-size: 1.35rem; color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child { text-align: left; font-weight: 500; }
thead th { color: var(--muted); font-weight: 500; }
tr.net th, tr.net td { font-weight: 700; border-bottom: 0; }
.muted { color: var(--muted); }
.notice { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); text-decoration: none; background: var(--card);
}
.chips a:hover { border-color: var(--accent); }
.ad-slot { min-height: 0; }
footer { margin: 48px 0 32px; color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) {
  form { grid-template-columns: 1fr; }
  .headline { grid-template-columns: 1fr; }
  h1 { font-size: 1.5rem; }
}
