:root { --ink: #1d232b; --muted: #6b7380; --paper: #fbf8f1; --line: #2b2f36; --def: #c0392b; --ball: #e8761c; --accent: #1f5fbf; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #eceae4; }
header { padding: 14px 24px; display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #d8d4ca; background: #fff; }
header h1 { font-size: 18px; margin: 0; letter-spacing: .02em; }
.count-toggle { display: flex; align-items: center; gap: 8px; }
.count-toggle .label { color: var(--muted); font-size: 13px; }
.segments { display: flex; }
.segments button { border-radius: 0; margin-left: -1px; min-width: 38px; }
.segments button:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.segments button:last-child { border-radius: 0 6px 6px 0; }
.segments button.active { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; }
.segments button:disabled { background: #f1efea; color: #aaa59a; opacity: 1; }
select, button { font: inherit; padding: 6px 12px; border: 1px solid #c9c4b8; border-radius: 6px; background: #fff; cursor: pointer; }
button:hover { border-color: var(--ink); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.card { background: #fff; border-radius: 10px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
svg.board { width: 100%; display: block; }
.header-link { margin-left: auto; color: var(--accent); text-decoration: none; font-weight: 600; }
body.with-sidebar { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--ink); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; padding: 4px 10px 18px; }
.sidebar .nav-link { color: #c9ccd2; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.sidebar .nav-link:hover { background: #2c333d; color: #fff; }
.sidebar .nav-link.active { background: #fff; color: var(--ink); font-weight: 600; }
.page { min-width: 0; }
@media (max-width: 1023px) {
body.with-sidebar { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 4px; padding: 6px 16px; }
.sidebar .brand { padding: 10px 8px; margin-right: auto; font-size: 16px; white-space: nowrap; }
.sidebar .nav-link { padding: 10px 12px; white-space: nowrap; }
body.with-sidebar header { padding: 12px 24px; }
body.with-sidebar button, body.with-sidebar select { min-height: 44px; }
body.with-sidebar .segments button { min-width: 44px; }
}
@media (max-width: 640px) {
.sidebar { padding: 6px 8px; }
.sidebar .nav-link { padding: 10px; }
body.with-sidebar header { padding: 12px 16px; flex-wrap: wrap; gap: 8px 16px; }
}
@media (max-width: 359px) {
.sidebar { flex-wrap: wrap; }
.sidebar .brand { flex-basis: 100%; }
}
