:root {
  color: #122017;
  background: #ffffff;
  font-family: Inter, "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #ffffff; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .54; }

.app-shell { min-height: 100vh; background: #ffffff; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; gap: 14px; color: #637067; text-align: center; }
.ball-mark { width: 42px; height: 42px; margin: auto; display: grid; place-items: center; border-radius: 50%; background: #075b32; color: #fff; box-shadow: inset 0 0 0 8px #dceee5; }

.app-surface { min-height: 100vh; }
.event-header { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid #e5eae7; background: rgba(255,255,255,.96); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-weight: 720; letter-spacing: -.02em; }
.brand-ball { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #075b32; color: #fff; font-size: 14px; }
.event-meta { display: flex; align-items: center; gap: 18px; color: #5f6a63; font-size: 14px; }
.status-copy { color: #5f6a63; font-size: 14px; }

.admin-layout { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 218px minmax(0, 1fr) 360px; }
.side-nav { padding: 24px 14px; border-right: 1px solid #e5eae7; }
.side-nav a { display: block; padding: 12px 13px; border-radius: 8px; color: #526058; text-decoration: none; font-size: 14px; }
.side-nav a.active { background: #1466df; color: #fff; font-weight: 650; }
.admin-main { min-width: 0; padding: 28px 30px 40px; background-image: linear-gradient(#f8faf9 1px, transparent 1px); background-size: 100% 64px; }
.admin-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.admin-title-row h1, .participant-main h1 { margin: 0; letter-spacing: -.04em; font-size: 28px; }
.admin-title-row p { margin: 8px 0 0; color: #69766e; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.button, .button-secondary, .button-danger { border: 1px solid transparent; border-radius: 7px; min-height: 38px; padding: 0 14px; font-weight: 650; }
.button { color: #fff; background: #075b32; }
.button-secondary { color: #1e2a22; background: #fff; border-color: #cbd4ce; }
.button-danger { color: #9d1b1b; background: #fff; border-color: #e3b5b5; }
.team-table-wrap { overflow-x: auto; border: 1px solid #dfe6e1; border-radius: 10px; background: #fff; }
.team-table { width: 100%; border-collapse: collapse; min-width: 740px; font-size: 14px; }
.team-table th, .team-table td { padding: 15px 16px; text-align: left; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.team-table th { color: #68746d; font-weight: 560; background: #fbfcfb; }
.team-table tr:last-child td { border-bottom: 0; }
.team-table tr.is-selected td { background: #f3faf6; }
.team-name { font-weight: 690; }
.muted { color: #68746d; font-size: 13px; }
.number-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf5f0; color: #075b32; font-size: 12px; font-weight: 700; }
.state { display: inline-flex; align-items: center; gap: 6px; color: #315e48; font-size: 13px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1b9560; }
.state.pending { color: #8a6115; }.state.pending::before { background: #d39117; }.state.off { color: #7b2727; }.state.off::before { background: #d34343; }
.inspector { padding: 26px 22px; border-left: 1px solid #e5eae7; background: #fff; }
.inspector h2 { margin: 0 0 20px; font-size: 19px; letter-spacing: -.025em; }
.inspector-section { padding: 18px 0; border-top: 1px solid #e7ece9; }
.inspector-section h3 { margin: 0 0 12px; font-size: 14px; }
.member-list { display: grid; gap: 9px; }
.member-row, .seat-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px; border: 1px solid #d7e2dc; border-radius: 8px; }
.member-row strong { font-size: 14px; }.seat-option.is-selected { border-color: #075b32; background: #f4faf6; }
.form-field { display: grid; gap: 7px; margin-bottom: 12px; color: #45534a; font-size: 13px; font-weight: 600; }
.form-field input, .form-field select { width: 100%; min-height: 40px; border: 1px solid #cad4ce; border-radius: 7px; padding: 0 10px; background: #fff; color: #122017; }

.participant-main { max-width: 720px; margin: auto; padding: 22px 20px 48px; background-image: linear-gradient(130deg, transparent 0 61%, rgba(7,91,50,.055) 61% 61.25%, transparent 61.25%); }
.participant-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.participant-nav { display: flex; justify-content: space-between; gap: 12px; padding: 0 0 14px; border-bottom: 1px solid #e3e9e5; color: #647168; font-size: 14px; }
.participant-nav .active { color: #075b32; font-weight: 700; }
.participant-panel { margin-top: 24px; }
.participant-panel h1 { font-size: 27px; }.participant-panel h2 { margin: 26px 0 10px; font-size: 18px; }
.participant-panel p { line-height: 1.6; color: #647168; }
.team-hero { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; padding: 20px 0 22px; border-bottom: 1px solid #dfe7e2; }
.team-crest { width: 70px; height: 70px; display: grid; place-items: center; color: #fff; background: #075b32; border: 4px double #dfeee6; border-radius: 22px 22px 32px 32px; font-size: 30px; }
.team-hero h1, .team-hero h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }.team-hero p { margin: 5px 0 0; }
.participant-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e4eae6; }
.participant-list li { display: flex; justify-content: space-between; gap: 14px; padding: 14px 2px; border-bottom: 1px solid #e4eae6; }
.code-row { display: flex; gap: 12px; align-items: stretch; margin: 14px 0; }.code-value { flex: 1; padding: 13px; border: 1px solid #d6e1da; border-radius: 8px; color: #075b32; font-weight: 750; letter-spacing: .08em; font-size: 19px; }
.info-row { display: flex; align-items: center; gap: 12px; padding: 17px 2px; border-top: 1px solid #e4eae6; }.info-row:last-child { border-bottom: 1px solid #e4eae6; }.info-icon { color: #075b32; font-weight: 800; }
.question-grid { display: grid; gap: 14px; }.question-grid .form-field { font-size: 14px; }
.empty-note { padding: 18px 0; color: #68746d; }
.toast { margin: 14px 0; padding: 10px 12px; border-left: 3px solid #075b32; background: #f1f8f4; color: #24543c; }

@media (max-width: 1120px) { .admin-layout { grid-template-columns: 190px minmax(0,1fr); }.inspector { grid-column: 2; border-left: 0; border-top: 1px solid #e5eae7; } }
@media (max-width: 760px) { .event-header { height: auto; padding: 16px 18px; align-items: flex-start; }.event-meta { display: none; }.admin-layout { display: block; }.side-nav { display: flex; overflow: auto; gap: 6px; padding: 12px; border-right: 0; border-bottom: 1px solid #e5eae7; }.side-nav a { white-space: nowrap; }.admin-main { padding: 22px 16px; }.admin-title-row { display: block; }.button-row { margin-top: 15px; }.inspector { padding: 22px 16px; }.participant-main { padding: 18px 18px 40px; }.participant-nav { overflow: auto; white-space: nowrap; }.team-hero { grid-template-columns: 58px 1fr; }.team-crest { width: 58px; height: 58px; font-size: 24px; }.event-header .brand { font-size: 15px; } }

/* Participant module */
.participant-shell { width: min(100%, 680px); margin: 0 auto; padding: 30px 20px 56px; background-image: linear-gradient(132deg, transparent 0 62%, rgba(7,91,50,.055) 62% 62.18%, transparent 62.18%); }
.card { margin: 0 0 18px; padding: 22px 0; border-bottom: 1px solid #dfe7e2; }
.card h1 { margin: 4px 0 10px; font-size: clamp(26px, 5vw, 36px); letter-spacing: -.045em; }.card h2 { margin: 12px 0; font-size: 20px; letter-spacing: -.025em; }.card p { color: #657168; line-height: 1.65; }
.eyebrow { margin: 0 0 6px; color: #075b32; font-size: 13px; font-weight: 760; letter-spacing: .04em; }.stack { display: grid; gap: 14px; margin-top: 20px; }.stack label, .stack fieldset { display: grid; gap: 7px; color: #314038; font-size: 14px; font-weight: 650; }.stack fieldset { margin: 0; padding: 16px; border: 1px solid #d8e1dc; border-radius: 8px; }.stack legend { padding: 0 5px; color: #647168; font-size: 13px; font-weight: 620; }.stack input, .stack select { min-height: 44px; width: 100%; border: 1px solid #cbd7d0; border-radius: 7px; padding: 0 12px; background: #fff; color: #17231b; }.stack button, .admin-actions button, .tournament-controls button, .score-form button { min-height: 42px; padding: 0 14px; border: 1px solid #075b32; border-radius: 7px; background: #075b32; color: #fff; font-weight: 700; }.stack button.secondary { background: #fff; color: #075b32; }.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.hint, .notice { color: #68746d; font-size: 14px; }.notice:empty { display: none; }.team-card .team-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 20px 0; border: 1px solid #dce5df; background: #dce5df; }.team-meta div { padding: 14px; background: #fff; }.team-meta span { display: block; margin-bottom: 6px; color: #67746b; font-size: 12px; }.team-meta strong { font-size: 15px; }.team-code { margin-top: 18px; padding: 16px; border: 1px solid #bcd8c7; border-radius: 8px; background: #f3faf6; }.team-code span { display: block; color: #075b32; font-size: 12px; font-weight: 750; }.team-code strong { display: block; margin-top: 5px; color: #075b32; font-size: 22px; letter-spacing: .08em; }.team-code p { margin: 8px 0 0; font-size: 13px; }.match-list { list-style: none; margin: 0; padding: 0; }.match-list li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid #e3e9e5; }.match-list span { color: #68746d; font-size: 13px; }

/* Admin module */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0, 1fr); background: #fff; }.admin-nav { padding: 22px 13px; border-right: 1px solid #e5eae7; background: #fff; }.admin-nav-brand { display: flex; align-items: center; gap: 9px; margin: 0 10px 25px; color: #122017; font-size: 14px; }.admin-nav-brand span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #075b32; color: #fff; }.admin-nav a { display: block; margin: 3px 0; padding: 11px 12px; border-radius: 7px; color: #56635b; font-size: 14px; text-decoration: none; }.admin-nav a.active { background: #1466df; color: #fff; font-weight: 700; }.admin-workspace { width: min(1440px, 100%); margin: 0 auto; padding: 30px; background: #fff; background-image: linear-gradient(90deg, transparent 0 82%, rgba(7,91,50,.035) 82% 82.1%, transparent 82.1%); }.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }.admin-header h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.05em; }.admin-header p:not(.eyebrow) { max-width: 690px; margin: 9px 0 0; color: #647168; line-height: 1.55; }.admin-header > button { min-height: 38px; padding: 0 13px; border: 1px solid #c8d2cc; border-radius: 7px; background: #fff; color: #28352d; }.admin-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 22px; border: 1px solid #dce5df; background: #dce5df; }.admin-metric { min-height: 84px; padding: 15px; background: #fff; }.admin-metric span { display: block; color: #6c776f; font-size: 13px; }.admin-metric strong { display: block; margin-top: 9px; color: #075b32; font-size: 23px; letter-spacing: -.04em; }.admin-operations-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }.admin-panel { margin-bottom: 22px; padding: 20px; border: 1px solid #dce5df; border-radius: 10px; background: #fff; }.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }.panel-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }.panel-heading > span { color: #68746d; font-size: 13px; }.table-scroll { overflow-x: auto; }.admin-panel table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: 14px; }.admin-panel th, .admin-panel td { padding: 12px 10px; border-bottom: 1px solid #e6ece8; text-align: left; vertical-align: top; }.admin-panel th { color: #68746d; font-size: 12px; font-weight: 650; }.admin-panel small { color: #7c8781; font-size: 12px; }.link-button { display: block; padding: 0; border: 0; background: transparent; color: #17231b; font-weight: 720; text-align: left; }.pill { display: inline-block; padding: 3px 7px; border: 1px solid #d3ddd7; border-radius: 999px; color: #607066; font-size: 12px; }.pill-positive { border-color: #b6ddc4; background: #eff9f2; color: #075b32; }.team-facts { margin: 0; }.team-facts > div { padding: 12px 0; border-top: 1px solid #e6ece8; }.team-facts dt { margin-bottom: 5px; color: #6b766f; font-size: 12px; }.team-facts dd { margin: 0; }.team-facts ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }.team-facts code { color: #075b32; font-weight: 700; }.admin-actions { display: grid; gap: 10px; margin-top: 16px; }.admin-actions form, .tournament-controls { display: grid; gap: 8px; }.admin-actions select, .tournament-controls select, .score-form input { min-height: 38px; border: 1px solid #cbd7d0; border-radius: 7px; padding: 0 9px; background: #fff; }.admin-actions hr { width: 100%; border: 0; border-top: 1px solid #e4eae6; }.helper { color: #66736b; font-size: 13px; line-height: 1.55; }.admin-notice { margin: 0 0 16px; padding: 10px 12px; border-left: 3px solid #075b32; background: #f2f8f4; color: #24543c; }.admin-notice[data-kind="error"] { border-left-color: #bd3333; background: #fff4f4; color: #862626; }.tournament-controls { grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; margin: 16px 0; }.tournament-controls label { display: grid; gap: 6px; color: #536158; font-size: 13px; font-weight: 650; }.score-form { display: flex; align-items: center; gap: 5px; }.score-form input { width: 44px; min-height: 32px; }.score-form button { min-height: 32px; padding: 0 8px; font-size: 12px; }.admin-activity ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }.admin-activity li { display: grid; grid-template-columns: 108px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #e7ece9; }.admin-activity time, .admin-activity small { color: #737e77; font-size: 12px; }.admin-activity p { margin: 5px 0; color: #59665e; font-size: 13px; }.empty { padding: 18px; color: #748078; text-align: center; }

@media (max-width: 900px) { .admin-workspace { padding: 20px 15px 42px; }.admin-header { display: block; }.admin-header > button { margin-top: 14px; }.admin-summary { grid-template-columns: repeat(2, 1fr); }.admin-operations-grid { grid-template-columns: 1fr; }.two-column { grid-template-columns: 1fr; }.tournament-controls { grid-template-columns: 1fr; }.team-card .team-meta { grid-template-columns: 1fr; }.admin-activity li { grid-template-columns: 1fr; gap: 4px; } }
@media (max-width: 900px) { .admin-shell { display: block; }.admin-nav { display: flex; gap: 4px; overflow: auto; padding: 10px; border-right: 0; border-bottom: 1px solid #e5eae7; }.admin-nav-brand { display: none; }.admin-nav a { margin: 0; white-space: nowrap; } }

/* Event Ops mobile-first workspace */
.mobile-shell, .staff-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: 18px 16px 92px; background: #fff; }.staff-shell main { padding-bottom: 92px; }
.topbar, .staff-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid #e1e8e3; }
.topbar a, .text-button { color: #075b32; text-decoration: none; background: transparent; border: 0; font-weight: 700; }
.staff-top small { display: block; margin-top: 3px; color: #6a776f; font-size: 12px; }
.page-heading { padding: 18px 0 8px; }.page-heading h1 { margin: 3px 0 8px; font-size: clamp(27px, 8vw, 38px); letter-spacing: -.05em; }.page-heading p:not(.eyebrow) { margin: 0; color: #647168; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0; }.metric-grid article { min-height: 88px; padding: 14px; border: 1px solid #dce5df; border-radius: 10px; }.metric-grid span, .compact-list small, .identity-card span, .code-card span { display: block; color: #6d7972; font-size: 12px; }.metric-grid strong { display: block; margin-top: 8px; color: #075b32; font-size: 25px; }
.identity-card, .code-card { margin: 18px 0; padding: 16px; border: 1px solid #c9ddd0; border-radius: 10px; background: #f2f9f4; }.identity-card strong, .code-card strong { display: block; margin: 6px 0; color: #075b32; font-size: 24px; letter-spacing: .06em; }.identity-card small { color: #617067; }
.number-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.number-row .secondary { flex: 0 0 auto; min-height: 38px; }.identity-card[hidden] { display: none; }
.workshop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }.workshop-actions a, .workshop-actions button { display: grid; min-height: 42px; place-items: center; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 700; text-decoration: none; }.workshop-actions .secondary { background: #fff; color: #075b32; }
.plain-list { margin: 0; padding: 0; list-style: none; }.plain-list li { padding: 13px 0; border-bottom: 1px solid #e2e9e4; }
.compact-list { display: grid; gap: 9px; }.compact-list article, .search-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px; border: 1px solid #dce5df; border-radius: 10px; }.compact-list article > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }.compact-list button, .selection-bar button { min-height: 44px; padding: 0 11px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 700; }
.staff-shell .card { padding: 17px 0; }.staff-shell label { display: grid; gap: 7px; font-weight: 650; color: #39483f; }.staff-shell input, .staff-shell select, .staff-shell textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cbd7d0; border-radius: 8px; background: #fff; }.staff-shell textarea { resize: vertical; }.staff-shell .stack button { min-height: 46px; }
.search-results { display: grid; gap: 8px; margin: 14px 0; }.search-row input { width: 22px; height: 22px; }.selection-bar { position: sticky; bottom: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #c4dacb; border-radius: 11px; background: #f3faf6; box-shadow: 0 8px 24px rgba(16, 48, 29, .12); }.selection-bar strong { font-size: 14px; }
.search-picker { position: relative; }.search-picker .search-results:not(:empty) { position: absolute; z-index: 5; right: 0; left: 0; max-height: 260px; overflow: auto; margin-top: 5px; padding: 8px; border: 1px solid #c6d8cd; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(16, 48, 29, .14); }.search-picker .selection-bar { margin-top: 14px; }.self-team { margin-top: 20px; padding-top: 4px; border-top: 1px solid #e2e9e4; }
.bottom-tabs { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(6, 1fr); padding: 7px max(8px, env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #dfe7e2; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }.bottom-tabs button { min-height: 45px; border: 0; border-radius: 8px; background: transparent; color: #68746d; font-size: 12px; }.bottom-tabs button.active { background: #eaf6ee; color: #075b32; font-weight: 800; }
.pill { padding: 4px 8px; border-radius: 999px; background: #eaf6ee; color: #075b32; font-size: 12px; font-weight: 700; }
.display-link { display: inline-grid; min-height: 42px; place-items: center; padding: 0 12px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 700; text-decoration: none; }
.button-row, .filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }.secondary, .filter-row button { min-height: 40px; padding: 0 11px; border: 1px solid #b9cbbf; border-radius: 8px; background: #fff; color: #075b32; font-weight: 700; }.filter-row button.active { border-color: #075b32; background: #eaf6ee; }.scanner-panel, .scan-result { margin: 12px 0; padding: 13px; border: 1px solid #bcd8c7; border-radius: 11px; background: #f0faf3; }.scanner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.scanner-panel video { width: 100%; max-height: 260px; margin-top: 12px; border-radius: 10px; background: #17231b; }.scan-result h2 { margin: 2px 0 4px; font-size: 20px; }.scan-result > p:not(.eyebrow) { margin: 0; color: #405047; }.scan-result > small { display: block; margin-top: 4px; color: #617167; }.scan-result .button-row { margin: 13px 0 0; }.scan-result-miss { border-color: #d7c79e; background: #fffaf0; }.check-row { display: flex !important; align-items: center; gap: 10px; padding: 12px; border: 1px solid #dce5df; border-radius: 10px; }.check-row input { width: 22px !important; min-height: 22px !important; }.standings { width: 100%; border-collapse: collapse; font-size: 13px; }.standings th, .standings td { padding: 8px 5px; border-bottom: 1px solid #e2e9e4; text-align: center; }.standings th:first-child, .standings td:first-child { text-align: left; }.score-form { display: grid; grid-template-columns: minmax(140px, 1fr) 42px 10px 42px 82px auto; align-items: center; gap: 6px; }.score-form input { min-height: 38px; width: 100%; border: 1px solid #cbd7d0; border-radius: 7px; padding: 0 6px; }.score-form button { min-height: 38px; padding: 0 9px; border: 1px solid #075b32; border-radius: 7px; background: #075b32; color: #fff; font-weight: 700; }@media (max-width: 560px) { .scanner-toolbar { align-items: flex-start; }.score-form { grid-template-columns: 1fr 42px 10px 42px; }.score-form input[name="adminPin"] { grid-column: span 2; }.score-form button { grid-column: span 2; } }
.grouping-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 12px 0 4px; padding: 5px; border: 1px solid #dce5df; border-radius: 11px; background: #f7faf8; }.grouping-tabs button { min-height: 43px; border: 0; border-radius: 7px; background: transparent; color: #5b6960; font-weight: 750; }.grouping-tabs button.active { background: #fff; color: #075b32; box-shadow: 0 1px 5px rgba(16,48,29,.12); }
.dispatch-board { padding-top: 18px !important; }.dispatch-list, .team-board-list, .candidate-list { display: grid; gap: 8px; margin-top: 12px; }.dispatch-person-row, .team-board-card { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid #dce5df; border-radius: 10px; background: #fff; color: #17231b; text-align: left; }.dispatch-person-row span, .team-board-card span { min-width: 0; }.dispatch-person-row strong, .team-board-card strong { display: block; font-size: 15px; }.dispatch-person-row small, .team-board-card small { display: block; overflow: hidden; margin-top: 4px; color: #69766e; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }.dispatch-person-row.is-selected { border-color: #075b32; background: #eff8f2; }.dispatch-check { flex: 0 0 auto; color: #075b32; font-size: 12px; font-weight: 750; }.team-board-card > span:last-child { flex: 0 0 auto; text-align: right; }.team-board-card em { display: block; color: #075b32; font-size: 14px; font-style: normal; font-weight: 800; }
.selection-tray { position: sticky; z-index: 4; bottom: 66px; display: grid; gap: 12px; margin: 12px 0; padding: 13px; border: 1px solid #bcd8c7; border-radius: 11px; background: #f0faf3; box-shadow: 0 10px 26px rgba(16,48,29,.16); }.selection-tray strong, .selection-tray small { display: block; }.selection-tray small { margin-top: 4px; color: #647168; font-size: 12px; }.selection-tray > div:last-child { display: flex; flex-wrap: wrap; gap: 7px; }.selection-tray button, .dispatch-modal > button, .dispatch-modal section > button { min-height: 40px; padding: 0 11px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 700; }.selection-tray .secondary, .dispatch-modal .secondary { background: #fff; color: #075b32; }.selection-tray .text-button, .modal-header .text-button { min-height: 34px; padding: 0 4px; border: 0; background: transparent; color: #075b32; }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: flex; align-items: end; justify-content: center; padding: 14px; background: rgba(11, 30, 19, .38); }.dispatch-modal { width: min(100%, 640px); max-height: min(84vh, 760px); overflow: auto; padding: 19px; border: 1px solid #d8e4dc; border-radius: 15px; background: #fff; box-shadow: 0 22px 58px rgba(8,34,19,.28); }.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #e1e8e3; }.modal-header > div { min-width: 0; }.modal-header .text-button { flex: 0 0 auto; white-space: nowrap; }.modal-header h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }.modal-header p, .dispatch-modal p { margin: 6px 0 0; color: #647168; line-height: 1.45; }.team-picker-list { display: grid; gap: 8px; margin-top: 14px; }.team-picker-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 62px; padding: 11px; border: 1px solid #d9e3dd; border-radius: 9px; background: #fff; color: #17231b; text-align: left; }.team-picker-list button:disabled { color: #7d877f; }.team-picker-list strong, .team-picker-list small { display: block; }.team-picker-list small { margin-top: 4px; color: #69766e; font-size: 12px; }.dissolution-list { display: grid; gap: 10px; margin: 18px 0; }.dissolution-list h3, .team-config-modal h3 { margin: 0; font-size: 15px; }.dissolution-list label { display: grid !important; gap: 7px; padding: 12px; border: 1px solid #ecd9b4; border-radius: 9px; background: #fffaf0; }.confirm-dispatch { width: 100%; margin-top: 18px; min-height: 46px !important; }
.team-config-modal { display: grid; gap: 20px; }.team-config-modal section { display: grid; gap: 10px; }.config-member-list { display: grid; gap: 8px; }.config-member-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid #dce5df; border-radius: 9px; }.config-member-list strong, .config-member-list small { display: block; }.config-member-list small { margin-top: 3px; color: #6d7972; font-size: 12px; }.config-member-list article > span:last-child { display: flex; flex-wrap: wrap; gap: 6px; }.config-member-list button { min-height: 35px; padding: 0 9px; }.candidate-list { max-height: 230px; overflow: auto; }.danger-zone { padding-top: 16px; border-top: 1px solid #e3e9e5; }.danger-zone p { font-size: 13px; }
.modal-kicker { margin: 0 0 4px !important; color: #075b32 !important; font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }.picker-modal, .commit-modal { display: grid; gap: 16px; }.modal-selection-summary, .modal-target-summary { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid #d8e7dd; border-radius: 10px; background: #f3faf5; }.modal-selection-summary strong, .modal-target-summary strong { color: #075b32; font-size: 12px; }.modal-selection-summary span, .modal-target-summary span { color: #526159; font-size: 13px; line-height: 1.45; }.team-picker-filter { margin: -4px 0 0; }.team-picker-list { max-height: min(42vh, 360px); overflow: auto; margin-top: 0; padding-right: 2px; }.team-picker-list button { min-height: 70px; }.team-picker-meta { flex: 0 0 85px; text-align: right; }.team-picker-meta em, .team-picker-meta small { display: block; }.team-picker-meta em { color: #075b32; font-size: 14px; font-style: normal; font-weight: 850; }.team-picker-meta small { margin-top: 4px; overflow-wrap: anywhere; }.team-resource-card { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #cde0d3; border-radius: 11px; background: #f4faf6; }.team-resource-card > div { min-width: 0; }.team-resource-card strong, .team-resource-card small { display: block; }.team-resource-card strong { color: #075b32; font-size: 15px; }.team-resource-card small { margin-top: 5px; color: #5c6b62; font-size: 12px; line-height: 1.45; }.team-resource-card button { flex: 0 0 auto; min-height: 42px !important; }.team-resource-card.paused { border-color: #ead8ae; background: #fffaf0; }.team-resource-card.neutral { background: #f7f9f7; }.team-resource-card.issued { border-color: #d2dfd6; background: #f6faf7; }.modal-section { padding-top: 2px; }.modal-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.modal-section-heading h3, .modal-section-heading p { margin: 0; }.modal-section-heading p { margin-top: 4px; font-size: 12px; }.modal-section-heading > span { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #eaf6ee; color: #075b32; font-size: 12px; font-weight: 800; }.candidate-group { display: grid; gap: 8px; }.candidate-group + .candidate-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e2e9e4; }.candidate-group-heading strong, .candidate-group-heading small { display: block; }.candidate-group-heading strong { color: #31463a; font-size: 13px; }.candidate-group-heading small { margin-top: 3px; color: #6a776f; font-size: 12px; }.modal-safe-note { margin: 2px 0 0 !important; padding: 11px 12px; border-radius: 9px; background: #f5f8f6; color: #536158 !important; font-size: 13px; }.commit-modal .dissolution-list { margin: 0; }.commit-modal .dissolution-list > p { margin: -3px 0 2px; font-size: 12px; }
.next-action { display: grid; gap: 8px; }.next-action h2, .next-action p { margin: 0; }.next-action button { width: 100%; min-height: 46px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 750; }.next-action .display-link { margin-top: 2px; }.event-gates summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }.event-gates summary::-webkit-details-marker { display: none; }.event-gates summary strong, .event-gates summary small { display: block; }.event-gates summary small { margin-top: 4px; color: #69766e; font-size: 12px; font-weight: 500; }.event-gates[open] summary { margin-bottom: 16px; }.event-gates[open] summary > span:last-child { transform: rotate(180deg); }
.team-board-list { min-width: 0; }.team-board-card { display: grid; grid-template-columns: minmax(0, 1fr) 76px auto; min-width: 0; overflow: hidden; }.team-board-card .team-board-identity { min-width: 0; }.team-board-card .team-board-meta { min-width: 0; text-align: right; }.team-board-card .team-board-meta small { max-width: 76px; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }.team-board-card .team-board-action { min-width: 38px; color: #075b32; font-size: 12px; font-weight: 800; text-align: right; }.team-config-modal .team-people-filter { margin: 0; }
/* Public projection screen. It contains only public tournament data. */
.display-body { min-width: 320px; margin: 0; background: radial-gradient(circle at 12% 7%, #1f6f47 0, #071f15 39%, #04110b 100%); color: #f4fbf6; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }.display-shell { box-sizing: border-box; min-height: 100vh; padding: clamp(24px, 4vw, 64px); }.display-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(24px, 4vw, 44px); border-bottom: 1px solid rgba(224, 255, 234, .24); }.display-header p, .next-match p { margin: 0 0 9px; color: #9de1b8; font-size: 12px; font-weight: 800; letter-spacing: .14em; }.display-header h1 { margin: 0; font-size: clamp(42px, 7vw, 90px); letter-spacing: -.07em; }.display-header > span { color: #b9d6c3; font-size: 14px; }.next-match { padding: clamp(26px, 4vw, 52px) 0; }.next-match strong { display: block; font-size: clamp(28px, 5.5vw, 72px); letter-spacing: -.06em; }.next-match i { color: #9de1b8; font-style: normal; }.display-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }.display-group, .display-results, .display-bracket { padding: 20px; border: 1px solid rgba(224, 255, 234, .24); border-radius: 14px; background: rgba(11, 48, 29, .54); backdrop-filter: blur(10px); }.display-group h2, .display-results h2, .display-bracket h2 { margin: 0 0 14px; color: #9de1b8; font-size: 15px; letter-spacing: .03em; }.display-group table { width: 100%; border-collapse: collapse; }.display-group th, .display-group td { padding: 9px 5px; border-bottom: 1px solid rgba(224, 255, 234, .12); text-align: center; }.display-group th:first-child, .display-group td:first-child { text-align: left; }.display-results { margin-top: 18px; }.display-results ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }.display-results li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(224, 255, 234, .14); }.display-results small { color: #a7cbb1; }.display-bracket { margin-top: 18px; }.display-bracket > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }.bracket-match { padding: 14px; border-radius: 10px; background: rgba(3, 22, 12, .6); }.bracket-match small { display: block; margin-bottom: 7px; color: #a7cbb1; }.bracket-match strong { display: flex; justify-content: space-between; gap: 10px; }.bracket-match span { color: #9de1b8; }.display-empty { display: grid; min-height: 100vh; place-content: center; padding: 24px; text-align: center; }.display-empty p { color: #9de1b8; font-weight: 800; letter-spacing: .14em; }.display-empty h1 { margin: 12px 0; font-size: clamp(38px, 7vw, 80px); letter-spacing: -.07em; }.display-empty span { color: #b9d6c3; }
@media (max-width: 560px) { .display-header { align-items: flex-start; flex-direction: column; }.display-header h1 { font-size: 46px; }.next-match strong { font-size: 31px; }.display-shell { padding: 24px 18px; } }
@media (min-width: 721px) { .mobile-shell, .staff-shell { border-right: 1px solid #e1e8e3; border-left: 1px solid #e1e8e3; }.metric-grid { grid-template-columns: repeat(5, 1fr); }.bottom-tabs { right: auto; left: 50%; width: 720px; transform: translateX(-50%); border-right: 1px solid #dfe7e2; border-left: 1px solid #dfe7e2; } }

/* Current Staff and Admin workspace refinements */
.top-actions { display: inline-flex; align-items: center; gap: 14px; }
.bottom-tabs.bottom-tabs-four { grid-template-columns: repeat(4, 1fr); }
.icon-button { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #b9cbbf; border-radius: 7px; background: #fff; color: #075b32; font-weight: 850; }
.resource-links { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 10px; }
.resource-links a { min-width: 0; overflow: hidden; color: #075b32; font-size: 13px; font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.resource-links .icon-button { width: 28px; height: 28px; }
.portal-links { padding-top: 10px; border-top: 1px solid #dfe7e2; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.resource-actions button, .resource-actions a { display: inline-grid; min-height: 41px; place-items: center; padding: 0 11px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 700; text-decoration: none; }
.resource-actions .secondary { background: #fff; color: #075b32; }
.external-tool-card { display: grid; gap: 10px; padding: 15px; border: 1px solid #c9ddd0; border-radius: 10px; background: #f2f9f4; }
.external-tool-card > div strong, .external-tool-card > div small { display: block; }
.external-tool-card > div small { margin-top: 4px; color: #5c6b62; font-size: 13px; line-height: 1.45; }
.external-tool-card > span { display: flex; gap: 8px; }
.external-tool-card > span a, .external-tool-card > span button { display: grid; min-height: 39px; place-items: center; padding: 0 11px; border: 1px solid #075b32; border-radius: 7px; background: #075b32; color: #fff; font-weight: 700; text-decoration: none; }
.external-tool-card > span .secondary { background: #fff; color: #075b32; }
.external-tool-card h2, .external-tool-card p { margin: 0; }.external-tool-card p { color: #5c6b62; line-height: 1.45; }
.feedback-modal { width: min(100%, 470px); }.feedback-modal form { display: grid; gap: 12px; margin-top: 16px; }.feedback-modal textarea { min-height: 130px; }.feedback-modal button[type="submit"] { min-height: 44px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 750; }
.staff-workshop-list { display: grid; gap: 10px; }.staff-workshop-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #dce5df; border-radius: 12px; background: #fff; }.workshop-team-copy { min-width: 0; }.workshop-team-copy strong, .workshop-team-copy small { display: block; }.workshop-team-copy small { margin-top: 5px; color: #66736b; font-size: 13px; }.workshop-team-actions { display: grid; grid-template-columns: auto; align-items: center; gap: 7px; }.workshop-team-actions button { font-weight: 750; white-space: nowrap; }.workshop-team-actions .note-button { min-height: 31px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #536259; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }.workshop-team-actions .qualify-button { min-height: 48px; padding: 0 16px; border: 1px solid #075b32; border-radius: 9px; background: #075b32; box-shadow: 0 2px 0 #064827; color: #fff; font-size: 15px; letter-spacing: .01em; }.workshop-team-actions .qualify-button:active { transform: translateY(1px); box-shadow: none; }
.staff-score-form { display: grid; grid-template-columns: minmax(0, 1fr) 45px 10px 45px auto; gap: 6px; align-items: center; margin-top: 10px; }.staff-score-form input { min-height: 39px; }.staff-score-form button { min-height: 39px; padding: 0 9px; border: 1px solid #075b32; border-radius: 7px; background: #075b32; color: #fff; font-weight: 700; }
.admin-gate { width: min(100%, 620px); margin: 10vh auto; padding: 34px; border: 1px solid #dce5df; border-radius: 12px; }.admin-gate h1 { margin: 5px 0 8px; font-size: 34px; letter-spacing: -.05em; }.admin-gate p:not(.eyebrow) { color: #647168; line-height: 1.6; }.admin-gate button { min-height: 42px; padding: 0 14px; border: 1px solid #075b32; border-radius: 8px; background: #075b32; color: #fff; font-weight: 700; }
.admin-desktop-shell { min-height: 100vh; background: #f6f8f7; }.admin-desktop-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 18px 28px; border-bottom: 1px solid #dfe7e2; background: #fff; }.admin-desktop-top h1, .admin-desktop-top p { margin: 0; }.admin-desktop-top h1 { font-size: 18px; }.admin-desktop-top p { margin-top: 3px; color: #68746d; font-size: 12px; }.admin-top-actions { display: inline-flex; gap: 12px; align-items: center; }.admin-top-actions button { min-height: 36px; padding: 0 11px; border: 1px solid #b9cbbf; border-radius: 7px; background: #fff; color: #075b32; font-weight: 700; }
.admin-desktop-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); max-width: 1280px; min-height: calc(100vh - 75px); margin: 0 auto; }.admin-desktop-nav { padding: 24px 14px; border-right: 1px solid #dfe7e2; background: #fff; }.admin-desktop-nav button { display: block; width: 100%; min-height: 42px; margin-bottom: 5px; padding: 0 11px; border: 0; border-radius: 7px; background: transparent; color: #5c6960; font-weight: 700; text-align: left; }.admin-desktop-nav button.active { background: #eaf6ee; color: #075b32; }.admin-desktop-main { padding: 30px; }.admin-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.admin-section-head h2, .admin-section-head p { margin: 0; }.admin-section-head h2 { font-size: 31px; letter-spacing: -.05em; }.admin-section-head p:not(.eyebrow) { margin-top: 7px; color: #66736b; }.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.admin-grid .admin-panel { margin: 0; }.admin-panel h3 { margin: 0 0 12px; font-size: 17px; }.admin-panel form { display: grid; gap: 11px; }.admin-panel label { display: grid; gap: 6px; color: #435148; font-size: 13px; font-weight: 700; }.admin-panel input, .admin-panel textarea, .admin-panel select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cbd7d0; border-radius: 7px; background: #fff; }.admin-panel textarea { min-height: 110px; resize: vertical; }.admin-panel form button, .admin-panel .danger-button { min-height: 41px; padding: 0 11px; border: 1px solid #075b32; border-radius: 7px; background: #075b32; color: #fff; font-weight: 700; }.admin-panel .danger-button { border-color: #a42e2e; background: #a42e2e; }.admin-check { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 9px; border: 1px solid #dce5df; border-radius: 8px; }.admin-check input { width: 17px; min-height: 17px; }.admin-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px; border: 1px solid #dce5df; border-radius: 8px; }.admin-list li > div { min-width: 0; }.admin-list strong, .admin-list small { display: block; }.admin-list small { margin-top: 4px; color: #68746d; }.admin-list button { min-height: 36px; padding: 0 9px; border: 1px solid #a42e2e; border-radius: 7px; background: #fff; color: #a42e2e; font-weight: 700; }.admin-log { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }.admin-log li { padding: 11px 0; border-top: 1px solid #e3e9e5; }.admin-log time, .admin-log small { color: #718078; font-size: 12px; }.admin-log p { margin: 5px 0 0; color: #435148; font-size: 13px; }
@media (max-width: 720px) { .admin-desktop-top { padding: 15px 16px; }.admin-desktop-layout { display: block; }.admin-desktop-nav { display: flex; gap: 5px; overflow: auto; padding: 10px; border-right: 0; border-bottom: 1px solid #dfe7e2; }.admin-desktop-nav button { width: auto; flex: 0 0 auto; margin: 0; white-space: nowrap; }.admin-desktop-main { padding: 20px 16px 42px; }.admin-section-head { display: block; }.admin-grid { grid-template-columns: 1fr; }.staff-score-form { grid-template-columns: 1fr 42px 10px 42px; }.staff-score-form button { grid-column: span 4; }.admin-top-actions { gap: 7px; }.admin-top-actions button { padding: 0 8px; }.staff-workshop-list article { grid-template-columns: 1fr; }.workshop-team-actions { grid-template-columns: auto 1fr; justify-content: stretch; }.workshop-team-actions .note-button { justify-self: start; }.workshop-team-actions .qualify-button { width: 100%; } }
