:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --muted: #91a0b7;
  --night: #09111f;
  --navy: #101c30;
  --panel: #14233a;
  --panel-2: #192a44;
  --line: #2a3b56;
  --orange: #ff6b2c;
  --orange-soft: rgba(255, 107, 44, 0.14);
  --green: #42d392;
  --green-soft: rgba(66, 211, 146, 0.12);
  --yellow: #f7c948;
  --red: #ff667a;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) center / 92px 100%,
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px) center / 100% 58px,
    radial-gradient(circle at 8% -10%, rgba(49, 91, 151, 0.28), transparent 32rem),
    radial-gradient(circle at 95% 10%, rgba(255, 107, 44, 0.08), transparent 24rem),
    var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, .player-row, .nav-button { -webkit-tap-highlight-color: transparent; }

.shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(24px, calc((100vw - 1320px) / 2));
  background: rgba(9, 17, 31, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 13px; min-width: 210px; }
.brand-mark {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #f97316, #c2410c);
  color: white;
  font-weight: 950;
  box-shadow: 0 10px 30px rgba(255, 107, 44, 0.22);
  line-height: 1;
}
.brand-mark span {
  font-size: 13px;
  letter-spacing: .06em;
}
.brand-mark small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: .14em;
}
.brand-copy strong { display: block; font-size: 15px; letter-spacing: 0.08em; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.main-nav { display: flex; gap: 5px; padding: 5px; border-radius: 14px; background: rgba(255,255,255,.045); }
.nav-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.nav-button:hover { color: var(--ink); }
.nav-button.active { background: var(--panel-2); color: var(--ink); box-shadow: 0 5px 18px rgba(0,0,0,.18); }

.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 210px; }
.week-picker { display: flex; align-items: center; gap: 8px; }
.week-picker label { color: var(--muted); font-size: 12px; font-weight: 750; }
.page-week { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.035); }
.viewer-tag { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.select, .field, .textarea {
  border: 1px solid var(--line);
  outline: none;
  background: #0d192a;
  color: var(--ink);
}
.select { min-height: 40px; padding: 0 34px 0 12px; border-radius: 10px; font-weight: 750; }
.select:focus, .field:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,44,.12); }

.icon-button, .button {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
  cursor: pointer;
  font-weight: 800;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.icon-button { width: 41px; height: 41px; display: grid; place-items: center; font-size: 18px; }
.button { min-height: 44px; padding: 0 17px; }
.button:hover, .icon-button:hover { transform: translateY(-1px); border-color: #405574; }
.button.primary { border-color: var(--orange); background: var(--orange); color: white; }
.button.primary:disabled { border-color: var(--line); background: #24324a; color: #6f7d91; cursor: not-allowed; transform: none; }
.button.ghost { background: transparent; }
.button.danger { border-color: rgba(255,102,122,.35); background: rgba(255,102,122,.08); color: #ff8797; }
.button.small { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 12px; }

.page { width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.head-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.scope-toggle { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); }
.scope-toggle button {
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}
.scope-toggle button.active { background: var(--orange); color: white; }
.eyebrow { margin: 0 0 7px; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: 2.65rem; letter-spacing: -.045em; line-height: 1; }
h2 { margin-bottom: 8px; font-size: 24px; letter-spacing: -.025em; }
h3 { margin-bottom: 5px; font-size: 15px; }
.subhead, .muted { color: var(--muted); }
.subhead { margin-bottom: 0; font-size: 14px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 800; }
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(66,211,146,.1); }
.status-pill.locked .dot { background: var(--yellow); box-shadow: 0 0 0 4px rgba(247,201,72,.1); }
.status-pill.published { color: #8be7ba; border-color: rgba(66,211,146,.22); background: var(--green-soft); }
.status-pill.published .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(66,211,146,.12); }

.dashboard-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(25,42,68,.96), rgba(17,31,51,.96)); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 22px 17px; border-bottom: 1px solid var(--line); }
.panel-body { padding: 22px; }
.progress-label { color: var(--muted); font-size: 12px; font-weight: 750; }
.progress-track { height: 6px; margin: 12px 22px 18px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.065); }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ff9f43); transition: width .25s ease; }
.player-list { padding: 0 10px 12px; }
.player-row { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; }
.player-row:hover { background: rgba(255,255,255,.035); }
.player-row.active { border-color: var(--line); background: var(--panel-2); }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #243957; color: #dce6f5; font-size: 13px; font-weight: 900; }
.player-row.active .avatar { background: var(--orange); color: white; }
.player-name { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 850; }
.player-meta { display: block; color: var(--muted); font-size: 11px; }
.check { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 950; }
.waiting { color: #64758e; font-size: 11px; font-weight: 800; }

.entry-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.entry-player { display: flex; align-items: center; gap: 15px; }
.entry-player .avatar { width: 50px; height: 50px; border-radius: 15px; background: var(--orange); color: white; font-size: 16px; }
.previous { text-align: right; }
.previous-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.mini-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.mini-chip { padding: 4px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: #aebbd0; font-size: 10px; font-weight: 850; }

.entry-body { padding: 26px; }
.field-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #ced7e5; font-size: 12px; font-weight: 800; }
.hint { color: var(--muted); font-weight: 550; }
.textarea { width: 100%; min-height: 118px; resize: vertical; padding: 16px 17px; border-radius: 14px; line-height: 1.55; }
.pick-preview { min-height: 64px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin-top: 15px; padding: 14px; border: 1px dashed #314663; border-radius: 14px; background: rgba(6,14,26,.26); }
.pick-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 8px; border-radius: 10px; background: #243957; color: white; font-size: 12px; font-weight: 850; }
.team-badge { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #0c1829; color: #dce6f5; font-size: 9px; font-weight: 950; letter-spacing: -.04em; }
.preview-empty { align-self: center; color: #66768e; font-size: 12px; }
.validation { display: flex; align-items: flex-start; gap: 10px; min-height: 42px; margin: 14px 0 18px; padding: 11px 13px; border-radius: 11px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 12px; line-height: 1.45; }
.validation.good { background: var(--green-soft); color: #8be7ba; }
.validation.bad { background: rgba(255,102,122,.09); color: #ff9cab; }
.entry-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.save-note { color: var(--muted); font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.metric { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(20,35,58,.82); }
.metric-label { display: block; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.metric-value { display: block; font-size: 28px; font-weight: 950; letter-spacing: -.04em; }
.metric-foot { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,31,51,.94); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { padding: 14px 17px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 16px 17px; border-top: 1px solid var(--line); color: #e2e8f2; font-size: 13px; vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.018); }
.pool-table { min-width: 860px; }
.leaderboard-table { min-width: 830px; }
.picks-table, .history-table { min-width: 920px; }
.results-table { min-width: 740px; }
.board-section { margin-top: 24px; }
.board-section:first-of-type { margin-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin-bottom: 5px; font-size: 20px; }
.notice { margin-bottom: 14px; padding: 13px 15px; border: 1px solid rgba(247,201,72,.22); border-radius: 12px; background: rgba(247,201,72,.08); color: #f5d778; font-size: 13px; font-weight: 750; }
.result-toolbar { display: grid; grid-template-columns: minmax(220px, 1.2fr) minmax(190px, .8fr) minmax(320px, 1.6fr); gap: 12px; align-items: end; margin-bottom: 16px; }
.result-toolbar .field-label { margin-bottom: 7px; }
.search-field { min-height: 44px; }
.result-player-filter { width: 100%; }
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.filter-button { min-height: 34px; padding: 0 11px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 850; }
.filter-button.active { background: var(--orange); color: white; }
.rank { width: 48px; color: var(--muted); font-weight: 900; }
.player-cell { min-width: 150px; }
.table-player { display: flex; align-items: center; gap: 10px; min-width: 140px; font-weight: 850; }
.team-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; font-weight: 850; }
.table-player .avatar { width: 32px; height: 32px; border-radius: 9px; font-size: 10px; }
.board-picks { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.board-pick { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 56px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.06); border-radius: 8px; background: #223652; color: #dce6f5; font-size: 11px; font-weight: 950; }
.board-pick.win { border-color: rgba(66,211,146,.32); background: rgba(66,211,146,.18); color: #8bf0bd; }
.board-pick.loss { border-color: rgba(255,102,122,.34); background: rgba(255,102,122,.15); color: #ff9bab; }
.board-pick.tie { border-color: rgba(247,201,72,.36); background: rgba(247,201,72,.15); color: var(--yellow); }
.no-picks { color: #71819a; font-size: 12px; font-weight: 850; }
.score { font-size: 20px; font-weight: 950; text-align: right; }
.compact-score { min-width: 88px; font-size: 14px; white-space: nowrap; }
.score small { color: var(--muted); font-size: 11px; }
.stat-cell strong { display: block; font-size: 16px; }
.stat-cell small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.pick-slot { min-width: 86px; }
.empty-pick { color: #5e6f86; font-size: 13px; font-weight: 850; }
.hidden-pick { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 29px; padding: 0 9px; border: 1px dashed #405574; border-radius: 8px; color: #8d9bb0; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.status-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 86px; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.status-tag.submitted { background: var(--green-soft); color: #8be7ba; }
.status-tag.waiting { background: rgba(255,255,255,.055); color: #8e9ab0; }
.week-group { width: 86px; vertical-align: top; background: rgba(255,107,44,.08); color: var(--orange); font-size: 12px; font-weight: 950; text-transform: uppercase; }
.week-group span { position: sticky; top: 78px; display: inline-block; white-space: nowrap; }
.result-buttons { display: inline-flex; flex-wrap: wrap; gap: 5px; min-width: 250px; }
.result-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 900; }
.result-button.active.w { border-color: rgba(66,211,146,.32); background: rgba(66,211,146,.18); color: #8bf0bd; }
.result-button.active.l { border-color: rgba(255,102,122,.34); background: rgba(255,102,122,.15); color: #ff9bab; }
.result-button.active.t { border-color: rgba(247,201,72,.36); background: rgba(247,201,72,.15); color: var(--yellow); }
.result-button.active.clear { background: #243957; color: #dce6f5; }
.empty-state { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 16px; }
.season-board table { min-width: 980px; }
.week-score-head { text-align: center; }
.week-score { min-width: 58px; text-align: center; font-weight: 900; }
.week-score span { display: block; font-size: 14px; }
.week-score small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 800; }
.week-score.empty { color: #53647d; font-size: 12px; }
.week-score.perfect span { color: var(--green); }

.leader-row td:first-child { border-left: 3px solid var(--orange); }
.movement.up { color: var(--green); }
.movement.down { color: var(--red); }
.movement.same { color: var(--muted); }
.bar-cell { min-width: 130px; }
.tiny-bar { width: 100%; height: 5px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.tiny-bar span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stat-card { min-height: 160px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(25,42,68,.92), rgba(17,31,51,.92)); }
.stat-icon { display: grid; width: 38px; height: 38px; margin-bottom: 18px; place-items: center; border-radius: 12px; background: var(--orange-soft); font-size: 18px; }
.stat-title { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.stat-main { margin-bottom: 4px; font-size: 21px; font-weight: 950; letter-spacing: -.025em; }
.stat-detail { color: var(--muted); font-size: 12px; line-height: 1.5; }
.popularity { grid-column: 1 / -1; }
.team-bars { display: grid; gap: 13px; margin-top: 20px; }
.team-bar-row { display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 12px; font-size: 11px; font-weight: 850; }
.team-bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.06); }
.team-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ff9d43); }
.team-bar-count { color: var(--muted); text-align: right; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(1,7,15,.72); backdrop-filter: blur(5px); }
.drawer { position: fixed; top: 0; right: 0; z-index: 51; width: min(560px, 100%); height: 100vh; overflow-y: auto; background: #0e1a2b; border-left: 1px solid var(--line); box-shadow: -20px 0 70px rgba(0,0,0,.42); }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; background: rgba(14,26,43,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.drawer-body { padding: 24px; }
.settings-section { margin-bottom: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.settings-section:last-child { border: 0; }
.settings-section > p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.field { width: 100%; min-height: 43px; padding: 0 13px; border-radius: 10px; }
.add-player { display: flex; gap: 9px; margin: 14px 0; }
.player-admin-list { display: grid; gap: 7px; }
.player-admin { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 13px; font-weight: 750; }
.result-grid { display: grid; gap: 8px; margin-top: 14px; }
.result-row { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.035); }
.result-team { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; }
.file-input { display: none; }
.lock-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.switch { position: relative; width: 48px; height: 28px; border: 0; border-radius: 999px; background: #31435f; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform .2s ease; }
.switch.on { background: var(--orange); }
.switch.on::after { transform: translateX(20px); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100; max-width: calc(100% - 32px); padding: 12px 16px; border: 1px solid #3b526f; border-radius: 12px; background: #1a2c46; color: white; box-shadow: var(--shadow); font-size: 12px; font-weight: 750; transform: translate(-50%, 120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.mobile-nav { display: none; }
.reader-shell .page { padding-bottom: 54px; }

@media (max-width: 980px) {
  .topbar { padding: 15px 18px; gap: 12px; }
  .main-nav { display: none; }
  .top-actions { min-width: 0; }
  .viewer-tag { display: none; }
  .brand { min-width: 0; }
  .brand-copy span { display: none; }
  .page { width: min(100% - 28px, 1320px); padding-top: 25px; padding-bottom: 105px; }
  .reader-shell .page { padding-bottom: 105px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .players-panel { box-shadow: none; }
  .player-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 13px; }
  .player-row { min-width: 178px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 25; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: rgba(14,26,43,.94); box-shadow: 0 12px 45px rgba(0,0,0,.45); backdrop-filter: blur(18px); }
  .mobile-nav .nav-button { padding: 10px 4px; font-size: 10px; }
  .result-toolbar { grid-template-columns: 1fr; }
  .filter-group { overflow-x: auto; flex-wrap: nowrap; }
  .filter-button { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  .brand-copy strong { font-size: 13px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 11px; }
  .brand-mark span { font-size: 12px; }
  .brand-mark small { font-size: 7px; }
  .week-picker label { display: none; }
  .select { max-width: 104px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .head-actions { width: 100%; justify-content: flex-start; }
  .page-week { width: 100%; justify-content: space-between; }
  .page-week .select { max-width: none; }
  .scope-toggle { width: 100%; }
  .scope-toggle button { flex: 1; }
  .page-head .inline-actions { width: 100%; }
  .page-head .inline-actions .button { flex: 1; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head .status-pill { width: 100%; justify-content: center; }
  .result-buttons { min-width: 220px; }
  h1 { font-size: 2rem; }
  .panel-head, .panel-body { padding-left: 17px; padding-right: 17px; }
  .entry-hero { align-items: flex-start; padding: 20px 17px; }
  .previous { max-width: 44%; }
  .entry-body { padding: 20px 17px; }
  .entry-actions { align-items: stretch; flex-direction: column-reverse; }
  .button.primary { width: 100%; }
  .drawer-body { padding: 20px 17px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; }
  .topbar, .mobile-nav, .page-head .inline-actions, .toast { display: none !important; }
  .page { width: 100%; padding: 0; }
  .panel, .table-wrap { color: #111; background: white; border-color: #ccc; box-shadow: none; }
  th { color: #555; background: #eee; }
  td { color: #111; border-color: #ddd; }
  .board-pick { color: #111; background: #eee; }
}
