:root {
  --page: #f4efe9;
  --page-deep: #e9e0d8;
  --surface: #f8f4ef;
  --surface-strong: #fffdf9;
  --ink: #292623;
  --muted: #746d66;
  --faint: #a59c93;
  --line: rgba(79, 65, 55, 0.14);
  --line-strong: rgba(79, 65, 55, 0.24);
  --clay: #c86c4d;
  --clay-dark: #9d4d35;
  --clay-soft: #f2d9cc;
  --sage: #607e69;
  --sage-soft: #dce8dd;
  --amber: #a56d22;
  --amber-soft: #f3e3c3;
  --danger: #a3423d;
  --danger-soft: #f3d9d5;
  --blue: #496b7b;
  --shadow-raised: 10px 10px 24px rgba(111, 91, 76, 0.13), -8px -8px 20px rgba(255, 255, 255, 0.82);
  --shadow-small: 5px 5px 12px rgba(111, 91, 76, 0.12), -4px -4px 10px rgba(255, 255, 255, 0.82);
  --shadow-pressed: inset 3px 3px 7px rgba(111, 91, 76, 0.12), inset -3px -3px 7px rgba(255, 255, 255, 0.78);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --focus: 0 0 0 3px rgba(200, 108, 77, 0.24);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #fffaf5 0, transparent 30rem), linear-gradient(145deg, var(--page), #eee6df); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; opacity: 0.58; }
a { color: inherit; }
[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; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip-link:focus { transform: none; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.clay-card { background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(241,234,227,.86)); border: 1px solid rgba(255,255,255,.72); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); }
.eyebrow { margin: 0 0 4px; color: var(--clay-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.08; letter-spacing: -0.045em; }
h2 { margin-bottom: 0; font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1.14; letter-spacing: -0.035em; }
h3 { margin-bottom: 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.018em; }

.brand-mark { display: grid; grid-template-columns: repeat(2, 19px); gap: 4px; width: max-content; margin-bottom: 20px; transform: rotate(-5deg); }
.brand-mark span { width: 19px; height: 19px; border-radius: 7px; background: var(--clay); box-shadow: var(--shadow-small); }
.brand-mark span:nth-child(2) { background: #dba95e; }
.brand-mark span:nth-child(3) { background: #718c78; }
.brand-mark span:nth-child(4) { background: #688696; }
.brand-mark-small { grid-template-columns: repeat(2, 9px); gap: 2px; margin: 0; }
.brand-mark-small span { width: 9px; height: 9px; border-radius: 3px; }

.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 22px; }
.login-card { width: min(100%, 430px); padding: clamp(28px, 8vw, 46px); }
.intro { margin-bottom: 26px; color: var(--muted); }
.field-label { display: block; margin-bottom: 8px; font-size: 0.82rem; font-weight: 700; }
.password-field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.55); box-shadow: var(--shadow-pressed); }
.password-field input { width: 100%; min-width: 0; padding: 13px 14px; border: 0; outline: 0; background: transparent; color: var(--ink); }
.text-button { min-height: 44px; padding: 10px 13px; border: 0; background: transparent; color: var(--clay-dark); font-size: 0.78rem; font-weight: 800; }
.form-message, .card-message { min-height: 1.35em; margin: 8px 0; color: var(--danger); font-size: 0.78rem; }
.form-message.is-success, .card-message.is-success { color: var(--sage); }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 13px; font-weight: 800; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: var(--shadow-pressed); }
.button-primary { background: linear-gradient(145deg, #d47b5b, #b95a3e); color: #fff; box-shadow: 5px 5px 12px rgba(146, 71, 47, .24), -4px -4px 10px rgba(255,255,255,.65); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.48); color: var(--ink); box-shadow: var(--shadow-small); }
.button-dark { background: var(--ink); color: white; box-shadow: var(--shadow-small); }
.button-danger { background: var(--danger-soft); color: var(--danger); }
.button-block { width: 100%; }
.button-small { min-height: 44px; padding: 7px 12px; font-size: .78rem; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
.is-loading .button-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.app-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(255,255,255,.55); background: rgba(244,239,233,.84); backdrop-filter: blur(18px); }
.header-inner { display: flex; max-width: 1240px; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .92rem; }
.brand small { color: var(--muted); font-size: .66rem; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.icon-link, .icon-button { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 9px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 700; text-decoration: none; }
.icon-link:hover, .icon-button:hover { background: rgba(255,255,255,.48); color: var(--ink); }
.sync-state { display: none; align-items: center; gap: 6px; margin-right: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.sync-state.is-live .sync-dot { background: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
.sync-state.is-error .sync-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }

.admin-shell { width: min(100%, 1240px); margin: 0 auto; padding: 18px 14px 110px; }
.identity-card { display: grid; gap: 18px; margin-bottom: 18px; padding: 20px; }
.identity-card h1 { margin-bottom: 5px; font-size: 1.15rem; letter-spacing: -.025em; }
.identity-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.host-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.host-picker label { min-width: 0; }
.host-picker input { position: absolute; opacity: 0; pointer-events: none; }
.host-picker span { display: flex; min-height: 62px; flex-direction: column; align-items: center; justify-content: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.42); color: var(--muted); text-align: center; box-shadow: var(--shadow-small); }
.host-picker b { color: var(--ink); font-size: .8rem; }
.host-picker small { font-size: .6rem; }
.host-picker input:checked + span { border-color: rgba(200,108,77,.5); background: var(--clay-soft); color: var(--clay-dark); box-shadow: var(--shadow-pressed); }
.host-picker input:focus-visible + span { box-shadow: var(--focus); }

.notice { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 12px 14px; border: 1px solid rgba(96,126,105,.25); border-radius: 14px; background: var(--sage-soft); color: #36533d; font-size: .82rem; }
.notice.is-error { border-color: rgba(163,66,61,.25); background: var(--danger-soft); color: var(--danger); }
.notice.is-warning { border-color: rgba(165,109,34,.25); background: var(--amber-soft); color: #714613; }
.notice-icon { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.notice button { min-width: 44px; min-height: 44px; margin-left: auto; border: 0; background: transparent; color: inherit; font-size: 1.25rem; }

.primary-tabs { display: flex; gap: 5px; margin-bottom: 24px; padding: 5px; overflow-x: auto; border-radius: 15px; background: rgba(225,215,205,.72); box-shadow: var(--shadow-pressed); scrollbar-width: none; }
.primary-tabs::-webkit-scrollbar { display: none; }
.primary-tabs button { min-height: 44px; flex: 0 0 auto; padding: 8px 13px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.primary-tabs button.is-active { background: var(--surface-strong); color: var(--ink); box-shadow: var(--shadow-small); }
.nav-count { margin-left: 4px; color: var(--clay-dark); font-size: .66rem; }
.view { animation: enter .2s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }
.section-heading, .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading { margin-bottom: 18px; }
.card-heading { margin-bottom: 16px; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.metric { min-height: 112px; padding: 16px; }
.metric span { display: block; color: var(--muted); font-size: .72rem; font-weight: 700; }
.metric strong { display: block; margin: 5px 0 2px; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.05em; }
.metric small { color: var(--faint); font-size: .68rem; }
.winner-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 20px; border-color: rgba(206,161,74,.38); background: linear-gradient(145deg,#fff6de,#eee0bd); }
.winner-banner h3 { font-size: 1.35rem; }
.winner-banner p:last-child { margin: 3px 0 0; color: #765a26; font-size: .76rem; }
.winner-banner > span { font-size: 2.4rem; filter: drop-shadow(4px 5px 7px rgba(103,74,23,.2)); }
.dashboard-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.content-card, .workflow-card { padding: 18px; }
.progress-row { display: grid; grid-template-columns: minmax(70px,.8fr) 2fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .76rem; }
.progress-row:last-child { border-bottom: 0; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: var(--page-deep); box-shadow: var(--shadow-pressed); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--clay); }
.attention-empty { display: grid; min-height: 150px; place-items: center; color: var(--muted); text-align: center; }
.attention-item { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.attention-item:last-child { border-bottom: 0; }
.attention-item i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.status-pill { display: inline-flex; align-items: center; width: max-content; padding: 4px 9px; border-radius: 99px; background: var(--sage-soft); color: #42604a; font-size: .64rem; font-weight: 800; text-transform: capitalize; }
.status-pill.status-warning { background: var(--amber-soft); color: #764b16; }
.status-pill.status-locked { background: #e2dfdc; color: #615a54; }
.status-pill.status-danger { background: var(--danger-soft); color: var(--danger); }
.standings-card { margin-top: 14px; }
.standings-groups { display: grid; gap: 18px; }
.standings-group h4 { margin: 0 0 8px; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.34); }
.data-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.data-table th, .data-table td { padding: 10px 11px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.data-table th { color: var(--muted); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .rank-cell { width: 1%; color: var(--muted); font-weight: 800; }
.standing-player-cell { display: flex; min-width: 180px; align-items: center; gap: 8px; }
.standing-player-cell strong { overflow: hidden; max-width: 180px; text-overflow: ellipsis; white-space: nowrap; }
.standing-player-cell small { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: .58rem; font-weight: 800; }
.standings-help { margin: 9px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.admin-player-standings-scroll { max-height: 520px; overflow: auto; border-block: 1px solid var(--line); overscroll-behavior: contain; scrollbar-gutter: stable; }
.admin-player-standings-scroll:focus-visible { outline: 3px solid rgba(93,78,160,.25); outline-offset: 2px; }
.admin-player-standings-scroll .data-table th { position: sticky; z-index: 2; top: 0; background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.team-cell { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.team-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--team-color, var(--clay)); }
.qualify-line td { border-bottom: 2px solid rgba(200,108,77,.35); }

.stage-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 14px; }
.stage-tabs button { min-width: 0; min-height: 44px; padding: 11px 5px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.34); color: var(--muted); box-shadow: var(--shadow-small); }
.stage-tabs span, .stage-tabs small { display: block; }
.stage-tabs span { color: var(--ink); font-weight: 800; }
.stage-tabs small { overflow: hidden; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.stage-tabs button.is-active { border-color: rgba(200,108,77,.34); background: var(--clay-soft); box-shadow: var(--shadow-pressed); }
.group-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.round-title { min-width: 0; }
.round-title strong, .round-title span { display: block; }
.round-title strong { font-size: .82rem; }
.round-title span { color: var(--muted); font-size: .66rem; }
.segmented { display: flex; padding: 4px; border-radius: 12px; background: var(--page-deep); box-shadow: var(--shadow-pressed); }
.segmented button { min-height: 44px; padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: .72rem; font-weight: 800; }
.segmented button.is-active { background: var(--surface-strong); color: var(--ink); box-shadow: var(--shadow-small); }
.round-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; color: var(--muted); font-size: .68rem; }
.stage-actions { display: flex; gap: 7px; }
.inline-alert { display: flex; flex-direction: column; gap: 11px; margin-bottom: 15px; padding: 13px; border: 1px solid rgba(165,109,34,.22); border-radius: 14px; background: var(--amber-soft); }
.inline-alert strong, .inline-alert span { display: block; }
.inline-alert span { color: #76511f; font-size: .72rem; }
.game-grid { display: grid; gap: 14px; }
.game-card { padding: 17px; transition: border-color .2s ease; }
.game-card.is-dirty { border-color: rgba(165,109,34,.48); }
.game-card.is-editing { border-color: rgba(200,108,77,.42); }
.game-card.is-saving { border-color: rgba(73,107,123,.42); }
.game-card.is-saved { border-color: rgba(96,126,105,.36); }
.game-card.is-conflict { border-color: rgba(163,66,61,.46); }
.game-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.game-kicker { margin: 0 0 2px; color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-state { padding: 4px 8px; border-radius: 99px; background: #e6e0db; color: var(--muted); font-size: .61rem; font-weight: 800; text-transform: capitalize; }
.game-card.is-dirty .game-state { background: var(--amber-soft); color: #714613; }
.game-card.is-editing .game-state { background: var(--clay-soft); color: var(--clay-dark); }
.game-card.is-saving .game-state { background: #dce8ed; color: var(--blue); }
.game-card.is-saved .game-state { background: var(--sage-soft); color: #42604a; }
.game-card.is-conflict .game-state { background: var(--danger-soft); color: var(--danger); }
.game-help { margin-bottom: 13px; color: var(--muted); font-size: .71rem; }
.game-lineup { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 13px; }
.lineup-player { display: inline-flex; min-width: 0; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border: 1px solid color-mix(in srgb,var(--team-color) 18%,var(--line)); border-radius: 999px; background: color-mix(in srgb,var(--team-color) 6%,rgba(255,255,255,.66)); }
.lineup-player img { width: 28px; height: 28px; flex: 0 0 auto; border: 2px solid white; border-radius: 50%; background: var(--page-deep); object-fit: cover; box-shadow: var(--shadow-small); }
.lineup-player > span { min-width: 0; }
.lineup-player strong,.lineup-player small { display: block; max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineup-player strong { font-size: .64rem; }
.lineup-player small { color: var(--muted); font-size: .57rem; }
.placement-fields { display: grid; gap: 9px; }
.placement-field { display: grid; grid-template-columns: 42px 30px minmax(0,1fr); align-items: center; gap: 8px; }
.rank-badge { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.55); color: var(--muted); font-size: .7rem; font-weight: 800; box-shadow: var(--shadow-small); }
.placement-field:first-child .rank-badge { background: #f2dfb2; color: #785315; }
.select-avatar, .member-avatar { width: 30px; height: 30px; border: 2px solid rgba(255,255,255,.74); border-radius: 50%; background: var(--page-deep); object-fit: cover; box-shadow: var(--shadow-small); }
.placement-field select, .form-grid select, .form-grid input, .member-name-input { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: rgba(255,255,255,.62); color: var(--ink); box-shadow: var(--shadow-pressed); }
.placement-field select:focus, .form-grid select:focus, .form-grid input:focus, .member-name-input:focus { border-color: var(--clay); box-shadow: var(--focus); }
.placement-field select.has-value { font-weight: 700; }
.bye-award { display: grid; grid-template-columns: auto 10px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 44px; padding: 9px 11px; border: 1px solid color-mix(in srgb,var(--team-color) 22%,var(--line)); border-radius: 12px; background: color-mix(in srgb,var(--team-color) 8%,rgba(255,255,255,.58)); font-size: .72rem; }
.bye-award__label, .bye-cell { color: var(--clay-dark); font-size: .66rem; font-weight: 900; letter-spacing: .05em; }
.bye-award .team-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--team-color); }
.bye-award > span:last-child { color: var(--muted); text-align: right; }
.availability-badge { display: block; margin-top: 3px; color: #6247a6; font-size: .66rem; font-weight: 800; }
.activity-list { display: grid; gap: 10px; }
.activity-item { display: grid; grid-template-columns: minmax(100px,.25fr) minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; }
.activity-item__type { display: inline-flex; align-items: center; gap: 7px; color: var(--clay-dark); font-size: .66rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.activity-item__type::before { width: 8px; height: 8px; border-radius: 50%; background: #7b61bd; content: ""; }
.activity-item__copy { min-width: 0; }
.activity-item__copy strong,.activity-item__copy span { display: block; }
.activity-item__copy strong { font-size: .78rem; }
.activity-item__copy span,.activity-item time { color: var(--muted); font-size: .68rem; }
.game-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.saved-by { color: var(--faint); font-size: .66rem; }
.game-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-left: auto; }
.game-card-actions .button { min-height: 44px; padding: 8px 12px; font-size: .76rem; }
.game-card.is-saved .placement-field select:disabled { cursor: default; opacity: .78; }
.workflow-card { margin-top: 18px; }
.supporting-copy { color: var(--muted); font-size: .78rem; }
.qualifier-grid { display: grid; gap: 9px; margin: 15px 0; }
.qualifier-team { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.4); }
.qualifier-team strong, .qualifier-team small { display: block; }
.qualifier-team small { color: var(--muted); font-size: .68rem; }
.form-grid { display: grid; gap: 12px; margin-bottom: 14px; }
.form-grid label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 700; }

.roster-callout { margin-bottom: 15px; color: var(--muted); font-size: .8rem; }
.roster-grid { display: grid; gap: 14px; }
.roster-card { padding: 17px; }
.roster-card-header { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.roster-card-header span:not(.team-dot) { margin-left: auto; color: var(--muted); font-size: .67rem; }
.member-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.member-row { display: grid; grid-template-columns: 20px 30px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.member-number { color: var(--faint); font-size: .68rem; font-weight: 800; }
.member-name { min-width: 0; overflow: hidden; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.leader-badge { padding: 3px 6px; border-radius: 99px; background: var(--clay-soft); color: var(--clay-dark); font-size: .57rem; font-weight: 800; text-transform: uppercase; }
.assignment-card { margin-top: 16px; }
.assignment-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 14px; }
.coverage-pill { display: grid; grid-template-columns: 10px minmax(0,1fr); align-items: center; column-gap: 7px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.42); }
.coverage-pill i { grid-row: 1 / span 2; width: 9px; height: 9px; border-radius: 50%; background: var(--team-color, var(--sage)); box-shadow: 0 0 0 3px rgba(255,255,255,.6); }
.coverage-pill strong, .coverage-pill small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coverage-pill strong { font-size: .7rem; }
.coverage-pill small { color: var(--muted); font-size: .61rem; }
.coverage-pill.is-complete { border-color: rgba(96,126,105,.22); background: var(--sage-soft); }
.coverage-pill.is-warning { border-color: rgba(165,109,34,.22); background: var(--amber-soft); }
.not-playing { color: var(--faint); }
.empty-state { padding: 30px 15px; color: var(--muted); text-align: center; }
.skeleton { overflow: hidden; position: relative; min-height: 100px; border-radius: 18px; background: rgba(228,219,211,.75); }
.skeleton::after { position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent); content: ""; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.mobile-save { position: fixed; z-index: 40; right: 10px; bottom: 10px; left: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px 11px 15px; border: 1px solid rgba(255,255,255,.66); border-radius: 18px; background: rgba(44,40,37,.94); color: white; box-shadow: 0 15px 40px rgba(65,48,39,.3); backdrop-filter: blur(16px); }
.mobile-save strong, .mobile-save span { display: block; }
.mobile-save strong { font-size: .76rem; }
.mobile-save span { color: rgba(255,255,255,.64); font-size: .63rem; }
.mobile-save .button { min-height: 44px; flex: 0 0 auto; padding-inline: 13px; }

@media (max-width: 619px) {
  .header-inner { align-items: flex-start; }
  .header-actions { max-width: 230px; }
  .activity-item { grid-template-columns: 1fr; gap: 5px; }
  .round-meta { align-items: stretch; }
}

@media (min-width: 620px) {
  .sync-state { display: inline-flex; }
  .admin-shell { padding: 24px 22px 80px; }
  .identity-card { grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px; }
  .host-picker { width: 350px; }
  .metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .game-grid, .roster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qualifier-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .assignment-summary { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .inline-alert { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
  .header-inner { padding-inline: 28px; }
  .dashboard-grid { grid-template-columns: 1.25fr .75fr; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .roster-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .game-card, .content-card, .workflow-card { padding: 21px; }
  .mobile-save { right: 24px; bottom: 22px; left: auto; width: 430px; }
  .assignment-summary { grid-template-columns: repeat(8,minmax(0,1fr)); }
}

@media (min-width: 1180px) { .game-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
