:root {
  --xh-sidebar-bg: #FFFFFF;
  --xh-auth-bg: #0B5241;
  --xh-primary: #0F6E56;
  --xh-primary-dark: #0B5241;
  --xh-primary-bg: #E1F5EE;
  --xh-heading: #102331;
  --ink: #17232d;
  --ink-soft: #53636e;
  --muted: #75838d;
  --line: #d8e0e5;
  --line-strong: #becbd3;
  --canvas: #f3f5f6;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --success: #26724f;
  --success-bg: #eaf5ef;
  --warning: #B54708;
  --warning-bg: #fff4df;
  --danger: #B42318;
  --danger-bg: #fbeceb;
  --info: #2c6277;
  --info-bg: #eaf3f6;
  --radius-sm: 4px;
  --radius-md: 7px;
  --shadow: 0 8px 24px rgba(17, 36, 48, .06);
  --font: "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: var(--xh-primary); text-decoration: none; }
a:hover { color: var(--xh-primary-dark); }
button, a, input, select, textarea { outline-offset: 2px; }
:focus-visible { outline: 3px solid rgba(15, 110, 86, .34); outline-offset: 2px; }
code, .technical { font-family: var(--mono); font-size: .86em; color: var(--muted); }

.app-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 24px 16px 18px; border-right: 1px solid var(--line); color: var(--ink); background: var(--xh-sidebar-bg); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--xh-heading); padding: 2px 8px 28px; }
.brand:hover { color: var(--xh-primary-dark); }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { letter-spacing: .04em; font-size: 15px; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--xh-primary); border-radius: 50%; color: var(--xh-primary-dark); background: var(--xh-primary-bg); font-weight: 700; }
.brand-mark--large { width: 48px; height: 48px; margin-bottom: 16px; font-size: 20px; }
.sidebar-nav { flex: 1; }
.nav-group { margin: 0 0 22px; }
.nav-group__label { padding: 0 10px 7px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.nav-link { display: block; margin: 2px 0; padding: 9px 10px 9px 13px; border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft); font-size: 14px; }
.nav-link:hover { background: var(--surface-soft); color: var(--xh-primary-dark); }
.nav-link.is-active { border-left-color: var(--xh-primary); background: var(--xh-primary-bg); color: var(--xh-primary-dark); font-weight: 700; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 14px 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #67b98b; }

.app-main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px 34px; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar__context, .topbar__actions, .user-chip, .topbar-action { display: flex; align-items: center; }
.topbar__context { gap: 10px; min-width: 0; }
.topbar__context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__label { color: var(--muted); font-size: 12px; }
.topbar__context code { margin-left: 3px; }
.topbar__actions { gap: 0; }
.topbar__actions > * { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar__actions > .user-chip { margin-left: 0; padding-left: 0; border-left: 0; }
.user-chip { gap: 9px; padding-right: 3px; }
.user-chip__avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--xh-primary); font-weight: 700; }
.user-chip strong, .user-chip small { display: block; line-height: 1.25; }
.user-chip strong { font-size: 13px; }
.user-chip small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.topbar-action { padding: 6px 8px; border: 0; background: transparent; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.topbar-action:hover { color: var(--xh-primary-dark); }
.topbar-action--button { padding-right: 0; }
.inline-form { margin: 0; }
.environment-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 3px 9px; border: 0; border-radius: var(--radius-sm); color: var(--ink-soft); background: #eef1f0; font-size: 11px; font-weight: 700; white-space: nowrap; }
.environment-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: #C87835; box-shadow: 0 0 0 3px rgba(200, 120, 53, .12); }
.environment-badge--danger .environment-badge__dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.runtime-build { color: var(--muted); font-size: 11px; white-space: nowrap; }

.page-main { width: min(100%, 1540px); margin: 0 auto; padding: 28px 36px 56px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header__copy { min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--muted); font-size: 12px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb__separator { color: #a7b3ba; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--xh-heading); font-size: clamp(23px, 2.1vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
h2 { margin: 30px 0 13px; color: var(--xh-primary-dark); font-size: 17px; }
h3 { margin-bottom: 5px; font-size: 15px; }
.page-summary { margin: 0; color: var(--ink-soft); }
.success-line { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; color: var(--success); font-size: 12px; font-weight: 700; }
.page-header__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin-bottom: 13px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.panel__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px 14px; border-bottom: 1px solid var(--line); }
.panel__title { margin: 0; color: var(--xh-primary-dark); font-size: 15px; }
.panel__body { padding: 20px; }
.panel__footer { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 20px 20px; }
.panel__body--flush { padding: 0; }
.subtle { color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); }
.ok { color: var(--success); }
.error { margin: 14px 0; padding: 10px 12px; border-left: 3px solid var(--danger); background: var(--danger-bg); color: var(--danger); }
.notice { margin: 14px 0 20px; padding: 11px 13px; border-left: 3px solid var(--info); background: var(--info-bg); color: var(--info); }

.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 14px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; line-height: 1.2; }
.button--primary, button[type="submit"] { color: #fff; background: var(--xh-primary); }
.button--primary:hover, button[type="submit"]:hover { color: #fff; background: var(--xh-primary-dark); }
.button--secondary { border-color: var(--line-strong); color: var(--xh-primary-dark); background: #fff; }
.button--secondary:hover { border-color: var(--xh-primary); color: var(--xh-primary-dark); }
.button--danger, button.danger { color: #fff; background: var(--danger); }
.button--quiet { min-height: 30px; padding: 4px 9px; color: var(--xh-primary-dark); background: transparent; }
.button--quiet:hover { background: var(--surface-soft); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.referee-report-filters { margin: 18px 0; }
.preflight-confirmation { display: grid; gap: 8px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.checkbox-row { display: inline-flex; align-items: center; gap: 9px; width: fit-content; min-height: 32px; color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.checkbox-row input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--xh-primary); }
.referee-template-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.referee-template-upload label { color: var(--ink); font-size: 13px; font-weight: 700; }
.referee-template-upload input[type="file"] { min-width: 240px; max-width: 100%; }
.referee-template-candidate { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.referee-template-candidate p { margin: 0 0 8px; }
.referee-image-table-wrap { margin-top: 12px; }
.referee-image-table { min-width: 1500px; }
.referee-image-table input, .referee-image-table select { width: 100%; min-width: 86px; box-sizing: border-box; }
.referee-image-table th:first-child, .referee-image-table td:first-child,
.referee-image-table th:last-child, .referee-image-table td:last-child { white-space: nowrap; }
.preflight-confirmation .subtle { margin: 0; line-height: 1.5; }

.filter-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.filter-field { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.filter-field--search { flex: 1 1 240px; }
.filter-field label, label { display: block; margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input, select { height: 36px; padding: 6px 9px; }
textarea { padding: 9px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9aa8b0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field--full { grid-column: 1 / -1; }
.form-help { margin: 0; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.table-wrap { overflow-x: auto; }

/* W6A-2: dense, state-first import workspace; intentionally local to the importer. */
.import-upload-panel, .import-match-card, .import-summary { margin-bottom: 16px; }
.import-upload-form { display: grid; gap: 10px; max-width: 680px; }
.import-upload-form input[type="file"] { padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-soft); }
.field-help, .subtle { color: var(--ink-muted); font-size: 12px; }
.import-summary__grid { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)); gap: 16px; }
.import-summary__grid div { display: grid; gap: 4px; }
.import-summary__grid strong { color: var(--xh-heading); font-size: 18px; }
.import-match-card .panel__header { align-items: flex-start; }
.import-match-card .panel__title { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.import-match-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; color: var(--ink-soft); font-size: 13px; }
.import-warnings { margin: 12px 0; padding: 10px 12px; border-left: 3px solid #C87835; background: var(--warning-bg); color: var(--ink-soft); }
.import-warnings p { margin: 5px 0 0; }
.import-events-details { margin-top: 14px; }
.import-events-details summary { cursor: pointer; color: var(--xh-primary-dark); font-size: 13px; font-weight: 700; }
.import-events-table-wrap { margin-top: 10px; }
.import-events-table { width: 100%; min-width: 0; table-layout: auto; }
.import-events-table th, .import-events-table td { white-space: normal; }
.import-events-table th:nth-child(3), .import-events-table th:nth-child(5), .import-events-table th:nth-child(6),
.import-events-table td:nth-child(3), .import-events-table td:nth-child(5), .import-events-table td:nth-child(6) { width: 1%; white-space: nowrap; text-align: center; }
.import-bind-form { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; }
.import-bind-form label { font-size: 13px; font-weight: 700; }
.technical-details { margin-top: 14px; color: var(--ink-muted); font-size: 12px; }
.technical-details p { overflow-wrap: anywhere; }
.import-actions { display: flex; gap: 10px; align-items: center; margin: 18px 0 32px; }
.import-actions form { display: flex; align-items: center; gap: 8px; }
.import-actions .button--primary:disabled, .import-bind-form button:disabled { color: #667085; background: #d0d5dd; border-color: #d0d5dd; cursor: not-allowed; opacity: 1; }
.import-bind-form select:disabled { color: #667085; background: #f2f4f7; border-color: #d0d5dd; cursor: not-allowed; }
.import-bind-form__label { display: grid; gap: 3px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.import-bind-form__label strong { color: var(--ink); font-size: 14px; }
.player-picker { display: grid; gap: 6px; }
.player-picker input[type="search"] { min-width: 220px; }
.player-picker select { min-height: 168px; }
.player-picker__empty { margin: 0; color: var(--ink-muted); font-size: 13px; }
.import-actions__hint,
.import-bind-form__hint { margin: 0; color: var(--ink-muted); font-size: 13px; }
@media (max-width: 900px) { .import-summary__grid { grid-template-columns: repeat(2, 1fr); } .import-bind-form { grid-template-columns: 1fr; } }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
.matches-table { min-width: 860px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: var(--ink-soft); background: var(--surface-soft); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
tbody tr:hover { background: #fbfcfc; }
tbody tr:last-child td { border-bottom: 0; }
.match-row--pending td { background: #fff8e1; }
.match-row--pending td:first-child { border-left: 3px solid #d68a15; padding-left: 11px; }
.match-row--pending:hover td { background: #fff2c5; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
td.primary-cell { color: var(--xh-heading); font-weight: 700; }
td.technical-cell { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.table-actions { display: flex; align-items: center; gap: 6px; }
.table-actions form { margin: 0; }
.table-actions .button { min-height: 30px; padding: 5px 9px; font-size: 12px; }
.schedule-batch { display: grid; gap: 12px; margin-top: 18px; }
.schedule-batch__head { display: flex; justify-content: space-between; align-items: baseline; }
.schedule-batch__head h3 { margin: 0; font-size: 16px; }
.schedule-batch__rows { display: grid; gap: 10px; }
.schedule-batch__row { display: grid; grid-template-columns: 140px minmax(160px, 1fr) minmax(160px, 1fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.table--compact { min-width: 0; table-layout: auto; }
.table--compact th, .table--compact td { white-space: normal; }
.table--compact th.numeric, .table--compact td.numeric { width: 1%; white-space: nowrap; }
.table--compact th:first-child, .table--compact td:first-child { width: 1%; white-space: nowrap; }
.table--narrow { width: 100%; min-width: 0; table-layout: fixed; }
.table--narrow th, .table--narrow td { white-space: nowrap; }
.table--narrow th:first-child, .table--narrow td:first-child {
  width: 50%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.table--narrow th.numeric, .table--narrow td.numeric {
  width: 25%;
  min-width: 0;
  padding-right: 10px;
  padding-left: 10px;
}
.table-note { padding: 12px 16px; color: var(--muted); font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.pager__links { display: flex; gap: 8px; }

.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; line-height: 1.2; }
.badge--neutral { border-color: #d3dde2; color: #5b6b74; background: #f1f4f5; }
.badge--muted { border-color: #dce2e5; color: #6d7b83; background: #f6f8f8; }
.badge--success { border-color: #b9ddc8; color: var(--success); background: var(--success-bg); }
.badge--warning { border-color: #efd39d; color: var(--warning); background: var(--warning-bg); }
.badge--danger { border-color: #efc2bd; color: var(--danger); background: var(--danger-bg); }
.badge--info { border-color: #bfd8e1; color: var(--info); background: var(--info-bg); }

.metric-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.metric-group { min-width: 0; border-right: 1px solid var(--line); }
.metric-group:last-child { border-right: 0; }
.metric-group--registration, .metric-group--schedule { grid-column: span 2; }
.metric-group--competition { grid-column: span 3; }
.metric-group__title { margin: 0; padding: 10px 17px 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.metric-group__items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.metric-group__status { margin: 0; padding: 9px 17px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; }
.metric-group--competition .metric-group__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-group .metric { border-right: 1px solid var(--line); }
.metric-group .metric:last-child { border-right: 0; }
.metric { min-width: 0; padding: 16px 17px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric dt { color: var(--muted); font-size: 12px; }
.metric dd { margin: 5px 0 0; color: var(--xh-heading); font-size: 25px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 20px; }
.summary-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; }
.summary-list dt { color: var(--muted); font-size: 12px; }
.summary-list dd { margin: 2px 0 0; font-weight: 700; }
.match-scoreline { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--xh-heading); font-size: 19px; }
.match-scoreline span { color: var(--muted); font-size: 13px; font-weight: 400; }
.match-detail-score .match-scoreline { margin: 8px 0 24px; font-size: 18px; }
.match-detail-score .match-scoreline .score-display { color: var(--xh-heading); font-size: 26px; }
.match-detail-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.score-display { color: var(--xh-heading); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em; white-space: nowrap; }
.score-display--empty { color: var(--muted); font-weight: 600; letter-spacing: 0; }
.score-display--review { color: var(--warning); letter-spacing: 0; }
.matchup-vs { margin: 0 7px; color: #9aa8b0; font-size: .58em; font-weight: 400; letter-spacing: .08em; }
.event-list { display: grid; gap: 10px; }
.event-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.event-option:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.event-option__name { display: block; color: var(--xh-heading); font-size: 15px; font-weight: 700; }
.event-option__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-state__mark { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 12px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); }
.empty-state h3 { color: var(--xh-heading); }
.empty-state p { max-width: 420px; margin: 0 auto 16px; color: var(--muted); }

.auth-body { background: var(--xh-auth-bg); }
.auth-shell { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-card { width: min(100%, 410px); padding: 38px 40px; border: 1px solid rgba(220, 232, 237, .16); border-radius: 9px; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.auth-card__eyebrow { margin-bottom: 7px; color: var(--xh-primary-dark); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.auth-card h1 { margin-bottom: 8px; font-size: 25px; }
.auth-card .muted { margin-bottom: 24px; }
.auth-card form { margin-top: 20px; }
.auth-card label { margin: 15px 0 5px; }
.auth-card button[type="submit"] { width: 100%; margin-top: 20px; }

.event-editor__list { display: grid; gap: 12px; }
.event-editor__row { display: grid; grid-template-columns: minmax(135px, 1fr) minmax(150px, 1.15fr) minmax(180px, 1.35fr) 110px auto; align-items: end; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.event-editor__row:first-child { padding-top: 2px; }
.event-editor__row:last-child { border-bottom: 0; }
.event-editor__row select:disabled { color: var(--muted); background: var(--surface-soft); }
.event-editor__minute input { min-width: 0; }
.event-editor__remove { padding-bottom: 0; }
.event-editor__footer { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.danger-zone { margin-top: 20px; border-color: #e8c3be; }
.danger-zone .panel__header { background: #fffaf9; }
.metric--group-end { border-right: 2px solid var(--line-strong); }

.admin-manage-cell { min-width: 110px; white-space: normal; }
.admin-management > summary { list-style: none; width: max-content; }
.admin-management > summary::-webkit-details-marker { display: none; }
.admin-management[open] > summary { margin-bottom: 12px; }
.admin-management__body { min-width: 620px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-soft); }
.admin-management__grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 12px; }
.admin-action { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.admin-action h3 { margin-bottom: 8px; color: var(--xh-primary-dark); font-size: 13px; }
.admin-action p { margin-bottom: 9px; }
.admin-action form { display: grid; gap: 7px; }
.admin-action button { justify-self: start; margin-top: 3px; }

@media (max-width: 1180px) {
  .page-main { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .metric-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric-group--registration, .metric-group--schedule { grid-column: span 2; }
  .metric-group--competition { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .metric-group--competition .metric-group__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { min-height: auto; padding: 16px 18px 12px; }
  .brand { padding-bottom: 16px; }
  .sidebar-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .nav-group { margin: 0; }
  .nav-group__label { display: none; }
  .nav-link { display: inline-block; padding: 6px 9px; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; }
  .nav-link.is-active { border-bottom-color: #df9b56; }
  .sidebar-footer { display: none; }
  .topbar { align-items: flex-start; gap: 12px; }
  .topbar__actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .two-column { grid-template-columns: 1fr; }
  .match-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-editor__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-editor__remove { align-self: start; }
}
@media (max-width: 620px) {
  .topbar { display: block; }
  .topbar__actions { justify-content: flex-start; margin-top: 11px; }
  .page-main { padding: 20px 15px 40px; }
  .page-header { display: block; }
  .page-header__actions { justify-content: flex-start; margin-top: 16px; }
  .form-grid, .summary-list, .match-detail-facts, .schedule-batch__row { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric-group { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-group:last-child { border-bottom: 0; }
  .metric-group__items, .metric-group--competition .metric-group__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-group .metric:nth-child(2n) { border-right: 0; }
  .metric-group .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .auth-card { padding: 30px 24px; }
  .event-editor__row { grid-template-columns: 1fr; }
  .event-editor__remove { justify-self: start; }
  .admin-management__body { min-width: 0; }
  .admin-management__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
