:root {
  --bg: #090A0A;
  --panel: #1B1B1B;
  --panel-2: #222222;
  --panel-3: #2b2925;
  --line: #6B6054;
  --line-soft: #3b3731;
  /* Shared semantic aliases keep the newer command surfaces aligned with
     the original scouting UI tokens. */
  --line-strong: #6B6054;
  --text: #f3eadb;
  --paper: #f3eadb;
  --muted: #B7A98C;
  --muted-2: #8f8576;
  --dim: #8f8576;
  --orange: #F26A00;
  --orange-2: #ff9133;
  --orange-soft: rgba(242,106,0,.14);
  --bronze: #6B6054;
  --bronze-soft: rgba(107,96,84,.18);
  --stone: #B7A98C;
  --copper: #8A3E16;
  --green: #68c68c;
  --red: #ef6b65;
  --yellow: #e8b85c;
  --blue: #72a7ef;
  --shadow: 0 18px 50px rgba(0,0,0,.32);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 86% -8%, rgba(242,106,0,.14), transparent 28%),
    radial-gradient(circle at 18% 24%, rgba(183,169,140,.06), transparent 24%),
    linear-gradient(135deg, #090A0A 0%, #141414 48%, #090A0A 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .11; background-image: linear-gradient(rgba(183,169,140,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(183,169,140,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 194, 220, .18), transparent 34%),
    linear-gradient(145deg, #07171b 0%, #0c252a 54%, #07171b 100%);
}
.auth-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid rgba(44, 214, 232, .35);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(16, 37, 42, .98), rgba(7, 22, 26, .98));
  box-shadow: 0 28px 80px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.06);
}
.auth-brand { width: 66px; height: 66px; margin-bottom: 24px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(22, 205, 226, .55); background: #07171b; }
.auth-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-card h1 { font-size: clamp(31px, 6vw, 44px); }
.auth-subtitle { margin: 10px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-form { gap: 14px; }
.auth-form .full { width: 100%; margin-top: 4px; }
.auth-toggle { margin-top: 16px; color: var(--blue); }
.auth-status { min-height: 20px; margin: 18px 0 0; line-height: 1.45; }
.auth-status.error { color: var(--red); }
.auth-status.success { color: var(--green); }

.app-shell { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 17px;
  border-right: 1px solid #4d3e2d; background: linear-gradient(180deg, rgba(21,19,16,.98), rgba(10,10,9,.98));
  backdrop-filter: blur(18px); display: flex; flex-direction: column; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 28px; }
.brand-mark {
  width: 54px; height: 54px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: #0b0b0a; border: 1px solid #806443; border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(185,153,112,.08), 0 10px 24px rgba(0,0,0,.4);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-kicker { color: var(--orange); font-family: Oswald, sans-serif; letter-spacing: 1.4px; font-size: 11px; font-weight: 700; }
.brand-title { font-family: Oswald, sans-serif; color: var(--stone); font-size: 19px; letter-spacing: .8px; margin-top: 2px; }

.nav-stack { display: grid; gap: 7px; }
.nav-item {
  border: 1px solid transparent; color: var(--muted); background: transparent; border-radius: 10px;
  min-height: 45px; padding: 0 12px; display: flex; align-items: center; gap: 11px; text-align: left;
  font-weight: 600; letter-spacing: .15px; transition: .18s ease;
}
.nav-item:hover { color: var(--text); border-color: #453829; background: rgba(185,153,112,.08); }
.nav-item.active { color: var(--text); border-color: #7d5c39; background: linear-gradient(90deg, rgba(228,109,30,.2), rgba(185,153,112,.06)); box-shadow: inset 3px 0 var(--orange); }
.nav-icon { color: var(--stone); width: 18px; text-align: center; font-size: 18px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 2px 6px; border-radius: 999px; background: var(--panel-3); color: var(--muted); text-align: center; font-size: 11px; }

.source-card { margin-top: auto; border: 1px solid #584732; border-radius: 14px; padding: 15px; background: linear-gradient(155deg, #211b14, #11100e); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 16px 35px rgba(0,0,0,.22); }
.source-label { color: var(--dim); font-size: 10px; font-weight: 800; letter-spacing: 1.3px; }
.source-name { font-family: Oswald, sans-serif; font-size: 18px; margin: 5px 0 9px; }
.source-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.source-tools .source-status { margin-top: 12px; margin-bottom: 13px; }
.source-tools .source-detail { margin-top: 11px; }
.source-tools .last-sync { max-width: none; margin-top: 7px; text-align: left; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(104,198,140,.1); }
.status-dot.loading { background: var(--yellow); animation: pulse 1.15s infinite; }
.status-dot.offline { background: var(--red); box-shadow: 0 0 0 4px rgba(239,107,101,.1); }
@keyframes pulse { 50% { opacity: .35; } }
.source-link { display: block; color: var(--orange-2); font-size: 12px; text-decoration: none; margin-top: 11px; }
.sidebar-footer { display: grid; gap: 5px; margin-top: 14px; padding: 0 4px; }
.access-role-hint { color: var(--dim); font-size: 10px; padding: 3px 0; }

.main-content { padding: 30px 34px 110px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--orange); font-size: 11px; letter-spacing: 1.6px; font-weight: 800; }
h1, h2, h3 { font-family: Oswald, sans-serif; margin: 0; }
h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1; letter-spacing: .4px; }
.subtitle { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-account { display: flex; align-items: center; gap: 9px; padding: 6px 9px 6px 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(20,18,15,.72); }
.topbar-account-name { max-width: 170px; overflow: hidden; color: var(--text); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.topbar-account-role { color: var(--dim); font-size: 10px; white-space: nowrap; }
.topbar-signout { padding: 3px 0 3px 8px; border-left: 1px solid var(--line-soft); }
.last-sync { color: var(--dim); font-size: 11px; max-width: 190px; text-align: right; }

.primary-button, .secondary-button, .clear-button, .page-button {
  border: 1px solid transparent; border-radius: 9px; min-height: 38px; padding: 0 14px; font-weight: 700; transition: .18s ease;
}
.primary-button { background: var(--orange); color: #180f08; }
.primary-button:hover { background: var(--orange-2); transform: translateY(-1px); }
.primary-button:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.secondary-button { background: var(--panel-3); color: var(--text); border-color: var(--line); }
.secondary-button:hover { border-color: #64401f; }
.secondary-button.full { width: 100%; font-size: 12px; }
.clear-button, .page-button { background: transparent; border-color: var(--line); color: var(--muted); }
.clear-button:hover, .page-button:hover:not(:disabled) { color: var(--text); border-color: #634023; }
.page-button:disabled { opacity: .3; cursor: default; }
.text-button { border: 0; background: none; color: var(--muted); padding: 4px 0; font-size: 11px; text-align: left; }
.text-button:hover { color: var(--orange-2); }
.upload-label { cursor: pointer; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.kpi-card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(155deg, var(--panel), #13110e); padding: 18px 19px; min-height: 112px; position: relative; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; right: -30px; bottom: -45px; width: 100px; height: 100px; border: 1px solid rgba(255,255,255,.035); transform: rotate(45deg); }
.kpi-card.accent { border-color: #57351c; background: linear-gradient(155deg, #241a11, #15110d); }
.kpi-label { display: block; color: var(--dim); font-size: 10px; letter-spacing: 1.2px; font-weight: 800; }
.kpi-card strong { display: block; font-family: Oswald, sans-serif; font-size: 31px; margin: 10px 0 2px; }
.kpi-card small { color: var(--muted); font-size: 11px; }

.control-panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); padding: 15px; margin-bottom: 16px; }
.search-wrap { height: 48px; border: 1px solid var(--line); background: #11100e; border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 0 13px; }
.search-icon { color: var(--orange); font-size: 21px; }
.search-wrap input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); }
.search-wrap input::placeholder { color: #676057; }
kbd { color: var(--dim); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; font-size: 11px; }
.filters-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; margin-top: 12px; }
.filters-grid label, .filter-field, .compact-label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.filter-field > span em { color: var(--dim); font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
select, input[type="number"] { height: 38px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #12100e; padding: 0 10px; outline: 0; }
select:focus, input:focus, textarea:focus { border-color: #7f4c24 !important; box-shadow: 0 0 0 3px rgba(244,122,33,.09); }
.status-filter-select { width: 100%; }

.table-card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.table-toolbar { min-height: 58px; padding: 0 17px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.table-toolbar strong { font-size: 13px; }
.table-toolbar span { color: var(--dim); font-size: 11px; margin-left: 8px; }
.table-tools { display: flex; align-items: center; gap: 10px; }
.compact-label { grid-auto-flow: column; align-items: center; }
.compact-label select { height: 32px; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1040px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 2; background: #13110e; color: var(--dim); font-size: 9px; letter-spacing: .75px; text-transform: uppercase; user-select: none; }
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: var(--orange-2); }
th span { margin-left: 4px; opacity: .45; }
td { color: #ded7ce; font-size: 12px; }
tbody tr { transition: background .14s ease; }
tbody tr[data-open-profile] { cursor: pointer; }
tbody tr:hover { background: rgba(244,122,33,.035); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.select-column { width: 44px; text-align: center; }
.actions-column { width: 48px; }
.player-cell { display: flex; align-items: center; gap: 10px; }
.avatar { width: 31px; height: 31px; border-radius: 8px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #35251a, #19130f); border: 1px solid #4b3321; color: var(--orange-2); font-family: Oswald, sans-serif; font-weight: 700; }
.avatar img, .profile-avatar img, .card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar img + span, .profile-avatar img + span, .card-avatar img + span { display: none; }
.player-name { color: var(--text); font-weight: 700; }
.faceit-name { display: block; color: var(--dim); font-size: 10px; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 999px; background: #242019; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; }
.badge.orange { background: var(--orange-soft); border-color: #5f3a1e; color: var(--orange-2); }
.badge.green { background: rgba(104,198,140,.09); border-color: rgba(104,198,140,.26); color: var(--green); }
.badge.red { background: rgba(239,107,101,.09); border-color: rgba(239,107,101,.25); color: var(--red); }
.badge.yellow { background: rgba(232,184,92,.09); border-color: rgba(232,184,92,.23); color: var(--yellow); }
.badge.target { background: rgba(104,198,140,.09); border-color: rgba(104,198,140,.26); color: var(--green); }
.badge.watch { background: rgba(232,184,92,.09); border-color: rgba(232,184,92,.23); color: var(--yellow); }
.badge.pass { background: rgba(239,107,101,.09); border-color: rgba(239,107,101,.25); color: var(--red); }
.badge.neutral { color: var(--muted); }

/* Tier colors are a quiet orientation cue, matching the CSC ladder. */
.badge.tier-badge { background: rgba(185,153,112,.08); border-color: rgba(185,153,112,.28); color: var(--stone); }
.badge.tier-premier { color: #d4a7ff; border-color: rgba(192,132,252,.36); background: rgba(168,85,247,.12); }
.badge.tier-elite { color: #8db8ff; border-color: rgba(96,165,250,.36); background: rgba(59,130,246,.12); }
.badge.tier-challenger { color: #7fe0a7; border-color: rgba(74,222,128,.34); background: rgba(34,197,94,.11); }
.badge.tier-contender { color: #f3cf73; border-color: rgba(234,179,8,.36); background: rgba(234,179,8,.12); }
.badge.tier-prospect { color: #ff9b55; border-color: rgba(249,115,22,.38); background: rgba(234,88,12,.13); }
.badge.tier-recruit { color: #ff8582; border-color: rgba(248,113,113,.36); background: rgba(220,38,38,.12); }

.tier-tab-premier, .draft-tier-tab.tier-tab-premier { --tier-color: #d4a7ff; }
.tier-tab-elite, .draft-tier-tab.tier-tab-elite { --tier-color: #8db8ff; }
.tier-tab-challenger, .draft-tier-tab.tier-tab-challenger { --tier-color: #7fe0a7; }
.tier-tab-contender, .draft-tier-tab.tier-tab-contender { --tier-color: #f3cf73; }
.tier-tab-prospect, .draft-tier-tab.tier-tab-prospect { --tier-color: #ff9b55; }
.tier-tab-recruit, .draft-tier-tab.tier-tab-recruit { --tier-color: #ff8582; }
.badge.tier-unrated { color: var(--dim); border-color: var(--line-soft); background: rgba(255,255,255,.03); }
.level-pill { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.level-pill.faceit-level-1, .faceit-level-value.faceit-level-1 { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.level-pill.faceit-level-2-3, .faceit-level-value.faceit-level-2-3 { color: #68c68c; border-color: rgba(104,198,140,.46); background: rgba(104,198,140,.12); }
.level-pill.faceit-level-4-7, .faceit-level-value.faceit-level-4-7 { color: #e8b85c; border-color: rgba(232,184,92,.48); background: rgba(232,184,92,.12); }
.level-pill.faceit-level-8-9, .faceit-level-value.faceit-level-8-9 { color: #ff9133; border-color: rgba(255,145,51,.52); background: rgba(255,145,51,.14); }
.level-pill.faceit-level-10, .faceit-level-value.faceit-level-10 { color: #ef6b65; border-color: rgba(239,107,101,.56); background: rgba(239,107,101,.14); }
.level-pill.faceit-level-unknown, .faceit-level-value.faceit-level-unknown { color: var(--dim); border-color: var(--line-soft); background: rgba(255,255,255,.03); }
.faceit-level-value { display: inline-block; border-radius: 5px; padding: 2px 5px; }
.score-cell { display: inline-flex; align-items: center; gap: 7px; }
.score-track { width: 52px; height: 5px; background: #302a22; border-radius: 99px; overflow: hidden; }
.score-track i { display: block; height: 100%; background: var(--orange); }
.row-action { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; }
.row-action:hover { color: var(--orange-2); border-color: #64401f; }
.compare-check { accent-color: var(--orange); width: 15px; height: 15px; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-icon { color: var(--orange); font-size: 38px; }
.empty-state h3 { margin-top: 10px; font-size: 21px; }
.empty-state p { color: var(--muted); }
.pagination { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 15px; padding: 0 16px; }
.pagination span { color: var(--muted); font-size: 11px; }

.compare-tray { position: fixed; left: 290px; right: 22px; bottom: 18px; min-height: 65px; padding: 10px 12px 10px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid #6a4122; background: rgba(34,25,18,.96); backdrop-filter: blur(16px); border-radius: 12px; box-shadow: var(--shadow); z-index: 35; }
.compare-tray > div:first-child { flex: 1; min-width: 0; }
.compare-tray strong { display: block; font-size: 12px; }
.compare-tray span { color: var(--muted); font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; overflow-y: auto; background: rgba(3,3,3,.78); backdrop-filter: blur(8px); display: grid; place-items: start center; padding: 24px; z-index: 100; }
.modal { width: min(960px, 100%); max-height: calc(100dvh - 48px); overflow: auto; margin: auto; background: #15130f; border: 1px solid #473421; border-radius: 16px; box-shadow: var(--shadow); position: relative; }
.profile-modal { width: min(820px, 100%); overflow: hidden; display: flex; flex-direction: column; }
.profile-modal #profileContent { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.compare-modal { width: min(1180px, 100%); padding: 28px; }
.modal-close { position: sticky; float: right; top: 13px; right: 13px; z-index: 4; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #1b1813; font-size: 23px; }
.modal-close:hover { color: var(--text); }
.modal-heading { padding-right: 50px; margin-bottom: 20px; }

.profile-hero { padding: 34px 54px 22px 30px; background: radial-gradient(circle at 90% 10%, rgba(244,122,33,.13), transparent 36%), linear-gradient(145deg, #201810, #15130f); border-bottom: 1px solid var(--line); }
.profile-title-row { display: flex; align-items: center; gap: 17px; min-width: 0; }
.profile-avatar { width: 67px; height: 67px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; border: 1px solid #6e4524; background: linear-gradient(145deg, #3e2a1b, #18120e); color: var(--orange-2); font-family: Oswald, sans-serif; font-size: 25px; font-weight: 700; }
.profile-name-block { min-width: 0; }
.profile-name-block h2 { font-size: 33px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 19px 0 0 84px; padding-top: 15px; border-top: 1px solid rgba(185,153,112,.16); }
.profile-action-primary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.profile-action-primary .primary-button, .profile-action-primary .secondary-button { min-height: 38px; padding-inline: 15px; }
.dnd-action { min-height: 38px; padding: 0 13px; border: 1px solid rgba(239,107,101,.42); border-radius: 9px; color: #ff9a95; background: rgba(239,107,101,.08); font-size: 11px; font-weight: 800; transition: .18s ease; }
.dnd-action:hover { border-color: var(--red); background: rgba(239,107,101,.15); color: #ffd2cd; }
.dnd-action-remove { color: var(--muted); border-color: var(--line); background: transparent; }
.dnd-action-remove:hover { color: var(--text); border-color: var(--stone); background: rgba(185,153,112,.08); }
.profile-action-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; min-width: 0; }
.profile-action-links a { color: var(--orange-2); text-decoration: none; font-size: 10px; white-space: nowrap; }
.profile-action-links a:hover { color: var(--text); }
.profile-action-links a span { color: var(--stone); margin-left: 2px; }
.profile-action-links .secondary-button { min-height: 31px; padding-inline: 10px; font-size: 10px; }
.profile-nav { display: flex; justify-content: flex-end; gap: 10px; flex: 0 0 auto; }
.profile-actions { position: relative; z-index: 1; }
.profile-body { padding: 23px 30px 34px; }
.profile-snapshot { padding-bottom: 21px; border-bottom: 1px solid rgba(185,153,112,.18); }
.section-label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-label-row .eyebrow { margin: 0; }
.section-label-row > span { color: var(--dim); font-size: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin-bottom: 0; }
.metric { border: 1px solid var(--line-soft); background: #11100d; border-radius: 11px; padding: 13px 12px 14px; min-width: 0; }
.metric span { display: block; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.metric strong { display: block; margin-top: 6px; font-family: Oswald, sans-serif; font-size: 21px; }
.metric strong.faceit-level-value { width: fit-content; min-width: 33px; padding: 2px 8px; border-radius: 7px; }
.form-section { border-top: 1px solid var(--line-soft); padding-top: 23px; margin-top: 23px; }
.form-section h3 { font-size: 20px; margin-bottom: 5px; }
.form-help { margin: 0 0 15px; color: var(--muted); font-size: 11px; }
.evaluation-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.evaluation-heading .eyebrow { margin-bottom: 5px; }
.evaluation-heading h3 { margin: 0; }
.rating-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.field { display: grid; gap: 6px; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 8px; background: #100f0d; color: var(--text); padding: 10px; outline: none; }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.two-column-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }

.board-card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); overflow: visible; }
.board-toolbar { min-height: 105px; padding: 20px 20px 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.board-toolbar h2 { font-size: 28px; }
.board-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.board-controls { display: flex; gap: 10px; align-items: flex-end; }
.board-controls .compact-label { display: grid; gap: 5px; }
.board-controls select { height: 34px; }
.board-search-wrap { height: 38px; width: min(300px, 24vw); min-width: 220px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--bronze); border-radius: 8px; background: #0f1010; }
.board-search-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,0,.11); }
.board-search-wrap .search-icon { font-size: 18px; }
.board-search-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.board-search-wrap input::placeholder { color: var(--dim); }
.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; }
.tier-tabs { display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line-soft); }
.tier-tab { min-width: 104px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #13110e; text-align: left; }
.tier-tab:hover { color: var(--text); border-color: #6a4323; }
.tier-tab.active { color: var(--text); border-color: #7a4923; background: var(--orange-soft); }
.tier-tab span { font-size: 11px; font-weight: 700; }
.tier-tab strong { color: var(--orange-2); font-size: 12px; }
.board-summary { display: flex; flex-wrap: wrap; gap: 18px; padding: 13px 18px; color: var(--muted); font-size: 11px; }
.board-summary span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.scout-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, #1b1712, #14120f); cursor: pointer; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.scout-card:hover { border-color: #76502f; background: linear-gradient(145deg, #211a13, #16130f); transform: translateY(-1px); }
.scout-card-head { display: flex; align-items: center; gap: 9px; }
.card-avatar { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.scout-card-name { min-width: 0; flex: 1; }
.scout-card-name strong, .scout-card-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scout-card-name strong { color: var(--text); font-size: 13px; }
.scout-card-name span { margin-top: 3px; color: var(--dim); font-size: 10px; }
.scout-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 11px 0; }
.scout-card-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding: 9px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.scout-card-metrics span { min-width: 0; }
.scout-card-metrics small, .scout-card-metrics strong { display: block; }
.scout-card-metrics small { color: var(--dim); font-size: 8px; letter-spacing: .45px; }
.scout-card-metrics strong { margin-top: 3px; color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.scout-card-flags { display: flex; align-items: flex-start; gap: 6px; margin-top: 9px; color: var(--yellow); font-size: 10px; line-height: 1.35; }
.flag-icon { display: inline-grid; place-items: center; width: 15px; height: 15px; flex: 0 0 auto; border-radius: 50%; color: #17110b; background: var(--yellow); font-weight: 900; }
.scout-card-footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 11px; color: var(--dim); font-size: 10px; }
.board-empty { grid-column: 1 / -1; display: grid; gap: 5px; place-items: center; padding: 55px 20px; color: var(--muted); text-align: center; }
.board-empty strong { color: var(--text); }

.compare-grid { display: grid; grid-template-columns: repeat(var(--compare-count, 2), minmax(190px,1fr)); gap: 12px; }
.compare-card { border: 1px solid var(--line); border-radius: 12px; background: #11100d; overflow: hidden; }
.compare-card-head { padding: 17px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(145deg, #21180f, #15130f); }
.compare-card-head h3 { font-size: 22px; }
.compare-card-head p { color: var(--muted); margin: 4px 0 0; font-size: 11px; }
.compare-stat { min-height: 53px; padding: 11px 15px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.compare-stat span { color: var(--dim); font-size: 10px; text-transform: uppercase; font-weight: 700; }
.compare-stat strong { font-size: 13px; text-align: right; }
.compare-notes { padding: 15px; color: var(--muted); font-size: 11px; line-height: 1.5; white-space: pre-wrap; }

.toast-stack { position: fixed; right: 22px; top: 22px; display: grid; gap: 8px; z-index: 200; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 14px; border: 1px solid #594027; border-radius: 10px; background: #1d1812; box-shadow: var(--shadow); color: var(--text); font-size: 12px; animation: toast-in .2s ease; }
.toast.error { border-color: rgba(239,107,101,.45); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px); } }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 84px minmax(0,1fr); }
  .sidebar { padding: 20px 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:last-child, .nav-item span:not(.nav-icon), .source-card, .sidebar-footer { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-icon { width: auto; }
  .main-content { padding: 25px 22px 100px; }
  .compare-tray { left: 102px; }
  .filters-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-toolbar { align-items: flex-start; flex-direction: column; }
  .board-search-wrap { width: 100%; max-width: none; }
  .board-controls { width: 100%; }
  .board-controls .compact-label { flex: 1; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 66px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); flex-direction: row; z-index: 50; }
  .brand, .source-card, .sidebar-footer { display: none; }
  .nav-stack { width: 100%; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; }
  .nav-item { min-height: 48px; }
  .nav-item span:not(.nav-icon) { display: none; }
  .main-content { padding: 20px 14px 100px; }
  .topbar { align-items: flex-start; }
  .topbar-actions .last-sync { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .kpi-card { min-height: 98px; padding: 14px; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .filters-grid .clear-button { grid-column: 1 / -1; }
  .compare-tray { left: 12px; right: 12px; bottom: 78px; }
  .compare-tray span { display: none; }
  .modal-backdrop { padding: 8px; }
  .profile-hero, .profile-body { padding-left: 18px; padding-right: 18px; }
  .profile-title-row { align-items: flex-start; flex-wrap: wrap; }
  .profile-hero { padding-right: 48px; }
  .profile-actions { align-items: flex-start; flex-direction: column; margin-left: 0; gap: 12px; }
  .profile-action-links { justify-content: flex-start; width: 100%; }
  .profile-nav { justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .rating-grid, .two-column-form { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; padding-inline: 10px; }
  .board-summary { gap: 10px; padding-inline: 12px; }
  .board-summary span + span { padding-left: 10px; }
  .tier-tabs { padding-inline: 10px; }
}

/* NAN theme.  Keep the LBS values above as the alternate theme; switching the
   one active brand key in brand-config.js restores them without touching UI
   behavior or data. */
html[data-brand="nan"] {
  --bg: #071216;
  --panel: #101c20;
  --panel-2: #15262b;
  --panel-3: #1b3036;
  --line: #2c5159;
  --line-soft: #20383e;
  --line-strong: #3b6871;
  --text: #e8fbfc;
  --paper: #e8fbfc;
  --muted: #96c0c5;
  --muted-2: #6f959b;
  --dim: #6f959b;
  --orange: #10c9df;
  --orange-2: #78e8f2;
  --orange-soft: rgba(16,201,223,.14);
  --bronze: #2c5962;
  --bronze-soft: rgba(44,89,98,.2);
  --stone: #b3dce0;
  --copper: #0d5260;
  --green: #6ed4aa;
  --red: #ff7d83;
  --yellow: #f0ca70;
  --blue: #78c9ef;
}
html[data-brand="nan"] body {
  background: radial-gradient(circle at 86% -8%, rgba(16,201,223,.16), transparent 29%),
    radial-gradient(circle at 18% 24%, rgba(120,232,242,.06), transparent 24%),
    linear-gradient(135deg, #071216 0%, #0c1b20 48%, #071216 100%);
}
html[data-brand="nan"] .sidebar { background: linear-gradient(180deg, rgba(11,29,34,.98), rgba(6,17,20,.98)); border-right-color: #23464e; }
html[data-brand="nan"] .brand-mark { background: #06181d; border-color: #257b87; box-shadow: 0 0 0 3px rgba(16,201,223,.1), 0 10px 24px rgba(0,0,0,.42); }
html[data-brand="nan"] .brand-kicker { color: var(--orange); }
html[data-brand="nan"] .brand-title { color: var(--stone); }
html[data-brand="nan"] .nav-item:hover { border-color: rgba(16,201,223,.42); background: rgba(16,201,223,.08); }
html[data-brand="nan"] .nav-item.active { border-color: rgba(16,201,223,.58); background: linear-gradient(90deg, rgba(16,201,223,.17), rgba(44,89,98,.1)); }
html[data-brand="nan"] .source-card { border-color: #28535c; background: linear-gradient(155deg, rgba(13,82,96,.36), #0b171a); }
html[data-brand="nan"] .primary-button { border-color: #65e7f0; background: linear-gradient(135deg, #10c9df, #078da2); color: #031317; }
html[data-brand="nan"] .primary-button:hover { background: linear-gradient(135deg, #78e8f2, #10afc2); box-shadow: 0 7px 18px rgba(16,201,223,.24); }
html[data-brand="nan"] .secondary-button { background: linear-gradient(145deg, #1a3035, #102126); border-color: #3c6972; }
html[data-brand="nan"] .secondary-button:hover { border-color: #78cbd3; background: #214047; }
html[data-brand="nan"] .search-wrap, html[data-brand="nan"] select, html[data-brand="nan"] input[type="number"] { background: #09171b; border-color: #315b63; }
html[data-brand="nan"] .search-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(16,201,223,.12); }
html[data-brand="nan"] .overview-card, html[data-brand="nan"] .draft-room { background: #0d1a1e; }
html[data-brand="nan"] .overview-hero, html[data-brand="nan"] .table-toolbar, html[data-brand="nan"] .board-toolbar { background: #102126; }
html[data-brand="nan"] .overview-hero { background: radial-gradient(circle at 92% 12%, rgba(16,201,223,.16), transparent 32%), #102126; }
html[data-brand="nan"] .overview-tier { background: #12262b; }
html[data-brand="nan"] .overview-tier:hover { background: #17343b; }
html[data-brand="nan"] .draft-row:hover, html[data-brand="nan"] tbody tr:hover { background: linear-gradient(90deg, rgba(16,201,223,.09), rgba(44,89,98,.04)); }
html[data-brand="nan"] .profile-hero { background: radial-gradient(circle at 90% 10%, rgba(16,201,223,.14), transparent 36%), #11242a; border-bottom-color: #2b6670; }
html[data-brand="nan"] .profile-hero::after { background-image: url("assets/nan.png"); opacity: .08; filter: saturate(.9); }
html[data-brand="nan"] .metric { background: linear-gradient(145deg, #13252a, #0b171a); border-color: rgba(86,159,169,.4); }
html[data-brand="nan"] .field input, html[data-brand="nan"] .field select, html[data-brand="nan"] .field textarea { background: #081519; border-color: #315b63; }
html[data-brand="nan"] .score-track { background: #1e3d43; }
html[data-brand="nan"] .score-track i { background: linear-gradient(90deg, #08a9bd, #78e8f2); }
html[data-brand="nan"] .team-builder-hero { background: radial-gradient(circle at 90% 10%, rgba(16,201,223,.16), transparent 36%), #102126; border-color: #2b5961; }
html[data-brand="nan"] .team-builder-panel { background: #112125; }
html[data-brand="nan"] .team-builder-player.is-starter { border-left-color: var(--orange); background: linear-gradient(90deg, rgba(16,201,223,.11), rgba(255,255,255,.018)); }
html[data-brand="nan"] .team-builder-role.starter { border-color: rgba(16,201,223,.55); color: var(--orange-2); background: rgba(16,201,223,.1); }

.source-actions { display: grid; gap: 8px; margin-top: 12px; }
.sync-mode-label { color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.sync-mode-select { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #12100e; padding: 0 9px; outline: 0; font-size: 11px; }
.sync-mode-select:focus { border-color: #7f4c24; box-shadow: 0 0 0 3px rgba(244,122,33,.09); }
.source-detail { margin-top: 10px; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.settings-modal { width: min(560px, calc(100vw - 32px)); }
.settings-form { display: grid; gap: 20px; margin-top: 24px; }
.settings-form label { display: grid; gap: 8px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.settings-form input { width: 100%; background: #17130f; border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 12px 14px; font: inherit; }
.settings-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(234, 118, 35, .14); }
button[disabled] { opacity: .55; cursor: wait; }

/* LBS command-center visual system */
.main-content { position: relative; }
.main-content::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; right: -150px; top: 80px;
  background: url("assets/lbs-crest.webp") center / contain no-repeat;
  opacity: .035; filter: sepia(.25) saturate(.8);
}
.main-content > * { position: relative; z-index: 1; }
.control-panel { position: relative; z-index: 10; }
.filters-grid, #typeFilter { position: relative; }
.control-panel, .filters-grid { overflow: visible; }
/* Paint containment clips dropdowns to rounded cards. Let the filter card
   participate in the page stacking context while its checklist is open. */
.control-panel { contain: none; }
.topbar {
  padding-bottom: 20px; border-bottom: 1px solid rgba(185,153,112,.22);
  position: relative;
}
.topbar::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 90px; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
h1 { color: #fff7ea; text-shadow: 0 2px 18px rgba(228,109,30,.12); }
.subtitle { max-width: 700px; }
.last-sync { padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(20,19,17,.7); }
.primary-button, .secondary-button, .clear-button, .page-button {
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 5px 14px rgba(0,0,0,.16);
}
.primary-button {
  border-color: #f18a37; background: linear-gradient(135deg, #ef7924, #bc4c12); color: #1b0e06;
  text-shadow: 0 1px rgba(255,198,137,.2);
}
.primary-button:hover { background: linear-gradient(135deg, #ff9c42, #d95b17); box-shadow: 0 7px 18px rgba(228,109,30,.22); }
.secondary-button { background: linear-gradient(145deg, #29231c, #1c1915); border-color: #635039; }
.secondary-button:hover { border-color: var(--bronze); background: #30291f; }
.clear-button, .page-button { background: rgba(28,25,21,.7); }
.clear-button:hover, .page-button:hover:not(:disabled) { border-color: var(--bronze); background: var(--bronze-soft); }
.kpi-card, .control-panel, .table-card, .board-card {
  border-color: rgba(185,153,112,.24); box-shadow: 0 14px 36px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.025);
}
.kpi-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(185,153,112,.65), transparent 65%); opacity: .7;
}
.kpi-card.accent { border-color: rgba(228,109,30,.46); box-shadow: 0 14px 38px rgba(98,39,10,.18), inset 0 1px rgba(255,165,90,.08); }
.kpi-card.accent::before { background: linear-gradient(90deg, var(--orange), transparent 72%); }
.kpi-label { color: #a99782; }
.kpi-card strong { color: #fff5e8; }
.control-panel { background: linear-gradient(145deg, rgba(25,23,20,.98), rgba(17,16,14,.98)); }
.search-wrap { border-color: #5a4935; background: rgba(10,10,9,.78); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.search-wrap:focus-within { border-color: #9a6338; box-shadow: 0 0 0 3px rgba(228,109,30,.1); }
select, input[type="number"] { background: #151411; border-color: #574733; }
select:hover, input[type="number"]:hover { border-color: #806342; }
.table-toolbar, .board-toolbar { background: linear-gradient(90deg, rgba(185,153,112,.045), transparent 45%); }
.table-toolbar strong, .board-toolbar h2 { color: #fff1df; }
th { background: #171512; color: #a49078; border-bottom-color: #4a3c2d; }
td { border-bottom-color: rgba(73,61,46,.62); }
tbody tr:hover { background: linear-gradient(90deg, rgba(228,109,30,.1), rgba(185,153,112,.025)); }
.avatar { border-color: #6a482b; box-shadow: inset 0 1px rgba(255,191,119,.08); }
.row-action { background: rgba(35,29,22,.72); }
.row-action:hover { color: var(--orange-2); border-color: var(--orange); background: var(--orange-soft); }
.compare-tray { border-color: #8a572d; background: linear-gradient(100deg, rgba(50,30,16,.97), rgba(29,23,17,.97)); }
.modal { border-color: #6d5035; background: linear-gradient(145deg, #191612, #11100e); }
.modal-close { background: #211b15; border-color: #5c4733; }
.modal-close:hover { border-color: var(--orange); color: var(--orange-2); }
.profile-hero { position: relative; overflow: hidden; border-bottom-color: #60462f; }
.profile-hero::after {
  content: ""; position: absolute; right: -35px; top: -80px; width: 290px; height: 290px;
  background: url("assets/lbs-crest.webp") center / contain no-repeat; opacity: .075; pointer-events: none;
}
.profile-title-row, .profile-body { position: relative; z-index: 1; }
.profile-avatar { border-color: #936034; box-shadow: 0 0 0 4px rgba(185,153,112,.06), 0 12px 24px rgba(0,0,0,.25); }
.metric { border-color: rgba(185,153,112,.25); background: linear-gradient(145deg, #191714, #11100e); }
.form-section { border-top-color: rgba(185,153,112,.2); }
.board-card { background: linear-gradient(145deg, rgba(23,21,18,.98), rgba(15,14,12,.98)); }
.tier-tab { background: #171512; border-color: #584735; }
.tier-tab.active { border-color: #b06a32; background: linear-gradient(135deg, rgba(228,109,30,.22), rgba(185,153,112,.08)); box-shadow: inset 0 1px rgba(255,190,130,.1); }
.scout-card { border-color: rgba(185,153,112,.27); background: linear-gradient(145deg, #211b15, #151310); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.scout-card:hover { border-color: #b17645; box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.compare-card { border-color: rgba(185,153,112,.28); }
.compare-card-head { background: linear-gradient(145deg, #2a1e14, #171411); }
.toast { border-color: #80552f; background: linear-gradient(145deg, #241b13, #181410); }
.settings-form input { border-color: var(--line); background: #151311; }
.settings-form input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(228,109,30,.14); }

/* Signed-player affiliation is a quiet third line, so it adds context without
   turning the pool or board into another column of badges. */
.franchise-affiliation { display: flex !important; align-items: center; gap: 5px; min-width: 0; max-width: 220px; margin-top: 4px; overflow: hidden; color: #d9b57f; font-size: 9px; font-weight: 800; letter-spacing: .2px; line-height: 16px; white-space: nowrap; }
.franchise-affiliation > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.franchise-affiliation img { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 4px; object-fit: contain; background: rgba(255,255,255,.08); }
.team-affiliation { display: block; min-width: 0; max-width: 240px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 700; line-height: 14px; text-overflow: ellipsis; white-space: nowrap; }
.draft-team { margin-top: 0; line-height: 13px; }
.profile-team { max-width: min(360px, 100%); margin-top: 8px; color: var(--stone); font-size: 11px; line-height: 18px; }
.scout-card-name .franchise-affiliation { margin-top: 4px; color: #d9b57f; }
.scout-card-name .franchise-affiliation > span { margin-top: 0; color: inherit; font-size: inherit; }
.draft-player-cell .franchise-affiliation { margin-top: 0; line-height: 14px; }
.draft-player-cell .franchise-affiliation img { width: 14px; height: 14px; }
.profile-franchise { max-width: min(360px, 100%); margin-top: 10px; font-size: 11px; line-height: 20px; }
.profile-franchise img { width: 20px; height: 20px; border-radius: 5px; }

/* Every card has two explicit alignment rails: one for its label and one for
   its value. This keeps a one-digit value, a decimal, and the level pill on
   the same visual center instead of relying on their different glyph boxes. */
.metric { display: grid; grid-template-rows: 11px 31px; align-content: space-between; height: 81px; box-sizing: border-box; }
.metric span { height: 11px; line-height: 11px; }
.metric strong { display: flex; align-items: center; height: 31px; min-height: 31px; margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.metric strong.faceit-level-value { align-self: start; width: fit-content; min-width: 33px; height: 31px; min-height: 31px; box-sizing: border-box; padding: 0 8px; }
.csc-stat { display: grid; grid-template-rows: 11px 22px; align-content: space-between; height: 64px; box-sizing: border-box; }
.csc-stat span { height: 11px; line-height: 11px; }
.csc-stat strong { display: flex; align-items: center; height: 22px; min-height: 22px; margin: 0; line-height: 1; font-variant-numeric: tabular-nums; }
.field input:not([type="checkbox"]), .field select { height: 40px; min-height: 40px; padding-block: 0; line-height: 1; }
.field textarea { min-height: 128px; height: auto; line-height: 1.5; }

@media (max-width: 720px) {
  .main-content::before { width: 330px; height: 330px; right: -135px; top: 110px; opacity: .025; }
  .topbar { padding-bottom: 15px; }
  .topbar-actions { gap: 8px; }
  .modal-backdrop { padding: 8px; }
  .modal { max-height: calc(100dvh - 16px); }
}

@media (max-width: 480px) {
  .rating-grid, .two-column-form { grid-template-columns: 1fr; }
  .profile-hero { padding-left: 18px; padding-right: 48px; }
  .profile-actions { align-items: flex-start; flex-direction: column; margin-left: 0; }
  .profile-action-links { justify-content: flex-start; }
  .profile-nav { justify-content: flex-start; }
}

/* Workflow-first command center */
.overview-card {
  border: 1px solid rgba(185,153,112,.28); border-radius: 16px; overflow: hidden;
  background: linear-gradient(145deg, rgba(27,24,20,.98), rgba(14,13,11,.98));
  box-shadow: 0 18px 44px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035);
}
.overview-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
  padding: 28px 30px 27px; border-bottom: 1px solid rgba(185,153,112,.2);
  background: radial-gradient(circle at 92% 12%, rgba(228,109,30,.16), transparent 32%), linear-gradient(120deg, rgba(185,153,112,.055), transparent 48%);
}
.overview-hero h2 { max-width: 580px; color: #fff3e2; font-size: clamp(29px, 4vw, 43px); line-height: 1.04; }
.overview-hero p:not(.eyebrow) { max-width: 640px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.overview-continue { flex: 0 0 auto; min-height: 44px; padding-inline: 18px; }
.overview-continue span, .board-next-button span { margin-left: 7px; font-size: 16px; }
.overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: rgba(185,153,112,.16); border-bottom: 1px solid rgba(185,153,112,.2); }
.overview-stat { min-height: 116px; padding: 18px 20px; background: rgba(20,18,15,.92); }
.overview-stat span { display: block; color: #a99782; font-size: 9px; font-weight: 800; letter-spacing: 1.05px; }
.overview-stat strong { display: block; margin-top: 10px; color: #fff5e8; font-family: Oswald, sans-serif; font-size: 31px; }
.overview-stat small { display: block; margin-top: 4px; color: var(--dim); font-size: 10px; }
.overview-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 24px 24px 13px; }
.overview-section-heading .eyebrow { margin-bottom: 4px; }
.overview-section-heading h2 { color: #f9ecdc; font-size: 24px; }
.overview-section-heading > span { color: var(--dim); font-size: 11px; }
.overview-tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 0 24px 24px; }
.overview-tier { min-width: 0; padding: 15px; border: 1px solid rgba(185,153,112,.27); border-radius: 11px; color: var(--text); background: linear-gradient(145deg, #211b15, #151310); text-align: left; transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.overview-tier:hover { border-color: #b17645; background: linear-gradient(145deg, #292016, #18140f); transform: translateY(-1px); }
.overview-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.overview-tier-head span { color: #f4e7d5; font-family: Oswald, sans-serif; font-size: 19px; }
.overview-tier-head strong { color: var(--orange-2); font-size: 13px; }
.overview-progress { height: 5px; margin: 15px 0 9px; border-radius: 99px; background: #30271e; overflow: hidden; }
.overview-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--orange-2)); }
.overview-tier-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.overview-tier-flag, .overview-tier-clear { margin-top: 12px; font-size: 10px; }
.overview-tier-flag { color: var(--yellow); }
.overview-tier-clear { color: var(--dim); }
.overview-queue { border-top: 1px solid rgba(185,153,112,.18); padding-bottom: 22px; }
.queue-heading { padding-bottom: 12px; }
.overview-queue-list { display: grid; gap: 6px; padding: 0 24px; }
.overview-queue-item { width: 100%; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid rgba(185,153,112,.19); border-radius: 9px; color: var(--text); background: rgba(18,16,13,.72); text-align: left; transition: border-color .16s ease, background .16s ease; }
.overview-queue-item:hover { border-color: #9f673d; background: rgba(51,31,18,.72); }
.queue-avatar { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.queue-player { min-width: 135px; display: grid; gap: 3px; }
.queue-player strong { color: #f9ecdc; font-size: 12px; }
.queue-player small { color: var(--dim); font-size: 10px; }
.queue-reason { min-width: 0; flex: 1; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.queue-reason b { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 50%; color: #1a1109; background: var(--yellow); font-size: 10px; }
.queue-arrow { color: var(--orange-2); font-size: 17px; }
.overview-empty { margin: 0 24px 2px; padding: 18px; border: 1px dashed rgba(185,153,112,.25); border-radius: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.board-next-button { min-height: 34px; padding-inline: 12px; font-size: 11px; }
.board-controls { flex-wrap: wrap; }

@media (max-width: 900px) {
  .overview-tier-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-hero { align-items: flex-start; flex-direction: column; }
  .overview-continue { width: 100%; }
}
@media (max-width: 620px) {
  .overview-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .overview-tier-grid { grid-template-columns: 1fr; padding-inline: 14px; }
  .overview-section-heading { padding-inline: 14px; }
  .overview-queue-list { padding-inline: 14px; }
  .overview-hero { padding: 22px 18px; }
  .overview-hero h2 { font-size: 31px; }
  .queue-player { min-width: 100px; }
  .queue-reason { display: none; }
}

/* Scouting board workspace */
.source-tools { margin-top: 13px; border-top: 1px solid rgba(185,153,112,.18); padding-top: 10px; }
.source-tools summary { cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 700; list-style: none; }
.source-tools summary::-webkit-details-marker { display: none; }
.source-tools summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--orange-2); }
.source-tools[open] summary::before { content: "−"; }
.source-tools[open] .source-actions { margin-top: 12px; }
.draft-room { border: 1px solid rgba(185,153,112,.28); border-radius: 16px; background: linear-gradient(145deg, rgba(26,23,19,.98), rgba(14,13,11,.98)); box-shadow: 0 18px 44px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035); }
.draft-room-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 25px 26px 21px; border-bottom: 1px solid rgba(185,153,112,.2); background: linear-gradient(90deg, rgba(185,153,112,.05), transparent 52%); }
.draft-room-toolbar h2 { color: #fff1df; font-size: 31px; }
.draft-room-toolbar p:not(.eyebrow) { max-width: 620px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.draft-room-actions { display: flex; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.draft-room-actions .compact-label { gap: 5px; }
.draft-room-actions select { height: 34px; min-width: 108px; }
.draft-room-actions .secondary-button { min-height: 34px; white-space: nowrap; }

/* Keep player media inside its cell, even when an upstream avatar URL is large. */
.avatar,
.draft-row-avatar,
.search-result-avatar,
.queue-avatar { overflow: hidden; }
.avatar img,
.draft-row-avatar img,
.search-result-avatar img,
.queue-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}
.draft-table tr { height: 52px; }
.draft-table td { vertical-align: middle; }

/* Let the controls breathe instead of clipping the compare action. */
.draft-room-toolbar { flex-wrap: wrap; }
.draft-room-toolbar > div:first-child { min-width: 0; flex: 1 1 420px; }

/* Focused visual pass: a quiet, decision-first front office instead of a
   collection of decorative dashboard cards. */
:root {
  --radius: 7px;
  --panel: #141615;
  --panel-2: #191b1a;
  --line: #4d514b;
  --line-soft: #2a2e2b;
  --text: #eee8dc;
  --muted: #aaa99f;
  --dim: #777b74;
  --orange: #e86d1d;
  --orange-2: #f28b38;
}

body {
  background: #0b0d0c;
}
body::before { display: none; }
.main-content::before { opacity: .018; }
.app-shell { grid-template-columns: 238px minmax(0, 1fr); }
.sidebar {
  padding: 21px 14px;
  border-right-color: #2d302c;
  background: #101211;
  backdrop-filter: none;
}
.brand { padding: 3px 6px 24px; gap: 10px; }
.brand-mark { width: 43px; height: 43px; border-radius: 7px; border-color: #5f503c; box-shadow: none; }
.brand-kicker { font-size: 9px; letter-spacing: 1.5px; }
.brand-title { color: #e4ddcf; font-size: 17px; letter-spacing: .3px; }
.season-card { border: 1px solid #2a2e2b; border-radius: 7px; padding: 11px; background: #141615; }
.season-label { color: #777b74; font-size: 9px; letter-spacing: 1.4px; }
.season-detail { color: #777b74; font-size: 10px; line-height: 1.35; }
.nav-stack { gap: 2px; margin-top: 18px; }
.nav-item { min-height: 40px; border-radius: 5px; padding: 0 10px; gap: 10px; color: #9ea19b; font-size: 13px; }
.nav-item:hover { border-color: #343934; background: #181b19; }
.nav-item.active { border-color: #4b3626; background: rgba(232,109,29,.11); box-shadow: inset 2px 0 var(--orange); color: #f0e9dc; }
.nav-icon { color: #8f928a; font-size: 16px; }
.nav-count { background: #242823; color: #aaa99f; border-radius: 4px; }
.source-card { border-radius: 7px; padding: 12px; background: #141615; box-shadow: none; border-color: #2a2e2b; }
.source-name { font-size: 16px; margin-bottom: 6px; }
.source-detail, .last-sync { color: #777b74; }
.sidebar-footer { margin-top: 12px; }

.main-content { padding: 30px clamp(22px, 3vw, 48px) 96px; }
.topbar { margin-bottom: 22px; padding-bottom: 17px; border-bottom-color: #2c302c; }
.topbar::after { height: 1px; width: 58px; background: var(--orange); }
.eyebrow { margin-bottom: 6px; font-size: 9px; letter-spacing: 1.8px; }
h1 { font-size: clamp(30px, 3.5vw, 41px); text-shadow: none; }
.subtitle { margin-top: 7px; color: #8f938b; font-size: 12px; }
.last-sync { display: none; }
.primary-button, .secondary-button, .clear-button, .page-button { border-radius: 6px; box-shadow: none; }
.primary-button { background: var(--orange); border-color: #f08335; }
.primary-button:hover { background: #f07a27; box-shadow: none; }
.secondary-button { background: #1a1d1b; border-color: #4a4f49; }
.secondary-button:hover { background: #202421; border-color: #697067; }

.kpi-grid { gap: 1px; margin-bottom: 13px; border: 1px solid #2b302c; border-radius: 7px; overflow: hidden; background: #2b302c; }
.kpi-card { min-height: 92px; padding: 15px 16px; border: 0; border-radius: 0; background: #141615; box-shadow: none; }
.kpi-card::before, .kpi-card::after { display: none; }
.kpi-card.accent { border: 0; background: #171914; box-shadow: inset 2px 0 var(--orange); }
.kpi-label { color: #858a82; font-size: 9px; }
.kpi-card strong { margin-top: 8px; color: #f1eadf; font-size: 28px; }
.kpi-card small { color: #777b74; font-size: 10px; }

.control-panel, .table-card, .board-card, .overview-card, .draft-room, .team-builder-panel { border-radius: 7px; box-shadow: none; }
.control-panel { padding: 13px; margin-bottom: 13px; border-color: #2b302c; background: #111312; }
.search-wrap { height: 43px; border-radius: 6px; border-color: #3f453f; background: #0d0f0e; box-shadow: none; }
.search-wrap:focus-within { border-color: #b15b25; box-shadow: 0 0 0 2px rgba(232,109,29,.1); }
.filters-grid { gap: 8px; margin-top: 10px; }
select, input[type="number"] { height: 36px; border-radius: 6px; background: #151817; border-color: #3e443e; }
select:hover, input[type="number"]:hover { border-color: #596057; }

.table-card { border-color: #2b302c; background: #111312; }
.table-toolbar { min-height: 52px; padding-inline: 14px; background: #151817; }
.table-toolbar span { color: #777b74; }
th { background: #151817; color: #858a82; border-bottom-color: #343a34; }
th, td { padding: 11px 10px; }
td { color: #d5d1c8; }
tbody tr:hover { background: rgba(232,109,29,.055); }
.badge { min-height: 21px; padding: 0 7px; border-radius: 4px; font-size: 9px; }
.avatar { width: 29px; height: 29px; border-radius: 6px; box-shadow: none; }
.row-action { width: 28px; height: 28px; border-radius: 6px; background: transparent; }

.overview-card { border-color: #2e342f; background: #111312; }
.overview-hero { padding: 24px 25px 22px; background: #151817; }
.overview-hero h2 { max-width: 520px; font-size: clamp(28px, 3.3vw, 37px); }
.overview-hero p:not(.eyebrow) { max-width: 520px; margin-top: 8px; color: #92968e; font-size: 12px; line-height: 1.45; }
.overview-stats { background: #2b302c; }
.overview-stat { min-height: 96px; padding: 15px 17px; background: #141615; }
.overview-stat strong { margin-top: 7px; font-size: 27px; }
.overview-section-heading { padding: 20px 20px 11px; }
.overview-section-heading h2 { font-size: 21px; }
.overview-tier-grid { gap: 7px; padding: 0 20px 20px; }
.overview-tier { padding: 13px; border-radius: 6px; background: #171a18; }
.overview-tier:hover { transform: none; background: #1b1e1b; }
.overview-tier-head span { font-size: 17px; }
.overview-progress { height: 4px; margin: 12px 0 8px; }
.overview-queue { border-top-color: #2b302c; }
.overview-queue-list { gap: 3px; padding: 0 20px; }
.overview-queue-item { padding: 8px 10px; border-radius: 5px; background: #151817; }

.board-toolbar, .draft-room-toolbar { padding: 18px 19px 15px; background: #151817; }
.board-toolbar { min-height: 86px; }
.board-toolbar h2, .draft-room-toolbar h2 { font-size: 27px; }
.board-subtitle, .draft-room-toolbar p:not(.eyebrow) { margin-top: 5px; color: #898e86; font-size: 11px; }
.tier-tabs { gap: 4px; padding: 8px 12px; background: #121413; }
.tier-tab { min-width: 92px; padding: 8px 9px; border-radius: 5px; background: #161918; }
.tier-tab.active { border-color: var(--tier-color, #b06a32); background: color-mix(in srgb, var(--tier-color, #e86d1d) 12%, transparent); box-shadow: inset 2px 0 var(--tier-color, #e86d1d); }
.board-summary { gap: 13px; padding: 10px 14px; color: #8f938b; }
.board-summary span + span { padding-left: 13px; border-left-color: #343a34; }
.board-grid { grid-template-columns: 1fr; gap: 0; padding: 0; border-top: 1px solid #2b302c; }
.scout-card { display: flex; align-items: center; gap: 17px; padding: 11px 15px; border: 0; border-bottom: 1px solid #292e2a; border-radius: 0; background: #141615; box-shadow: none; }
.scout-card:hover { transform: none; border-color: #3e453e; background: #181b19; box-shadow: none; }
.scout-card-head { flex: 1 1 240px; min-width: 210px; }
.scout-card-meta { flex: 0 0 185px; margin: 0; }
.scout-card-metrics { flex: 0 0 260px; padding: 0; border: 0; }
.scout-card-flags { flex: 0 1 170px; min-width: 0; margin: 0; }
.scout-card-footer { flex: 0 0 100px; margin: 0; display: grid; gap: 3px; justify-items: end; }
.card-avatar { width: 34px; height: 34px; border-radius: 7px; }
.scout-card-name strong { font-size: 12px; }
.scout-card-name span { font-size: 9px; }
.scout-card-metrics strong { font-size: 11px; }
.board-empty { padding: 46px 20px; }

.profile-modal { border-radius: 8px; }
.profile-hero { padding: 27px 47px 19px 26px; background: #171a18; }
.profile-hero::after { opacity: .025; }
.profile-avatar { width: 61px; height: 61px; border-radius: 9px; box-shadow: none; }
.profile-name-block h2 { font-size: 30px; }
.profile-actions { margin-top: 15px; padding-top: 12px; border-top-color: #2e342f; }
.profile-body { padding: 20px 26px 28px; }
.metric { border-radius: 6px; background: #141615; border-color: #343a34; }
.form-section { border-top-color: #2e342f; }
.form-help { color: #858a82; }
.field input, .field select, .field textarea { border-radius: 6px; background: #0f1110; border-color: #3e443e; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .main-content { padding: 25px 22px 100px; }
  .scout-card { flex-wrap: wrap; }
  .scout-card-head { flex: 1 1 230px; }
  .scout-card-meta { flex: 1 1 170px; }
  .scout-card-metrics { flex: 1 1 250px; }
  .scout-card-flags, .scout-card-footer { flex: 1 1 120px; }
}
@media (max-width: 720px) {
  .main-content { padding: 20px 14px 100px; }
  .overview-hero { padding: 21px 18px; }
  .overview-section-heading { padding-inline: 15px; }
  .overview-tier-grid, .overview-queue-list { padding-inline: 15px; }
  .scout-card { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; }
  .scout-card-head, .scout-card-meta, .scout-card-metrics, .scout-card-flags, .scout-card-footer { min-width: 0; width: auto; }
  .scout-card-head { grid-column: 1 / -1; }
  .scout-card-meta { grid-column: 1 / -1; }
  .scout-card-metrics { grid-column: 1 / -1; }
  .scout-card-flags { grid-column: 1; }
  .scout-card-footer { grid-column: 2; }
}

/* Front-office workflow: keep the landing page focused on the three jobs the
   site is actually meant to support instead of making it another dashboard. */
.overview-workflow { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.8fr); gap: 18px; padding: 18px 20px; border-top: 1px solid #2b302c; border-bottom: 1px solid #2b302c; background: #121413; }
.overview-workflow-heading { display: grid; align-content: center; gap: 4px; min-width: 0; }
.overview-workflow-heading .eyebrow { margin: 0; }
.overview-workflow-heading h2 { margin: 0; color: #f4e7d5; font-family: Oswald, sans-serif; font-size: 22px; letter-spacing: .2px; }
.overview-workflow-heading p { max-width: 250px; margin: 3px 0 0; color: #898e86; font-size: 11px; line-height: 1.45; }
.overview-workflow-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.workflow-action { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-content: start; gap: 2px 9px; min-width: 0; padding: 12px; border: 1px solid #303631; border-radius: 6px; color: var(--text); background: #171a18; text-align: left; transition: border-color .16s ease, background .16s ease; }
.workflow-action:hover { border-color: #a75c2c; background: #1b1e1b; }
.workflow-number { grid-row: span 2; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(232,109,29,.48); border-radius: 5px; color: var(--orange-2); font-family: Oswald, sans-serif; font-size: 11px; }
.workflow-action-copy { display: grid; gap: 3px; min-width: 0; }
.workflow-action-copy strong { overflow: hidden; color: #f5eadb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-action-copy small { color: #898e86; font-size: 9px; line-height: 1.35; }
.workflow-action-count { grid-column: 2; margin-top: 8px; color: var(--orange-2); font-size: 9px; font-weight: 800; }
.workflow-action-count b { margin-left: 4px; font-size: 13px; }
.row-quick-action-board { border-color: rgba(104,198,140,.34); color: #9dd7ae; background: rgba(104,198,140,.07); }
.row-quick-action-board:hover { border-color: rgba(104,198,140,.65); color: #d6f2dc; background: rgba(104,198,140,.13); }
@media (max-width: 900px) {
  .overview-workflow { grid-template-columns: 1fr; }
  .overview-workflow-heading p { max-width: 520px; }
}
@media (max-width: 620px) {
  .topbar-account-role { display: none; }
  .topbar-account-name { max-width: 110px; }
  .overview-workflow { padding: 16px 14px; }
  .overview-workflow-actions { grid-template-columns: 1fr; }
}

/* Match Prep keeps one active context visible across every tab. */
.match-prep-hero-controls { display: grid; justify-items: stretch; gap: 10px; min-width: 205px; }
.match-prep-context-card { padding: 10px 12px; border: 1px solid rgba(185,153,112,.34); border-radius: 8px; background: rgba(20,19,17,.84); box-shadow: inset 2px 0 var(--orange), inset 0 1px rgba(255,255,255,.03); }
.match-prep-context-card .match-prep-filter { color: var(--muted-2); }
.match-prep-context-card select { width: 100%; min-width: 0; border-color: #51483d; background: #0f1110; color: var(--paper); }
.match-prep-team-selector { display: flex; align-items: end; gap: 8px; }
.match-prep-team-selector .match-prep-step-number { margin-bottom: 7px; }
.match-prep-team-selector .match-prep-filter { min-width: 260px; }
.match-prep-player-name { display: block; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--paper); font: inherit; font-size: 14px; font-weight: 800; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.match-prep-player-name:hover { color: var(--orange-2); text-decoration: underline; text-underline-offset: 3px; }
.profile-readonly-note { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .match-prep-hero-controls { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  .match-prep-team-selector { width: 100%; }
  .match-prep-team-selector .match-prep-filter { flex: 1; min-width: 0; }
}
@media (max-width: 520px) {
  .match-prep-hero-controls { grid-template-columns: 1fr; }
  .match-prep-team-selector { align-items: stretch; }
  .match-prep-team-selector .match-prep-step-number { display: none; }
}

/* Admin controls stay available without competing with the scouting workflow. */
.admin-tools-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 18px minmax(0, auto) 1fr auto;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 10px;
  border: 1px solid #2d342e;
  border-radius: 6px;
  color: #c2c0b7;
  background: #131614;
  text-align: left;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2px;
}
.admin-tools-toggle:hover,
.admin-tools-toggle.is-open {
  border-color: #6b4b30;
  color: #f0e9dc;
  background: #181b19;
}
.admin-tools-icon { color: var(--orange-2); font-size: 13px; }
.admin-tools-hint { overflow: hidden; color: #737970; font-size: 9px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.admin-tools-chevron { color: var(--orange-2); font-size: 16px; line-height: 1; }
.admin-tools-panel { display: none; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #2b302c; }
.admin-tools-panel.is-open { display: grid; }
.admin-tools-panel .source-card,
.admin-tools-panel .sidebar-footer { margin: 0; }
.admin-tools-panel .source-card { padding: 11px; }
.admin-tools-panel .sidebar-footer { padding: 0 2px; }

/* Tier color is a navigation cue, not a second theme. Keep it to thin rails,
   labels, and active states so the board remains calm and readable. */
.overview-tier,
.scout-card { position: relative; overflow: hidden; }
.overview-tier::before,
.scout-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--tier-color, var(--orange)); opacity: .9; }
.overview-tier { border-top-color: color-mix(in srgb, var(--tier-color, var(--orange)) 68%, #2b302c); }
.overview-tier .overview-tier-head span { color: color-mix(in srgb, var(--tier-color, #f4e7d5) 78%, white); }
.scout-card { border-left: 2px solid color-mix(in srgb, var(--tier-color, var(--orange)) 72%, #292e2a); }
.tier-premier { --tier-color: #d4a7ff; }
.tier-elite { --tier-color: #8db8ff; }
.tier-challenger { --tier-color: #7fe0a7; }
.tier-contender { --tier-color: #f3cf73; }
.tier-prospect { --tier-color: #ff9b55; }
.tier-recruit { --tier-color: #ff8582; }

@media (max-width: 1050px) {
  .admin-tools-toggle,
  .admin-tools-panel { display: none !important; }
}

/* Release polish: visible keyboard focus and a quiet fallback for users who
   prefer less motion. */
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 2px;
}
button[disabled] { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.nav-section-label {
  margin: 18px 10px 7px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.match-prep-nav-label { margin-top: 24px; }
.match-prep { display: block; }
.match-prep-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(138,62,22,.28), rgba(25,25,25,.94) 42%);
}
.match-prep-hero h2 { margin: 5px 0 7px; font-family: Oswald, sans-serif; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.02em; }
.match-prep-hero p:not(.eyebrow) { margin: 0; max-width: 670px; color: var(--muted); }
.match-prep-source { margin-top: 16px; color: var(--stone); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.match-prep-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 150px; }
.match-prep-actions .text-button { text-align: center; }
.match-prep-filter { display: grid; gap: 4px; color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.match-prep-filter select { min-width: 150px; height: 38px; }
.match-prep-setup { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(20,20,20,.72); }
.match-prep-setup-fields { display: flex; flex-wrap: wrap; gap: 14px; }
.match-prep-opponent-filter select { min-width: 240px; }
.match-prep-setup-note { color: var(--muted-2); font-size: 12px; }
.match-prep-overview-copy { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.match-prep-link-button { padding: 0; border: 0; background: transparent; color: var(--paper); text-align: left; cursor: pointer; }
.match-prep-link-button:hover { color: var(--orange-2); text-decoration: underline; }
.match-prep-button.compact, .secondary-button.compact { padding: 7px 10px; font-size: 11px; }
.match-prep-dossier-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 16px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.match-prep-dossier-note { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.match-prep-roster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.match-prep-player-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18,19,18,.78); }
.match-prep-player-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-prep-player-head > div:nth-child(2) { min-width: 0; flex: 1; }
.match-prep-player-head strong, .match-prep-player-head span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-prep-player-head strong { color: var(--paper); font-size: 14px; }
.match-prep-player-head span { margin-top: 3px; color: var(--muted-2); font-size: 11px; }
.match-prep-player-avatar { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #242622; color: var(--orange-2); font-weight: 800; }
.match-prep-player-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-prep-player-level { color: var(--orange-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.match-prep-player-metrics { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 14px; }
.match-prep-player-metrics span { display: grid; gap: 3px; padding: 7px 5px; border-radius: 6px; background: rgba(255,255,255,.035); text-align: center; }
.match-prep-player-metrics small { color: var(--muted-2); font-size: 9px; letter-spacing: .06em; }
.match-prep-player-metrics b { color: var(--paper); font-size: 12px; }
.match-prep-player-empty, .match-prep-inline-loading, .match-prep-inline-error { margin: 12px 0 0; color: var(--muted-2); font-size: 12px; }
.match-prep-inline-error { color: #ef9b8f; }
.match-prep-veto { border: 1px solid var(--line); border-radius: 14px; background: rgba(20,20,20,.72); padding: 20px; }
.match-prep-veto-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.match-prep-veto-head h3 { margin: 5px 0 6px; font-family: Oswald, sans-serif; font-size: 26px; }
.match-prep-veto-head p { margin: 0; color: var(--muted); font-size: 13px; }
.match-prep-veto-identity { display: flex; align-items: baseline; gap: 7px; margin-top: 8px !important; }
.match-prep-veto-identity span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-prep-veto-identity strong { color: var(--orange-2); font-size: 12px; }
.match-prep-veto-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.match-prep-veto-slots { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 8px; margin-top: 22px; }
.match-prep-veto-slot { display: grid; gap: 5px; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.025); }
.match-prep-veto-slot.opponent-slot { border-color: rgba(232,109,29,.48); }
.match-prep-veto-slot.pick-slot { border-color: rgba(183,169,140,.58); background: rgba(183,169,140,.07); }
.match-prep-veto-slot.pick-slot > b { color: var(--orange-2); }
.match-prep-veto-slot > span { color: var(--muted-2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-prep-veto-slot > b { color: var(--paper); font-size: 12px; }
.match-prep-veto-slot select { min-width: 0; width: 100%; }
.match-prep-veto-slot small { min-height: 28px; color: var(--muted-2); font-size: 10px; line-height: 1.35; }
.match-prep-veto-result { display: grid; gap: 4px; margin-top: 16px; padding: 17px; border: 1px dashed var(--line-strong); border-radius: 10px; background: rgba(0,0,0,.18); }
.match-prep-veto-result.has-final { border-color: var(--orange-2); background: rgba(155,69,20,.13); }
.match-prep-veto-result strong { color: var(--paper); font-family: Oswald, sans-serif; font-size: 28px; }
.match-prep-veto-result > span:last-child { color: var(--muted); font-size: 12px; }
.match-prep-veto-scenarios { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,20,20,.7); }
.match-prep-veto-scenarios .match-prep-panel-heading { align-items: start; }
.match-prep-veto-scenarios .match-prep-panel-heading p { max-width: 680px; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.match-prep-veto-scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.match-prep-veto-scenario { padding: 14px; border: 1px solid rgba(185,153,140,.28); border-radius: 10px; background: rgba(10,11,10,.46); }
.match-prep-veto-scenario-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.match-prep-scenario-number { color: var(--paper); font-size: 13px; font-weight: 800; }
.match-prep-veto-scenario-head p { margin: 5px 0 0; color: var(--muted-2); font-size: 11px; line-height: 1.4; }
.match-prep-veto-scenario-sequence { display: grid; gap: 5px; margin-top: 13px; }
.match-prep-veto-scenario-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px 8px; border-left: 2px solid rgba(242,106,0,.44); background: rgba(255,255,255,.03); }
.match-prep-veto-scenario-step span { color: var(--muted-2); font-size: 10px; }
.match-prep-veto-scenario-step b { color: var(--paper); font-size: 11px; text-align: right; }
.match-prep-veto-scenario-step small { grid-column: 1 / -1; color: var(--dim); font-size: 9px; }
.match-prep-veto-scenario-note { display: block; margin-top: 10px; color: var(--dim); font-size: 10px; line-height: 1.35; }
.match-prep-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 18px 0 12px; border-bottom: 1px solid var(--line); }
.match-prep-tab { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; background: rgba(20,20,20,.78); color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.match-prep-tab:hover, .match-prep-tab.active { border-color: var(--orange-2); color: var(--paper); background: rgba(155,69,20,.22); }
.match-prep-toolbar { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.match-prep-toolbar .search-wrap { flex: 1; max-width: 520px; }
.match-prep-toolbar-note { color: var(--muted-2); font-size: 12px; }
.match-prep-content { min-width: 0; }
.match-prep-overview-grid { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.5fr); gap: 16px; }
.match-prep-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(20,20,20,.7); padding: 20px; }
.match-prep-brief { background: linear-gradient(145deg, rgba(91,42,19,.45), rgba(20,20,20,.78)); }
.match-prep-brief h3 { margin: 8px 0 10px; font-family: Oswald, sans-serif; font-size: 24px; }
.match-prep-brief p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.match-prep-stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.match-prep-stat-row span { display: grid; gap: 2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.match-prep-stat-row strong { color: var(--paper); font-size: 22px; letter-spacing: 0; }
.match-prep-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.match-prep-panel-heading h3 { margin: 5px 0 0; font-family: Oswald, sans-serif; font-size: 22px; }
.match-prep-panel-heading > span { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.match-prep-table-wrap { overflow-x: auto; }
.match-prep-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.match-prep-table th { padding: 9px 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted-2); font-size: 10px; letter-spacing: .1em; text-align: left; white-space: nowrap; }
.match-prep-table td { padding: 12px 10px; border-bottom: 1px solid rgba(108,96,81,.22); color: var(--stone); font-size: 12px; vertical-align: top; }
.match-prep-table tr:last-child td { border-bottom: 0; }
.match-prep-table td strong { color: var(--paper); }
.match-prep-notes { min-width: 240px; line-height: 1.45; }
.match-prep-empty { padding: 28px !important; color: var(--muted-2) !important; text-align: center; }
.match-prep-empty-state { display: grid; justify-items: center; gap: 10px; padding: 72px 24px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); text-align: center; }
.match-prep-empty-state strong { color: var(--paper); font-family: Oswald, sans-serif; font-size: 24px; }
.match-prep-empty-state.error strong { color: #ef9b8f; }
@media (max-width: 860px) {
  .match-prep-hero, .match-prep-toolbar { flex-direction: column; align-items: stretch; }
  .match-prep-actions { flex-direction: row; flex-wrap: wrap; }
  .match-prep-actions > * { flex: 1; }
  .match-prep-setup, .match-prep-veto-head { align-items: stretch; flex-direction: column; }
  .match-prep-setup-note { margin-top: 2px; }
  .match-prep-overview-grid { grid-template-columns: 1fr; }
  .match-prep-toolbar .search-wrap { max-width: none; }
  .match-prep-veto-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-prep-veto-scenario-grid { grid-template-columns: 1fr; }
  .match-prep-dossier-note { margin-left: 0; }
}
@media (max-width: 520px) {
  .match-prep-veto-slots { grid-template-columns: 1fr; }
  .match-prep-player-metrics { grid-template-columns: repeat(3, 1fr); }
}
.draft-room-actions { min-width: 0; flex: 0 1 auto; max-width: 100%; }
.draft-room-actions .secondary-button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Match Prep command surface: the data remains deep, but the first screen stays decisive. */
.match-prep-setup {
  align-items: center;
  margin: 18px 0 22px;
  padding: 18px 20px;
  background: linear-gradient(110deg, rgba(55,28,15,.72), rgba(19,20,19,.9) 48%);
}
.match-prep-setup > div:first-child { min-width: 190px; }
.match-prep-setup h3 { margin: 4px 0 3px; color: var(--paper); font-family: Oswald, sans-serif; font-size: 21px; }
.match-prep-setup p { margin: 0; color: var(--muted); font-size: 12px; }
.match-prep-selector { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.match-prep-step { display: flex; align-items: end; gap: 8px; }
.match-prep-step-number { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 7px; border: 1px solid rgba(242,117,27,.55); border-radius: 50%; color: var(--orange-2); font-size: 10px; font-weight: 900; }
.match-prep-step-divider { margin-bottom: 9px; color: var(--orange-2); font-size: 16px; opacity: .7; }
.match-prep-opponent-filter select { min-width: 260px; }
.match-prep-chooser { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18,19,18,.72); }
.match-prep-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.match-prep-section-heading h3, .match-prep-section-heading h4 { margin: 5px 0 3px; color: var(--paper); font-family: Oswald, sans-serif; }
.match-prep-section-heading h3 { font-size: 28px; }
.match-prep-section-heading h4 { font-size: 19px; }
.match-prep-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.match-prep-picker-search { max-width: 420px; margin: 2px 0 18px; }
.match-prep-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.match-prep-team-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: rgba(12,13,13,.75); transition: border-color .16s ease, transform .16s ease, background .16s ease; }
.match-prep-team-card:hover { border-color: rgba(242,117,27,.72); background: rgba(49,29,18,.6); transform: translateY(-2px); }
.match-prep-team-card > button { display: flex; align-items: start; justify-content: space-between; gap: 10px; width: 100%; padding: 15px 15px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.match-prep-team-card-main { min-width: 0; display: grid; gap: 3px; }
.match-prep-team-card-tier { color: var(--orange-2); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.match-prep-team-card-main strong { overflow: hidden; color: var(--paper); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.match-prep-team-card-main small { overflow: hidden; color: var(--muted-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.match-prep-team-card-arrow { color: var(--orange-2); font-size: 18px; line-height: 1; }
.match-prep-team-card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.match-prep-team-card-stats span { display: grid; gap: 3px; padding: 9px 10px; background: rgba(22,23,22,.92); }
.match-prep-team-card-stats small, .match-prep-brief-metrics small, .match-prep-compact-metrics small { color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.match-prep-team-card-stats b { color: var(--stone); font-size: 12px; font-weight: 700; }
.match-prep-choice-empty { display: grid; gap: 5px; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); text-align: center; }
.match-prep-choice-empty strong { color: var(--paper); font-size: 14px; }
.match-prep-brief-shell { display: grid; gap: 14px; }
.match-prep-brief-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 24px; border: 1px solid rgba(242,117,27,.35); border-radius: 16px; background: linear-gradient(120deg, rgba(74,34,17,.64), rgba(18,19,18,.92) 60%); }
.match-prep-brief-header h3 { margin: 6px 0 4px; color: var(--paper); font-family: Oswald, sans-serif; font-size: clamp(28px, 3vw, 39px); }
.match-prep-brief-header p { margin: 0; color: var(--muted); font-size: 13px; }
.match-prep-brief-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.match-prep-brief-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.match-prep-brief-metrics > div { display: grid; gap: 4px; padding: 15px 17px; background: rgba(20,21,20,.94); }
.match-prep-brief-metrics strong { color: var(--paper); font-family: Oswald, sans-serif; font-size: 24px; }
.match-prep-brief-metrics span { color: var(--muted-2); font-size: 10px; }
.match-prep-brief-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .8fr); gap: 14px; }
.match-prep-panel.match-prep-brief-roster { grid-row: span 2; }
.match-prep-compact-roster { display: grid; gap: 7px; }
.match-prep-compact-player { padding: 11px 12px; border: 1px solid rgba(108,96,81,.35); border-radius: 9px; background: rgba(9,10,10,.48); }
.match-prep-compact-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.match-prep-compact-metrics span { display: grid; gap: 2px; padding: 5px 6px; border-radius: 5px; background: rgba(255,255,255,.035); }
.match-prep-compact-metrics b { color: var(--paper); font-size: 11px; }
.match-prep-signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.match-prep-signal-card { display: grid; gap: 5px; padding: 12px; border: 1px solid rgba(108,96,81,.35); border-radius: 9px; background: rgba(9,10,10,.48); }
.match-prep-signal-card span { color: var(--muted-2); font-size: 10px; text-transform: uppercase; }
.match-prep-signal-card strong { color: var(--paper); font-family: Oswald, sans-serif; font-size: 20px; }
.match-prep-signal-card small { color: var(--muted); font-size: 10px; }
.match-prep-veto-signal > strong { display: block; margin: 6px 0 8px; color: var(--orange-2); font-family: Oswald, sans-serif; font-size: 23px; }
.match-prep-veto-signal p { margin: 0 0 8px; color: var(--stone); font-size: 11px; line-height: 1.45; }
.match-prep-veto-signal > small { color: var(--muted-2); font-size: 10px; }
.match-prep-analysis { display: grid; gap: 14px; }
.match-prep-analysis-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(18,19,18,.72); }
.match-prep-analysis-head h3 { margin: 5px 0 3px; color: var(--paper); font-family: Oswald, sans-serif; font-size: 23px; }
.match-prep-analysis-head p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 980px) {
  .match-prep-setup { align-items: stretch; flex-direction: column; }
  .match-prep-selector { width: 100%; margin-left: 0; }
  .match-prep-step { flex: 1; }
  .match-prep-step .match-prep-filter, .match-prep-step select { width: 100%; }
  .match-prep-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .match-prep-selector { align-items: stretch; flex-direction: column; }
  .match-prep-step-divider { display: none; }
  .match-prep-team-grid, .match-prep-brief-grid { grid-template-columns: 1fr; }
  .match-prep-brief-metrics { grid-template-columns: repeat(2, 1fr); }
  .match-prep-brief-header, .match-prep-analysis-head { align-items: stretch; flex-direction: column; }
  .match-prep-brief-actions { justify-content: start; }
  .match-prep-signal-grid { grid-template-columns: 1fr; }
  .match-prep-panel.match-prep-brief-roster { grid-row: auto; }
}
.draft-night-link { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 1320px) {
  .draft-room-toolbar { align-items: flex-start; }
  .draft-room-actions { width: 100%; justify-content: flex-start; }
}
.draft-add-controls { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-bottom: 1px solid rgba(185,153,112,.18); }
.draft-add-controls > span { color: var(--dim); font-size: 10px; }
.draft-add-panel { position: relative; border-bottom: 1px solid rgba(185,153,112,.18); background: rgba(255,255,255,.018); }
.draft-search-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 26px; }
.draft-tier-tabs { display: flex; align-items: stretch; gap: 4px; overflow-x: auto; padding: 10px 26px 0; border-bottom: 1px solid rgba(185,153,112,.18); scrollbar-width: thin; }
.draft-mode-tabs { display: flex; align-items: center; gap: 5px; padding: 10px 26px 0; border-bottom: 1px solid rgba(185,153,112,.18); }
.draft-mode-tab { min-height: 32px; padding: 0 12px; border: 1px solid transparent; border-bottom: 0; border-radius: 7px 7px 0 0; color: var(--dim); background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .35px; cursor: pointer; }
.draft-mode-tab:hover { color: var(--text); background: rgba(185,153,112,.08); }
.draft-mode-tab.active { color: #ffe1bc; border-color: rgba(185,153,112,.3); background: #171512; box-shadow: inset 0 2px var(--orange); }
.next-targets-panel { margin: 16px 16px 0; padding: 15px; border: 1px solid rgba(185,153,112,.22); border-radius: 11px; background: linear-gradient(145deg, rgba(38,29,21,.72), rgba(19,17,14,.72)); }
.next-targets-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.next-targets-heading h3 { margin-top: 3px; color: #f7e8d5; font-size: 20px; }
.next-targets-heading p { margin-top: 4px; color: var(--dim); font-size: 10px; }
.next-targets-count { color: var(--orange-2); font-size: 10px; font-weight: 800; white-space: nowrap; }
.next-targets-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.next-target-card { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid rgba(185,153,112,.2); border-radius: 8px; color: var(--text); background: rgba(12,11,10,.62); text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, transform .14s ease; }
.next-target-card:hover { border-color: var(--orange); background: rgba(55,32,17,.68); transform: translateY(-1px); }
.next-target-rank { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; color: #1d1209; background: var(--orange); font-size: 10px; font-weight: 900; }
.next-target-avatar { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 7px; overflow: hidden; }
.next-target-player { min-width: 0; flex: 1; display: grid; gap: 2px; }
.next-target-player strong, .next-target-player small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-target-player strong { color: var(--text); font-size: 11px; }
.next-target-player small { color: var(--dim); font-size: 9px; }
.next-target-stat { display: grid; gap: 2px; min-width: 42px; }
.next-target-stat small { color: var(--dim); font-size: 8px; letter-spacing: .5px; }
.next-target-stat strong { color: #f3e5d4; font-size: 11px; }
.next-target-card .badge { flex: 0 0 auto; font-size: 9px; }
.next-target-priority { min-width: 40px; color: var(--stone); font-size: 9px; font-weight: 800; text-align: right; }
.next-target-priority.empty { color: var(--dim); font-weight: 600; }
.next-targets-empty { margin-top: 12px; padding: 12px; border: 1px dashed rgba(185,153,112,.22); border-radius: 8px; color: var(--muted); font-size: 10px; }
.draft-tier-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 0 13px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .35px; cursor: pointer; transition: color .14s ease, background .14s ease, border-color .14s ease; }
.draft-tier-tab:hover { color: var(--text); background: rgba(185,153,112,.08); }
.draft-tier-tab strong { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 99px; color: var(--dim); background: rgba(185,153,112,.12); font-size: 10px; }
.draft-tier-tab.active { color: #ffe1bc; border-color: rgba(185,153,112,.3); background: #171512; box-shadow: inset 0 2px var(--orange); }
.draft-tier-tab.active strong { color: #1d1209; background: var(--orange); }
.draft-search-wrap { flex: 1; max-width: 620px; height: 44px; }
.draft-search-hint { color: var(--dim); font-size: 10px; }
.draft-search-results { position: absolute; left: 26px; top: 67px; z-index: 30; width: min(620px, calc(100% - 52px)); border: 1px solid #705338; border-radius: 10px; overflow: hidden; background: #1a1713; box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.draft-search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-bottom: 1px solid var(--line-soft); }
.draft-search-result:last-child { border-bottom: 0; }
.draft-search-result > span:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.draft-search-result > span:first-child > span { display: grid; gap: 2px; min-width: 0; }
.draft-search-result strong, .draft-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-search-result strong { color: var(--text); font-size: 12px; }
.draft-search-result small { color: var(--dim); font-size: 10px; }
.search-result-avatar { width: 31px; height: 31px; border-radius: 8px; flex: 0 0 auto; }
.draft-search-result .secondary-button { min-height: 28px; padding-inline: 10px; font-size: 10px; }
.search-on-board { color: var(--green); font-size: 10px; white-space: nowrap; }
.draft-search-empty { padding: 16px; color: var(--muted); font-size: 11px; }
.draft-room-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
.draft-plan-workspace { margin: 16px; border: 1px solid rgba(185,153,112,.22); border-radius: 11px; background: rgba(12,11,10,.55); overflow: hidden; }
.draft-plan-form { min-width: 0; }
.draft-plan-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 18px 18px 16px; border-bottom: 1px solid rgba(185,153,112,.18); background: linear-gradient(90deg, rgba(185,153,112,.05), transparent 58%); }
.draft-plan-header h3 { margin-top: 3px; color: #f7e8d5; font-size: 21px; }
.draft-plan-header p { max-width: 650px; margin-top: 5px; color: var(--dim); font-size: 10px; line-height: 1.5; }
.draft-plan-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.draft-plan-notice { color: var(--green); font-size: 10px; white-space: nowrap; }
.season-readonly-inline { color: var(--dim); font-size: 10px; white-space: nowrap; }
.draft-plan-table-scroll { overflow: auto; }
.draft-plan-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.draft-plan-table th { padding: 10px 11px; border-bottom: 1px solid #4a3c2d; background: #171512; color: #a49078; font-size: 9px; letter-spacing: .7px; text-align: left; }
.draft-plan-table td { padding: 8px 10px; border-bottom: 1px solid rgba(73,61,46,.56); vertical-align: middle; }
.draft-plan-table tr:last-child td { border-bottom: 0; }
.draft-plan-table select, .draft-plan-table input { width: 100%; min-height: 32px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #151311; font-size: 10px; }
.draft-plan-table select { padding: 0 7px; }
.draft-plan-table input { padding: 0 8px; }
.draft-plan-table select:focus, .draft-plan-table input:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 2px rgba(242,108,13,.12); }
.draft-plan-table select:disabled, .draft-plan-table input:disabled { opacity: .68; cursor: not-allowed; }
.plan-slot-number { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(185,153,112,.3); border-radius: 7px; color: var(--orange-2); background: rgba(185,153,112,.08); font-size: 11px; font-weight: 900; }
.draft-plan-loading, .draft-plan-empty { padding: 30px 18px; color: var(--muted); font-size: 11px; }
.draft-plan-empty { display: grid; gap: 5px; border-top: 1px solid rgba(185,153,112,.12); }
.draft-plan-empty strong { color: var(--text); font-size: 13px; }
.draft-plan-empty span { color: var(--dim); }
.draft-plan-form { --plan-accent: var(--orange); }
.draft-plan-form.tier-premier { --plan-accent: #d4a7ff; }
.draft-plan-form.tier-elite { --plan-accent: #8db8ff; }
.draft-plan-form.tier-challenger { --plan-accent: #7fe0a7; }
.draft-plan-form.tier-contender { --plan-accent: #f3cf73; }
.draft-plan-form.tier-prospect { --plan-accent: #ff9b55; }
.draft-plan-form.tier-recruit { --plan-accent: #ff8582; }
.draft-plan-header { align-items: center; padding: 20px 20px 18px; background: linear-gradient(105deg, color-mix(in srgb, var(--plan-accent) 10%, transparent), transparent 64%); }
.draft-plan-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.draft-plan-tier-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--plan-accent) 44%, var(--line)); border-radius: 11px; color: var(--plan-accent); background: color-mix(in srgb, var(--plan-accent) 12%, #151311); font-size: 19px; font-weight: 900; }
.draft-plan-heading p { max-width: 680px; }
.draft-plan-progress { display: grid; gap: 2px; min-width: 74px; text-align: right; }
.draft-plan-progress strong { color: var(--plan-accent); font-size: 18px; line-height: 1; }
.draft-plan-progress span { color: var(--dim); font-size: 9px; white-space: nowrap; }
.draft-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; background: rgba(7,7,6,.25); }
.draft-pick-card { min-width: 0; padding: 13px; border: 1px solid rgba(185,153,112,.2); border-left: 3px solid rgba(185,153,112,.28); border-radius: 10px; background: linear-gradient(145deg, rgba(29,27,23,.92), rgba(15,14,12,.92)); transition: border-color .14s ease, transform .14s ease, background .14s ease; }
.draft-pick-card:hover { border-color: color-mix(in srgb, var(--plan-accent) 48%, rgba(185,153,112,.28)); background: linear-gradient(145deg, color-mix(in srgb, var(--plan-accent) 7%, #1d1b17), rgba(15,14,12,.96)); transform: translateY(-1px); }
.draft-pick-card.has-primary { border-left-color: var(--plan-accent); }
.draft-pick-card-top { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 13px; }
.draft-pick-number { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--plan-accent) 36%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--plan-accent) 10%, #161411); }
.draft-pick-number span { color: var(--dim); font-size: 7px; font-weight: 800; letter-spacing: .7px; line-height: 1; }
.draft-pick-number strong { margin-top: 2px; color: var(--plan-accent); font-size: 15px; line-height: 1; }
.draft-pick-card-title { display: grid; gap: 2px; min-width: 0; flex: 1; }
.draft-pick-card-title strong { overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.draft-pick-card-title small { overflow: hidden; color: var(--dim); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.draft-pick-state { padding: 4px 7px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--dim); background: rgba(255,255,255,.025); font-size: 8px; font-weight: 800; white-space: nowrap; }
.draft-pick-state.planned { border-color: color-mix(in srgb, var(--green) 34%, var(--line)); color: var(--green); background: rgba(104,198,140,.08); }
.draft-pick-state.backup-ready { border-color: color-mix(in srgb, var(--yellow) 34%, var(--line)); color: var(--yellow); background: rgba(232,184,92,.08); }
.plan-field { display: grid; gap: 5px; min-width: 0; }
.plan-field > span { color: var(--dim); font-size: 8px; font-weight: 800; letter-spacing: .65px; text-transform: uppercase; }
.plan-field select, .plan-field input { width: 100%; min-height: 33px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #121110; font-size: 10px; }
.plan-field select { padding: 0 8px; }
.plan-field input { padding: 0 9px; }
.plan-field select:focus, .plan-field input:focus { border-color: var(--plan-accent); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--plan-accent) 15%, transparent); }
.plan-field select:disabled, .plan-field input:disabled { opacity: .68; cursor: not-allowed; }
.plan-player-picker { position: relative; min-width: 0; }
.plan-player-input { appearance: none; }
.plan-player-input::placeholder { color: #756b5f; }
.plan-player-input.plan-input-invalid { border-color: var(--red, #dc7773); box-shadow: 0 0 0 2px rgba(220,119,115,.12); }
.plan-player-input::-webkit-search-cancel-button { cursor: pointer; filter: grayscale(1) brightness(1.8); }
.plan-primary-field select, .plan-primary-field .plan-player-input { min-height: 38px; border-color: color-mix(in srgb, var(--plan-accent) 42%, var(--line)); color: #f8eadb; background: color-mix(in srgb, var(--plan-accent) 7%, #121110); font-size: 11px; font-weight: 700; }
.plan-backups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.plan-notes-field { margin-top: 9px; }
.plan-notes-field input::placeholder { color: #756b5f; }
.draft-board-surface { min-width: 0; border: 1px solid rgba(185,153,112,.22); border-radius: 11px; background: rgba(12,11,10,.55); overflow: hidden; }
.draft-board-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 17px; border-bottom: 1px solid rgba(185,153,112,.18); }
.draft-board-heading h3 { margin-top: 3px; color: #f7e8d5; font-size: 20px; }
.draft-board-heading-meta { display: grid; gap: 3px; justify-items: end; text-align: right; }
.draft-board-heading-meta > span { color: var(--muted); font-size: 11px; }
.draft-board-heading-meta small { color: var(--dim); font-size: 9px; }
.board-kicker { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.draft-table-scroll { overflow: auto; }
.draft-table { width: 100%; min-width: 930px; border-collapse: collapse; }
.draft-table th { position: sticky; top: 0; z-index: 2; padding: 10px 9px; border-bottom: 1px solid #4a3c2d; background: #171512; color: #a49078; font-size: 9px; letter-spacing: .7px; text-align: left; }
.draft-table td { padding: 8px 9px; border-bottom: 1px solid rgba(73,61,46,.56); color: #ded7ce; font-size: 11px; white-space: nowrap; }
.draft-table .draft-compare-col { width: 34px; text-align: center; }
.draft-row { cursor: pointer; transition: background .14s ease; }
.draft-row:hover { background: linear-gradient(90deg, rgba(228,109,30,.1), rgba(185,153,112,.025)); }
.draft-player-cell { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.draft-player-cell > div { display: grid; gap: 2px; min-width: 0; }
.draft-player-cell strong, .draft-player-cell small, .draft-player-cell em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-player-cell strong { color: var(--text); font-size: 12px; }
.draft-player-cell small { color: var(--dim); font-size: 10px; }
.draft-player-cell em { max-width: 190px; margin-top: 2px; color: var(--yellow); font-size: 9px; font-style: normal; }
.draft-row-avatar { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.inline-select, .inline-priority { height: 30px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #151311; font-size: 10px; }
.inline-select { min-width: 91px; padding: 0 6px; }
.status-select.status-target { color: var(--green); border-color: rgba(104,198,140,.30); background: rgba(104,198,140,.07); }
.status-select.status-watch { color: var(--yellow); border-color: rgba(232,184,92,.30); background: rgba(232,184,92,.07); }
.status-select.status-pass { color: var(--red); border-color: rgba(239,107,101,.30); background: rgba(239,107,101,.07); }
.status-select.status-neutral { color: var(--muted); }
.inline-priority { width: 76px; padding: 0 7px; }
.inline-select:focus, .inline-priority:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 2px rgba(228,109,30,.1); }
.row-quick-action { min-height: 28px; padding: 0 10px; border: 1px solid rgba(242,106,0,.48); border-radius: 7px; color: #ffc27d; background: rgba(242,106,0,.10); font-size: 10px; font-weight: 800; white-space: nowrap; }
.row-quick-action:hover { border-color: var(--orange); color: #fff0df; background: rgba(242,106,0,.2); }
.board-action-cell { min-width: 100px; }
.draft-tier-divider td { padding: 11px 9px 6px; border-bottom-color: rgba(185,153,112,.22); background: #191612; }
.draft-tier-divider span { color: var(--stone); font-family: Oswald, sans-serif; font-size: 15px; }
.draft-tier-divider small { margin-left: 9px; color: var(--dim); font-size: 9px; }
.draft-board-empty { display: grid; gap: 6px; place-items: center; min-height: 260px; padding: 28px; color: var(--muted); text-align: center; }
.draft-board-empty strong { color: var(--text); font-family: Oswald, sans-serif; font-size: 22px; }

/* Player dossiers behave like a working drawer, not a second full page. */
#profileModal { place-items: stretch end; padding: 0; }
#profileModal .profile-modal { width: min(780px, 100%); height: 100%; max-height: none; margin: 0; border-radius: 16px 0 0 16px; }
#profileModal .modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; background: rgba(20,18,15,.86); }
@media (max-width: 720px) {
  #profileModal { place-items: end center; padding: 0; }
  #profileModal .profile-modal { width: 100%; height: min(90dvh, 760px); border-radius: 16px 16px 0 0; }
}

@media (max-width: 1050px) {
  .draft-room-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .draft-room-toolbar { align-items: flex-start; flex-direction: column; padding: 20px 16px 17px; }
  .draft-room-actions { width: 100%; justify-content: stretch; }
  .draft-room-actions .compact-label { flex: 1; min-width: 0; }
  .draft-room-actions .secondary-button { width: 100%; }
  .draft-add-controls { align-items: flex-start; flex-direction: column; padding: 13px 16px; }
  .draft-search-row { align-items: flex-start; flex-direction: column; padding: 13px 16px; }
  .draft-tier-tabs { padding-inline: 16px; }
  .next-targets-panel { margin-inline: 10px; }
  .next-targets-list { grid-template-columns: 1fr; }
  .next-target-stat { display: none; }
  .draft-search-wrap { width: 100%; max-width: none; }
  .draft-search-hint { display: none; }
  .draft-search-results { left: 16px; top: 63px; width: calc(100% - 32px); }
  .draft-room-layout { padding: 10px; }
  .draft-mode-tabs { padding-inline: 16px; }
  .draft-plan-workspace { margin: 10px; }
  .draft-plan-header { align-items: flex-start; flex-direction: column; padding: 16px; }
  .draft-plan-actions { width: 100%; justify-content: space-between; }
  .draft-plan-grid { grid-template-columns: 1fr; padding: 10px; }
  .draft-plan-heading { align-items: flex-start; }
  .draft-plan-tier-mark { width: 34px; height: 34px; font-size: 16px; }
}

/* Carry the tier palette into navigation tabs without overpowering the board. */
.tier-tab.active { border-color: color-mix(in srgb, var(--tier-color, var(--orange)) 55%, var(--line)); background: color-mix(in srgb, var(--tier-color, var(--orange)) 13%, #171512); box-shadow: inset 0 2px var(--tier-color, var(--orange)); }
.tier-tab strong { color: var(--tier-color, var(--orange-2)); }
.draft-tier-tab.active { color: color-mix(in srgb, var(--tier-color, #ffe1bc) 78%, white); border-color: color-mix(in srgb, var(--tier-color, var(--orange)) 36%, rgba(185,153,112,.3)); background: color-mix(in srgb, var(--tier-color, var(--orange)) 9%, #171512); box-shadow: inset 0 2px var(--tier-color, var(--orange)); }
.draft-tier-tab.active strong { color: #17110c; background: var(--tier-color, var(--orange)); }

/* Official LBS palette: obsidian surfaces, stone type, bronze structure, copper depth, beacon actions. */
.sidebar { border-right-color: rgba(107,96,84,.78); background: linear-gradient(180deg, rgba(27,27,27,.98), rgba(9,10,10,.98)); }
.brand-mark { background: var(--bg); border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(183,169,140,.08), 0 10px 24px rgba(0,0,0,.4); }
.nav-item:hover { border-color: rgba(107,96,84,.7); background: rgba(107,96,84,.12); }
.nav-item.active { border-color: rgba(242,106,0,.62); background: linear-gradient(90deg, rgba(242,106,0,.18), rgba(107,96,84,.10)); }
.source-card { border-color: rgba(107,96,84,.8); background: linear-gradient(155deg, rgba(138,62,22,.28), #111212); }
.primary-button { border-color: #ff8730; background: linear-gradient(135deg, #F26A00, #c94f00); }
.primary-button:hover { background: linear-gradient(135deg, #ff9133, #e05b00); box-shadow: 0 7px 18px rgba(242,106,0,.24); }
.secondary-button { background: linear-gradient(145deg, #2a2926, #1B1B1B); border-color: var(--bronze); }
.secondary-button:hover { border-color: var(--stone); background: #302d28; }
.search-wrap, select, input[type="number"] { background: #0f1010; border-color: var(--bronze); }
.search-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,0,.11); }
.modal { border-color: var(--bronze); background: linear-gradient(145deg, #20201e, #101111); }
.metric { border-color: rgba(107,96,84,.55); background: linear-gradient(145deg, #1B1B1B, #101111); }
.profile-hero { background: radial-gradient(circle at 90% 10%, rgba(242,106,0,.13), transparent 36%), linear-gradient(145deg, rgba(138,62,22,.22), #151616); }
.overview-card, .draft-room { background: linear-gradient(145deg, rgba(27,27,27,.98), rgba(13,14,14,.98)); }
.overview-hero { background: radial-gradient(circle at 92% 12%, rgba(242,106,0,.14), transparent 32%), linear-gradient(120deg, rgba(107,96,84,.09), transparent 48%); }
.table-toolbar, .board-toolbar { background: linear-gradient(90deg, rgba(107,96,84,.08), transparent 45%); }
.draft-tier-tab:hover, .tier-tab:hover { background: rgba(107,96,84,.12); }
.draft-row:hover, tbody tr:hover { background: linear-gradient(90deg, rgba(242,106,0,.09), rgba(107,96,84,.04)); }
.score-track { background: #38342e; }
.score-track i { background: var(--orange); }

/* Rendering budget: keep scrolling on the compositor instead of repainting decorative layers. */
body::before,
.main-content::before { display: none; }
.sidebar,
.compare-tray,
.modal-backdrop { backdrop-filter: none; }
.kpi-card,
.control-panel,
.table-card,
.board-card,
.overview-card,
.draft-room,
.scout-card { contain: layout paint; }
.overview-tier,
.overview-queue-item,
.scout-card,
.draft-row { content-visibility: auto; contain-intrinsic-size: 96px; }

/* Season snapshots: live boards can move; archived boards must read like a
   signed draft book and never look editable by accident. */
.season-card { margin: 14px 14px 8px; padding: 11px 12px; border: 1px solid rgba(185,153,112,.24); border-radius: 10px; background: rgba(27,27,27,.82); }
.season-label { color: var(--orange-2); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }
.season-row { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.season-row select { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: #121110; font-size: 11px; font-weight: 700; }
.season-manage-button { padding: 0; color: var(--stone); font-size: 10px; white-space: nowrap; }
.season-detail { margin-top: 7px; color: var(--dim); font-size: 9px; line-height: 1.4; }
.season-readonly-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border: 1px solid rgba(242,106,0,.34); border-radius: 999px; color: #ffc27d; background: rgba(242,106,0,.1); font-size: 9px; font-weight: 800; letter-spacing: .7px; }
.season-modal { max-width: 620px; }
.season-history { display: grid; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.season-history-heading { color: var(--stone); font-size: 10px; font-weight: 800; letter-spacing: .7px; }
.season-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 8px; background: rgba(255,255,255,.018); }
.season-history-item > span { display: grid; gap: 3px; min-width: 0; }
.season-history-item strong { color: var(--text); font-size: 12px; }
.season-history-item small { color: var(--dim); font-size: 9px; }
.season-history-item button { flex: 0 0 auto; }
.season-history-empty { color: var(--dim); font-size: 10px; }
.access-modal { width: min(720px, 100%); padding: 28px; }
.access-role-description { padding: 11px 12px; border: 1px solid rgba(185,153,112,.22); border-radius: 9px; background: rgba(107,96,84,.08); color: var(--muted); font-size: 11px; line-height: 1.45; }
.access-user-list { display: grid; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.access-user-heading { color: var(--stone); font-size: 10px; font-weight: 800; letter-spacing: .8px; }
.access-user-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.018); }
.access-user-row > span { min-width: 180px; flex: 1 1 180px; display: grid; gap: 3px; }
.access-user-row strong { color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.access-user-row small { color: var(--dim); font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.access-user-row .badge { flex: 0 0 auto; }
.access-user-row .text-button { flex: 0 0 auto; font-size: 10px; }
.season-modal form[aria-busy="true"] { opacity: .65; pointer-events: none; }
.kpi-card,
.control-panel,
.table-card,
.board-card,
.overview-card,
.draft-room,
.modal,
.scout-card { box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.02); }
/* CSC season stats cards */
.csc-stats-section{margin-top:22px;padding-top:22px;border-top:1px solid var(--line-soft)}
.csc-stats-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.csc-stats-heading-copy{min-width:0}.csc-stats-heading-copy p:not(.eyebrow){margin:5px 0 0;color:var(--dim);font-size:10px}
.csc-stats-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.csc-stats-controls .compact-label{font-size:9px;letter-spacing:.7px}.csc-stats-controls select{height:34px;min-width:128px}
.stats-picker{position:relative}.stats-picker summary{cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:8px;padding:9px 10px;color:var(--text);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.55px;white-space:nowrap}.stats-picker summary::-webkit-details-marker{display:none}.stats-picker[open] summary{border-color:var(--orange);color:var(--orange-2);background:rgba(242,106,0,.08)}
.stats-picker-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:10;display:grid;grid-template-columns:repeat(2,minmax(125px,1fr));gap:5px 12px;min-width:300px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#151310;box-shadow:var(--shadow)}.stats-picker-menu label{display:flex;align-items:center;gap:7px;color:var(--text);font-size:10px;padding:4px 0}.stats-picker-menu input{accent-color:var(--orange)}
.csc-stats-heading h3{font-size:20px;margin:2px 0 0}
.csc-stats-meta{display:flex;justify-content:space-between;gap:10px;color:var(--dim);font-size:10px;margin-bottom:10px}
.csc-stats-group{margin-top:12px}.csc-stats-group h4{color:var(--stone);text-transform:uppercase;letter-spacing:.7px;font-size:10px;margin:0 0 7px}
.csc-stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.csc-stat{border:1px solid var(--line-soft);border-radius:9px;background:linear-gradient(145deg,#151412,#101111);padding:10px 11px}.csc-stat span{display:block;color:var(--dim);font-size:9px;text-transform:uppercase;letter-spacing:.4px}.csc-stat strong{display:block;margin-top:4px;color:#f8ead8;font-family:Oswald,sans-serif;font-size:18px}
.csc-stats-empty{padding:16px;border:1px dashed var(--line-soft);color:var(--muted);font-size:11px;line-height:1.45}
@media (max-width:720px){.csc-stats-heading{align-items:flex-start;flex-direction:column}.csc-stats-controls{justify-content:flex-start;width:100%}.stats-picker-menu{left:0;right:auto;min-width:280px}.csc-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Team builder: a focused roster workspace, separate from draft-night tracking. */
.team-builder { display: grid; gap: 16px; }
.team-builder-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 26px; border: 1px solid rgba(185,153,112,.28); border-radius: 16px; background: radial-gradient(circle at 90% 10%, rgba(242,106,0,.15), transparent 36%), linear-gradient(145deg, rgba(26,23,19,.98), rgba(14,13,11,.98)); box-shadow: 0 18px 44px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035); }
.team-builder-hero h2 { color: #fff1df; font-size: 31px; }
.team-builder-hero p:not(.eyebrow) { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.team-builder-tier-control { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr); gap: 10px; min-width: 360px; }
.team-builder-tier-control .compact-label { align-items: stretch; grid-auto-flow: row; }
.team-builder-tier-control select, .team-builder-tier-control input { width: 100%; height: 38px; }
.team-builder-scenario-select { grid-column: 1 / -1; }
.team-builder-scenario-actions { display: flex; align-items: center; gap: 7px; grid-column: 1 / -1; }
.team-builder-scenario-actions input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #12100e; padding: 0 10px; outline: 0; }
.team-builder-scenario-actions .secondary-button { min-height: 34px; font-size: 10px; white-space: nowrap; }
.team-builder-scenario-actions .text-button { padding-inline: 4px; font-size: 10px; white-space: nowrap; }
.team-builder-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.team-builder-summary article { min-height: 98px; padding: 15px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: linear-gradient(145deg, #1b1b1b, #111212); }
.team-builder-summary article.is-valid { border-color: rgba(104,198,140,.42); background: linear-gradient(145deg, rgba(104,198,140,.12), #111212); }
.team-builder-summary article.is-warning { border-color: rgba(239,107,101,.48); background: linear-gradient(145deg, rgba(239,107,101,.12), #111212); }
.team-builder-summary span { display: block; color: var(--dim); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.team-builder-summary strong { display: block; margin-top: 8px; color: var(--text); font-family: Oswald, sans-serif; font-size: 27px; }
.team-builder-summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.team-builder-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr); gap: 16px; align-items: start; }
.team-builder-panel { min-width: 0; border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(145deg, rgba(27,27,27,.98), rgba(14,15,15,.98)); box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.02); }
.team-builder-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 18px 13px; border-bottom: 1px solid var(--line-soft); }
.team-builder-panel-heading h3 { margin-top: 3px; color: #fff1df; font-size: 22px; }
.team-builder-panel-heading > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.team-builder-help { margin: 0; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); color: var(--dim); font-size: 10px; line-height: 1.45; }
.team-builder-fit-warnings { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 36px; padding: 9px 13px; border: 1px solid rgba(232,184,92,.32); border-radius: 10px; background: rgba(232,184,92,.07); color: var(--muted); font-size: 10px; }
.team-builder-fit-warnings strong { color: var(--yellow); }
.team-builder-fit-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); color: #1a1207; font-weight: 900; }
.team-builder-fit-ok { color: var(--green); font-size: 16px; font-weight: 900; }
.team-builder-roster { display: grid; gap: 7px; padding: 12px; }
.team-builder-player { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto 26px; align-items: center; gap: 10px; min-height: 55px; padding: 8px 10px; border: 1px solid var(--line-soft); border-left: 3px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.018); }
.team-builder-player.is-starter { border-left-color: var(--orange); background: linear-gradient(90deg, rgba(242,106,0,.1), rgba(255,255,255,.018)); }
.team-builder-avatar, .team-builder-search-avatar { width: 34px; height: 34px; border-radius: 8px; }
.team-builder-player-copy, .team-builder-search-result > span { min-width: 0; display: grid; gap: 3px; }
.team-builder-player-copy strong, .team-builder-search-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.team-builder-player-copy small, .team-builder-search-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 10px; }
.team-builder-player-metrics { display: grid; gap: 3px; min-width: 50px; text-align: right; }
.team-builder-player-metrics small { color: var(--dim); font-size: 8px; text-transform: uppercase; }
.team-builder-player-metrics strong { color: var(--text); font-size: 11px; }
.team-builder-role { min-width: 72px; min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
.team-builder-role.starter { border-color: rgba(242,106,0,.55); color: var(--orange-2); background: rgba(242,106,0,.1); }
.team-builder-role:disabled, .team-builder-remove:disabled { opacity: .6; cursor: not-allowed; }
.team-builder-remove { width: 26px; height: 26px; border: 1px solid var(--line-soft); border-radius: 7px; color: var(--dim); background: transparent; font-size: 17px; }
.team-builder-remove:hover { color: var(--red); border-color: rgba(239,107,101,.45); }
.team-builder-empty, .team-builder-options-empty, .team-builder-search-empty, .team-builder-loading { padding: 25px 18px; color: var(--dim); font-size: 11px; line-height: 1.5; }
.team-builder-empty strong, .team-builder-options-empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.team-builder-search-panel { overflow: visible; }
.team-builder-search-wrap { margin: 14px; height: 42px; }
.team-builder-search-results { display: grid; gap: 6px; max-height: 480px; overflow: auto; padding: 0 12px 12px; }
.team-builder-search-result { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.018); }
.team-builder-search-result .secondary-button { min-height: 29px; padding-inline: 10px; font-size: 10px; }
.team-builder-added { color: var(--green); font-size: 10px; font-weight: 800; }
.team-builder-options-panel { overflow: hidden; }
.team-builder-options { display: grid; gap: 8px; padding: 12px; }
.team-builder-option { padding: 11px 12px; border: 1px solid var(--line-soft); border-left: 3px solid var(--green); border-radius: 10px; background: rgba(104,198,140,.035); }
.team-builder-option.over-cap { border-left-color: var(--red); background: rgba(239,107,101,.035); }
.team-builder-option.current { box-shadow: inset 0 0 0 1px rgba(242,106,0,.35); }
.team-builder-option-head { display: flex; align-items: center; gap: 9px; }
.team-builder-option-rank { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.06); color: var(--stone); font-family: Oswald, sans-serif; }
.team-builder-option-head > div { min-width: 0; flex: 1; display: grid; gap: 2px; }
.team-builder-option-head strong { font-size: 11px; }
.team-builder-option-head small { color: var(--dim); font-size: 9px; }
.team-builder-option-status { color: var(--green); font-size: 9px; font-weight: 800; white-space: nowrap; }
.team-builder-option.over-cap .team-builder-option-status { color: var(--red); }
.team-builder-option-players { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.team-builder-option-players > span { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: 5px; min-width: 0; }
.team-builder-mini-avatar { width: 22px; height: 22px; border-radius: 6px; grid-row: span 2; }
.team-builder-option-players b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.team-builder-option-players em { color: var(--dim); font-size: 8px; font-style: normal; }
.team-builder-option-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; color: var(--dim); font-size: 9px; }
.team-builder-option-meta strong { color: var(--text); font-size: 10px; }
.team-builder-option-meta .secondary-button { margin-left: auto; min-height: 28px; padding-inline: 10px; font-size: 10px; }
.team-builder-current-label { margin-left: auto; color: var(--orange-2); font-weight: 800; }
@media (max-width: 1050px) { .team-builder-layout { grid-template-columns: 1fr; } .team-builder-search-results { max-height: 280px; } }
@media (max-width: 720px) { .team-builder-hero { align-items: flex-start; flex-direction: column; padding: 20px 16px; } .team-builder-hero h2 { font-size: 27px; } .team-builder-tier-control { width: 100%; min-width: 0; grid-template-columns: 1fr 1fr; } .team-builder-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-builder-player { grid-template-columns: 34px minmax(0, 1fr) auto 26px; } .team-builder-player-metrics { display: none; } .team-builder-role { min-width: 65px; } .team-builder-option-players { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-builder-option-meta { gap: 8px; } .team-builder-scenario-actions { align-items: stretch; flex-wrap: wrap; } .team-builder-scenario-actions input { flex-basis: 100%; height: 34px; } }

/* Final visual tokens are kept at the end so later feature-specific rules do
   not accidentally reintroduce the old glossy dashboard treatment. */
body { background: #0b0d0c; }
.sidebar { background: #101211; border-right-color: #2d302c; }
.brand-mark { border-radius: 7px; box-shadow: none; border-color: #5f503c; }
.source-card { border-radius: 7px; background: #141615; box-shadow: none; border-color: #2a2e2b; }
.nav-item { border-radius: 5px; }
.nav-item.active { background: rgba(232,109,29,.11); box-shadow: inset 2px 0 var(--orange); }
.main-content { padding: 30px clamp(22px, 3vw, 48px) 96px; }
.main-content::before { display: none; }
.topbar { padding-bottom: 17px; border-bottom-color: #2c302c; }
.topbar::after { height: 1px; width: 58px; background: var(--orange); }
h1 { text-shadow: none; }
.last-sync { display: none; }
.primary-button, .secondary-button, .clear-button, .page-button { border-radius: 6px; box-shadow: none; }
.primary-button { background: var(--orange); border-color: #f08335; }
.primary-button:hover { background: #f07a27; box-shadow: none; }
.secondary-button { background: #1a1d1b; border-color: #4a4f49; }
.secondary-button:hover { background: #202421; border-color: #697067; }
.kpi-grid { gap: 1px; margin-bottom: 13px; border: 1px solid #2b302c; border-radius: 7px; overflow: hidden; background: #2b302c; }
.kpi-card { min-height: 92px; padding: 15px 16px; border: 0; border-radius: 0; background: #141615; box-shadow: none; }
.kpi-card::before, .kpi-card::after { display: none; }
.kpi-card.accent { border: 0; background: #171914; box-shadow: inset 2px 0 var(--orange); }
.control-panel, .table-card, .board-card, .overview-card, .draft-room, .team-builder-panel { border-radius: 7px; box-shadow: none; }
.control-panel { padding: 13px; border-color: #2b302c; background: #111312; }
.search-wrap { border-radius: 6px; background: #0d0f0e; border-color: #3f453f; box-shadow: none; }
.search-wrap:focus-within { border-color: #b15b25; box-shadow: 0 0 0 2px rgba(232,109,29,.1); }
select, input[type="number"] { height: 36px; border-radius: 6px; background: #151817; border-color: #3e443e; }
.table-card { border-color: #2b302c; background: #111312; }
.table-toolbar { min-height: 52px; background: #151817; }
th { background: #151817; border-bottom-color: #343a34; }
tbody tr:hover { background: rgba(232,109,29,.055); }
.badge { min-height: 21px; padding: 0 7px; border-radius: 4px; font-size: 9px; }
.avatar { border-radius: 6px; box-shadow: none; }
.overview-card, .draft-room { background: #111312; }
.overview-hero { padding: 24px 25px 22px; background: #151817; }
.overview-hero h2 { font-size: clamp(28px, 3.3vw, 37px); }
.overview-hero p:not(.eyebrow) { margin-top: 8px; color: #92968e; font-size: 12px; line-height: 1.45; }
.overview-stats { background: #2b302c; }
.overview-stat { min-height: 96px; padding: 15px 17px; background: #141615; }
.overview-stat strong { margin-top: 7px; font-size: 27px; }
.overview-section-heading { padding: 20px 20px 11px; }
.overview-tier-grid { gap: 7px; padding: 0 20px 20px; }
.overview-tier { border-radius: 6px; background: #171a18; }
.overview-tier:hover { transform: none; background: #1b1e1b; }
.overview-queue-list { gap: 3px; padding: 0 20px; }
.overview-queue-item { border-radius: 5px; background: #151817; }
.board-toolbar, .draft-room-toolbar { padding: 18px 19px 15px; background: #151817; }
.board-toolbar h2, .draft-room-toolbar h2 { font-size: 27px; }
.board-subtitle, .draft-room-toolbar p:not(.eyebrow) { color: #898e86; font-size: 11px; }
.tier-tabs { padding: 8px 12px; background: #121413; }
.tier-tab { border-radius: 5px; background: #161918; }
.board-grid { grid-template-columns: 1fr; gap: 0; padding: 0; border-top: 1px solid #2b302c; }
.scout-card { display: flex; align-items: center; gap: 17px; padding: 11px 15px; border: 0; border-bottom: 1px solid #292e2a; border-radius: 0; background: #141615; box-shadow: none; }
.scout-card:hover { transform: none; background: #181b19; box-shadow: none; }
.scout-card-head { flex: 1 1 240px; min-width: 210px; }
.scout-card-meta { flex: 0 0 185px; margin: 0; }
.scout-card-metrics { flex: 0 0 260px; padding: 0; border: 0; }
.scout-card-flags { flex: 0 1 170px; min-width: 0; margin: 0; }
.scout-card-footer { flex: 0 0 100px; margin: 0; display: grid; gap: 3px; justify-items: end; }
.profile-modal { border-radius: 8px; }
.profile-hero { padding: 27px 47px 19px 26px; background: #171a18; }
.profile-hero::after { opacity: .025; }
.profile-avatar { border-radius: 9px; box-shadow: none; }
.metric { border-radius: 6px; background: #141615; border-color: #343a34; }
.form-section { border-top-color: #2e342f; }
.field input, .field select, .field textarea { border-radius: 6px; background: #0f1110; border-color: #3e443e; }
.team-builder-hero { padding: 24px; border-radius: 7px; background: #151817; box-shadow: none; }
.team-builder-hero h2 { font-size: 28px; }
.team-builder-summary { gap: 1px; border: 1px solid #2b302c; border-radius: 7px; overflow: hidden; background: #2b302c; }
.team-builder-summary article { min-height: 92px; border: 0; border-radius: 0; background: #141615; }
.team-builder-panel { background: #141615; }
.team-builder-panel-heading { padding: 15px 16px 11px; }
.team-builder-panel-heading h3 { font-size: 20px; }
.team-builder-player, .team-builder-search-result, .team-builder-option { border-radius: 6px; }
.tier-change-alerts { margin: 0 26px 12px; padding: 14px 16px; border: 1px solid rgba(242,106,0,.34); border-radius: 9px; background: linear-gradient(135deg, rgba(95,45,19,.34), rgba(28,25,20,.78)); }
.tier-alert-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tier-alert-heading h3 { margin-top: 3px; font-size: 17px; }
.tier-alert-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.tier-alert-heading > strong { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 999px; color: #25150b; background: var(--orange); font-size: 11px; }
.tier-alert-list { display: grid; gap: 7px; margin-top: 12px; }
.tier-alert-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 10px; border: 1px solid rgba(185,153,112,.18); border-radius: 7px; background: rgba(16,17,16,.64); }
.tier-alert-player { display: grid; gap: 3px; min-width: 0; }
.tier-alert-player strong { color: var(--text); font-size: 12px; }
.tier-alert-player small { color: #ffc17d; font-size: 10px; font-weight: 800; }
.tier-alert-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tier-alert-actions button { min-height: 28px; padding-inline: 9px; font-size: 10px; }
.tier-placement-modal { width: min(500px, 100%); }
.tier-placement-modal .modal-heading { margin-bottom: 18px; }
.live-tier-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.25; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .main-content { padding: 25px 22px 100px; }
  .scout-card { flex-wrap: wrap; }
  .scout-card-head { flex: 1 1 230px; }
  .scout-card-meta { flex: 1 1 170px; }
  .scout-card-metrics { flex: 1 1 250px; }
  .scout-card-flags, .scout-card-footer { flex: 1 1 120px; }
}
@media (max-width: 720px) {
  .main-content { padding: 20px 14px 100px; }
  .overview-hero { padding: 21px 18px; }
  .overview-section-heading { padding-inline: 15px; }
  .overview-tier-grid, .overview-queue-list { padding-inline: 15px; }
  .scout-card { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; }
  .scout-card-head, .scout-card-meta, .scout-card-metrics, .scout-card-flags, .scout-card-footer { min-width: 0; width: auto; }
  .scout-card-head, .scout-card-meta, .scout-card-metrics { grid-column: 1 / -1; }
  .scout-card-flags { grid-column: 1; }
  .scout-card-footer { grid-column: 2; }
  .tier-change-alerts { margin-inline: 16px; }
  .tier-alert-card { align-items: flex-start; flex-direction: column; }
  .tier-alert-actions { justify-content: flex-start; }
}

/* NAN final overrides. These come after the compact visual token layer so
   the active brand is actually visible on every surface. */
html[data-brand="nan"] body { background: radial-gradient(circle at 86% -8%, rgba(16,201,223,.16), transparent 29%), radial-gradient(circle at 18% 24%, rgba(120,232,242,.06), transparent 24%), linear-gradient(135deg, #071216 0%, #0c1b20 48%, #071216 100%); }
html[data-brand="nan"] .sidebar { background: #0a171b; border-right-color: #23464e; }
html[data-brand="nan"] .brand-mark { background: #06181d; border-color: #257b87; box-shadow: 0 0 0 3px rgba(16,201,223,.1), 0 10px 24px rgba(0,0,0,.42); }
html[data-brand="nan"] .nav-item:hover { border-color: rgba(16,201,223,.42); background: rgba(16,201,223,.08); }
html[data-brand="nan"] .nav-item.active { border-color: rgba(16,201,223,.58); background: linear-gradient(90deg, rgba(16,201,223,.17), rgba(44,89,98,.1)); }
html[data-brand="nan"] .source-card { border-color: #28535c; background: linear-gradient(155deg, rgba(13,82,96,.36), #0b171a); }
html[data-brand="nan"] .primary-button { border-color: #65e7f0; background: linear-gradient(135deg, #10c9df, #078da2); color: #031317; }
html[data-brand="nan"] .primary-button:hover { background: linear-gradient(135deg, #78e8f2, #10afc2); box-shadow: 0 7px 18px rgba(16,201,223,.24); }
html[data-brand="nan"] .secondary-button { background: linear-gradient(145deg, #1a3035, #102126); border-color: #3c6972; }
html[data-brand="nan"] .secondary-button:hover { background: #214047; border-color: #78cbd3; }
html[data-brand="nan"] .search-wrap, html[data-brand="nan"] select, html[data-brand="nan"] input[type="number"] { background: #09171b; border-color: #315b63; }
html[data-brand="nan"] .search-wrap:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(16,201,223,.12); }
html[data-brand="nan"] .table-card, html[data-brand="nan"] .control-panel, html[data-brand="nan"] .board-card, html[data-brand="nan"] .overview-card, html[data-brand="nan"] .draft-room, html[data-brand="nan"] .team-builder-panel { background: #0d1a1e; border-color: #20383e; }
html[data-brand="nan"] .table-toolbar, html[data-brand="nan"] .board-toolbar, html[data-brand="nan"] .draft-room-toolbar { background: #102126; }
html[data-brand="nan"] th { background: #102126; border-bottom-color: #2c5159; }
html[data-brand="nan"] tbody tr:hover, html[data-brand="nan"] .draft-row:hover { background: linear-gradient(90deg, rgba(16,201,223,.09), rgba(44,89,98,.04)); }
html[data-brand="nan"] .overview-hero { background: radial-gradient(circle at 92% 12%, rgba(16,201,223,.16), transparent 32%), #102126; }
html[data-brand="nan"] .overview-tier { background: #12262b; }
html[data-brand="nan"] .overview-tier:hover { background: #17343b; }
html[data-brand="nan"] .profile-hero { background: radial-gradient(circle at 90% 10%, rgba(16,201,223,.14), transparent 36%), #11242a; border-bottom-color: #2b6670; }
html[data-brand="nan"] .profile-hero::after { background-image: url("assets/nan.png"); opacity: .08; filter: saturate(.9); }
html[data-brand="nan"] .metric { background: linear-gradient(145deg, #13252a, #0b171a); border-color: rgba(86,159,169,.4); }
html[data-brand="nan"] .field input, html[data-brand="nan"] .field select, html[data-brand="nan"] .field textarea { background: #081519; border-color: #315b63; }
html[data-brand="nan"] .team-builder-hero { background: radial-gradient(circle at 90% 10%, rgba(16,201,223,.16), transparent 36%), #102126; border-color: #2b5961; }
html[data-brand="nan"] .team-builder-panel { background: #112125; }
html[data-brand="nan"] .team-builder-player.is-starter { border-left-color: var(--orange); background: linear-gradient(90deg, rgba(16,201,223,.11), rgba(255,255,255,.018)); }
html[data-brand="nan"] .team-builder-role.starter { border-color: rgba(16,201,223,.55); color: var(--orange-2); background: rgba(16,201,223,.1); }
html[data-brand="nan"] .tier-alert-card { border-color: rgba(86,159,169,.3); background: rgba(8,21,25,.72); }
html[data-brand="nan"] .tier-alert-player small { color: var(--orange-2); }
