@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #071219;
  --ink-2: #091820;
  --panel: #0b1c25;
  --panel-2: #0e222c;
  --line: #1a3945;
  --line-soft: rgba(91, 147, 163, .16);
  --text: #eef7f7;
  --muted: #87a3ad;
  --cyan: #52dff0;
  --mint: #65e4aa;
  --amber: #ffae47;
  --red: #ff6570;
  --font: "Manrope", sans-serif;
  --display: "Barlow Condensed", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); min-width: 320px; overflow-x: hidden; }
html, body, #app-root { max-width: 100%; width: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 15px; }
button, input, select { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(82, 223, 240, .26); }

body::before {
  background-image: linear-gradient(rgba(82, 223, 240, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 223, 240, .025) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.nq-shell { display: grid; grid-template-columns: 214px minmax(0, 1fr); max-width: 100%; min-height: 100dvh; min-width: 0; position: relative; }
.nq-rail { background: rgba(5, 16, 22, .94); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100dvh; padding: 24px 18px 20px; position: sticky; top: 0; height: 100dvh; z-index: 20; }
.nq-brand { align-items: center; display: flex; gap: 10px; margin-bottom: 42px; padding: 2px 6px; }
.nq-brand img { height: 44px; object-fit: contain; width: 44px; }
.nq-brand > span { display: flex; flex-direction: column; }
.nq-brand strong { font: 700 24px/.9 var(--display); letter-spacing: .04em; }
.nq-brand small { color: var(--cyan); font: 500 8px/1.5 var(--mono); letter-spacing: .12em; }
.nq-menu-panel { display: contents; }
.nq-menu-toggle, .nq-menu-scrim { display: none; }
.nq-rail nav { display: grid; gap: 4px; }
.nq-rail nav button { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 7px; display: grid; grid-template-columns: 28px 1fr; padding: 12px 10px; text-align: left; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.nq-rail nav button:hover { background: rgba(82, 223, 240, .05); border-color: var(--line-soft); }
.nq-rail nav button:active { transform: translateY(1px); }
.nq-rail nav button.active { background: linear-gradient(90deg, rgba(82, 223, 240, .15), rgba(82, 223, 240, .025)); border-color: rgba(82, 223, 240, .28); }
.nq-rail nav button > span { color: #52717c; font: 500 10px var(--mono); }
.nq-rail nav button strong { font: 600 17px var(--display); letter-spacing: .04em; }
.nq-rail nav button.active strong { color: var(--cyan); }
.nq-rail-foot { border-top: 1px solid var(--line); display: grid; gap: 5px; margin-top: auto; padding-top: 16px; }
.nq-rail-user { color: var(--text); font: 500 10px var(--mono); overflow: hidden; padding: 0 8px 5px; text-overflow: ellipsis; white-space: nowrap; }
.nq-rail-foot a, .nq-rail-foot button { background: transparent; color: var(--muted); font: 500 11px var(--mono); padding: 7px 8px; text-align: left; text-transform: uppercase; }
.nq-rail-foot a:hover, .nq-rail-foot button:hover { color: var(--text); }

.nq-workspace { max-width: 100%; min-width: 0; }
main { animation: nq-enter .28s cubic-bezier(.2,.8,.2,1); max-width: 100%; min-width: 0; }
@keyframes nq-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.nq-page { margin: 0 auto; max-width: 1660px; min-width: 0; padding: 24px 28px 60px; width: 100%; }
.nq-page-head { align-items: end; display: flex; justify-content: space-between; min-height: 64px; padding-bottom: 18px; }
.nq-page-head h1 { font: 600 clamp(36px, 4vw, 56px)/.9 var(--display); letter-spacing: -.015em; margin: 0; }
.nq-page-controls { align-items: end; display: flex; gap: 10px; }
.nq-date-control, .nq-finder label { display: grid; gap: 6px; }
.nq-date-control > span, .nq-finder label > span { color: var(--muted); font: 500 9px var(--mono); letter-spacing: .12em; }
input, select { background: #07151c; border: 1px solid var(--line); border-radius: 6px; min-height: 38px; outline: none; padding: 8px 11px; }
input::placeholder { color: #5d7b86; }
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(82, 223, 240, .09); }
.nq-action { background: var(--cyan); border-radius: 6px; color: #04141a; font: 700 12px var(--mono); min-height: 38px; padding: 0 18px; text-transform: uppercase; }
.nq-action:hover { filter: brightness(1.08); }
.nq-action:active { transform: translateY(1px); }
.nq-action:disabled { cursor: default; opacity: .45; }
.nq-error { background: rgba(255, 101, 112, .09); border-left: 2px solid var(--red); color: #ff9ca3; margin-bottom: 14px; padding: 10px 12px; }
.nq-empty { align-items: center; color: #66828d; display: flex; font: 500 12px var(--mono); justify-content: center; min-height: 120px; text-transform: uppercase; }
.nq-skeleton { display: grid; gap: 1px; overflow: hidden; }
.nq-skeleton span { animation: nq-pulse 1.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * .08s); background: linear-gradient(90deg, #0b1a22, #102934, #0b1a22); height: 62px; }
@keyframes nq-pulse { to { opacity: .48; } }

.nq-team-logo { align-items: center; background: #10252e; border: 1px solid rgba(128, 181, 195, .18); border-radius: 50%; display: inline-flex; flex: 0 0 auto; height: 30px; justify-content: center; overflow: hidden; width: 30px; }
.nq-team-logo img { height: 76%; object-fit: contain; width: 76%; }
.nq-team-logo > span { color: var(--muted); font: 600 9px var(--mono); }
.nq-team-logo.large { height: 52px; width: 52px; }
.nq-team-logo.hero { background: transparent; border: 0; height: 112px; width: 112px; }
.nq-team-logo.hero img { height: 94%; width: 94%; }
.nq-player-photo { align-items: center; background: #102630; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; flex: 0 0 auto; height: 34px; justify-content: center; overflow: hidden; width: 34px; }
.nq-player-photo img { height: 105%; object-fit: cover; object-position: top center; width: 105%; }
.nq-player-photo > span { color: var(--muted); font: 600 10px var(--mono); }
.nq-player-photo.medium { height: 46px; width: 46px; }
.nq-player-photo.hero { background: linear-gradient(180deg, #153743, #0c212a); border-radius: 9px 9px 0 0; height: 164px; width: 142px; }

.nq-status { border: 1px solid; border-radius: 3px; font: 600 9px/1 var(--mono); letter-spacing: .05em; padding: 5px 6px; width: max-content; }
.nq-status.out { background: rgba(255, 101, 112, .1); border-color: rgba(255, 101, 112, .46); color: #ff9299; }
.nq-status.questionable { background: rgba(255, 174, 71, .1); border-color: rgba(255, 174, 71, .42); color: #ffc171; }
.nq-status.available { background: rgba(101, 228, 170, .08); border-color: rgba(101, 228, 170, .28); color: var(--mint); }
.nq-metric { border-left: 1px solid var(--line); display: grid; gap: 3px; min-height: 64px; min-width: 0; padding: 8px 14px; }
.nq-metric > span { color: var(--muted); font: 500 9px var(--mono); letter-spacing: .09em; }
.nq-metric strong { font: 600 24px/1 var(--display); letter-spacing: .01em; }
.nq-metric-change { align-items: baseline; display: flex; flex-wrap: wrap; gap: 4px 7px; min-width: 0; width: 100%; }
.nq-metric-change del { color: #718890; font: 600 16px/1 var(--display); text-decoration-color: #91a5ab; text-decoration-thickness: 1.5px; white-space: nowrap; }
.nq-metric-change strong { white-space: nowrap; }
.nq-metric small { color: var(--muted); font: 500 10px var(--mono); }
.nq-metric.market strong { color: var(--amber); }
.nq-metric.model strong { color: var(--cyan); }
.nq-metric.danger strong { color: var(--red); }
.nq-metric.warning strong { color: var(--amber); }
.nq-section-label { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 42px; padding: 0 14px; }
.nq-section-label strong { font: 600 14px var(--mono); letter-spacing: .04em; }
.nq-section-label > span { color: var(--muted); font: 500 9px var(--mono); }

/* Games */
.nq-games { max-width: 1760px; padding-top: 16px; }
.nq-games .nq-page-head { min-height: 54px; padding-bottom: 12px; }
.nq-games .nq-page-head h1 { font-size: clamp(38px, 3.2vw, 48px); }
.nq-games-grid { display: block; min-height: 0; }
.nq-slate { background: rgba(6, 18, 24, .72); border: 1px solid var(--line); display: flex; height: 100px; margin-bottom: 10px; min-width: 0; overflow: hidden; }
.nq-search-line { align-items: center; background: #07151c; border-right: 1px solid var(--line); display: flex; flex: 0 0 362px; gap: 8px; padding: 10px; position: relative; z-index: 4; }
.nq-search-line input { flex: 1; min-width: 0; }
.nq-search-line select { flex: 0 0 92px; font: 600 9px var(--mono); min-height: 38px; padding-inline: 8px; }
.nq-search-line > span { color: var(--muted); font: 500 10px var(--mono); }
.nq-slate-games { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-slate-games > .nq-empty { flex: 1 0 260px; }
.nq-slate-loading { align-items: center; display: flex; flex: 1 0 260px; gap: 12px; min-height: 98px; overflow: hidden; padding: 10px 18px; position: relative; }
.nq-slate-loading::after { animation: nq-slate-scan 1.4s ease-in-out infinite; background: linear-gradient(90deg, transparent, rgba(255, 174, 71, .42), transparent); content: ""; inset: 0 auto 0 -35%; position: absolute; width: 34%; }
.nq-loading-orbit { animation: nq-orbit 1.15s linear infinite; border: 2px solid rgba(82, 223, 240, .18); border-radius: 50%; border-right-color: var(--amber); display: block; height: 28px; width: 28px; }
.nq-slate-loading > div { display: grid; gap: 3px; }
.nq-slate-loading strong { font: 600 11px var(--mono); letter-spacing: .08em; }
.nq-slate-loading small { color: var(--muted); font: 500 9px var(--mono); }
@keyframes nq-slate-scan { 50%, 100% { transform: translateX(420%); } }
@keyframes nq-orbit { to { transform: rotate(360deg); } }
.nq-game-row { background: transparent; border-right: 1px solid var(--line-soft); color: var(--text); display: grid; flex: 0 0 246px; gap: 4px; min-height: 98px; padding: 8px 11px; text-align: left; transition: background .14s ease; }
.nq-game-row:hover { background: rgba(82, 223, 240, .035); }
.nq-game-row.active { background: linear-gradient(180deg, rgba(82, 223, 240, .12), transparent); box-shadow: inset 0 2px var(--cyan); }
.nq-game-row-teams { display: grid; gap: 2px; padding-right: 23px; }
.nq-game-row-teams > span { align-items: center; display: grid; gap: 8px; grid-template-columns: 24px minmax(0, 1fr); }
.nq-game-row-teams .nq-team-logo { height: 21px; width: 21px; }
.nq-game-row-teams strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-game-row-market { align-items: center; display: flex; justify-content: space-between; }
.nq-game-row-market strong { color: var(--amber); font: 600 13px var(--mono); }
.nq-game-row-market span { color: var(--muted); font: 500 10px var(--mono); }
.nq-game-row-market span.signal { color: var(--mint); }
.nq-game-row > small { color: var(--muted); font: 400 9px/1.2 var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-game-row-shell { flex: 0 0 246px; min-width: 0; position: relative; }
.nq-game-row-shell .nq-game-row { height: 100%; padding-right: 11px; width: 100%; }
.nq-game-spotlight { align-items: center; background: rgba(7, 21, 28, .86); border: 1px solid var(--line); border-radius: 50%; color: #587680; display: flex; font: 700 15px/1 var(--mono); height: 25px; justify-content: center; padding: 0; position: absolute; right: 8px; top: 8px; transition: border-color .14s ease, color .14s ease, transform .14s ease; width: 25px; z-index: 2; }
.nq-game-spotlight:hover { border-color: var(--amber); color: var(--amber); transform: scale(1.05); }
.nq-game-spotlight.active { background: rgba(255, 174, 71, .12); border-color: rgba(255, 174, 71, .55); color: var(--amber); }
.nq-game-spotlight:disabled { cursor: wait; opacity: .55; }
.nq-spotlight-filter { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 5px; color: #587680; display: inline-flex; flex: 0 0 auto; font: 700 13px var(--mono); gap: 4px; justify-content: center; min-height: 38px; padding: 0 8px; }
.nq-spotlight-filter span { color: inherit; font-size: 9px; white-space: nowrap; }
.nq-spotlight-filter:hover, .nq-spotlight-filter.active { background: rgba(255, 174, 71, .08); border-color: rgba(255, 174, 71, .55); color: var(--amber); }
.nq-game-canvas { border: 1px solid var(--line); min-width: 0; }
.nq-game-summary { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(500px, .86fr) minmax(0, 1.14fr); }
.nq-game-overview { border-right: 1px solid var(--line); min-width: 0; }
.nq-matchup-head { align-items: center; display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); min-height: 82px; padding: 8px 16px; }
.nq-matchup-head > button { align-items: center; background: transparent; display: flex; gap: 10px; min-width: 0; }
.nq-matchup-head > button:last-child { flex-direction: row-reverse; }
.nq-matchup-head > button > span:last-child { font: 600 clamp(20px, 1.8vw, 29px)/.95 var(--display); overflow-wrap: anywhere; }
.nq-matchup-head > div { align-items: center; color: var(--muted); display: flex; flex-direction: column; font: 500 9px var(--mono); gap: 3px; }
.nq-matchup-head > div strong { color: var(--text); font: 600 22px var(--display); }
.nq-matchup-result { align-items: center; background: linear-gradient(90deg, rgba(255, 174, 71, .02), rgba(255, 174, 71, .1), rgba(255, 174, 71, .02)); border-top: 1px solid rgba(255, 174, 71, .22); display: flex; gap: 9px; justify-content: center; min-height: 25px; padding: 4px 10px; }
.nq-matchup-result span { color: var(--amber); font: 700 8px var(--mono); letter-spacing: .1em; }
.nq-matchup-result strong { font: 600 10px var(--mono); }
.nq-market-strip { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nq-market-strip .nq-metric { min-height: 58px; padding: 7px 10px; }
.nq-market-strip .nq-metric:first-child { border-left: 0; }
.nq-market-strip .nq-metric strong { font-size: clamp(19px, 1.5vw, 23px); }
.nq-chart-panel { display: grid; grid-template-rows: 38px minmax(0, 1fr); min-height: 0; min-width: 0; }
.nq-chart-panel > .nq-section-label { border-bottom: 1px solid var(--line); padding: 0 13px; }
.nq-movement-head-tools { align-items: center; display: flex; gap: 10px; }
.nq-movement-head-tools > span { color: var(--muted); font: 500 9px var(--mono); white-space: nowrap; }
.nq-movement-view-toggle { border: 1px solid var(--line); border-radius: 4px; display: flex; padding: 2px; }
.nq-movement-view-toggle button { background: transparent; border-radius: 2px; color: var(--muted); font: 600 8px var(--mono); min-height: 22px; padding: 0 7px; }
.nq-movement-view-toggle button.active { background: var(--cyan); color: #04141a; }
.nq-movement-tape { align-items: stretch; display: flex; gap: 22px; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 10px 13px 9px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-movement-event { align-content: center; border-left: 2px solid #4f6f79; display: grid; flex: 1 0 180px; gap: 4px; min-height: 88px; padding: 4px 12px; position: relative; }
.nq-movement-event.opening { border-left-color: var(--cyan); }
.nq-movement-event.latest { background: linear-gradient(90deg, rgba(255, 174, 71, .09), transparent 82%); border-left-color: var(--amber); }
.nq-movement-event:not(:last-child)::after { background: #42616b; content: ""; height: 1px; position: absolute; right: -22px; top: 50%; width: 22px; }
.nq-movement-event:not(:last-child)::before { color: #6f8d96; content: "›"; font: 600 15px var(--mono); position: absolute; right: -16px; top: calc(50% - 10px); z-index: 1; }
.nq-movement-kicker { align-items: center; display: flex; justify-content: space-between; }
.nq-movement-kicker > span { color: var(--muted); font: 600 9px var(--mono); letter-spacing: .1em; }
.nq-movement-kicker > em { background: rgba(255, 174, 71, .11); border: 1px solid rgba(255, 174, 71, .3); color: var(--amber); font: normal 600 8px var(--mono); letter-spacing: .06em; padding: 3px 5px; }
.nq-movement-event > strong { align-items: baseline; display: flex; gap: 8px; min-width: 0; }
.nq-movement-event > strong > span { font: 600 15px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-movement-event > strong > b { color: var(--amber); font: 600 25px/1 var(--display); white-space: nowrap; }
.nq-movement-event > time { color: #a9bcc3; display: flex; font: 600 10px var(--mono); gap: 7px; white-space: nowrap; }
.nq-movement-event > time > span { color: #607e88; font-size: 8px; letter-spacing: .07em; }
.nq-movement-event > small { color: var(--muted); font: 600 8.5px var(--mono); letter-spacing: .04em; }
.nq-movement-event > small.up { color: var(--mint); }
.nq-movement-event > small.down { color: var(--red); }
.nq-movement-event > small.flat { color: var(--muted); }
.nq-movement-event > small.nq-last-tick { color: #718e98; }
.nq-movement-chart-scroll { min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 0 8px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-movement-chart { display: block; height: 120px; margin: 0 auto; max-height: 120px; }
.nq-movement-chart .grid { stroke: rgba(90, 129, 141, .16); stroke-width: 1; }
.nq-movement-chart .movement-path { fill: none; stroke: var(--amber); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.nq-movement-chart .event-guide { stroke: rgba(111, 141, 150, .22); stroke-dasharray: 2 4; }
.nq-movement-chart .event circle { fill: #061b22; stroke: #8ba4ac; stroke-width: 2; }
.nq-movement-chart .event.opening circle { stroke: var(--cyan); }
.nq-movement-chart .event.latest circle { fill: var(--amber); stroke: var(--amber); }
.nq-movement-chart text { font-family: var(--mono); }
.nq-movement-chart .event-kicker { fill: #78939c; font-size: 8px; font-weight: 700; letter-spacing: .09em; }
.nq-movement-chart .event.latest .event-kicker { fill: var(--amber); }
.nq-movement-chart .event-value { fill: var(--text); font-size: 13px; font-weight: 700; }
.nq-movement-chart .event-time { fill: #9bb0b7; font-size: 8px; font-weight: 600; }
.nq-rotation-shell { border-top: 0; }
.nq-scenario-head { align-items: center; background: linear-gradient(90deg, rgba(82, 223, 240, .07), transparent 70%); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 50px; padding: 7px 14px; }
.nq-scenario-head > div:first-child { display: grid; gap: 3px; }
.nq-scenario-head > div:first-child strong { font: 600 14px var(--mono); letter-spacing: .04em; }
.nq-scenario-head > div:first-child span, .nq-model-locked { color: var(--muted); font: 500 9px var(--mono); letter-spacing: .06em; }
.nq-scenario-actions { display: flex; gap: 7px; }
.nq-reset-action, .nq-compute-action { border: 1px solid var(--line); border-radius: 5px; font: 600 10px var(--mono); min-height: 34px; padding: 0 12px; }
.nq-reset-action { background: transparent; color: var(--muted); }
.nq-compute-action { background: var(--cyan); border-color: var(--cyan); color: #04141a; }
.nq-reset-action:hover:not(:disabled) { border-color: var(--muted); color: var(--text); }
.nq-compute-action:hover:not(:disabled) { filter: brightness(1.08); }
.nq-reset-action:disabled, .nq-compute-action:disabled { cursor: default; opacity: .38; }
.nq-scenario-error { background: rgba(255, 101, 112, .09); border-bottom: 1px solid rgba(255, 101, 112, .28); color: #ff9ca3; font: 500 11px var(--mono); padding: 9px 14px; }
.nq-rotation-board { display: grid; grid-template-columns: repeat(2, 1fr); }
.nq-rotation-board > div:first-child { border-right: 1px solid var(--line); }
.nq-rotation-row { align-items: center; background: transparent; border-bottom: 1px solid var(--line-soft); display: grid; gap: 9px; grid-template-columns: minmax(180px, 1fr) auto 58px 58px 58px; min-height: 46px; padding: 5px 12px; text-align: left; transition: opacity .15s ease, background .15s ease; width: 100%; }
.nq-rotation-row:hover { background: rgba(82, 223, 240, .035); }
.nq-rotation-row.excluded { background: rgba(255, 101, 112, .025); opacity: .54; }
.nq-rotation-player { align-items: center; background: transparent; display: grid; gap: 9px; grid-template-columns: 32px minmax(120px, 1fr); min-width: 0; padding: 0; text-align: left; }
.nq-rotation-player .nq-player-photo { height: 32px; width: 32px; }
.nq-rotation-player:hover .name { color: var(--cyan); }
.nq-rotation-row .name { display: -webkit-box; font-weight: 600; line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; }
.nq-rotation-stat { display: grid; text-align: right; }
.nq-rotation-stat > strong { font: 600 13px var(--mono); }
.nq-rotation-stat > small { color: var(--muted); font: 8px var(--mono); }
.nq-player-switch { align-items: center; background: transparent; display: grid; gap: 3px; justify-items: center; padding: 0; }
.nq-player-switch > span { background: #263d45; border-radius: 20px; height: 18px; position: relative; transition: background .15s ease; width: 34px; }
.nq-player-switch > span::after { background: #718d96; border-radius: 50%; content: ""; height: 12px; left: 3px; position: absolute; top: 3px; transition: background .15s ease, transform .15s ease; width: 12px; }
.nq-player-switch.in > span { background: rgba(82, 223, 240, .26); }
.nq-player-switch.in > span::after { background: var(--cyan); transform: translateX(16px); }
.nq-player-switch > small { color: var(--red); font: 600 8px var(--mono); }
.nq-player-switch.in > small { color: var(--cyan); }
.nq-player-switch:disabled { cursor: default; }

/* Injuries */
.nq-segment { background: #07151c; border: 1px solid var(--line); border-radius: 6px; display: flex; padding: 3px; }
.nq-segment button { background: transparent; border-radius: 4px; color: var(--muted); font: 600 10px var(--mono); padding: 8px 12px; text-transform: uppercase; }
.nq-segment button.active { background: #163440; color: var(--cyan); }
.nq-adjustment-control { align-items: center; display: flex; flex: 0 0 auto; gap: 6px; }
.nq-adjustment-control.compact .nq-segment button { font-size: 8px; padding-inline: 9px; }
.nq-adjustment-help { align-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); cursor: help; display: inline-flex; flex: 0 0 auto; font: 700 8px var(--mono); height: 19px; justify-content: center; outline: none; position: relative; width: 19px; z-index: 8; }
.nq-adjustment-help:hover, .nq-adjustment-help:focus-visible { border-color: var(--cyan); color: var(--cyan); }
.nq-adjustment-help::after { background: #10232c; border: 1px solid #2a5360; border-radius: 5px; bottom: calc(100% + 8px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); color: var(--text); content: attr(data-tooltip); font: 500 9px/1.45 var(--mono); left: 50%; letter-spacing: 0; opacity: 0; padding: 9px 10px; pointer-events: none; position: absolute; text-align: left; text-transform: none; transform: translate(-50%, 4px); transition: opacity .14s ease, transform .14s ease; visibility: hidden; white-space: normal; width: 250px; }
.nq-adjustment-help:hover::after, .nq-adjustment-help:focus-visible::after { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.nq-injury-summary { border: 1px solid var(--line); display: grid; grid-template-columns: 130px 180px 130px 1fr; margin-bottom: 14px; }
.nq-injury-head-controls { align-items: end; display: flex; gap: 8px; }
.nq-injury-head-controls .nq-date-control input { min-width: 145px; }
.nq-filter-stack { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(180px, 1fr) 135px 135px; padding: 11px 14px; }
.nq-injury-feed { border: 1px solid var(--line); }
.nq-injury-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; column-gap: 16px; grid-template-columns: minmax(230px, 1.2fr) minmax(150px, .8fr) 110px 90px; min-height: 104px; padding: 10px 14px 12px; row-gap: 8px; }
.nq-injury-item:last-child { border-bottom: 0; }
.nq-injury-item:hover { background: rgba(82, 223, 240, .02); }
.nq-injury-person, .nq-injury-team { align-items: center; background: transparent; display: flex; gap: 11px; min-width: 0; text-align: left; }
.nq-injury-person > span:last-child { display: grid; min-width: 0; }
.nq-injury-person strong, .nq-injury-team > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-injury-person small { color: var(--muted); font: 9px var(--mono); margin-top: 4px; }
.nq-impact-number { display: grid; }
.nq-impact-number strong { font: 600 21px var(--display); }
.nq-impact-number span { color: var(--muted); font: 9px var(--mono); }
.nq-injury-report { background: rgba(255, 174, 71, .035); border-left: 2px solid rgba(255, 174, 71, .55); display: grid; gap: 6px; grid-column: 1 / -1; padding: 8px 10px; }
.nq-injury-report p { color: #c4d3d7; font-size: 12px; line-height: 1.48; margin: 0; }
.nq-injury-report > div { align-items: center; display: flex; gap: 10px; }
.nq-injury-loading-more { border: 1px solid var(--line); border-top: 0; color: var(--muted); font: 600 9px var(--mono); letter-spacing: .08em; padding: 12px 14px; text-align: center; }
.nq-injury-report span { color: var(--amber); font: 600 9px var(--mono); }
.nq-injury-report time { color: var(--muted); font: 9px var(--mono); }
.nq-injury-report a { color: var(--cyan); font: 600 8px var(--mono); margin-left: auto; }

/* Teams */
.nq-team-tools { align-items: end; display: flex; gap: 8px; }
.nq-finder { min-width: min(330px, 34vw); position: relative; }
.nq-finder input { width: 100%; }
.nq-finder-results { background: #091b23; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.36); left: 0; position: absolute; right: 0; top: calc(100% + 5px); z-index: 30; }
.nq-finder-results button { align-items: center; background: transparent; display: flex; gap: 9px; padding: 8px 10px; text-align: left; width: 100%; }
.nq-finder-results button:hover { background: rgba(82, 223, 240, .07); }
.nq-team-profile, .nq-player-profile { border: 1px solid var(--line); }
.nq-identity { align-items: end; background: linear-gradient(110deg, rgba(82, 223, 240, .08), transparent 42%); border-bottom: 1px solid var(--line); display: grid; min-height: 158px; padding: 20px 24px 0; }
.nq-team-identity { grid-template-columns: 130px 1fr auto; }
.nq-identity-name { align-self: center; display: grid; gap: 4px; padding-bottom: 12px; }
.nq-identity-name > span { color: var(--cyan); font: 500 9px var(--mono); letter-spacing: .1em; }
.nq-identity-name h2 { font: 600 clamp(34px, 4vw, 58px)/.88 var(--display); letter-spacing: -.01em; margin: 0; }
.nq-identity-name > small { color: var(--muted); font: 9px var(--mono); }
.nq-record { display: grid; padding-bottom: 24px; text-align: right; }
.nq-record strong { font: 600 42px/.9 var(--display); }
.nq-record span { color: var(--muted); font: 10px var(--mono); }
.nq-team-metrics { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.nq-team-rank-metric { border-left: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; min-height: 96px; padding: 10px 14px; position: relative; }
.nq-team-rank-metric:first-child { border-left: 0; }
.nq-team-rank-metric > span { color: var(--muted); font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nq-team-rank-value { align-items: baseline; display: flex; gap: 6px; grid-column: 1 / -1; }
.nq-team-rank-value strong { font: 600 38px/.9 var(--display); }
.nq-team-rank-value small { color: var(--muted); font: 600 9px var(--mono); }
.nq-team-rank-stat { align-items: baseline; align-self: end; display: flex; gap: 6px; grid-column: 2; grid-row: 1; }
.nq-team-rank-stat span { color: #58737c; font: 600 7px var(--mono); }
.nq-team-rank-stat strong { color: #a9bcc2; font: 600 13px var(--mono); }
.nq-team-rank-metric.elite .nq-team-rank-value strong, .nq-team-rank-metric.strong .nq-team-rank-value strong { color: var(--mint); }
.nq-team-rank-metric.weak .nq-team-rank-value strong, .nq-team-rank-metric.poor .nq-team-rank-value strong { color: var(--red); }
.nq-team-rank-metric.elite { background: linear-gradient(180deg, rgba(101, 228, 170, .07), transparent); }
.nq-team-rank-metric.poor { background: linear-gradient(180deg, rgba(255, 101, 112, .07), transparent); }
.nq-team-layout { display: grid; grid-template-columns: 1.2fr 1fr; }
.nq-team-layout > section { border-bottom: 1px solid var(--line); }
.nq-team-layout > section:nth-child(odd) { border-right: 1px solid var(--line); }
.nq-rotation-columns { align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); display: grid; gap: 10px; grid-template-columns: 46px minmax(110px, 1fr) 94px 56px 50px; min-height: 30px; padding: 0 14px; }
.nq-rotation-columns > span { font: 600 8px var(--mono); letter-spacing: .07em; }
.nq-rotation-columns > button { align-items: center; background: transparent; color: var(--muted); display: flex; font: 600 8px var(--mono); gap: 4px; justify-content: flex-end; padding: 0; }
.nq-rotation-columns > button:hover, .nq-rotation-columns > button.active { color: var(--cyan); }
.nq-rotation-columns > button span { font-size: 9px; }
.nq-rotation > button { align-items: center; background: transparent; border-bottom: 1px solid var(--line-soft); display: grid; gap: 10px; grid-template-columns: 46px minmax(110px, 1fr) 94px 56px 50px; min-height: 58px; padding: 6px 14px; text-align: left; width: 100%; }
.nq-rotation > button:hover, .nq-team-availability > button:hover { background: rgba(82, 223, 240, .03); }
.nq-rotation .name, .nq-results .name, .nq-schedule .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-rotation > button > strong { font: 600 12px var(--mono); text-align: right; }
.nq-results-scroll { max-height: 494px; overflow-y: auto; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-results-scroll > a, .nq-schedule > a { align-items: center; border-bottom: 1px solid var(--line-soft); display: grid; gap: 9px; min-height: 52px; padding: 7px 14px; }
.nq-results-scroll > a { grid-template-columns: 24px 30px minmax(120px,1fr) 58px 50px 46px; }
.nq-schedule > a { grid-template-columns: 46px 30px minmax(120px,1fr) 58px 70px; }
.nq-results-scroll > a > span:not(.nq-team-logo), .nq-schedule > a > span:not(.nq-team-logo), .nq-results-scroll time, .nq-schedule time { color: var(--muted); font: 9px var(--mono); }
.nq-results-scroll > a > strong { font: 700 11px var(--mono); text-align: right; white-space: nowrap; }
.nq-result-site { align-items: flex-start; display: flex; flex-direction: column; gap: 3px; }
.nq-data-excluded { border: 1px solid rgba(255, 174, 66, .42); border-radius: 3px; color: var(--orange); font: 600 7px/1 var(--mono); letter-spacing: .04em; padding: 3px 4px; white-space: nowrap; }
.nq-results-scroll > a.data-excluded { background: rgba(255, 174, 66, .018); }
.nq-result { font: 700 11px var(--mono) !important; }
.nq-result.win, .win-text { color: var(--mint) !important; }
.nq-result.loss, .loss-text { color: var(--red) !important; }
.nq-team-availability > button { align-items: center; background: transparent; border-bottom: 1px solid var(--line-soft); display: grid; gap: 10px; grid-template-columns: 34px minmax(120px,1fr) 100px 50px; min-height: 52px; padding: 7px 14px; text-align: left; width: 100%; }
.nq-team-availability time { color: var(--muted); font: 9px var(--mono); }
.nq-rotation-map { border-bottom: 1px solid var(--line); }
.nq-rotation-map-tools { align-items: center; display: flex; gap: 12px; }
.nq-rotation-map-tools > span { color: var(--muted); font: 600 8px var(--mono); }
.nq-rotation-map-tools label { align-items: center; border: 1px solid var(--line); border-radius: 4px; display: flex; gap: 6px; min-height: 28px; padding: 0 7px; }
.nq-rotation-map-tools label span { color: var(--muted); font: 600 8px var(--mono); }
.nq-rotation-map-tools select { background: transparent; border: 0; color: var(--text); font: 700 9px var(--mono); min-height: 24px; padding: 0 13px 0 0; }
.nq-rotation-map-legend { align-items: center; display: flex; gap: 7px; justify-content: flex-end; min-height: 28px; padding: 4px 14px; }
.nq-rotation-map-legend span { color: var(--muted); font: 600 8px var(--mono); }
.nq-rotation-map-legend i { border: 1px solid rgba(218, 231, 233, .18); display: block; height: 8px; width: 96px; }
.nq-rotation-map-scroll { overflow-x: auto; padding: 0 14px 14px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-rotation-map-grid { display: grid; }
.nq-rotation-map-corner, .nq-rotation-map-minute { align-items: center; color: var(--muted); display: flex; font: 600 7px var(--mono); height: 20px; }
.nq-rotation-map-corner { background: #071820; left: 0; padding-left: 6px; position: sticky; z-index: 4; }
.nq-rotation-map-minute { justify-content: center; }
.nq-rotation-map-player { align-items: center; background: #071820; color: var(--text); display: grid; gap: 7px; grid-template-columns: 28px minmax(0, 1fr); left: 0; min-height: 28px; padding: 2px 6px; position: sticky; text-align: left; z-index: 3; }
.nq-rotation-map-player:hover { background: #0a232c; }
.nq-rotation-map-player .nq-player-photo { height: 25px; width: 25px; }
.nq-rotation-map-player > span:last-child { display: grid; min-width: 0; }
.nq-rotation-map-player strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-rotation-map-player small { color: var(--muted); font: 7px var(--mono); }
.nq-rotation-map-cell { min-height: 28px; }
.nq-rotation-map-cell:hover { box-shadow: inset 0 0 0 2px var(--amber); }
.nq-rotation-map-cell.halftime, .nq-rotation-map-minute.halftime { border-right: 2px solid rgba(231, 237, 238, .62); }
.nq-onoff { border-bottom: 1px solid var(--line); min-width: 0; }
.nq-onoff-title { background: linear-gradient(90deg, rgba(82, 223, 240, .055), transparent 55%); min-height: 54px; }
.nq-onoff-title > div:first-child { align-items: baseline; display: flex; gap: 10px; }
.nq-onoff-title > div:first-child > span { color: var(--muted); font: 600 8px var(--mono); letter-spacing: .06em; }
.nq-onoff-title-actions { align-items: center; display: flex; gap: 7px; }
.nq-onoff-title-actions .nq-wowy-filter-button { min-height: 32px; }
.nq-onoff-filters { grid-template-columns: minmax(170px, 1.2fr) 128px minmax(145px, 1fr) minmax(145px, 1fr) 100px 118px auto; }
.nq-onoff-date { display: grid; gap: 4px; }
.nq-onoff-date > span { color: var(--muted); font: 600 8px var(--mono); letter-spacing: .06em; }
.nq-onoff-date input { min-height: 38px; min-width: 0; width: 100%; }
.nq-onoff-apply { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 700 9px var(--mono); min-height: 38px; padding: 0 13px; white-space: nowrap; }
.nq-onoff-apply.dirty { background: var(--cyan); border-color: var(--cyan); color: #04141a; }
.nq-onoff-apply:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.nq-onoff-apply.dirty:hover:not(:disabled) { color: #04141a; filter: brightness(1.08); }
.nq-onoff-apply:disabled { cursor: default; opacity: .4; }
.nq-onoff-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; min-height: 52px; padding: 7px 14px; }
.nq-onoff-toolbar-controls { --wowy-control-height: 36px; align-items: center; display: flex; gap: 8px; }
.nq-onoff-toolbar-controls .nq-segment { height: var(--wowy-control-height); }
.nq-onoff-toolbar-controls .nq-adjustment-control > .nq-segment { height: var(--wowy-control-height); }
.nq-onoff-toolbar-controls .nq-segment button { font-size: 8px; height: calc(var(--wowy-control-height) - 8px); padding: 0 9px; }
.nq-onoff-net-only { background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 700 8px var(--mono); height: var(--wowy-control-height); padding: 0 11px; white-space: nowrap; }
.nq-onoff-net-only:hover { border-color: var(--cyan); color: var(--cyan); }
.nq-onoff-net-only.active { background: rgba(255, 174, 71, .1); border-color: var(--amber); color: var(--amber); }
.nq-onoff-table { isolation: isolate; }
.nq-onoff-table th.lineup.nq-onoff-player-head { box-shadow: 1px 0 0 var(--line); max-width: 190px; min-width: 190px; width: 190px; z-index: 6; }
.nq-onoff-table .nq-onoff-split-head { box-shadow: 1px 0 0 var(--line); left: 190px; min-width: 48px; position: sticky; width: 48px; z-index: 5; }
.nq-onoff-player-cell { background: #091820 !important; background-clip: padding-box; border-right: 1px solid var(--line); box-shadow: 1px 0 0 var(--line); left: 0; max-width: 190px; min-width: 190px; padding: 7px 9px !important; position: sticky; width: 190px; z-index: 5; }
.nq-onoff-player-cell > button { align-items: center; background: transparent; display: grid; gap: 8px; grid-template-columns: 38px minmax(0, 1fr); padding: 0; text-align: left; width: 100%; }
.nq-onoff-player-cell .nq-player-photo { height: 38px; width: 38px; }
.nq-onoff-player-cell > button > span:last-child { display: grid; min-width: 0; }
.nq-onoff-player-cell strong { font: 600 11px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-onoff-player-cell small { color: var(--muted); font: 500 7px var(--mono); margin-top: 3px; white-space: nowrap; }
.nq-onoff-player-cell > button:hover strong { color: var(--cyan); }
.nq-onoff-split { background: #091820 !important; background-clip: padding-box; border-right: 1px solid var(--line); box-shadow: 1px 0 0 var(--line); color: var(--muted); font: 700 8px var(--mono); left: 190px; min-width: 48px !important; position: sticky; text-align: center; width: 48px; z-index: 4; }
.nq-onoff-split.on { color: var(--cyan); }
.nq-onoff-split.delta { color: var(--amber); }
.nq-onoff-row.delta td { background: rgba(255, 174, 71, .035); border-bottom-color: var(--line); }
.nq-onoff-row.delta .nq-onoff-player-cell { background: #0b1b22 !important; }
.nq-onoff-row.delta .nq-onoff-split { background: #0b1b22 !important; }
.nq-onoff-table tbody tr:hover .nq-onoff-player-cell, .nq-onoff-table tbody tr:hover .nq-onoff-split { background: #0c2029 !important; }
.nq-onoff-row:not(.delta) .nq-wowy-number.rating { font-size: 14px; }
.nq-factors { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.nq-factor-board { padding: 0 14px 4px; }
.nq-factor-legend { align-items: center; border-bottom: 1px solid var(--line-soft); display: flex; gap: 14px; justify-content: flex-end; min-height: 30px; }
.nq-factor-legend span { align-items: center; color: var(--muted); display: flex; font: 600 7px var(--mono); gap: 5px; }
.nq-factor-legend span::before { background: var(--tone); border-radius: 50%; content: ""; height: 6px; width: 6px; }
.nq-factor-legend .elite { --tone: var(--mint); }
.nq-factor-legend .neutral { --tone: #7b8f96; }
.nq-factor-legend .poor { --tone: var(--red); }
.nq-factor-head, .nq-factor-row { display: grid; grid-template-columns: 1fr 120px 1fr; }
.nq-factor-head { color: var(--muted); font: 500 9px var(--mono); padding: 6px 0; text-align: center; }
.nq-factor-head span:first-child { text-align: left; }
.nq-factor-head span:last-child { text-align: right; }
.nq-factor-row { align-items: center; gap: 10px; min-height: 58px; }
.nq-factor-name { font: 600 12px var(--mono); text-align: center; }
.nq-factor-side { --factor-color: #7b8f96; align-items: center; display: grid; gap: 10px; height: 40px; }
.nq-factor-side.offense { grid-template-columns: 82px minmax(0, 1fr); }
.nq-factor-side.defense { grid-template-columns: minmax(0, 1fr) 82px; }
.nq-factor-side.elite { --factor-color: #43d58d; }
.nq-factor-side.strong { --factor-color: #79b991; }
.nq-factor-side.weak { --factor-color: #c17c72; }
.nq-factor-side.poor { --factor-color: #ef5d68; }
.nq-factor-number { align-items: baseline; display: flex; gap: 6px; min-width: 0; }
.nq-factor-side.defense .nq-factor-number { justify-content: flex-end; text-align: right; }
.nq-factor-number strong { color: var(--text); font: 700 17px/1 var(--display); white-space: nowrap; }
.nq-factor-number small { color: var(--factor-color); font: 700 11px var(--mono); white-space: nowrap; }
.nq-factor-track { background: rgba(218, 227, 229, .15); border: 1px solid rgba(218, 227, 229, .08); border-radius: 4px; display: block; height: 18px; overflow: hidden; }
.nq-factor-track i { background: var(--factor-color); border-radius: 3px; display: block; height: 100%; transition: width .24s ease; }
.nq-team-blank, .nq-player-blank { align-items: center; border: 1px solid var(--line); color: #587680; display: flex; flex-direction: column; font: 500 11px var(--mono); justify-content: center; min-height: 500px; text-transform: uppercase; }
.nq-thinking-empty > span { letter-spacing: .12em; margin-top: 13px; }
.nq-thinking-mark { align-items: center; display: flex; height: 218px; justify-content: center; position: relative; width: 218px; }
.nq-thinking-mark::before { animation: nq-think-orbit 7s linear infinite; border: 1px solid transparent; border-radius: 50%; border-right-color: rgba(255, 174, 71, .62); border-top-color: rgba(82, 223, 240, .32); content: ""; inset: 8px; position: absolute; }
.nq-thinking-mark::after { animation: nq-think-spark 2.4s ease-in-out infinite; background: var(--amber); border-radius: 50%; box-shadow: 0 0 14px rgba(255, 174, 71, .72), -172px 74px 0 -1px rgba(82, 223, 240, .36); content: ""; height: 7px; position: absolute; right: 20px; top: 42px; width: 7px; }
.nq-thinking-mark img { animation: nq-think-float 3.8s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(82, 223, 240, .18)); height: 190px; object-fit: contain; opacity: .34; width: 190px; }
@keyframes nq-think-orbit { to { transform: rotate(360deg); } }
@keyframes nq-think-float { 0%, 100% { transform: translateY(3px); } 50% { filter: drop-shadow(0 0 22px rgba(82, 223, 240, .27)) drop-shadow(8px -4px 12px rgba(255, 174, 71, .1)); transform: translateY(-4px) scale(1.015); } }
@keyframes nq-think-spark { 0%, 100% { opacity: .34; transform: scale(.72); } 50% { opacity: 1; transform: scale(1.15); } }

/* Players */
.nq-player-search { min-width: min(380px, 42vw); position: relative; }
.nq-player-search > input { width: 100%; }
.nq-player-search > div { background: #091b23; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.36); left: 0; position: absolute; right: 0; top: calc(100% + 5px); z-index: 40; }
.nq-player-search > div button { align-items: center; background: transparent; display: flex; gap: 10px; padding: 8px 10px; text-align: left; width: 100%; }
.nq-player-search > div button:hover { background: rgba(82, 223, 240, .06); }
.nq-player-search button > span:last-child { display: grid; }
.nq-player-search small { color: var(--muted); font: 9px var(--mono); }
.nq-player-identity { grid-template-columns: 158px minmax(220px, 1fr) auto; }
.nq-player-identity .nq-identity-name { align-self: center; }
.nq-player-identity .nq-identity-name > button { align-items: center; background: transparent; color: var(--muted); display: flex; gap: 8px; padding: 0; width: max-content; }
.nq-player-head-tools { align-items: center; align-self: stretch; display: flex; gap: 18px; padding: 15px 16px 15px 0; }
.nq-player-impact { align-items: center; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; min-height: 78px; }
.nq-player-impact > div { border-left: 1px solid var(--line-soft); display: grid; min-width: 92px; padding: 10px 16px; }
.nq-player-impact > div:first-child { border-left: 0; }
.nq-player-impact span, .nq-player-impact small { color: var(--muted); font: 600 8px var(--mono); letter-spacing: .08em; }
.nq-player-impact strong { font: 600 23px/1 var(--display); margin: 7px 0 2px; }
.nq-player-impact .primary strong { color: var(--cyan); font-size: 30px; }
.nq-player-rollups { border-bottom: 1px solid var(--line); overflow-x: auto; }
.nq-player-rollups table { border-collapse: collapse; font-family: var(--mono); table-layout: fixed; width: 100%; }
.nq-player-rollups th, .nq-player-rollups td { border-top: 1px solid var(--line-soft); font-size: 10px; padding: 9px 8px; text-align: right; white-space: nowrap; }
.nq-player-rollups thead th { background: rgba(6, 20, 27, .72); color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .08em; }
.nq-player-rollups th:first-child { padding-left: 14px; text-align: left; width: 104px; }
.nq-player-rollups tbody th { color: var(--text); font-size: 9px; letter-spacing: .05em; }
.nq-player-rollups tbody tr:last-child { background: rgba(82, 223, 240, .045); }
.nq-player-rollups tbody tr:last-child th { color: var(--cyan); }
.nq-production-view-toggle { border: 1px solid var(--line); border-radius: 4px; display: flex; padding: 2px; }
.nq-production-view-toggle button { background: transparent; border-radius: 2px; color: var(--muted); font: 600 8px var(--mono); min-height: 24px; padding: 0 10px; }
.nq-production-view-toggle button.active { background: var(--cyan); color: #04141a; }
.nq-player-rollups.advanced th, .nq-player-rollups.advanced td { font-size: 9px; padding-left: 5px; padding-right: 5px; }
.nq-player-rollups.advanced thead th { font-size: 7px; letter-spacing: .035em; }
.nq-player-rollups.advanced th:first-child { padding-left: 10px; width: 78px; }
.nq-player-context { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(520px, 1.05fr) minmax(420px, .95fr); }
.nq-player-context > section:first-child { border-right: 1px solid var(--line); }
.nq-player-lineup-value table { border-collapse: collapse; font-family: var(--mono); table-layout: fixed; width: 100%; }
.nq-player-lineup-value th, .nq-player-lineup-value td { border-top: 1px solid var(--line-soft); font-size: 11px; padding: 8px 14px; text-align: right; }
.nq-player-lineup-value thead th { background: rgba(6, 20, 27, .72); color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .08em; padding-block: 9px; }
.nq-player-lineup-value th:first-child { text-align: left; width: 108px; }
.nq-player-lineup-value tbody th { color: var(--text); font-size: 9px; letter-spacing: .04em; }
.nq-player-lineup-value tbody tr.nq-onoff-offense th { color: var(--cyan); }
.nq-player-lineup-value tbody tr.nq-onoff-defense th { color: var(--amber); }
.nq-player-lineup-value tbody tr.nq-onoff-group-start th,
.nq-player-lineup-value tbody tr.nq-onoff-group-start td { border-top-color: var(--line); }
.nq-player-lineup-value td.nq-onoff-net { background: rgba(82, 223, 240, .035); font-weight: 700; }
.nq-player-lineup-value td.positive { color: var(--mint); font-weight: 700; }
.nq-player-lineup-value td.negative { color: var(--red); font-weight: 700; }
.nq-availability-log > div:not(.nq-section-label) { align-items: center; border-bottom: 1px solid var(--line-soft); display: grid; gap: 10px; grid-template-columns: 52px 100px minmax(100px, 1fr); min-height: 39px; padding: 5px 14px; }
.nq-availability-log time, .nq-availability-log a, .nq-availability-log > div > span:not(.nq-status), .nq-availability-log small { color: var(--muted); font: 9px var(--mono); }
.nq-availability-log small { grid-column: 3; }
.nq-game-log { min-width: 0; }
.nq-table-scroll { overflow-x: auto; }
.nq-player-log-scroll { max-height: 430px; overflow: auto; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-game-log table { border-collapse: collapse; font-family: var(--mono); font-size: 9px; table-layout: fixed; width: 100%; }
.nq-game-log th { background: #081820; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .06em; padding: 9px 6px; position: sticky; text-align: right; top: 0; white-space: nowrap; z-index: 2; }
.nq-game-log th:nth-child(1), .nq-game-log th:nth-child(2), .nq-game-log th:nth-child(3) { text-align: left; }
.nq-game-log th:nth-child(1) { width: 62px; }
.nq-game-log th:nth-child(2) { width: 18%; }
.nq-game-log th:nth-child(3) { width: 74px; }
.nq-game-log td { border-top: 1px solid var(--line-soft); overflow: hidden; padding: 8px 6px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.nq-game-log td:nth-child(1), .nq-game-log td:nth-child(2), .nq-game-log td:nth-child(3) { text-align: left; }
.nq-game-log tbody tr:hover { background: rgba(82, 223, 240, .025); }
/* WOWY */
.nq-wowy { max-width: 1760px; }
.nq-wowy-builder { border: 1px solid var(--line); margin-bottom: 14px; }
.nq-wowy-team-row { align-items: center; display: grid; gap: 18px; grid-template-columns: minmax(260px, 360px) 1fr; min-height: 82px; padding: 12px 14px; }
.nq-wowy-team-search { position: relative; }
.nq-wowy-team-search label { display: grid; gap: 6px; }
.nq-wowy-team-search label > span { color: var(--muted); font: 500 9px var(--mono); letter-spacing: .12em; }
.nq-wowy-team-search input { width: 100%; }
.nq-wowy-team-results { background: #091b23; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.4); left: 0; position: absolute; right: 0; top: calc(100% + 5px); z-index: 50; }
.nq-wowy-team-results button { align-items: center; background: transparent; display: flex; gap: 9px; padding: 8px 10px; text-align: left; width: 100%; }
.nq-wowy-team-results button:hover { background: rgba(82, 223, 240, .07); }
.nq-wowy-team-id { align-items: center; display: flex; gap: 12px; min-width: 0; }
.nq-wowy-team-id > div { display: grid; gap: 3px; }
.nq-wowy-team-id strong { font: 600 24px var(--display); }
.nq-wowy-team-meta { align-items: baseline; display: flex !important; gap: 5px !important; white-space: nowrap; }
.nq-wowy-team-meta span { color: var(--muted); font: 500 9px/1 var(--mono); letter-spacing: .05em; }
.nq-wowy-games-trigger { background: transparent; border-bottom: 1px solid #587680; color: var(--muted); font: 600 9px/1 var(--mono); letter-spacing: .05em; padding: 0 0 2px; }
.nq-wowy-games-trigger:hover { border-color: var(--cyan); color: var(--cyan); }
.nq-wowy-games-trigger:disabled { border-color: transparent; cursor: default; opacity: .5; }
.nq-wowy-builder-actions { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; min-height: 62px; padding: 10px 14px; }
.nq-wowy-filter-button { background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 600 10px var(--mono); min-height: 38px; padding: 0 14px; }
.nq-wowy-filter-button.active { border-color: var(--cyan); color: var(--cyan); }
.nq-wowy-filter-button:disabled { cursor: default; opacity: .35; }
.nq-wowy-filter-panel { background: rgba(82, 223, 240, .025); border-top: 1px solid var(--line); }
.nq-wowy-filters { align-items: end; display: grid; gap: 10px; grid-template-columns: auto 150px minmax(150px,1fr) minmax(150px,1fr) auto 130px; padding: 12px 14px; }
.nq-wowy-check { align-items: center; border: 1px solid var(--line); border-radius: 6px; display: flex; gap: 9px; min-height: 38px; padding: 0 11px; }
.nq-wowy-check input { accent-color: var(--cyan); min-height: 0; }
.nq-wowy-check span, .nq-wowy-inline-number > span { color: var(--muted); font: 600 9px var(--mono); letter-spacing: .04em; }
.nq-wowy-inline-number { align-items: center; display: flex; gap: 8px; }
.nq-wowy-inline-number input { min-width: 0; width: 72px; }
.nq-wowy-inline-number.disabled { opacity: .42; }
.nq-wowy-games-panel { border-top: 1px solid var(--line); }
.nq-wowy-games-bar { align-items: center; background: transparent; color: var(--muted); display: grid; font: 600 9px var(--mono); grid-template-columns: auto 1fr auto; letter-spacing: .08em; padding: 9px 14px; text-align: left; width: 100%; }
.nq-wowy-games-bar:hover { background: rgba(82, 223, 240, .03); color: var(--text); }
.nq-wowy-games-bar strong { color: var(--text); font-weight: 600; margin-left: 9px; }
.nq-wowy-games-drawer { border-top: 1px solid var(--line-soft); padding: 0 14px 12px; }
.nq-wowy-games-actions { align-items: center; display: flex; gap: 6px; min-height: 36px; }
.nq-wowy-games-actions span { color: var(--muted); font: 500 8px var(--mono); letter-spacing: .08em; margin-right: auto; }
.nq-wowy-games-actions button { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font: 600 8px var(--mono); padding: 4px 7px; }
.nq-wowy-games-actions button:hover { border-color: var(--cyan); color: var(--cyan); }
.nq-wowy-game-grid { display: grid; gap: 5px; grid-template-columns: repeat(3, minmax(230px, 1fr)); max-height: 218px; overflow-y: auto; padding-right: 3px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-wowy-game-option { align-items: center; background: rgba(6, 18, 24, .56); border: 1px solid var(--line-soft); border-radius: 5px; display: grid; gap: 7px; grid-template-columns: auto 42px 24px minmax(0, 1fr) auto; min-height: 40px; padding: 5px 8px; }
.nq-wowy-game-option:hover { border-color: var(--line); }
.nq-wowy-game-option.excluded { opacity: .38; }
.nq-wowy-game-option.unavailable { background: rgba(255, 174, 66, .018); cursor: not-allowed; }
.nq-wowy-game-option.unavailable:hover { border-color: var(--line-soft); }
.nq-wowy-game-option input { accent-color: var(--cyan); min-height: 0; }
.nq-wowy-game-option input:disabled { cursor: not-allowed; opacity: .35; }
.nq-wowy-game-option time { color: var(--muted); font: 500 8px var(--mono); }
.nq-wowy-game-option .nq-team-logo { height: 22px; width: 22px; }
.nq-wowy-game-option .name { font: 600 10px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-wowy-game-option > strong { color: var(--muted); display: grid; font: 600 9px var(--mono); gap: 3px; justify-items: end; white-space: nowrap; }
.nq-wowy-game-option > strong small { border: 1px solid rgba(255, 174, 66, .42); border-radius: 3px; color: var(--orange); font: 600 7px/1 var(--mono); letter-spacing: .04em; padding: 3px 4px; }
.nq-wowy-game-option > strong.win { color: var(--mint); }
.nq-wowy-game-option > strong.loss { color: #ff8e94; }
.nq-wowy-roster { border-top: 1px solid var(--line); }
.nq-wowy-roster-scroll { display: flex; gap: 5px; overflow-x: auto; padding: 12px 14px 14px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-wowy-player { align-items: center; display: flex; flex-direction: column; min-width: 0; position: relative; text-align: center; }
.nq-wowy-player.interactive { background: transparent; border: 1px solid transparent; border-radius: 8px; flex: 0 0 94px; min-height: 98px; padding: 7px 5px 5px; }
.nq-wowy-player.interactive:hover { background: rgba(82, 223, 240, .035); border-color: var(--line); }
.nq-wowy-player.interactive.on { background: rgba(82, 223, 240, .065); border-color: rgba(82, 223, 240, .32); }
.nq-wowy-headshot { display: block; position: relative; }
.nq-player-photo.wowy { height: 52px; transition: filter .16s ease, opacity .16s ease, box-shadow .16s ease; width: 52px; }
.nq-wowy-player.on .nq-player-photo.wowy { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(82, 223, 240, .22), 0 0 18px rgba(82, 223, 240, .18); }
.nq-wowy-player.off .nq-player-photo.wowy { filter: grayscale(.82) brightness(.42); opacity: .72; }
.nq-wowy-player > strong { display: -webkit-box; font-size: 11px; line-height: 1.12; margin-top: 6px; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.nq-wowy-player > strong.nq-wowy-player-name.split { display: grid; grid-template-rows: repeat(2, 1fr); min-height: 25px; width: 100%; -webkit-line-clamp: initial; }
.nq-wowy-player-name.split > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-wowy-player > small { color: var(--muted); font: 500 7px var(--mono); margin-top: 3px; }
.nq-wowy-player-stats { align-items: center; display: flex; gap: 4px; justify-content: center; white-space: nowrap; }
.nq-wowy-player-stats i { color: #49656f; font-style: normal; }
.nq-wowy-player-stats .bpr { color: var(--cyan); }
.nq-wowy-select-mark { align-items: center; background: #17333e; border: 1px solid var(--line); border-radius: 50%; bottom: -1px; color: var(--muted); display: flex; font: 700 10px var(--mono); height: 18px; justify-content: center; position: absolute; right: -3px; width: 18px; }
.nq-wowy-player.on .nq-wowy-select-mark { background: var(--cyan); border-color: var(--cyan); color: #04141a; }
.nq-wowy-off-label { align-items: center; background: rgba(4, 13, 18, .78); border-radius: 50%; color: #90a1a7; display: flex; font: 700 8px var(--mono); inset: 0; justify-content: center; position: absolute; }
.nq-wowy-empty { align-items: center; border: 1px solid var(--line); color: #587680; display: flex; flex-direction: column; font: 500 11px var(--mono); justify-content: center; min-height: 430px; }
.nq-wowy-selection { align-items: center; border: 1px solid var(--line); color: var(--muted); display: flex; gap: 10px; justify-content: center; min-height: 180px; padding: 20px; }
.nq-wowy-selection .nq-wowy-player { flex: 0 0 72px; }
.nq-wowy-results { border: 1px solid var(--line); }
.nq-wowy-results-head { align-items: center; background: linear-gradient(90deg, rgba(82, 223, 240, .07), transparent 45%); border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; min-height: 62px; padding: 8px 14px; }
.nq-wowy-results-team { align-items: center; display: flex; flex: 0 0 auto; gap: 9px; }
.nq-wowy-results-team strong { font: 600 20px var(--display); }
.nq-wowy-results-tools { --wowy-control-height: 36px; align-items: center; display: flex; gap: 8px; justify-content: flex-end; min-width: 0; }
.nq-wowy-filter-chips { align-items: center; display: flex; gap: 6px; }
.nq-wowy-filter-chips span { align-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); display: inline-flex; font: 500 8px var(--mono); height: var(--wowy-control-height); padding: 0 10px; white-space: nowrap; }
.nq-wowy-min-poss { align-items: center; border: 1px solid var(--line); border-radius: 5px; display: flex; height: var(--wowy-control-height); overflow: hidden; }
.nq-wowy-min-poss span { color: var(--muted); font: 600 8px var(--mono); padding-left: 8px; white-space: nowrap; }
.nq-wowy-min-poss input { background: transparent; border: 0; border-radius: 0; font: 600 10px var(--mono); height: calc(var(--wowy-control-height) - 2px); min-height: 0; padding: 0 7px; text-align: right; width: 58px; }
.nq-wowy-results-tools .nq-segment { flex: 0 0 auto; height: var(--wowy-control-height); }
.nq-wowy-results-tools .nq-adjustment-control > .nq-segment { height: var(--wowy-control-height); }
.nq-wowy-results-tools .nq-segment button { font-size: 8px; height: calc(var(--wowy-control-height) - 8px); padding: 0 9px; }
.nq-wowy-table-scroll { overflow-x: auto; }
.nq-wowy-table { border-collapse: separate; border-spacing: 0; font-family: var(--mono); min-width: 900px; width: 100%; }
.nq-wowy-table.expanded { min-width: 1160px; }
.nq-wowy-table th { background: #0a1921; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .05em; padding: 7px 5px; text-align: center; }
.nq-wowy-table th.group { color: var(--text); font-size: 11px; }
.nq-wowy-table th.group.summary { border-left: 1px solid var(--line); }
.nq-wowy-table th.group.offense { border-left: 1px solid var(--line); color: var(--cyan); }
.nq-wowy-table th.group.defense { border-left: 1px solid var(--line); color: var(--amber); }
.nq-wowy-table .section-start { border-left: 1px solid var(--line); }
.nq-wowy-table th.lineup { left: 0; max-width: var(--wowy-lineup-width, 280px); min-width: var(--wowy-lineup-width, 280px); position: sticky; text-align: left; width: var(--wowy-lineup-width, 280px); z-index: 4; }
.nq-wowy-sort { align-items: center; background: transparent; color: inherit; display: inline-flex; font: inherit; gap: 4px; justify-content: center; letter-spacing: inherit; min-height: 22px; padding: 0; }
.nq-wowy-table th.lineup .nq-wowy-sort { justify-content: flex-start; width: 100%; }
.nq-wowy-sort:hover, .nq-wowy-sort.active { color: var(--text); }
.nq-wowy-sort-mark { color: #48636d; font-size: 10px; line-height: 1; }
.nq-wowy-sort.active .nq-wowy-sort-mark { color: var(--cyan); }
.nq-wowy-table td { background: #091820; border-bottom: 1px solid var(--line-soft); min-width: 54px; padding: 8px 5px; }
.nq-wowy-table tbody tr:hover td { background: #0c2029; }
.nq-wowy-table tbody tr.no-sample { opacity: .44; }
.nq-wowy-no-rows { color: var(--muted); font: 600 10px var(--mono); height: 100px; text-align: center !important; }
.nq-wowy-configuration { border-right: 1px solid var(--line); left: 0; max-width: var(--wowy-lineup-width, 280px); min-width: var(--wowy-lineup-width, 280px); position: sticky; width: var(--wowy-lineup-width, 280px); z-index: 3; }
.nq-wowy-configuration > div { align-items: flex-start; display: flex; gap: 6px; }
.nq-wowy-configuration .nq-wowy-player { flex: 1 1 0; max-width: 72px; }
.nq-wowy-configuration .nq-player-photo.wowy { height: 42px; width: 42px; }
.nq-wowy-configuration .nq-wowy-player > strong { font-size: 9px; }
.nq-wowy-number { font: 600 13px var(--mono); text-align: right; }
.nq-wowy-number.rating { color: var(--text); font-size: 16px; }
.nq-wowy-number.empty { color: #48636d; }
.nq-wowy-number.tone-offense { color: var(--cyan); }
.nq-wowy-number.tone-defense { color: var(--amber); }
.nq-wowy-number.tone-positive { color: #67dfad; }
.nq-wowy-number.tone-negative { color: #ff7d77; }

/* Player WOWY */
.nq-player-wowy-page { max-width: 1760px; }
.nq-player-wowy-configs, .nq-player-wowy-detail { background: rgba(7, 21, 28, .76); border: 1px solid var(--line); margin-top: 14px; min-width: 0; }
.nq-player-wowy-configs > .nq-section-label, .nq-player-wowy-detail > .nq-section-label { border-bottom: 1px solid var(--line); min-height: 48px; padding: 8px 14px; }
.nq-player-wowy-config-scroll { display: flex; gap: 7px; overflow-x: auto; overflow-y: hidden; padding: 10px 12px 12px; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-player-wowy-config { background: #08171e; border: 1px solid var(--line-soft); border-radius: 5px; color: var(--text); display: grid; flex: 0 0 calc(var(--player-count) * 72px + 24px); gap: 7px; min-height: 120px; padding: 9px 11px 8px; text-align: left; transition: background .14s ease, border-color .14s ease, transform .14s ease; }
.nq-player-wowy-config:hover { background: #0b2029; border-color: #31535e; transform: translateY(-1px); }
.nq-player-wowy-config.active { background: linear-gradient(145deg, rgba(82, 223, 240, .1), rgba(8, 23, 30, .94) 55%); border-color: rgba(82, 223, 240, .62); box-shadow: inset 0 2px var(--cyan), 0 8px 24px rgba(0, 0, 0, .16); }
.nq-player-wowy-config-players { align-items: start; display: flex; flex-wrap: nowrap; gap: 6px; justify-content: center; min-height: 77px; }
.nq-player-wowy-config-player { align-items: center; display: flex; flex: 0 0 66px; flex-direction: column; min-width: 0; position: relative; text-align: center; }
.nq-player-wowy-config-headshot { display: block; position: relative; }
.nq-player-wowy-config-player .nq-player-photo { border-color: #2a5967; height: 44px; width: 44px; }
.nq-player-wowy-config-player small { align-items: center; background: rgba(5, 16, 22, .82); border-radius: 50%; color: #84979e; display: flex; font: 700 7px var(--mono); inset: 0; justify-content: center; position: absolute; }
.nq-player-wowy-config-player.off .nq-player-photo { filter: grayscale(1) brightness(.34); opacity: .68; }
.nq-player-wowy-config-player > strong { display: grid; font: 600 8px/1.05 var(--mono); margin-top: 5px; max-width: 66px; width: 100%; }
.nq-player-wowy-config-player > strong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-player-wowy-config-minutes { border-top: 1px solid var(--line-soft); color: var(--text); font: 600 11px var(--mono); padding-top: 7px; text-align: right; }
.nq-player-wowy-change { background: rgba(7, 21, 28, .8); border: 1px solid var(--line); margin-top: 14px; min-width: 0; }
.nq-player-wowy-change > .nq-section-label { border-bottom: 1px solid var(--line); min-height: 54px; padding: 8px 14px; }
.nq-player-wowy-change-head > div:first-child { align-items: baseline; display: flex; gap: 10px; }
.nq-player-wowy-change-head > div:first-child > span { color: var(--muted); font: 600 8px var(--mono); }
.nq-player-wowy-change-tools { align-items: center; display: flex; gap: 7px; }
.nq-player-wowy-change-tools label { align-items: center; background: #08171e; border: 1px solid var(--line); border-radius: 5px; display: flex; height: 36px; overflow: hidden; }
.nq-player-wowy-change-tools label > span { color: #78909a; font: 600 7px var(--mono); letter-spacing: .04em; padding-left: 9px; white-space: nowrap; }
.nq-player-wowy-change-tools select, .nq-player-wowy-change-tools input { background: transparent; border: 0; border-radius: 0; color: var(--text); font: 600 9px var(--mono); height: 34px; min-height: 0; outline: 0; padding: 0 8px; }
.nq-player-wowy-change-tools select { cursor: pointer; max-width: 124px; }
.nq-player-wowy-change-tools input { text-align: right; width: 58px; }
.nq-player-wowy-change-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-player-wowy-change-table { border-collapse: separate; border-spacing: 0; font-family: var(--mono); table-layout: fixed; }
.nq-player-wowy-change-table thead th { background: #07151c; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line-soft); color: var(--muted); height: 124px; overflow: hidden; padding: 0; text-align: center; vertical-align: middle; }
.nq-player-wowy-change-table th.player { border-right: 1px solid var(--line); left: 0; position: sticky; text-align: left; z-index: 4; }
.nq-player-wowy-change-table thead th.player { font: 600 8px var(--mono); letter-spacing: .06em; padding: 0 12px; z-index: 6; }
.nq-player-wowy-change-table thead th.baseline { padding: 0 6px; }
.nq-player-wowy-base-sort { align-items: center; background: transparent; color: inherit; display: grid; height: 100%; justify-items: center; padding: 8px 4px; width: 100%; }
.nq-player-wowy-base-sort:hover { background: rgba(82, 223, 240, .05); }
.nq-player-wowy-base-sort strong { color: var(--text); display: flex !important; font: 600 9px var(--mono); gap: 5px; }
.nq-player-wowy-base-sort strong i { color: #4e6c76; font-style: normal; }
.nq-player-wowy-base-sort.active strong i { color: var(--cyan); }
.nq-player-wowy-base-sort small { color: #607983; display: block; font: 600 7px var(--mono); margin-top: 4px; }
.nq-player-wowy-change-config-key { display: grid; grid-template-rows: 1fr 25px; height: 124px; }
.nq-player-wowy-change-config { align-items: center; background: transparent; color: inherit; display: grid; gap: 5px; height: auto; justify-items: center; min-height: 99px; padding: 6px 4px 4px; width: 100%; }
.nq-player-wowy-change-config:hover, .nq-player-wowy-change-config:focus-visible { background: rgba(82, 223, 240, .06); }
.nq-player-wowy-change-config:focus-visible { outline: 1px solid var(--cyan); outline-offset: -2px; }
.nq-player-wowy-change-config-players { align-items: start; display: flex; gap: 5px; justify-content: center; width: 100%; }
.nq-player-wowy-change-config-player { align-items: center; display: grid; flex: 1 1 0; justify-items: center; min-width: 0; position: relative; }
.nq-player-wowy-change-config-headshot { display: block; height: 30px; position: relative; width: 30px; }
.nq-player-wowy-change-config-player .nq-player-photo { background: #0d2630; border: 1px solid #2d6371; height: 30px; width: 30px; }
.nq-player-wowy-change-config-headshot small { align-items: center; background: rgba(4, 14, 19, .8); border-radius: 50%; color: var(--text); display: flex; font: 700 5px var(--mono); inset: 0; justify-content: center; position: absolute; }
.nq-player-wowy-change-config-player.off .nq-player-photo { filter: grayscale(1) brightness(.32); opacity: .72; }
.nq-player-wowy-change-config-player > strong { color: #a8bac0; display: grid; font: 600 6px/1.05 var(--mono); margin-top: 3px; max-width: 52px; text-align: center; width: 100%; }
.nq-player-wowy-change-config-player > strong span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-player-wowy-change-config-player.off > strong { color: #60747b; }
.nq-player-wowy-change-config > strong { color: var(--text); font: 600 8px var(--mono); }
.nq-player-wowy-change-sorters { border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr; height: 25px; }
.nq-player-wowy-change-sorters button { align-items: center; background: #08171e; color: #607983; display: flex; font: 600 6px var(--mono); gap: 3px; justify-content: center; letter-spacing: .03em; padding: 0 3px; }
.nq-player-wowy-change-sorters button + button { border-left: 1px solid var(--line-soft); }
.nq-player-wowy-change-sorters button:hover { background: #0d242d; color: var(--text); }
.nq-player-wowy-change-sorters button.active { background: rgba(82, 223, 240, .1); color: var(--cyan); }
.nq-player-wowy-change-sorters i { color: #45616b; font-size: 8px; font-style: normal; }
.nq-player-wowy-change-sorters button.active i { color: var(--cyan); }
.nq-player-wowy-change-table tbody th, .nq-player-wowy-change-table tbody td { background: #091820; border-bottom: 1px solid var(--line-soft); border-right: 1px solid rgba(25, 64, 76, .58); height: 68px; overflow: hidden; padding: 0; }
.nq-player-wowy-change-table tbody tr:hover th, .nq-player-wowy-change-table tbody tr:hover td { background: #0b2028; }
.nq-player-wowy-change-table tbody th.player { background: #091820; z-index: 3; }
.nq-player-wowy-change-table tbody th.player > button { align-items: center; background: transparent; color: inherit; display: flex; gap: 8px; min-width: 0; padding: 7px 10px; text-align: left; width: 100%; }
.nq-player-wowy-change-table tbody th.player > button:hover strong, .nq-player-wowy-change-table tbody th.player > button:focus-visible strong { color: var(--cyan); }
.nq-player-wowy-change-table tbody th.player .nq-player-photo { flex: 0 0 auto; height: 34px; width: 34px; }
.nq-player-wowy-change-table tbody th.player button > span { display: grid; gap: 2px; min-width: 0; }
.nq-player-wowy-change-table tbody th.player strong { color: var(--text); font: 600 10px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-player-wowy-change-table tbody th.player small { color: var(--muted); font: 500 7px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-player-wowy-change-table td.baseline { background: #08161d; text-align: center; }
.nq-player-wowy-change-table td.baseline strong { color: var(--text); display: block; font: 600 12px var(--mono); }
.nq-player-wowy-change-table td.baseline small { color: #59737d; display: block; font: 600 6px var(--mono); margin-top: 4px; }
.nq-player-wowy-change-table td.change { position: relative; text-align: center; }
.nq-player-wowy-change-table td.change.up { background: rgba(69, 158, 122, var(--change-alpha)); }
.nq-player-wowy-change-table td.change.down { background: rgba(183, 72, 75, var(--change-alpha)); }
.nq-player-wowy-change-table td.change > button { align-items: center; background: transparent; color: inherit; display: grid; gap: 3px; height: 100%; justify-items: center; padding: 6px 4px; width: 100%; }
.nq-player-wowy-change-table td.change > button:hover { background: rgba(255, 255, 255, .025); }
.nq-player-wowy-change-table td.change strong { color: var(--text); font: 600 12px var(--mono); }
.nq-player-wowy-change-table td.change .delta { font: 700 8px var(--mono); }
.nq-player-wowy-change-table td.change .sample { color: #8299a1; font: 600 7px var(--mono); }
.nq-player-wowy-change-table td.change.up .delta { color: var(--mint); }
.nq-player-wowy-change-table td.change.down .delta { color: var(--red); }
.nq-player-wowy-change-table td.change .empty { color: #45616b; font: 600 11px var(--mono); }
.nq-player-wowy-change-table td.change.low-sample { background: #0a1419; }
.nq-player-wowy-change-table td.change.low-sample > button { filter: grayscale(.82); opacity: .34; }
.nq-player-wowy-change-table td.change.low-sample > button:hover, .nq-player-wowy-change-table td.change.low-sample > button:focus-visible { filter: grayscale(.5); opacity: .68; }
.nq-player-wowy-change-rule { background: #17333d; display: block; height: 2px; position: relative; width: 50px; }
.nq-player-wowy-change-rule::after { background: #55717a; content: ""; height: 6px; left: calc(50% - .5px); position: absolute; top: -2px; width: 1px; }
.nq-player-wowy-change-rule i { display: block; height: 2px; max-width: 50%; position: absolute; top: 0; }
.nq-player-wowy-change-table td.change.up .nq-player-wowy-change-rule i { background: var(--mint); left: 50%; }
.nq-player-wowy-change-table td.change.down .nq-player-wowy-change-rule i { background: var(--red); right: 50%; }
.nq-player-wowy-detail-tools { align-items: center; display: flex; gap: 8px; }
.nq-player-wowy-minutes-filter { align-items: center; border: 1px solid var(--line); border-radius: 5px; display: flex; height: 36px; overflow: hidden; }
.nq-player-wowy-minutes-filter span { color: var(--muted); font: 600 8px var(--mono); padding-left: 9px; white-space: nowrap; }
.nq-player-wowy-minutes-filter input { background: transparent; border: 0; border-radius: 0; font: 600 10px var(--mono); height: 34px; min-height: 0; padding: 0 8px; text-align: right; width: 62px; }
.nq-player-wowy-table-scroll { overflow-x: auto; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-player-wowy-table { border-collapse: separate; border-spacing: 0; font-family: var(--mono); table-layout: fixed; }
.nq-player-wowy-table th { background: #0a1921; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 8px var(--mono); letter-spacing: .05em; overflow: hidden; padding: 8px 7px; text-align: right; white-space: nowrap; }
.nq-player-wowy-table thead th:first-child { left: 0; max-width: 176px; min-width: 176px; position: sticky; text-align: left; width: 176px; z-index: 4; }
.nq-player-wowy-sort { align-items: center; background: transparent; color: inherit; display: inline-flex; font: inherit; gap: 4px; justify-content: flex-end; letter-spacing: inherit; min-height: 24px; padding: 0; width: 100%; }
.nq-player-wowy-table thead th:first-child .nq-player-wowy-sort { justify-content: flex-start; }
.nq-player-wowy-sort i { color: #45616b; font-size: 9px; font-style: normal; }
.nq-player-wowy-sort:hover, .nq-player-wowy-sort.active { color: var(--text); }
.nq-player-wowy-sort.active i { color: var(--cyan); }
.nq-player-wowy-table td { background: #091820; border-bottom: 1px solid var(--line-soft); font: 600 11px var(--mono); overflow: hidden; padding: 10px 7px; text-align: right; white-space: nowrap; }
.nq-player-wowy-table tbody tr:hover td, .nq-player-wowy-table tbody tr:hover th { background: #0c2029; }
.nq-player-wowy-table tbody th { background: #091820; border-bottom: 1px solid var(--line-soft); left: 0; max-width: 176px; min-width: 176px; position: sticky; text-align: left; width: 176px; z-index: 3; }
.nq-player-wowy-person { align-items: center; background: transparent; color: inherit; display: flex; gap: 7px; min-width: 0; padding: 0; text-align: left; width: 100%; }
.nq-player-wowy-person:hover strong, .nq-player-wowy-person:focus-visible strong { color: var(--cyan); }
.nq-player-wowy-person:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }
.nq-player-wowy-person .nq-player-photo { flex: 0 0 auto; height: 32px; width: 32px; }
.nq-player-wowy-person > span { display: grid; gap: 2px; min-width: 0; }
.nq-player-wowy-person strong { color: var(--text); font: 600 11px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nq-player-wowy-person small { color: var(--muted); font: 500 7px var(--mono); }
.nq-player-wowy-empty-row { color: var(--muted); height: 100px; text-align: center !important; }

/* Admin */
.nq-rail-foot button.active { color: var(--cyan); }
.nq-admin { max-width: 1760px; }
.nq-admin-nav { background: rgba(7, 21, 28, .82); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); margin-bottom: 14px; overflow-x: auto; }
.nq-admin-nav button { align-items: center; background: transparent; border-right: 1px solid var(--line-soft); display: flex; gap: 8px; min-height: 48px; padding: 8px 12px; text-align: left; white-space: nowrap; }
.nq-admin-nav button:last-child { border-right: 0; }
.nq-admin-nav button:hover { background: rgba(82, 223, 240, .04); }
.nq-admin-nav button.active { background: linear-gradient(90deg, rgba(82, 223, 240, .12), rgba(82, 223, 240, .02)); box-shadow: inset 0 -2px var(--cyan); }
.nq-admin-nav button span { color: #52717c; font: 500 8px var(--mono); }
.nq-admin-nav button strong { font: 600 13px var(--display); letter-spacing: .04em; }
.nq-admin-nav button.active strong { color: var(--cyan); }
.nq-admin-stack { display: grid; gap: 14px; }
.nq-admin-notice { background: rgba(82, 223, 240, .06); border-left: 2px solid var(--cyan); color: var(--text); font: 500 10px var(--mono); margin-bottom: 12px; padding: 10px 12px; }
.nq-admin-notice.ok { background: rgba(101, 228, 170, .07); border-color: var(--mint); }
.nq-admin-notice.err { background: rgba(255, 101, 112, .08); border-color: var(--red); color: #ffadb2; }
.nq-admin-section { background: rgba(7, 21, 28, .78); border: 1px solid var(--line); min-width: 0; }
.nq-admin-section > header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 44px; padding: 0 13px; }
.nq-admin-section > header strong { font: 600 13px var(--mono); letter-spacing: .05em; }
.nq-admin-section > header span { color: var(--muted); font: 500 8px var(--mono); letter-spacing: .07em; }
.nq-admin-table-scroll { overflow-x: auto; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.nq-admin-table { border-collapse: collapse; font-family: var(--mono); min-width: 760px; width: 100%; }
.nq-admin-table th { background: #0a1921; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .06em; padding: 9px 10px; text-align: left; white-space: nowrap; }
.nq-admin-table td { border-top: 1px solid var(--line-soft); font-size: 10px; padding: 9px 10px; vertical-align: middle; }
.nq-admin-table tbody tr:hover td { background: rgba(82, 223, 240, .025); }
.nq-admin-table td.empty { color: var(--muted); height: 84px; text-align: center; }
.nq-admin-table.users { min-width: 1320px; }
.nq-admin-primary { display: grid; gap: 2px; min-width: 130px; }
.nq-admin-primary strong { font: 600 11px var(--font); }
.nq-admin-primary span { color: var(--muted); font-size: 8px; }
.nq-admin-map { display: flex; gap: 5px; min-width: 168px; }
.nq-admin-map input { font-size: 9px; min-height: 30px; padding: 5px 7px; width: 108px; }
.nq-admin-map button, .nq-admin-action { background: var(--cyan); border-radius: 5px; color: #04141a; font: 700 9px var(--mono); min-height: 30px; padding: 0 10px; }
.nq-admin-map button:disabled, .nq-admin-action:disabled { cursor: default; opacity: .4; }
.nq-admin-quiet { background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 600 9px var(--mono); min-height: 30px; padding: 0 10px; }
.nq-admin-quiet:hover { border-color: var(--cyan); color: var(--cyan); }
.nq-admin-tool-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.nq-admin-tool { background: rgba(7, 21, 28, .78); border: 1px solid var(--line); display: grid; gap: 8px; padding: 11px; }
.nq-admin-tool header { align-items: center; display: flex; justify-content: space-between; }
.nq-admin-tool header strong { font: 600 12px var(--mono); }
.nq-admin-tool header span { color: var(--muted); font: 500 8px var(--mono); }
.nq-admin-tool textarea { background: #07151c; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font: 500 10px var(--mono); min-height: 78px; outline: none; padding: 8px; resize: vertical; }
.nq-admin-tool textarea:focus { border-color: var(--cyan); }
.nq-admin-tool .nq-admin-action { justify-self: end; min-width: 84px; }
.nq-admin-section-tools { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 7px; justify-content: flex-end; padding: 8px 10px; }
.nq-admin-section-tools input { font: 500 9px var(--mono); min-height: 32px; min-width: 220px; }
.nq-admin-section-tools select { font: 500 9px var(--mono); min-height: 32px; }
.nq-admin-sort { align-items: center; background: transparent; color: inherit; display: inline-flex; font: inherit; gap: 4px; letter-spacing: inherit; padding: 0; }
.nq-admin-sort span { color: #48636d; }
.nq-admin-sort.active { color: var(--text); }
.nq-admin-badge { border: 1px solid var(--line); border-radius: 3px; color: var(--muted); display: inline-block; font: 600 8px var(--mono); padding: 4px 6px; text-transform: uppercase; white-space: nowrap; }
.nq-admin-badge.ok { background: rgba(101, 228, 170, .07); border-color: rgba(101, 228, 170, .28); color: var(--mint); }
.nq-admin-badge.warn { background: rgba(255, 174, 71, .08); border-color: rgba(255, 174, 71, .3); color: var(--amber); }
.nq-admin-badge.bad { background: rgba(255, 101, 112, .08); border-color: rgba(255, 101, 112, .3); color: #ff8d95; }
.nq-monitor-context { align-items: center; border: 1px solid var(--line); color: var(--muted); display: flex; font: 500 8px var(--mono); gap: 18px; margin-bottom: 14px; min-height: 38px; padding: 8px 12px; }
.nq-monitor-context span:last-child { margin-left: auto; }
.nq-monitor-pair { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 10px; }
.nq-monitor-card { background: rgba(7, 21, 28, .82); border: 1px solid var(--line); }
.nq-monitor-card > header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 60px; padding: 9px 12px; }
.nq-monitor-card > header > div { display: grid; gap: 2px; }
.nq-monitor-card > header span { font: 600 13px var(--mono); }
.nq-monitor-card > header small { color: var(--muted); font: 500 8px var(--mono); }
.nq-monitor-card > header > strong { font: 600 28px var(--display); }
.nq-monitor-card > header > strong.bad { color: var(--red); }
.nq-monitor-card > header > strong.warn { color: var(--amber); }
.nq-monitor-card > header > strong.ok, .nq-monitor-card > header > strong.great { color: var(--mint); }
.nq-monitor-card > div { display: grid; grid-template-columns: repeat(6, 1fr); }
.nq-admin-stat { border-right: 1px solid var(--line-soft); display: grid; gap: 3px; min-height: 58px; padding: 9px 10px; }
.nq-admin-stat:last-child { border-right: 0; }
.nq-admin-stat span { color: var(--muted); font: 500 8px var(--mono); }
.nq-admin-stat strong { font: 600 17px var(--display); }
.nq-admin-stat.warn strong { color: var(--amber); }
.nq-admin-stat.bad strong { color: var(--red); }
.nq-admin-summary { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, 1fr); }
.nq-admin-summary .nq-admin-stat { min-height: 70px; }
.nq-admin-split { display: grid; gap: 14px; grid-template-columns: .7fr 1.3fr; }
.nq-admin-create-user { align-items: end; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(150px, 1fr)) repeat(2, minmax(170px, 1fr)) 100px auto auto; padding: 12px; }
.nq-admin-create-user > label:not(.nq-admin-checkbox) { display: grid; gap: 5px; }
.nq-admin-create-user label > span { color: var(--muted); font: 500 8px var(--mono); }
.nq-admin-create-user input, .nq-admin-create-user select { font-size: 10px; }
.nq-admin-checkbox { align-items: center; border: 1px solid var(--line); border-radius: 5px; display: flex; gap: 7px; min-height: 38px; padding: 0 9px; }
.nq-admin-checkbox input { accent-color: var(--cyan); min-height: 0; }
.nq-admin-row-actions { align-items: center; display: flex; gap: 5px; min-width: 132px; }
.nq-admin-password-input { font-size: 9px; min-height: 30px; min-width: 130px; padding: 5px 7px; }
.nq-admin-user-edit { display: grid; gap: 4px; min-width: 180px; }
.nq-admin-user-edit input { font-size: 9px; min-height: 30px; padding: 5px 7px; }
.nq-data-layout { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.nq-data-drop { align-items: center; display: grid; gap: 12px; grid-template-columns: 1fr auto; min-height: 180px; padding: 20px; }
.nq-data-drop input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.nq-data-drop label { align-items: center; border: 1px dashed #34606f; border-radius: 7px; cursor: pointer; display: flex; flex-direction: column; grid-row: 1; justify-content: center; min-height: 138px; }
.nq-data-drop label:hover { background: rgba(82, 223, 240, .035); border-color: var(--cyan); }
.nq-data-drop label strong { font: 600 16px var(--mono); }
.nq-data-drop label span { color: var(--muted); font: 500 8px var(--mono); margin-top: 5px; }
.nq-data-status { align-content: center; display: grid; gap: 9px; min-height: 180px; padding: 20px; }
.nq-data-status > strong { font: 600 14px var(--mono); }
.nq-data-status > span, .nq-data-status > small { color: var(--muted); font: 500 9px var(--mono); }
.nq-data-progress { background: #07151c; border: 1px solid var(--line); height: 10px; overflow: hidden; }
.nq-data-progress span { background: var(--cyan); display: block; height: 100%; transition: width .2s ease; }

/* Login */
.nq-login, .nq-boot { align-items: center; display: flex; justify-content: center; min-height: 100dvh; }
.nq-login > section { background: rgba(7, 21, 28, .84); border: 1px solid var(--line); display: grid; grid-template-columns: 250px 320px; min-height: 330px; }
.nq-login-brand { align-items: center; background: linear-gradient(155deg, rgba(82, 223, 240, .12), transparent); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.nq-login-brand img { height: 160px; object-fit: contain; width: 160px; }
.nq-login-brand > div { display: grid; text-align: center; }
.nq-login-brand strong { font: 700 34px/.9 var(--display); }
.nq-login-brand span { color: var(--cyan); font: 500 9px var(--mono); letter-spacing: .12em; }
.nq-login form { align-content: center; display: grid; gap: 14px; padding: 30px; }
.nq-login form label { display: grid; gap: 6px; }
.nq-login form label span { color: var(--muted); font: 500 9px var(--mono); }
.nq-boot img { animation: nq-breathe 1s ease-in-out infinite alternate; height: 120px; object-fit: contain; }
@keyframes nq-breathe { to { filter: drop-shadow(0 0 20px rgba(82,223,240,.32)); transform: scale(1.02); } }

@media (max-width: 1180px) {
  .nq-shell { grid-template-columns: 78px minmax(0,1fr); }
  .nq-rail { padding: 20px 10px; }
  .nq-brand { justify-content: center; padding: 0; }
  .nq-brand > span, .nq-rail nav button strong { display: none; }
  .nq-rail-foot a, .nq-rail-foot button { font-size: 8px; padding-inline: 2px; text-align: center; }
  .nq-rail nav button { grid-template-columns: 1fr; justify-items: center; padding: 14px 4px; }
  .nq-rail nav button > span { color: var(--text); font-size: 11px; }
  .nq-player-head-tools { gap: 9px; }
  .nq-player-impact > div { min-width: 78px; padding-inline: 11px; }
  .nq-player-impact strong { font-size: 20px; }
  .nq-player-impact .primary strong { font-size: 26px; }
  .nq-player-context { grid-template-columns: 1fr 1fr; }
  .nq-injury-item { grid-template-columns: minmax(210px,1.1fr) minmax(140px,.7fr) 100px 80px; }
  .nq-injury-report { grid-column: 1 / -1; }
  .nq-onoff-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nq-onoff-apply { min-height: 42px; }
  .nq-admin-nav { grid-template-columns: repeat(6, minmax(132px, 1fr)); }
  .nq-admin-create-user { grid-template-columns: 1fr 1.2fr 110px; }
  .nq-admin-create-user .nq-admin-checkbox, .nq-admin-create-user .nq-admin-action { align-self: stretch; }
}

@media (max-width: 860px) {
  .nq-shell { display: block; }
  .nq-rail { align-items: center; border-bottom: 1px solid var(--line); border-right: 0; flex-direction: row; height: 62px; min-height: 0; overflow: visible; padding: 7px 12px; position: sticky; width: 100%; }
  .nq-brand { margin: 0; position: relative; z-index: 4; }
  .nq-brand img { height: 40px; width: 40px; }
  .nq-menu-toggle { align-content: center; background: transparent; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 4px; height: 40px; margin-left: auto; padding: 0 11px; position: relative; width: 44px; z-index: 4; }
  .nq-menu-toggle span { background: var(--text); display: block; height: 2px; transition: transform .16s ease, opacity .16s ease; width: 20px; }
  .nq-rail.menu-open .nq-menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nq-rail.menu-open .nq-menu-toggle span:nth-child(2) { opacity: 0; }
  .nq-rail.menu-open .nq-menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nq-menu-scrim { background: rgba(2, 10, 14, .56); border: 0; display: block; inset: 62px 0 0; position: fixed; z-index: 1; }
  .nq-menu-panel { background: #07151c; border: 1px solid var(--line); box-shadow: 0 22px 46px rgba(0,0,0,.52); display: none; max-height: calc(100dvh - 78px); overflow-y: auto; position: absolute; right: 12px; top: calc(100% + 1px); width: min(286px, calc(100vw - 24px)); z-index: 3; }
  .nq-rail.menu-open .nq-menu-panel { display: block; }
  .nq-rail .nq-menu-panel nav { display: grid; gap: 2px; overflow: visible; padding: 8px; }
  .nq-rail .nq-menu-panel nav button { display: grid; grid-template-columns: 30px 1fr; justify-items: start; min-width: 0; padding: 11px 10px; text-align: left; width: 100%; }
  .nq-rail .nq-menu-panel nav button > span { display: block; font-size: 9px; }
  .nq-rail .nq-menu-panel nav button strong { display: block; font-size: 16px; }
  .nq-rail .nq-menu-panel .nq-rail-foot { border-left: 0; border-top: 1px solid var(--line); display: grid; gap: 1px; margin: 0; padding: 8px; }
  .nq-rail .nq-menu-panel .nq-rail-user { display: block; font-size: 9px; max-width: none; padding: 8px 10px; }
  .nq-rail .nq-menu-panel .nq-rail-foot button { display: block; font-size: 9px; padding: 10px; text-align: left; white-space: nowrap; width: 100%; }
  .nq-page { padding: 20px 14px 50px; }
  .nq-page-head { align-items: start; flex-direction: column; gap: 16px; }
  .nq-page-controls { width: 100%; }
  .nq-games-grid { display: block; }
  .nq-slate { display: grid; grid-template-rows: 58px 100px; height: 158px; max-height: none; min-height: 158px; overflow: hidden; }
  .nq-search-line { border-bottom: 1px solid var(--line); border-right: 0; flex: none; width: 100%; }
  .nq-slate-games { min-height: 100px; width: 100%; }
  .nq-slate-loading { min-height: 98px; }
  .nq-game-row { border-bottom: 0; border-right: 1px solid var(--line-soft); flex: 0 0 246px; min-height: 98px; width: auto; }
  .nq-game-row.active { background: linear-gradient(180deg, rgba(82, 223, 240, .12), transparent); box-shadow: inset 0 2px var(--cyan); }
  .nq-game-summary { display: block; }
  .nq-game-overview { border-bottom: 1px solid var(--line); border-right: 0; }
  .nq-matchup-head { grid-template-columns: 1fr 58px 1fr; padding: 14px; }
  .nq-matchup-head > button { flex-direction: column !important; gap: 7px; text-align: center; }
  .nq-game-summary .nq-market-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nq-chart-panel { display: grid; min-height: 0; }
  .nq-rotation-board { display: block; }
  .nq-rotation-board > div:first-child { border-bottom: 1px solid var(--line); border-right: 0; }
  .nq-injury-summary { grid-template-columns: repeat(3,1fr); }
  .nq-filter-stack { grid-column: 1 / -1; }
  .nq-injury-item { grid-template-columns: minmax(210px,1fr) 110px 80px; }
  .nq-injury-team { display: none; }
  .nq-team-tools { align-items: stretch; flex-wrap: wrap; width: 100%; }
  .nq-finder { min-width: 100%; width: 100%; }
  .nq-team-identity { grid-template-columns: 94px 1fr auto; }
  .nq-team-logo.hero { height: 82px; width: 82px; }
  .nq-team-layout { display: block; }
  .nq-team-layout > section:nth-child(odd) { border-right: 0; }
  .nq-player-identity { grid-template-columns: 130px 1fr; }
  .nq-player-photo.hero { height: 146px; width: 118px; }
  .nq-player-head-tools { border-top: 1px solid var(--line); grid-column: 1 / -1; padding: 10px 0; }
  .nq-player-impact { flex: 1; }
  .nq-player-context { display: block; }
  .nq-player-context > section:first-child { border-bottom: 1px solid var(--line); border-right: 0; }
  .nq-factor-head, .nq-factor-row { grid-template-columns: 1fr 75px 1fr; }
  .nq-factor-side { gap: 6px; }
  .nq-factor-side.offense { grid-template-columns: 68px minmax(0, 1fr); }
  .nq-factor-side.defense { grid-template-columns: minmax(0, 1fr) 68px; }
  .nq-factor-number { gap: 3px; }
  .nq-factor-number strong { font-size: 14px; }
  .nq-factor-number small { font-size: 8px; }
  .nq-onoff-toolbar { align-items: flex-start; flex-direction: column; }
  .nq-onoff-toolbar-controls { justify-content: space-between; width: 100%; }
  .nq-wowy-team-row { grid-template-columns: minmax(240px, 1fr) 1fr auto; }
  .nq-wowy-filters { grid-template-columns: repeat(3, 1fr); }
  .nq-wowy-game-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .nq-wowy-results-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .nq-wowy-results-tools { flex-wrap: wrap; justify-content: flex-start; width: 100%; }
  .nq-admin-tool-grid { grid-template-columns: 1fr 1fr; }
  .nq-admin-tool:last-child { grid-column: 1 / -1; }
  .nq-monitor-pair, .nq-admin-split, .nq-data-layout { grid-template-columns: 1fr; }
  .nq-monitor-card > div { grid-template-columns: repeat(3, 1fr); }
  .nq-admin-summary { grid-template-columns: repeat(3, 1fr); }
  .nq-admin-create-user { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nq-brand { display: flex; }
  .nq-page-head h1 { font-size: 40px; }
  .nq-date-control, .nq-date-control select, .nq-date-control input { width: 100%; }
  .nq-matchup-head > button > span:last-child { font-size: 20px; }
  .nq-team-logo.large { height: 44px; width: 44px; }
  .nq-game-summary .nq-market-strip { grid-template-columns: 1fr 1fr; }
  .nq-game-summary .nq-market-strip .nq-metric:nth-child(3) { border-top: 1px solid var(--line); grid-column: 1 / -1; }
  .nq-metric { min-height: 64px; padding: 9px 10px; }
  .nq-metric strong { font-size: 18px; }
  .nq-movement-event { flex-basis: 165px; }
  .nq-scenario-head { align-items: stretch; flex-direction: column; gap: 10px; }
  .nq-scenario-actions { display: grid; grid-template-columns: 1fr 1.5fr; }
  .nq-rotation-row { grid-template-columns: minmax(130px,1fr) 44px 44px 48px; }
  .nq-rotation-row .nq-status { display: none; }
  .nq-injury-summary { grid-template-columns: repeat(3, 1fr); }
  .nq-filter-stack { grid-template-columns: 1fr; }
  .nq-injury-head-controls { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .nq-injury-head-controls .nq-segment { grid-column: 1 / -1; }
  .nq-injury-head-controls .nq-segment button { flex: 1; }
  .nq-injury-item { gap: 8px; grid-template-columns: minmax(180px,1fr) 90px; }
  .nq-injury-item > .nq-status { justify-self: end; }
  .nq-impact-number { display: none; }
  .nq-injury-report { padding: 8px; }
  .nq-injury-report > div { align-items: flex-start; flex-wrap: wrap; }
  .nq-injury-report a { margin-left: 0; }
  .nq-team-identity { grid-template-columns: 70px 1fr; min-height: 120px; padding: 14px; }
  .nq-team-logo.hero { height: 62px; width: 62px; }
  .nq-record { display: none; }
  .nq-team-metrics { grid-template-columns: repeat(2, 1fr); }
  .nq-rotation-columns { grid-template-columns: 42px minmax(100px,1fr) 46px 40px; }
  .nq-rotation-columns > span:nth-child(3) { display: none; }
  .nq-rotation > button { grid-template-columns: 42px minmax(100px,1fr) 46px 40px; }
  .nq-rotation > button .nq-status { display: none; }
  .nq-results-scroll > a { column-gap: 9px; grid-template-areas: "result logo opponent score" ". logo site score"; grid-template-columns: 22px 30px minmax(0, 1fr) minmax(72px, max-content); min-height: 66px; row-gap: 2px; }
  .nq-results-scroll > a > .nq-result { grid-area: result; }
  .nq-results-scroll > a > .nq-team-logo { align-self: center; grid-area: logo; }
  .nq-results-scroll > a > .name { grid-area: opponent; }
  .nq-results-scroll > a > span:nth-child(4) { grid-area: site; }
  .nq-results-scroll > a > strong { align-self: center; font-size: 13px; grid-area: score; }
  .nq-results-scroll > a > time { display: none; }
  .nq-rotation-map-tools > span { display: none; }
  .nq-onoff-title { align-items: stretch; flex-direction: column; gap: 8px; padding-block: 9px; }
  .nq-onoff-title-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .nq-onoff-filters { grid-template-columns: 1fr 1fr; }
  .nq-onoff-toolbar-controls { align-items: stretch; flex-direction: column; }
  .nq-onoff-net-only { width: 100%; }
  .nq-onoff-toolbar-controls .nq-segment { width: 100%; }
  .nq-onoff-toolbar-controls .nq-segment button { flex: 1; }
  .nq-onoff-table th.lineup.nq-onoff-player-head, .nq-onoff-player-cell { max-width: 154px; min-width: 154px; width: 154px; }
  .nq-onoff-table .nq-onoff-split-head, .nq-onoff-split { left: 154px; }
  .nq-onoff-player-cell > button { grid-template-columns: 32px minmax(0, 1fr); }
  .nq-onoff-player-cell .nq-player-photo { height: 32px; width: 32px; }
  .nq-factor-board { padding: 8px 4px; }
  .nq-factor-head, .nq-factor-row { grid-template-columns: 1fr 64px 1fr; }
  .nq-factor-name { font-size: 8px; letter-spacing: -.02em; }
  .nq-player-search { min-width: 100%; width: 100%; }
  .nq-player-identity { grid-template-columns: 96px 1fr; min-height: 130px; padding: 12px 14px 0; }
  .nq-player-photo.hero { height: 118px; width: 86px; }
  .nq-player-rollups table { min-width: 760px; }
  .nq-game-log table { min-width: 820px; }
  .nq-player-log-scroll { overscroll-behavior-x: contain; }
  .nq-game-log table { border-collapse: separate; border-spacing: 0; }
  .nq-game-log th:nth-child(1), .nq-game-log td:nth-child(1) { background: #081820; left: 0; min-width: 62px; position: sticky; width: 62px; z-index: 3; }
  .nq-game-log th:nth-child(2), .nq-game-log td:nth-child(2) { background: #081820; box-shadow: 1px 0 0 var(--line); left: 62px; min-width: 150px; position: sticky; width: 150px; z-index: 3; }
  .nq-game-log thead th:nth-child(1), .nq-game-log thead th:nth-child(2) { z-index: 6; }
  .nq-availability-log > div:not(.nq-section-label) { grid-template-columns: 42px 90px 1fr; }
  .nq-wowy .nq-page-controls, .nq-wowy .nq-segment { width: 100%; }
  .nq-wowy .nq-segment button { flex: 1; }
  .nq-wowy-team-row { align-items: stretch; display: flex; flex-direction: column; gap: 12px; }
  .nq-wowy-team-id { order: -1; }
  .nq-wowy-builder-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
  .nq-wowy-filters { align-items: stretch; grid-template-columns: 1fr 1fr; }
  .nq-wowy-game-grid { grid-template-columns: 1fr; }
  .nq-wowy-filter-chips { flex-wrap: wrap; }
  .nq-wowy-results-tools .nq-segment { width: 100%; }
  .nq-wowy-check { min-width: 0; }
  .nq-wowy-inline-number { border: 1px solid var(--line); border-radius: 6px; min-height: 38px; padding: 0 9px; }
  .nq-wowy-inline-number input { margin-left: auto; }
  .nq-wowy-roster .nq-section-label { align-items: flex-start; flex-direction: column; justify-content: center; }
  .nq-wowy-player.interactive { flex-basis: 86px; }
  .nq-wowy-table th.lineup, .nq-wowy-configuration { max-width: var(--wowy-lineup-width, 270px); min-width: var(--wowy-lineup-width, 270px); width: var(--wowy-lineup-width, 270px); }
  .nq-wowy-configuration .nq-wowy-player { max-width: 58px; }
  .nq-wowy-configuration .nq-player-photo.wowy { height: 38px; width: 38px; }
  .nq-player-wowy-configs, .nq-player-wowy-change, .nq-player-wowy-detail { margin-inline: -6px; }
  .nq-player-wowy-config-player .nq-player-photo { height: 40px; width: 40px; }
  .nq-player-wowy-change > .nq-section-label { align-items: stretch; flex-direction: column; gap: 8px; padding-block: 10px; }
  .nq-player-wowy-change-head > div:first-child { justify-content: space-between; }
  .nq-player-wowy-change-tools { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .nq-player-wowy-change-tools label { min-width: 0; }
  .nq-player-wowy-change-tools select { margin-left: auto; max-width: none; min-width: 0; width: 100%; }
  .nq-player-wowy-change-tools input { margin-left: auto; }
  .nq-player-wowy-change-table th.player { max-width: 168px; min-width: 168px; width: 168px; }
  .nq-player-wowy-detail > .nq-section-label { align-items: stretch; flex-direction: column; gap: 8px; }
  .nq-player-wowy-detail-tools { width: 100%; }
  .nq-player-wowy-minutes-filter { flex: 1; }
  .nq-player-wowy-detail-tools .nq-segment { flex: 1; }
  .nq-player-wowy-detail-tools .nq-segment button { flex: 1; }
  .nq-player-wowy-table thead th:first-child, .nq-player-wowy-table tbody th { max-width: 178px; min-width: 178px; width: 178px; }
  .nq-admin-nav { margin-inline: -14px; }
  .nq-admin-tool-grid { grid-template-columns: 1fr; }
  .nq-admin-tool:last-child { grid-column: auto; }
  .nq-monitor-context { align-items: flex-start; flex-direction: column; gap: 5px; }
  .nq-monitor-context span:last-child { margin-left: 0; }
  .nq-monitor-card > div, .nq-admin-summary { grid-template-columns: repeat(2, 1fr); }
  .nq-admin-create-user { grid-template-columns: 1fr; }
  .nq-thinking-mark { height: 170px; width: 170px; }
  .nq-thinking-mark img { height: 148px; width: 148px; }
  .nq-admin-section-tools { align-items: stretch; flex-direction: column; }
  .nq-admin-section-tools input { min-width: 0; width: 100%; }
  .nq-data-drop { grid-template-columns: 1fr; }
  .nq-data-drop label { grid-row: auto; }
  .nq-login > section { grid-template-columns: 1fr; width: calc(100% - 28px); }
  .nq-login-brand { border-bottom: 1px solid var(--line); border-right: 0; min-height: 150px; }
  .nq-login-brand img { height: 100px; width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
