/* ============================================================
   Frequency × TripleLift — page styles
   Builds on the shared design system in styles.css
   ============================================================ */

:root {
  --step-ms: 2600ms;           /* keep in sync with STEP_MS in scene.js */
  --tl-orange: #FF8A4C;
}

.nav-links { gap: 24px; }

/* ── Hero logos ───────────────────────────────────────────── */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 72px;
  padding: 0 30px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border-light);
  border-radius: var(--radius-md);
}
.logo-chip img { width: auto; }
.logo-x { color: var(--text-muted); font-family: var(--font-display); font-size: 1.4rem; }

/* ── Top priorities ───────────────────────────────────────── */
.priorities { margin: 36px auto 0; max-width: 640px; text-align: left; }
.priorities-label {
  text-align: center;
  margin-bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.priorities-list, .reason-list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 0; }
.priorities-list li, .reason-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--bg-border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
}
.priority-text { flex: 1; min-width: 0; }
.status-chip {
  flex: none;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-details { color: var(--freq-green); background: rgba(0, 229, 160, 0.1); border-color: rgba(0, 229, 160, 0.5); }
.chip-soon { color: var(--tl-orange); background: rgba(255, 138, 76, 0.1); border-color: rgba(255, 138, 76, 0.5); }
.chip-future { color: #B8A4FF; background: rgba(139, 108, 255, 0.12); border-color: rgba(139, 108, 255, 0.5); }
@media (max-width: 520px) { .priorities-list li { flex-wrap: wrap; } .status-chip { margin-left: 40px; } }
.reason-list { max-width: 720px; margin-bottom: 24px; }
.reason-list a { color: var(--freq-cyan); text-decoration: underline; text-underline-offset: 2px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.split-media video { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--bg-border-light); background: var(--bg-card); }
.why-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.why-list li { position: relative; padding-left: 22px; color: var(--text-primary); font-size: 1.05rem; line-height: 1.5; }
.why-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--freq-cyan); }
.why-list sup a, .footnote a { color: var(--freq-cyan); text-decoration: none; }
.footnote a:hover { text-decoration: underline; }
.footnote { margin-top: 28px; font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.sub-title { margin: 32px 0 12px; font-family: var(--font-display); font-size: 1.35rem; color: var(--text-primary); }
.priority-n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.55);
  color: var(--freq-cyan);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ── Flow card ────────────────────────────────────────────── */
.flow {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flow-stage {
  position: relative;
  padding: 28px 24px 8px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 30%, rgba(0, 212, 255, 0.06), transparent 70%),
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px;
}
.flow-scroll { overflow-x: auto; }
.flow-svg {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  font-family: var(--font-body);
}

/* SVG text */
.flow-svg text { fill: var(--text-primary); font-size: 15px; font-weight: 600; text-anchor: middle; }
.flow-svg text.left { text-anchor: start; }
.flow-svg text.right { text-anchor: end; }
.flow-svg .grp-title { fill: var(--text-secondary); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; text-anchor: start; }

/* Groups & boxes */
.flow-svg .grp > rect:first-child {
  fill: rgba(18, 24, 32, 0.85);
  stroke: var(--bg-border-light);
  stroke-width: 1.5;
  transition: stroke 0.4s, fill 0.4s, filter 0.4s;
}
.flow-svg .grp-roku > rect:first-child { fill: url(#g-roku); stroke: rgba(123, 92, 246, 0.45); }
.flow-svg .grp-tl > rect:first-child { fill: url(#g-tl); stroke: rgba(255, 138, 76, 0.45); }

.flow-svg .box rect {
  fill: #0a0f17;
  stroke: var(--bg-border-light);
  stroke-width: 1.2;
  transition: stroke 0.4s, fill 0.4s;
}
.flow-svg .sub { fill: var(--tl-orange); font-size: 13px; font-weight: 500; }

/* Lit (active) nodes */
.flow-svg .grp-dsp.lit > rect:first-child { stroke: var(--freq-cyan); fill: rgba(0, 212, 255, 0.06); }
.flow-svg .grp-roku.lit > rect:first-child { stroke: var(--freq-purple); }
.flow-svg .grp-tl.lit > rect:first-child { stroke: var(--freq-orange); }
.flow-svg .grp-dsp.lit .box rect { stroke: rgba(0, 212, 255, 0.55); }
.flow-svg .box.lit rect { stroke: var(--freq-cyan); fill: #0c1c28; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45)); }
.flow-svg .box.node-adserver.lit rect,
.flow-svg .box.node-ssai.lit rect { stroke: var(--freq-purple); fill: #1a1538; filter: drop-shadow(0 0 8px rgba(123, 92, 246, 0.55)); }

/* Dsp pulse on step 4 */
.flow[data-step="4"] .grp-dsp .box rect { animation: dspPulse 0.9s ease-in-out infinite alternate; }
.flow[data-step="4"] .grp-dsp .box:nth-of-type(2) rect { animation-delay: 0.12s; }
.flow[data-step="4"] .grp-dsp .box:nth-of-type(3) rect { animation-delay: 0.24s; }
@keyframes dspPulse {
  from { filter: drop-shadow(0 0 0 rgba(0, 212, 255, 0)); }
  to   { filter: drop-shadow(0 0 9px rgba(0, 212, 255, 0.7)); }
}

/* Viewer stream playhead */
.flow-svg .ph-track { fill: rgba(255, 255, 255, 0.12); }
.flow-svg .ph-fill { fill: var(--freq-green); transform-box: fill-box; transform-origin: left center; animation: playhead 6s linear infinite; }
@keyframes playhead { from { transform: scaleX(0.04); } to { transform: scaleX(1); } }

/* Mini auction */
.flow-svg .auction { opacity: 0.25; transition: opacity 0.4s; }
.flow-svg .auction.lit { opacity: 1; }
.flow-svg .a-base { stroke: var(--bg-border-light); stroke-width: 1.5; }
.flow-svg .bar { fill: rgba(255, 138, 76, 0.35); transform-box: fill-box; transform-origin: bottom; transition: fill 0.4s; }
.flow-svg .a-label { fill: var(--text-secondary); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.flow-svg .a-win { fill: var(--freq-green); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0; transition: opacity 0.4s; }
.flow[data-step="5"] .bar { animation: barGrow 0.9s var(--ease-out) both; }
.flow[data-step="5"] .b2 { animation-delay: 0.15s; }
.flow[data-step="5"] .b3 { animation-delay: 0.3s; }
@keyframes barGrow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }
.flow[data-step="6"] .b2 { fill: var(--freq-green); filter: drop-shadow(0 0 8px rgba(0, 229, 160, 0.6)); }
.flow[data-step="6"] .a-win { opacity: 1; }

/* TripleLift services (kept quiet) */
.flow-svg .svc-panel rect:first-child { fill: rgba(0, 0, 0, 0.18); stroke: rgba(255, 138, 76, 0.2); stroke-width: 1; stroke-dasharray: 3 4; }
.flow-svg .svc-title { fill: #8a6a58; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; text-anchor: start; }
.flow-svg .svc rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.08); }
.flow-svg .svc text { fill: #9a8a80; font-size: 10px; font-weight: 500; }

/* Edges */
.flow-svg .edge path {
  fill: none;
  stroke: #2c3a52;
  stroke-width: 2;
  marker-end: url(#ah-off);
  transition: stroke 0.35s;
}
.flow-svg .edge text { fill: #5d6c85; font-size: 12px; font-weight: 500; transition: fill 0.35s; }
.flow-svg .edge text.t2 { font-size: 11px; }
.flow-svg .edge.on text { fill: var(--text-primary); }
.flow-svg .edge.req.on path { stroke: var(--freq-cyan); marker-end: url(#ah-req); stroke-dasharray: 7 6; animation: dash 0.8s linear infinite; filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.6)); }
.flow-svg .edge.res.on path { stroke: var(--freq-green); marker-end: url(#ah-res); stroke-dasharray: 7 6; animation: dash 0.8s linear infinite; filter: drop-shadow(0 0 5px rgba(0, 229, 160, 0.6)); }
@keyframes dash { to { stroke-dashoffset: -13; } }

/* Packets */
.flow-svg .packet { r: 6; opacity: 0; offset-rotate: 0deg; }
.flow-svg .packet.req { fill: var(--freq-cyan); filter: drop-shadow(0 0 6px var(--freq-cyan)); }
.flow-svg .packet.res { fill: var(--freq-green); filter: drop-shadow(0 0 6px var(--freq-green)); }
.flow-svg .packet.on { animation: travel 1.25s cubic-bezier(0.45, 0, 0.35, 1) infinite; }
@keyframes travel {
  0%   { offset-distance: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ── Future state: Frequency layer ────────────────────────── */
.flow-svg .ctx path { stroke: #33425c; }
.flow-svg .edge.ctx text { fill: #6b7a93; }
.flow-svg .edge.ctx path { marker-end: url(#ah2-off); }
.flow-svg .edge.fq.on path { stroke: var(--freq-cyan); marker-end: url(#ah2-req); stroke-dasharray: 7 6; animation: dash 0.8s linear infinite; filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.6)); }
.flow-svg .edge.fq path { marker-end: url(#ah2-off); }
.flow-svg .auction.on { opacity: 0.9; }
.flow-svg .auction.on .b2 { fill: rgba(255, 138, 76, 0.55); }

.flow-svg .fq-band > rect:first-child { fill: rgba(0, 190, 230, 0.13); stroke: var(--freq-cyan); stroke-width: 2.5; filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.35)); }
.flow-svg .fq-pill rect { fill: rgba(0, 212, 255, 0.12); stroke: rgba(0, 212, 255, 0.55); stroke-width: 1.2; transition: fill 0.4s, stroke 0.4s; }
.flow-svg .fq-pill text { font-size: 14px; font-weight: 600; fill: var(--text-primary); }
.flow-svg .fq-pill.lit rect { fill: rgba(0, 212, 255, 0.3); stroke: var(--freq-cyan); filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5)); }
.flow-svg .fq-sub { fill: var(--text-secondary); font-size: 12px; font-weight: 500; text-anchor: start; }
.flow-svg .fq-card rect { fill: #0a0f17; stroke: var(--bg-border-light); stroke-width: 1.2; transition: stroke 0.4s, fill 0.4s; }
.flow-svg .fq-card .fq-t { font-size: 14px; }
.flow-svg .fq-card .fq-s { font-size: 11px; font-weight: 500; fill: var(--text-secondary); }
.flow-svg .fq-card.lit rect { stroke: var(--freq-cyan); fill: #0c1c28; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.45)); }
.flow-svg .fq-chip rect { fill: rgba(255, 255, 255, 0.03); stroke: var(--bg-border-light); transition: stroke 0.4s, fill 0.4s; }
.flow-svg .fq-chip text { font-size: 12px; fill: var(--text-secondary); }
.flow-svg .fq-chip.more text { fill: var(--text-muted); }
.flow-svg .fq-cl { fill: #5d7184; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.flow-svg .fq-cust.lit .fq-chip rect { stroke: rgba(0, 212, 255, 0.5); fill: rgba(0, 212, 255, 0.07); }
.flow-svg .fq-cust.lit .fq-chip text { fill: var(--text-primary); }

.flow-svg .fq-box rect { stroke: var(--freq-cyan); stroke-width: 2.5; fill: rgba(0, 190, 230, 0.28); filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.45)); }
.flow-svg .fq-box text:not(.fq-new) { font-weight: 700; fill: #fff; }
.flow-svg .fq-new { fill: var(--freq-cyan); font-size: 9px; letter-spacing: 0.1em; text-anchor: end; font-weight: 700; }
.flow-svg .grp-dsp.lit .fq-box rect, .flow-svg .fq-box.lit rect { stroke: var(--freq-cyan); filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.55)); }

/* ── Caption / controls panel ─────────────────────────────── */
.flow-panel {
  border-top: 1px solid var(--bg-border);
  padding: 20px 24px 24px;
}
.flow-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);  /* overridden per flow in scene.js */
  gap: 6px;
  margin-bottom: 20px;
}
.flow-seg {
  position: relative;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--bg-border-light);
  overflow: hidden;
  cursor: pointer;
}
.flow-seg::before { /* larger hit area */
  content: ''; position: absolute; inset: -10px 0;
}
.flow-seg i {
  position: absolute; inset: 0;
  background: var(--freq-cyan);
  transform: scaleX(0);
  transform-origin: left;
}
.flow-seg.done i { transform: scaleX(1); opacity: 0.5; }
.flow-seg.active i { opacity: 1; transform: scaleX(1); animation: segFill var(--step-ms) linear both; }
.flow.paused .flow-seg.active i,
.flow.no-auto .flow-seg.active i { animation-play-state: paused; }
.flow.no-auto .flow-seg.active i { animation: none; }
@keyframes segFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.flow-seg:focus-visible { outline: 2px solid var(--freq-cyan); outline-offset: 3px; }

.flow-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.flow-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  min-width: 1.1em;
  text-align: center;
  background: linear-gradient(135deg, var(--freq-cyan), var(--freq-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.flow-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.flow-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}
.flow-detail { color: var(--text-secondary); font-size: 0.95rem; max-width: 62ch; }
.flow-text.swap { animation: swap 0.45s var(--ease-out) both; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.flow-controls { display: flex; gap: 8px; }
.flow-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bg-border-light);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.flow-btn:hover { background: var(--bg-card-hover); border-color: var(--freq-cyan); }
.flow-btn:focus-visible { outline: 2px solid var(--freq-cyan); outline-offset: 2px; }
.flow-btn-main { font-size: 0.8rem; }
.flow-btn-main .ico-play { display: none; }
.flow.paused .flow-btn-main .ico-play,
.flow.no-auto .flow-btn-main .ico-play { display: inline; }
.flow.paused .flow-btn-main .ico-pause,
.flow.no-auto .flow-btn-main .ico-pause { display: none; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 760px) {
  .flow-svg { min-width: 0; }
  .logo-x { display: none; }
  .flow-stage { padding: 16px 8px 4px; }
  .flow-caption { grid-template-columns: auto 1fr; }
  .flow-controls { grid-column: 1 / -1; justify-content: center; }
  .flow-num { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-svg .ph-fill, .flow-svg .edge.on path, .flow-svg .packet.on,
  .flow[data-step] .grp-dsp .box rect, .flow[data-step] .bar { animation: none !important; }
  .flow-svg .packet { display: none; }
}

/* ── Placeholder sections ─────────────────────────────────── */
.section-tbd { padding: 56px 0; }
.tbd-card {
  margin-top: 24px;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--bg-border-light);
  border-radius: var(--radius-lg);
}
@media (max-width: 900px) { .nav-links { display: none; } }

/* ── Options ──────────────────────────────────────────────── */
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.opt-card {
  display: flex; flex-direction: column; gap: 22px;
  padding: 28px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.opt-card.is-open { border-color: var(--freq-cyan); box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25), 0 10px 40px rgba(0, 212, 255, 0.08); }
.opt-head { display: flex; align-items: center; justify-content: space-between; }
.opt-num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); }
.opt-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.opt-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; }
.opt-rows { list-style: none; display: grid; gap: 8px; }
.opt-rows li { display: grid; grid-template-columns: 22px auto 1fr; align-items: baseline; gap: 10px; font-size: 0.95rem; }
.opt-n { font-family: var(--font-display); font-weight: 700; color: var(--text-muted); }
.own {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap;
}
.own-fr { color: var(--freq-cyan); background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.28); }
.own-tr { color: var(--tl-orange); background: rgba(255, 138, 76, 0.1); border: 1px solid rgba(255, 138, 76, 0.28); }
.opt-work { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.opt-work .own { margin-bottom: 8px; }
.opt-work ul, .opt-ben { list-style: none; display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); }
.opt-work li, .opt-ben li { position: relative; padding-left: 16px; }
.opt-work li::before, .opt-ben li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--bg-border-light); }
.opt-ben li { color: var(--text-primary); }
.opt-ben li::before { background: var(--freq-green); }
.opt-btn {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-border-light);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: 600 0.9rem var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.opt-btn:hover { border-color: var(--freq-cyan); background: var(--bg-card-hover); }
.opt-btn:focus-visible { outline: 2px solid var(--freq-cyan); outline-offset: 2px; }
.opt-btn .opt-btn-close { display: none; }
.opt-btn[aria-expanded="true"] .opt-btn-open { display: none; }
.opt-btn[aria-expanded="true"] .opt-btn-close { display: inline; }
.opt-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; }
.opt-btn[aria-expanded="true"] .opt-chev { transform: rotate(-135deg); }

.opt-diagrams { margin-top: 24px; }
.opt-panel {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: swap 0.45s var(--ease-out) both;
}
.opt-panel[hidden] { display: none; }
.opt-panel-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }

/* Swimlane diagrams */
.sw-svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font-body); }
.sw-svg text { text-anchor: middle; }
.sw-svg text[text-anchor="start"] { text-anchor: start; }
.sw-lane rect { fill: rgba(18, 24, 32, 0.7); stroke-width: 1.5; }
.sw-lane.fq rect { stroke: rgba(0, 212, 255, 0.3); fill: rgba(0, 168, 204, 0.05); }
.sw-lane.tl rect { stroke: rgba(255, 138, 76, 0.3); fill: rgba(255, 138, 76, 0.04); }
.sw-lt { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-anchor: start !important; }
.sw-lane.fq .sw-lt { fill: var(--freq-cyan); }
.sw-lane.tl .sw-lt { fill: var(--tl-orange); }
.sw-roku rect { fill: #1f1850; stroke: rgba(123, 92, 246, 0.5); stroke-width: 1.5; }
.sw-box rect { fill: #0a0f17; stroke-width: 1.4; }
.sw-box.fq rect { stroke: rgba(0, 212, 255, 0.55); }
.sw-box.tl rect { stroke: rgba(255, 138, 76, 0.55); }
.sw-box.ghost rect { fill: transparent; stroke: var(--bg-border-light); stroke-dasharray: 4 5; }
.sw-t { font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.sw-box.ghost .sw-t { fill: var(--text-muted); }
.sw-s { font-size: 11px; fill: var(--text-secondary); }
.sw-n { fill: var(--bg-elevated); stroke: var(--bg-border-light); }
.sw-nt { font-size: 11px; font-weight: 700; fill: var(--text-primary); }
.sw-a { fill: none; stroke: #8B9BB4; stroke-width: 1.8; }
.sw-l { font-size: 11px; fill: var(--text-secondary); font-weight: 500; }

@media (max-width: 900px) {
  .opt-grid { grid-template-columns: 1fr; }
  .opt-work { grid-template-columns: 1fr; }
}
