:root {
  --ink: #203337;
  --muted: #667875;
  --subtle: #81908d;
  --bg: #f4f7f6;
  --surface: #fff;
  --line: #e1e8e5;
  --primary: #216d61;
  --primary-hover: #17594f;
  --soft: #eaf3ef;
  --sidebar: #192f34;
  --sidebar-muted: #aabdbb;
  --amber: #936015;
  --amber-soft: #faf3e5;
  --red: #b33e37;
  --radius: 9px;
  --shadow: 0 2px 3px #19302b03;
  --font:
    -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic",
    Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt";
  letter-spacing: 0.015em;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 25px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.025em;
}
h2 {
  font-size: 15px;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small {
  font-size: 11px;
}
strong {
  font-weight: 600;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
input,
select,
textarea {
  background: var(--surface);
  border: 1px solid #cdd7d3;
  border-radius: 5px;
  min-height: 40px;
  padding: 8px 11px;
  max-width: 100%;
  outline: none;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #9eada7;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #216d611b;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f4f6f5;
  color: #697975;
}
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
}
textarea {
  resize: vertical;
  min-height: 104px;
}
select {
  padding-right: 28px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #5d9f93;
  outline-offset: 3px;
}
h1:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  background: white;
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.separator {
  color: #b7c3bf;
  margin: 0 8px;
}
.positive {
  color: var(--primary);
}
.unit {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 222px;
  background: var(--sidebar);
  color: #e3edeb;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 29px 16px 16px;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.sidebar .brand {
  padding: 0 8px;
  color: white;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 33px;
  background: #2a514f;
  border: 1px solid #4f7270;
  border-radius: 7px;
  color: #e9f6f0;
}
.club-context {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 23px 9px 22px;
  margin-top: 18px;
  border-top: 1px solid #ffffff13;
  border-bottom: 1px solid #ffffff13;
}
.club-context strong {
  font-size: 13px;
}
.club-context small {
  display: block;
  color: var(--sidebar-muted);
  font-size: 10px;
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.club-symbol {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--primary);
  font-size: 24px;
  font-weight: 750;
  width: 56px;
  height: 56px;
  border-radius: 9px;
}
.club-symbol.small {
  font-size: 16px;
  width: 32px;
  height: 32px;
  background: #d4e7df;
  flex-shrink: 0;
}
.nav-label {
  font-size: 10px;
  color: #9aaead;
  letter-spacing: 0.055em;
  margin: 27px 12px 10px;
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  min-height: 46px;
  border-radius: 6px;
  color: #c0d0cc;
  font-size: 13px;
  transition:
    background 150ms,
    color 150ms;
}
.main-nav a.active {
  background: #315651;
  color: #fff;
}
.main-nav a:hover {
  background: #294744;
  color: white;
}
.main-nav a svg {
  opacity: 0.9;
}
.nav-count {
  margin-left: auto;
  background: #f1e1b6;
  color: #65481a;
  font-size: 10px;
  line-height: 19px;
  min-width: 19px;
  text-align: center;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-season {
  display: flex;
  gap: 9px;
  color: #a6b9b4;
  font-size: 11px;
  padding: 12px 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #ffffff14;
}
.account-button {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 7px;
  width: 100%;
  text-align: left;
  border-radius: 6px;
}
.account-button:hover {
  background: #ffffff0c;
}
.account-button > span:nth-child(2) {
  flex: 1;
}
.account-button strong {
  font-size: 12px;
}
.account-button small {
  display: block;
  color: #a6b9b4;
  font-size: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  background: #d8e9e1;
  color: #275f52;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}
.workspace {
  margin-left: 222px;
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
}
.topbar-context {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}
.topbar-context strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  width: 184px;
  text-align: left;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 5px;
  min-height: 34px;
}
.global-search kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 0 5px;
  line-height: 18px;
  background: #f6f8f7;
  font: inherit;
}
.global-search:hover {
  border-color: #aabbb4;
}
.season-select select {
  font-size: 11px;
  border: none;
  background: transparent;
  min-height: 34px;
  padding-left: 0;
  cursor: pointer;
}
.notification-button {
  position: relative;
}
.notification-dot {
  position: absolute;
  right: 9px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c39037;
  border: 1px solid white;
}
.mobile-menu {
  display: none !important;
}
.content {
  max-width: 1570px;
  margin: auto;
  padding: 30px 32px 20px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.page-head p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
  border: 1px solid #d3ded8;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  transition:
    background 150ms,
    border-color 150ms;
}
.btn:hover {
  background: #f1f5f3;
  border-color: #a7bcb4;
  color: var(--ink);
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px #204a3b14;
}
.btn.primary:hover {
  background: var(--primary-hover);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
}
.icon-btn:hover {
  background: var(--soft);
  color: var(--primary);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 550;
  min-height: 30px;
  white-space: nowrap;
}
.text-link:hover {
  text-decoration: underline;
}
.app-footer {
  max-width: 1570px;
  padding: 0 32px 24px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  gap: 16px;
}
.app-footer .text-link {
  font-size: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 18px 19px 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.stat-label {
  font-size: 11px;
  color: #5c716a;
  font-weight: 550;
}
.stat-value {
  font-size: 31px;
  line-height: 1.3;
  font-weight: 620;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  margin: 9px 0 7px;
  white-space: nowrap;
}
.stat-value > span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 7px;
  letter-spacing: 0;
}
.stat-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  min-height: 25px;
}
.stat-bottom > span {
  min-width: 0;
}
.spark {
  width: 70px;
  height: 25px;
  color: #79a798;
  flex-shrink: 0;
}
.stat.attention {
  border-color: #e9dfc9;
}
.stat.attention .stat-value {
  color: #987331;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
  margin-bottom: 22px;
}
.section-head {
  padding: 20px 22px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.section-head .muted {
  font-size: 11px;
}
.panel-body {
  padding: 0 22px 22px;
}
.panel-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr);
  gap: 22px;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr);
  gap: 22px;
}
.dashboard-grid > .panel,
.dashboard-lower > .panel {
  margin-bottom: 22px;
}
.segmented {
  display: flex;
  background: #f3f6f4;
  border-radius: 5px;
  border: 1px solid #e5ebe8;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  font-size: 10px;
  padding: 5px 10px;
  white-space: nowrap;
  color: var(--muted);
  border-radius: 3px;
  min-height: 27px;
}
.segmented button.selected {
  color: var(--ink);
  background: white;
  box-shadow: 0 1px 3px #253e3212;
}
.bar-chart {
  height: calc(var(--chart-height) + 48px);
  display: flex;
  gap: 12px;
  padding: 4px 24px 35px 18px;
  position: relative;
  margin: 0 0 8px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  width: 52px;
  flex-shrink: 0;
  color: #798780;
  font-size: 9px;
  line-height: 1;
  transform: translateY(-4px);
}
.chart-plot {
  position: relative;
  flex: 1;
  min-width: 0;
}
.grid-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.grid-lines i {
  border-top: 1px dashed #e1e8e4;
  width: 100%;
}
.bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 10px;
}
.bar-column {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 65px;
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
}
.bar {
  width: 65%;
  max-width: 34px;
  background: #8bb6a8;
  border-radius: 3px 3px 0 0;
  transition: background 160ms;
  min-width: 8px;
}
.bar-column:last-child .bar {
  background: var(--primary);
}
.bar-column:hover .bar,
.bar-column:focus .bar {
  background: #3d8f7d;
}
.bar-label {
  font-size: 9px;
  color: var(--muted);
  position: absolute;
  bottom: -24px;
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
}
.bar-tooltip {
  display: none;
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 10px;
  background: #243d36;
  color: white;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 10px;
  box-shadow: 0 3px 12px #16332920;
  pointer-events: none;
}
.bar-column:hover .bar-tooltip,
.bar-column:focus .bar-tooltip {
  display: block;
}
.next-panel {
  background: #fafcfb;
}
.next-date {
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.next-date > strong {
  font-size: 34px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.next-date > span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.fixture {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 22px 16px;
}
.team-emblem {
  background: #e2eee8;
  color: #527b68;
  border-radius: 9px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
}
.fixture .muted {
  font-size: 10px;
}
.fixture h3 {
  font-size: 16px;
  margin-top: 3px;
}
.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  margin: 0 22px 13px;
}
.next-campaign {
  font-size: 11px;
  padding: 11px 12px;
  margin: 0 22px 19px;
  border: 1px solid #e7eee9;
  border-radius: 5px;
  background: white;
  line-height: 1.7;
}
.next-bottom {
  border-top: 1px solid #e4ebe6;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 22px;
  font-size: 10px;
  align-items: center;
}
.next-bottom > span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  white-space: nowrap;
  line-height: 1.6;
  font-weight: 500;
  background: #f0f3f2;
  color: #5e7069;
}
.badge.success,
.badge.teal {
  background: #eaf3ee;
  color: #2a6c53;
  border-color: #dfebe2;
}
.badge.warning {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: #f0e6cf;
}
.badge.muted {
  background: #f1f3f2;
  color: #697873;
}
.badge.neutral {
  background: #f0f3f2;
  color: #5a6e65;
}
.count {
  background: #f8f1e1;
  color: #886328;
  border-radius: 4px;
  font-size: 11px;
  min-width: 22px;
  text-align: center;
  line-height: 23px;
}
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
thead {
  background: #f8faf9;
  color: #718177;
  font-weight: 500;
  font-size: 10px;
}
th {
  font-weight: 500;
}
th,
td {
  padding: 14px 20px;
  white-space: nowrap;
  border-bottom: 1px solid #eaf0ec;
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfb;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: normal;
}
td.number {
  font-size: 12px;
  font-weight: 500;
}
td small,
th small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.match-cell {
  display: block;
  min-width: 165px;
}
.match-cell strong {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.table-date {
  font-size: 10px;
  color: #708175;
}
.table-date .muted {
  font-size: 9px;
  margin-left: 6px;
}
.result-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}
.score {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score > span {
  color: var(--subtle);
}
.report-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  width: 45px;
  height: 4px;
  background: #e7efe9;
  display: inline-block;
  border-radius: 4px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: #62a38b;
  border-radius: 4px;
}
.dashboard-lower th,
.dashboard-lower td {
  padding: 12px 15px;
}
.dashboard-lower .score {
  display: none;
}
.dashboard-lower .report-progress {
  gap: 6px;
}
.dashboard-lower .progress-track {
  width: 32px;
}
.dashboard-lower .match-cell {
  min-width: 135px;
}
.dashboard-lower table td:last-child {
  padding-left: 0;
  padding-right: 7px;
}
.task-list {
  padding: 0 20px 9px;
}
.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.task:first-child {
  border-top: 0;
  padding-top: 2px;
}
.task > div {
  flex: 1;
  min-width: 0;
}
.task strong {
  display: block;
  font-size: 11px;
}
.task div > span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: var(--muted);
}
.task small {
  font-size: 9px;
  color: var(--amber);
  display: block;
  margin-top: 3px;
}
.task-icon {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  background: #faf3e5;
  display: grid;
  place-items: center;
  color: #b1893e;
  flex-shrink: 0;
}
.task > svg {
  color: #8a9b91;
}
.task p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.empty {
  text-align: center;
  padding: 44px 22px;
  color: var(--muted);
}
.empty > svg {
  color: #95b0a1;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 5px;
}
.empty p {
  font-size: 11px;
  max-width: 340px;
  margin: auto;
  line-height: 1.8;
}
.empty .btn {
  margin-top: 16px;
}
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
}
.tabs a,
.tabs button {
  font-size: 12px;
  color: var(--muted);
  padding: 13px 2px 15px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 46px;
}
.tabs a.active,
.tabs button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tabs a:hover,
.tabs button:hover {
  color: var(--primary);
}
.tabs.compact {
  margin: 0;
  border-bottom: 0;
  gap: 19px;
}
.tabs.compact button {
  font-size: 11px;
  padding-top: 18px;
  padding-bottom: 17px;
}
.tabs button > span {
  font-size: 9px;
  background: #eef3ef;
  min-width: 17px;
  text-align: center;
  border-radius: 3px;
  line-height: 17px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  min-width: 180px;
  color: var(--muted);
}
.search-field input {
  border: 1px solid var(--line);
  padding-left: 33px;
  width: 100%;
  font-size: 11px;
  min-height: 34px;
  background: #fafcfb;
}
.search-field > svg {
  position: absolute;
  left: 10px;
  width: 15px;
  pointer-events: none;
}
.table-footer {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}
.breadcrumb {
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.breadcrumb svg {
  width: 14px;
}
.match-status-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #edf4f0;
  border: 1px solid #e0eae3;
  border-radius: 6px;
  padding: 12px 17px;
  margin: 0 0 16px;
  font-size: 11px;
}
.match-status-bar .muted {
  font-size: 10px;
  margin-left: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.department-list {
  padding: 0 22px 8px;
}
.department-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.department-row:first-child {
  border-top: 0;
}
.department-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 100px;
  flex: 1;
}
.department-name svg {
  color: #74998c;
}
.department-name strong {
  font-size: 12px;
}
.department-value {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  text-align: right;
  min-width: 75px;
}
.department-row > svg {
  color: #83988d;
}
.tag-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.panel-body > .tag-list {
  margin-top: 14px;
}
.details {
  margin: 22px 0 0;
}
.details > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
}
.details dt {
  color: var(--muted);
}
.details dd {
  margin: 0;
  text-align: right;
}
.booth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 22px 22px;
  gap: 12px;
}
.booth-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 12px;
}
.booth-icon {
  display: grid;
  place-items: center;
  color: #6b9382;
  background: #f1f6f3;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 5px;
}
.booth-card strong {
  font-size: 11px;
  display: block;
}
.booth-card div > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.booth-card .badge {
  font-size: 9px;
  margin-left: auto;
}
.form-panel .section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  padding: 24px;
}
.form-grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 550;
}
.field > small {
  color: var(--muted);
  font-size: 10px;
}
.field-error:empty {
  display: none;
}
.field-error:not(:empty) {
  color: var(--red);
}
[aria-invalid="true"] {
  border-color: var(--red);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 13px;
}
.field .field-error {
  font-size: 11px;
}
.form-error {
  background: #fff1ee;
  border: 1px solid #efcbc6;
  border-radius: 6px;
  padding: 12px 16px;
  color: #953c34;
  font-size: 12px;
  margin-bottom: 20px;
}
.form-panel .details {
  margin: 0 24px 20px;
}
.form-actions {
  padding: 0 24px 22px;
  display: flex;
  justify-content: flex-end;
}
.save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dce6df;
  border-radius: 8px;
  padding: 15px 20px;
  background: #fffffff2;
  box-shadow: 0 4px 24px #18382b12;
  backdrop-filter: blur(6px);
  margin: 0 0 20px;
}
.save-status {
  font-size: 11px;
  color: var(--muted);
}
.editable-booths {
  padding: 0 22px;
}
.editable-booth {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.editable-booth:first-child {
  border-top: 0;
}
.editable-booth > div:first-child {
  flex: 1;
}
.editable-booth strong {
  font-size: 12px;
}
.editable-booth small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.metric-checks {
  display: flex;
  gap: 18px;
}
.metric-checks label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.table-input {
  width: 120px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-height: 35px;
  font-size: 12px;
}
.readonly-note {
  color: var(--muted);
  padding: 16px;
  text-align: center;
  font-size: 11px;
}
.analysis-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
  font-size: 11px;
}
.analysis-filter > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}
.analysis-filter input {
  min-height: 34px;
  font-size: 11px;
}
.filter-note {
  color: var(--muted);
  font-size: 10px;
  margin-left: auto;
}
.donut-wrap {
  padding: 0 24px 21px;
}
.donut {
  display: block;
  width: 172px;
  height: 172px;
  margin: 0 auto 8px;
}
.donut-caption {
  font-family: var(--font);
  font-size: 8px;
  fill: var(--muted);
}
.donut-value {
  font-family: var(--font);
  font-size: 13px;
  fill: var(--ink);
  font-weight: 650;
}
.revenue-legend > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
  border-top: 1px solid #edf2ee;
}
.revenue-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.revenue-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.revenue-legend strong {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}
.revenue-legend small {
  width: 37px;
  text-align: right;
  color: var(--muted);
  font-size: 10px;
}
.compare-pickers {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 20px;
  align-items: center;
  padding: 25px;
}
.compare-pickers > span {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  padding-top: 20px;
}
.comparison-table th,
.comparison-table td {
  padding: 17px 25px;
}
.comparison-table td {
  font-size: 15px;
}
.comparison-table th {
  font-size: 12px;
}
.comparison-table td.highlighted {
  background: #f6faf7;
}
.compare-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px;
  border-top: 1px solid var(--line);
}
.compare-notes h3 {
  font-size: 12px;
}
.compare-notes p {
  font-size: 12px;
  margin: 8px 0 14px;
  color: var(--muted);
}
.footnote {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 24px;
  line-height: 1.8;
}
.initiative-list {
  padding: 0 23px;
}
.initiative-list article {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.initiative-list article:first-child {
  border-top: 0;
}
.initiative-list h3 {
  font-size: 13px;
}
.initiative-list p {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 12px;
}
.horizontal-bars {
  padding: 0 23px 23px;
}
.horizontal-bars > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 11px;
}
.horizontal-bars > div > span {
  width: 105px;
  flex-shrink: 0;
}
.horizontal-bars > div > div {
  flex: 1;
  background: #eff4f0;
  height: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.horizontal-bars i {
  display: block;
  height: 100%;
  background: #83b1a0;
}
.horizontal-bars strong {
  min-width: 72px;
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.horizontal-bars small {
  font-size: 10px;
  color: var(--muted);
}
.survey-comments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 24px 16px;
  column-gap: 32px;
}
.survey-comments article {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.survey-comments article > div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.survey-comments p {
  font-size: 12px;
  margin-top: 10px;
}
.calendar-toolbar {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.calendar-toolbar h2 {
  font-size: 18px;
  margin-right: 12px;
}
.calendar-toolbar .btn {
  font-size: 11px;
  min-height: 32px;
  padding: 5px 12px;
}
.calendar-legend {
  display: flex;
  gap: 10px;
}
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f8faf9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.weekdays > span {
  font-size: 11px;
  text-align: center;
  padding: 11px;
  color: var(--muted);
}
.weekdays > span:nth-last-child(1) {
  color: #a66a63;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-day {
  min-height: 124px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 7px;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.outside {
  background: #fafbfa;
  color: #afbab3;
}
.calendar-day.today {
  background: #f4f9f5;
}
.day-number {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 11px;
  margin-bottom: 8px;
}
.today .day-number {
  background: var(--primary);
  color: white;
  border-radius: 50%;
}
.calendar-event {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  width: 100%;
  font-size: 10px;
  padding: 8px;
  border: 1px solid #dbe8e0;
  border-left: 3px solid #8ba99c;
  background: #f1f7f3;
  border-radius: 4px;
  color: #4b6d5e;
  margin-top: 5px;
  min-height: 57px;
  transition: background 150ms;
}
.calendar-event:hover {
  background: #e2eee6;
}
.calendar-event.win {
  background: #eaf3eb;
  border-left-color: #4f9570;
}
.calendar-event.loss {
  background: #f1f3f2;
  color: #65756b;
  border-color: #e0e6e1;
  border-left-color: #a3b2a7;
}
.calendar-event strong {
  font-size: 10px;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-weight: 550;
}
.event-time {
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.event-time b {
  margin-left: 3px;
}
.event-score {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.mobile-agenda {
  display: none;
}
.narrow-panel {
  max-width: 840px;
}
.club-profile {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 24px 0;
}
.club-profile h3 {
  font-size: 16px;
}
.club-profile p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.user-cell {
  display: flex;
  gap: 10px;
  align-items: center;
}
.master-list {
  padding: 0 23px 14px;
}
.master-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.master-list > div:first-child {
  border-top: 0;
}
.master-list small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.master-list svg {
  color: #7c9c8d;
}
.mini-emblem {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #f0f5f0;
  border: 1px solid #e1eae3;
  color: #73917e;
  border-radius: 5px;
  font-size: 11px;
}
.settings-row {
  padding: 21px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.settings-row strong {
  font-size: 12px;
}
.settings-row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.settings-row + .field {
  margin: 23px 24px;
  max-width: 320px;
}
.switch {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.switch > span:first-of-type {
  display: block;
  background: #b8c8bd;
  width: 36px;
  height: 21px;
  border-radius: 15px;
  pointer-events: none;
  position: relative;
  transition: background 150ms;
}
.switch > span:first-of-type:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  transition: transform 150ms;
}
.switch input:checked + span {
  background: var(--primary);
}
.switch input:checked + span:after {
  transform: translateX(15px);
}
.switch input:focus-visible + span {
  outline: 3px solid #9fc4b5;
  outline-offset: 3px;
}
dialog {
  color: var(--ink);
  padding: 0;
  border: 1px solid #dce6df;
  border-radius: 10px;
  box-shadow: 0 18px 100px #10231c30;
  max-height: 90dvh;
  width: min(540px, calc(100% - 32px));
  background: white;
}
dialog:not([open]) {
  display: none;
}
dialog::backdrop {
  background: #132c2555;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.dialog-head h2 {
  font-size: 16px;
}
.dialog-body {
  padding: 22px;
}
.dialog-body > .field {
  margin-bottom: 18px;
}
.dialog-body > .form-grid {
  padding: 0;
  gap: 16px;
  margin-bottom: 18px;
}
.dialog-body > .muted {
  font-size: 11px;
  margin-bottom: 15px;
}
.dialog-actions {
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  background: #fcfdfc;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
  margin: 15px 0;
}
.checkbox-field {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.checkbox-field legend {
  font-size: 12px;
  margin-bottom: 10px;
}
.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.default-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.default-choice strong {
  font-size: 12px;
}
.default-choice small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.drawer {
  margin: 0 0 0 auto;
  border-radius: 0;
  width: 440px;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-left: 1px solid var(--line);
}
.drawer-body {
  padding: 25px;
}
.drawer-date {
  font-size: 15px;
  font-weight: 500;
}
.drawer-date > span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 10px;
}
.drawer-match {
  padding: 24px 0 7px;
}
.drawer-match h3 {
  font-size: 22px;
  margin-top: 12px;
}
.drawer-score {
  font-size: 38px;
  font-weight: 550;
  letter-spacing: 2px;
  margin: 13px 0 0;
  font-variant-numeric: tabular-nums;
}
.drawer-score > span {
  color: #9daea2;
}
.small-heading {
  font-size: 12px;
  margin: 23px 0 12px;
}
.drawer-body > p {
  font-size: 12px;
  color: var(--muted);
}
.drawer-reports a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 11px;
}
.drawer-reports .badge {
  margin-left: auto;
}
.notification-list {
  padding: 20px 23px;
}
.notification-list .task {
  padding: 20px 0;
}
.notification-list .task-icon {
  align-self: flex-start;
}
.search-field.large input {
  font-size: 14px;
  min-height: 44px;
  padding-left: 38px;
}
.search-result {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.search-result > div {
  flex: 1;
}
.search-result strong {
  font-size: 12px;
}
.search-result small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.account-details {
  text-align: center;
}
.account-details .avatar {
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
}
.account-details p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 12px;
}
#toast {
  position: fixed;
  left: calc(50% + 100px);
  bottom: 30px;
  transform: translate(-50%, 15px);
  background: #244c3e;
  color: white;
  border: 1px solid #315b4a;
  border-radius: 7px;
  box-shadow: 0 5px 20px #14322325;
  padding: 12px 20px;
  max-width: min(600px, 90vw);
  font-size: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms,
    transform 180ms;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.login-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  background: #f2f6f3;
}
.login-brand {
  margin-bottom: 30px;
  font-size: 24px;
}
.login-brand .brand-mark {
  background: var(--primary);
  border-color: var(--primary);
  width: 35px;
  height: 38px;
}
.login-card {
  width: 420px;
  max-width: 100%;
  padding: 34px 36px 28px;
  background: white;
  border: 1px solid #dce7df;
  box-shadow: 0 6px 28px #183e2510;
  border-radius: 12px;
}
.login-heading {
  text-align: center;
  margin-bottom: 26px;
}
.login-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #f0f6f1;
  color: var(--primary);
  border: 1px solid #e3ece5;
  border-radius: 10px;
  margin: 0 auto 16px;
}
.login-heading h1 {
  font-size: 21px;
}
.login-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.login-card .field {
  margin-bottom: 17px;
}
.login-card input {
  min-height: 43px;
}
.login-card .btn.primary {
  width: 100%;
  min-height: 43px;
  justify-content: space-between;
  margin-top: 5px;
}
.login-help {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 26px;
  font-size: 10px;
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
}
.login-copyright {
  color: #93a397;
  font-size: 10px;
  margin-top: 28px;
}
.initial-loading,
.startup-error {
  display: grid;
  place-content: center;
  min-height: 100dvh;
  text-align: center;
  gap: 18px;
}
.startup-error {
  max-width: 540px;
  padding: 32px;
  margin: auto;
}
.startup-error p {
  font-size: 13px;
}
.startup-error h1 {
  font-size: 22px;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 38px;
  }
  .topbar {
    padding-left: 42px;
    padding-right: 42px;
  }
  .content,
  .app-footer {
    padding-left: 42px;
    padding-right: 42px;
  }
  .stat-value {
    font-size: 35px;
  }
  .bar-chart {
    --chart-height: 240px;
  }
  .section-head h2 {
    font-size: 16px;
  }
  table {
    font-size: 12px;
  }
  th,
  td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 200px;
  }
  .sidebar .brand {
    font-size: 18px;
    gap: 8px;
  }
  .content {
    padding: 26px 24px 16px;
  }
  .topbar {
    padding: 0 24px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .global-search {
    width: 145px;
  }
  .global-search kbd {
    display: none;
  }
  .dashboard-grid,
  .dashboard-lower {
    grid-template-columns: minmax(0, 1.5fr) minmax(265px, 1fr);
    gap: 18px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 16px 15px 13px;
  }
  .stat-value {
    font-size: 28px;
  }
  .spark {
    width: 50px;
  }
  .section-head {
    padding: 18px;
  }
  .next-date,
  .fixture {
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }
  .meta-line {
    margin-left: 18px;
    margin-right: 18px;
  }
  .next-campaign {
    margin-left: 18px;
    margin-right: 18px;
  }
  .dashboard-lower .progress-track {
    display: none;
  }
  .dashboard-lower th,
  .dashboard-lower td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .dashboard-lower table th:nth-child(3),
  .dashboard-lower table td:nth-child(3) {
    display: none;
  }
  .booth-grid {
    grid-template-columns: 1fr 1fr;
  }
  .list-toolbar {
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 12px;
  }
  .list-toolbar .tabs {
    width: 100%;
  }
  .list-toolbar .search-field {
    width: 100%;
  }
  .filter-note {
    display: none;
  }
  .task-list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .app-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    width: 180px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .workspace {
    margin-left: 180px;
  }
  .sidebar .brand {
    font-size: 16px;
    gap: 7px;
    padding: 0 4px;
  }
  .brand-mark {
    width: 28px;
    height: 30px;
  }
  .club-context {
    padding-left: 4px;
    gap: 8px;
  }
  .club-context strong {
    font-size: 11px;
  }
  .club-context small {
    font-size: 9px;
  }
  .main-nav a {
    font-size: 12px;
    padding: 11px 10px;
    gap: 10px;
  }
  .content {
    padding: 24px 20px 16px;
  }
  .topbar {
    padding: 0 20px;
    gap: 10px;
  }
  .topbar-context > span:first-of-type {
    display: none;
  }
  .topbar-context > .separator {
    display: none;
  }
  .global-search {
    width: 134px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat-bottom {
    font-size: 10px;
  }
  .spark {
    width: 70px;
  }
  .dashboard-grid,
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .dashboard-grid .next-panel {
    display: none;
  }
  .dashboard-lower table th:nth-child(3),
  .dashboard-lower table td:nth-child(3) {
    display: table-cell;
  }
  .dashboard-lower th,
  .dashboard-lower td {
    padding: 13px 17px;
  }
  .dashboard-lower .score {
    display: inline;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-grid.three {
    grid-template-columns: 1fr 1fr;
  }
  .booth-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-checks {
    gap: 10px;
  }
  .metric-checks label {
    font-size: 10px;
  }
  .form-grid {
    gap: 18px;
    padding: 20px;
  }
  .save-status {
    max-width: 210px;
    font-size: 10px;
  }
  .calendar-day {
    min-height: 106px;
  }
  .calendar-event {
    padding: 5px;
  }
  .calendar-event strong {
    font-size: 9px;
  }
  .initiative-list article {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .survey-comments {
    grid-template-columns: 1fr;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 14px 20px;
  }
  .compare-pickers {
    gap: 10px;
    padding: 20px;
    grid-template-columns: 1fr 24px 1fr;
  }
  .app-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
    width: 245px;
    padding: 24px 16px;
    box-shadow: 10px 0 45px #16302525;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    top: 61px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .main-nav a {
    min-height: 48px;
    font-size: 14px;
  }
  .club-context strong {
    font-size: 14px;
  }
  .club-context small {
    font-size: 11px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 61px;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 45;
  }
  .mobile-menu {
    display: inline-flex !important;
    margin-right: 5px;
  }
  .topbar-context strong {
    font-size: 12px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .global-search {
    width: 38px;
    min-height: 40px;
    justify-content: center;
    border: 0;
    padding: 0;
  }
  .global-search span,
  .global-search kbd {
    display: none;
  }
  .season-select select {
    font-size: 10px;
    max-width: 132px;
    padding-right: 18px;
  }
  .topbar-context {
    gap: 0;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .content {
    padding: 22px 16px 12px;
  }
  .page-head {
    gap: 10px;
    margin-bottom: 21px;
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .page-head p {
    font-size: 10px;
    line-height: 1.8;
  }
  .page-head .btn {
    min-height: 39px;
    font-size: 11px;
    padding: 9px 11px;
  }
  .page-head .btn svg {
    width: 15px;
  }
  .page-head .actions {
    justify-content: flex-end;
    gap: 7px;
  }
  .btn {
    min-height: 44px;
    font-size: 12px;
    padding: 10px 14px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px 13px 13px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-value {
    font-size: 29px;
    margin-top: 10px;
  }
  .stat-value > span {
    font-size: 10px;
    margin-left: 5px;
  }
  .stat-bottom {
    min-height: 24px;
    align-items: center;
    font-size: 9px;
  }
  .spark {
    width: 43px;
    height: 23px;
  }
  .stat-bottom > span {
    max-width: calc(100% - 45px);
  }
  .stat-bottom > span:only-child {
    max-width: 100%;
  }
  .panel {
    margin-bottom: 18px;
    border-radius: 8px;
  }
  .section-head {
    padding: 17px 16px;
    gap: 8px;
  }
  .section-head h2 {
    font-size: 13px;
  }
  .section-head p {
    font-size: 10px;
    line-height: 1.8;
  }
  .section-head .btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .section-head .text-link {
    font-size: 10px;
  }
  .section-head .muted {
    font-size: 10px;
  }
  .segmented button {
    font-size: 9px;
    padding: 5px 7px;
    min-height: 29px;
  }
  .bar-chart {
    padding-left: 10px;
    padding-right: 16px;
    gap: 8px;
    --chart-height: 180px !important;
  }
  .chart-axis {
    font-size: 8px;
    width: 42px;
  }
  .bar-label {
    font-size: 8px;
  }
  .bars {
    gap: 7px;
  }
  .bar {
    width: 70%;
  }
  .bar-tooltip {
    font-size: 9px;
  }
  .bar-column:first-child .bar-tooltip {
    left: 0;
    transform: none;
  }
  .bar-column:last-child .bar-tooltip {
    left: auto;
    right: 0;
    transform: none;
  }
  .dashboard-grid .next-panel {
    display: block;
  }
  .next-date {
    padding: 0 17px;
  }
  .next-date > strong {
    font-size: 33px;
  }
  .fixture {
    padding: 0 17px;
  }
  .fixture h3 {
    font-size: 17px;
  }
  .next-bottom {
    padding: 12px 17px;
  }
  .task-list {
    padding: 0 17px 10px;
  }
  .task {
    padding: 15px 0;
  }
  .task strong {
    font-size: 12px;
  }
  .task div > span {
    font-size: 11px;
  }
  .task small {
    font-size: 10px;
  }
  .dashboard-lower th,
  .dashboard-lower td {
    padding: 13px 12px;
  }
  .dashboard-lower table th:nth-child(3),
  .dashboard-lower table td:nth-child(3) {
    display: none;
  }
  .dashboard-lower .score {
    display: none;
  }
  .dashboard-lower .match-cell {
    min-width: 135px;
  }
  .dashboard-lower .match-cell strong {
    font-size: 11px;
  }
  .report-progress {
    font-size: 10px;
  }
  .app-footer {
    font-size: 9px;
    padding: 0 17px 20px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .app-footer .text-link {
    font-size: 10px;
    min-height: 40px;
  }
  .tabs {
    gap: 25px;
    margin-bottom: 20px;
  }
  .tabs a,
  .tabs button {
    font-size: 12px;
    min-height: 46px;
  }
  .tabs.compact {
    gap: 16px;
  }
  .tabs.compact button {
    font-size: 10px;
  }
  .list-toolbar {
    padding-left: 15px;
    padding-right: 15px;
  }
  .search-field input {
    font-size: 16px;
    min-height: 42px;
  }
  .list-toolbar .search-field {
    margin: 7px 0 3px;
  }
  .table-scroll table {
    min-width: 640px;
  }
  .dashboard-lower .table-scroll table {
    min-width: 0;
  }
  .table-scroll th,
  .table-scroll td {
    padding: 14px 15px;
  }
  .table-footer {
    font-size: 10px;
    padding: 10px 13px;
  }
  .table-footer .actions {
    gap: 4px;
  }
  .table-footer .icon-btn {
    width: 36px;
    min-width: 36px;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .match-status-bar {
    flex-wrap: wrap;
    gap: 8px 15px;
    padding: 12px;
  }
  .match-status-bar .muted {
    margin: 0;
    flex-basis: 100%;
    font-size: 10px;
  }
  .department-list {
    padding: 0 16px 8px;
  }
  .department-row {
    gap: 7px;
    padding: 17px 0;
  }
  .department-name {
    min-width: 90px;
    gap: 7px;
  }
  .department-name strong {
    font-size: 11px;
  }
  .department-value {
    min-width: 70px;
    font-size: 11px;
  }
  .department-row > .badge {
    font-size: 9px;
  }
  .booth-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 18px;
  }
  .booth-card {
    padding: 15px 13px;
  }
  .booth-card strong {
    font-size: 12px;
  }
  .booth-card div > span {
    font-size: 11px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
    gap: 21px;
    padding: 20px 17px;
  }
  .field > span {
    font-size: 12px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 45px;
  }
  .field > small {
    font-size: 11px;
  }
  .form-panel .section-head {
    padding: 17px;
  }
  .save-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 13px;
    bottom: 12px;
  }
  .save-status {
    max-width: none;
    font-size: 10px;
  }
  .save-bar .actions {
    justify-content: flex-end;
  }
  .save-bar .btn {
    flex: 1;
  }
  .editable-booths {
    padding: 0 16px;
  }
  .editable-booth {
    display: grid;
    grid-template-columns: 1fr 36px;
    gap: 10px;
    padding: 17px 0;
  }
  .editable-booth > div:first-child {
    grid-column: 1;
  }
  .editable-booth > .icon-btn {
    grid-column: 2;
    grid-row: 1;
  }
  .metric-checks {
    grid-column: 1/-1;
    grid-row: 2;
    gap: 15px;
  }
  .metric-checks label {
    font-size: 11px;
    min-height: 38px;
  }
  .table-input {
    font-size: 16px;
    min-height: 44px;
  }
  .analysis-filter {
    flex-wrap: wrap;
    gap: 8px;
  }
  .analysis-filter > span:first-child {
    flex-basis: 100%;
    font-size: 11px;
    margin-bottom: 2px;
  }
  .analysis-filter input {
    font-size: 12px;
    min-height: 40px;
    width: 126px;
    padding: 6px;
  }
  .analysis-filter .text-link {
    font-size: 10px;
    min-height: 40px;
  }
  .donut-wrap {
    padding-bottom: 23px;
  }
  .donut {
    width: 190px;
    height: 190px;
  }
  .revenue-legend > div {
    font-size: 12px;
  }
  .revenue-legend strong {
    font-size: 12px;
  }
  .compare-pickers {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 15px;
  }
  .compare-pickers > span {
    display: none;
  }
  .compare-notes {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 25px;
  }
  .footnote {
    font-size: 11px;
  }
  .horizontal-bars {
    padding: 0 17px 20px;
  }
  .horizontal-bars > div {
    gap: 10px;
  }
  .horizontal-bars > div > span {
    width: 90px;
    font-size: 10px;
  }
  .horizontal-bars strong {
    min-width: 65px;
    font-size: 11px;
  }
  .initiative-list {
    padding: 0 17px;
  }
  .survey-comments {
    padding: 0 17px 14px;
  }
  .survey-comments p {
    font-size: 13px;
  }
  .calendar-toolbar {
    padding: 16px;
    flex-wrap: wrap;
  }
  .calendar-toolbar h2 {
    font-size: 18px;
    margin-right: 7px;
  }
  .calendar-toolbar .actions {
    gap: 4px;
  }
  .calendar-legend {
    display: none;
  }
  .calendar-day {
    min-height: 72px;
    padding: 7px 4px;
  }
  .weekdays > span {
    font-size: 10px;
    padding: 9px 2px;
  }
  .day-number {
    font-size: 10px;
    width: 21px;
    height: 21px;
    margin: 0 auto 5px;
  }
  .calendar-event {
    font-size: 8px;
    min-height: 18px;
    padding: 3px 1px;
    align-items: center;
    border-left: 0;
    border-radius: 3px;
  }
  .calendar-event strong,
  .event-score {
    display: none;
  }
  .event-time {
    font-size: 8px;
  }
  .calendar-event .event-time b {
    font-size: 8px;
  }
  .calendar-day.outside .calendar-event {
    opacity: 0.5;
  }
  .mobile-agenda {
    display: block;
  }
  .agenda-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
  }
  .agenda-item > span:first-child {
    font-size: 11px;
    min-width: 63px;
  }
  .agenda-item small {
    display: block;
    color: var(--muted);
    font-size: 10px;
  }
  .agenda-item strong {
    font-size: 12px;
    flex: 1;
  }
  .agenda-item .badge {
    font-size: 9px;
  }
  .agenda-item > svg {
    width: 15px;
  }
  .settings-row {
    padding: 21px 18px;
  }
  .settings-row strong {
    font-size: 12px;
  }
  .settings-row p {
    font-size: 11px;
  }
  .settings-row + .field {
    margin: 21px 18px;
  }
  .club-profile {
    padding: 23px 18px 0;
  }
  .form-actions {
    padding: 0 18px 20px;
  }
  .form-panel .details {
    margin: 0 18px 20px;
  }
  dialog {
    max-height: 93dvh;
    width: calc(100% - 24px);
  }
  .dialog-head {
    padding: 14px 17px;
  }
  .dialog-head h2 {
    font-size: 16px;
  }
  .dialog-body {
    padding: 20px 17px;
  }
  .dialog-body > .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .dialog-actions {
    padding: 14px 17px;
  }
  .dialog-actions .btn {
    font-size: 12px;
  }
  .checkbox-field {
    gap: 16px;
  }
  .checkbox-field label,
  .checkbox-label {
    font-size: 12px;
    min-height: 32px;
  }
  .drawer {
    width: min(100%, 440px);
    max-height: 100dvh;
  }
  .drawer-body {
    padding: 23px;
  }
  .drawer-match h3 {
    font-size: 21px;
  }
  .notification-list {
    padding: 19px;
  }
  .notification-list .task strong {
    font-size: 12px;
  }
  #toast {
    left: 50%;
    bottom: 25px;
    width: max-content;
    max-width: calc(100% - 32px);
    font-size: 12px;
  }
  .login-page {
    padding: 34px 18px;
  }
  .login-card {
    padding: 28px 25px 24px;
  }
  .login-brand {
    font-size: 23px;
  }
  .login-card .field input {
    font-size: 16px;
  }
  .login-card .btn.primary {
    min-height: 46px;
  }
  .login-heading p {
    font-size: 11px;
  }
  .login-help {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Match Karte brand theme: club red is reserved for primary actions and active navigation.
   Success, warning and error colors remain separate so operational states stay readable. */
:root {
  --ink: #332c2e;
  --muted: #756a6c;
  --subtle: #968b8d;
  --bg: #f8f5f4;
  --line: #eadfe0;
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --soft: #fff1f2;
  --sidebar: #28171c;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #dc26261f;
}
button:focus-visible,
a:focus-visible {
  outline-color: #f06a6a;
}
.brand-mark {
  background: #7f1d1d;
  border-color: #b5424c;
}
.sidebar .brand-mark {
  color: #fff0f0;
}
.club-symbol.small {
  background: #ffe4e6;
  color: #b91c1c;
}
.main-nav a.active {
  background: #7c2730;
}
.main-nav a:hover {
  background: #552029;
}
.next-panel {
  background: #fdf9f9;
}
.next-campaign {
  border-color: #f0e3e4;
}
.team-emblem {
  background: #ffe4e6;
  color: #b91c1c;
}
.booth-icon {
  color: #a04d52;
  background: #fbefef;
}
.bar {
  background: #ef9699;
}
.bar-column:hover .bar,
.bar-column:focus .bar {
  background: #e5484d;
}
.bar-column:last-child .bar {
  background: var(--primary);
}
.calendar-day.today .day-number {
  background: var(--primary);
}
.calendar-day.today {
  background: #fff8f8;
}
.calendar-event {
  border-color: #f0dddd;
  background: #fff3f3;
  color: #7e4549;
}
.calendar-event:hover {
  background: #fbe6e7;
}
.calendar-event.win {
  background: #eaf3eb;
  border-left-color: #4f9570;
}
.calendar-event.loss {
  background: #f6eeee;
  color: #775f62;
  border-color: #eadfe0;
  border-left-color: #b78b8e;
}
.login-brand .brand-mark {
  background: var(--primary);
  border-color: var(--primary);
}
.login-icon {
  background: #fff1f1;
  color: var(--primary);
  border-color: #f0dfe0;
}
#toast {
  background: #7f1d1d;
  border-color: #b6424a;
}

/* High-contrast club palette: red, yellow, white and black. */
:root {
  --ink: #111111;
  --muted: #555555;
  --subtle: #777777;
  --bg: #ffffff;
  --surface: #ffffff;
  --line: #11111126;
  --primary: #e60012;
  --primary-hover: #b0000a;
  --soft: #ffffff;
  --sidebar: #111111;
  --sidebar-muted: #d7d7d7;
  --amber: #111111;
  --amber-soft: #ffd400;
  --red: #e60012;
  --yellow: #ffd400;
  --shadow: 0 2px 0 #11111112;
}

body {
  background: #ffffff;
}

input,
select,
textarea {
  border-color: #11111166;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #111111;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px #e6001226;
}

button:focus-visible,
a:focus-visible {
  outline-color: #e60012;
}

.sidebar {
  background: #111111;
}

.brand-mark,
.sidebar .brand-mark {
  background: #e60012;
  border-color: #ffffff;
  color: #ffffff;
}

.club-symbol.small {
  background: #ffd400;
  color: #111111;
}

.main-nav a.active {
  background: #e60012;
  color: #ffffff;
}

.main-nav a:hover {
  background: #2b2b2b;
  color: #ffffff;
}

.nav-count,
.count,
.notification-dot {
  background: #ffd400;
  color: #111111;
}

.avatar {
  background: #ffd400;
  color: #111111;
}

.global-search,
.global-search kbd,
.topbar,
.panel,
.next-panel,
.next-campaign,
.login-card {
  background: #ffffff;
}

.global-search kbd {
  border-color: #11111166;
}

.global-search:hover {
  border-color: #111111;
}

.notification-dot {
  border-color: #111111;
}

.spark {
  color: #e60012;
}

.stat.attention {
  border-color: #111111;
}

.stat.attention .stat-value {
  color: #e60012;
}

.bar {
  background: #ffd400;
}

.bar-column:hover .bar,
.bar-column:focus .bar {
  background: #111111;
}

.bar-column:last-child .bar {
  background: #e60012;
}

.bar-tooltip {
  background: #111111;
}

.team-emblem,
.booth-icon,
.task-icon,
.login-icon {
  background: #ffd400;
  color: #111111;
  border-color: #111111;
}

.next-campaign {
  border-color: #111111;
}

.next-bottom {
  border-top-color: #11111126;
}

.badge,
.badge.success,
.badge.teal,
.badge.muted,
.badge.neutral {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
}

.badge.warning {
  background: #ffd400;
  color: #111111;
  border-color: #111111;
}

.progress-track {
  background: #11111126;
}

.progress-track i {
  background: #e60012;
}

.task small {
  color: #e60012;
}

.task-icon {
  border: 1px solid #111111;
}

.task > svg,
.empty > svg {
  color: #111111;
}

.revenue-legend > div {
  border-top-color: #11111126;
}

.donut circle:first-child {
  stroke: #11111126;
}

.calendar-day.today {
  background: #ffffff;
}

.calendar-day.today .day-number,
.today .day-number {
  background: #e60012;
  color: #ffffff;
}

.calendar-event {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
  border-left-color: #e60012;
}

.calendar-event:hover {
  background: #ffd400;
}

.calendar-event.win {
  background: #ffd400;
  color: #111111;
  border-color: #111111;
  border-left-color: #111111;
}

.calendar-event.loss {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
  border-left-color: #e60012;
}

.login-page {
  background: #ffffff;
}

.login-card {
  border-color: #111111;
  box-shadow: 5px 5px 0 #111111;
}

.login-icon {
  background: #ffd400;
}

.login-brand .brand-mark {
  background: #e60012;
  border-color: #111111;
}

#toast {
  background: #111111;
  border-color: #e60012;
}

.team-logo {
  display: block;
  flex: 0 0 auto;
}

.club-symbol {
  overflow: hidden;
  padding: 0;
}

.club-symbol .team-logo,
.team-emblem .team-logo {
  width: 100%;
  height: 100%;
}

.team-emblem {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #111111;
}

.mini-emblem {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: #111111;
}

.mini-emblem .team-logo {
  width: 100%;
  height: 100%;
}

.line-chart {
  height: calc(var(--chart-height) + 48px);
  display: flex;
  gap: 12px;
  padding: 4px 24px 35px 18px;
  position: relative;
  margin: 0 0 8px;
}

.line-chart-y {
  width: 52px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  padding: 1px 0 25px;
}

.line-chart-main {
  position: relative;
  flex: 1;
  min-width: 0;
}

.line-chart-svg {
  position: absolute;
  inset: 0 0 25px;
  width: 100%;
  height: calc(100% - 25px);
  overflow: visible;
}

.line-chart-grid line {
  stroke: #11111126;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.line-series {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-point {
  fill: #ffd400;
  stroke: #111111;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.line-labels {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 16px;
}

.line-label {
  position: absolute;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.line-label.first {
  transform: none;
  text-align: left;
}

.line-label.last {
  transform: translateX(-100%);
  text-align: right;
}

.line-label:hover,
.line-label:focus-visible {
  color: var(--primary);
}

.analysis-page-head {
  margin-bottom: 12px;
}

.analysis-tabs {
  margin-bottom: 12px;
}

.analysis-filter {
  margin-bottom: 16px;
}

.calendar-event,
.calendar-event.win,
.calendar-event.loss {
  border-left: 1px solid #111111;
}

.avatar {
  overflow: hidden;
  padding: 0;
}

.avatar-art {
  display: block;
  width: 100%;
  height: 100%;
}
