/* Peloton Femme Fatale v4 — HL Apex visual system */
:root{
  --yellow:#ff9500;
  --yellow-2:#ffc164;
  --ink:#f7f8fa;
  --ink-2:#d9deea;
  --panel:#121827;
  --paper:#0b0f1e;
  --surface-2:#181f31;
  --surface-3:#20283c;
  --muted:#98a1b3;
  --line:rgba(255,255,255,.09);
  --green:#43d17b;
  --green-bg:rgba(67,209,123,.12);
  --orange:#ff9500;
  --orange-bg:rgba(255,149,0,.13);
  --red:#ff6b6b;
  --red-bg:rgba(255,107,107,.12);
  --blue:#7aa7ff;
  --blue-bg:rgba(122,167,255,.12);
  --shadow:none;
  --radius:18px;
  --sidebar:220px;
  --topbar:72px;
  --max:1420px;
}
*{box-sizing:border-box}
html{background:var(--paper);color-scheme:dark;scroll-behavior:smooth}
body{
  margin:0;
  min-width:320px;
  background:
    radial-gradient(circle at 75% -10%,rgba(255,149,0,.07),transparent 27rem),
    var(--paper);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
button{color:inherit}
::selection{background:rgba(255,149,0,.28)}
.skip-link{background:var(--yellow);color:#111;border-radius:0 0 10px 10px;font-weight:700}

/* App shell */
.topbar{
  height:var(--topbar);
  padding:0 22px;
  background:rgba(11,15,30,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(22px) saturate(130%);
}
.brand{gap:12px;color:var(--ink)}
.brand img{width:44px;height:44px;border-radius:14px;box-shadow:none;border:1px solid rgba(255,149,0,.22)}
.brand strong{font-size:15px;font-weight:670;letter-spacing:-.015em}
.brand small{margin-top:2px;color:var(--muted);font-size:11px;letter-spacing:.035em}
.topbar-status{display:flex;align-items:center;gap:7px}
.top-chip{
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  font-size:11px;
  font-weight:620;
}
.top-chip.live-chip{color:var(--yellow);background:var(--orange-bg);border-color:rgba(255,149,0,.18)}
.status-button{cursor:pointer}
.topbar-actions{gap:8px}
.icon-btn{
  width:40px;height:40px;border-radius:50%;
  background:var(--surface-2);color:var(--ink);
  border:1px solid var(--line);box-shadow:none;font-size:17px;
}
.icon-btn svg,.nav-icon svg,.bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-btn:hover{background:var(--surface-3);transform:none}
#quickSave{font-weight:800;color:var(--green)}
.install-button{border-radius:999px;padding:9px 14px}

.sidebar{
  top:var(--topbar);width:var(--sidebar);
  background:rgba(13,18,34,.92);
  border-right:1px solid var(--line);
  padding:20px 12px 16px;
}
.sidebar nav{gap:6px}
.nav-item{
  min-height:46px;gap:12px;padding:11px 12px;
  border-radius:13px;color:var(--muted);
  font-weight:580;transition:background .16s ease,color .16s ease;
}
.nav-item:hover{background:rgba(255,255,255,.045);color:var(--ink)}
.nav-item.active{
  background:var(--orange-bg);color:var(--yellow);font-weight:670;
  box-shadow:inset 0 0 0 1px rgba(255,149,0,.18);
}
.nav-icon{width:22px!important;height:22px;display:grid;place-items:center;font-size:0!important}
.nav-item em{font-style:normal}
.sidebar-foot{padding:0 11px;color:var(--muted);font-size:11px}
.offline-dot{background:var(--green);box-shadow:0 0 0 4px rgba(67,209,123,.1)}
main{
  max-width:calc(var(--max) + var(--sidebar));
  padding:calc(var(--topbar) + 28px) 28px 96px calc(var(--sidebar) + 28px);
}
.view{animation:apexFade .18s ease}
@keyframes apexFade{from{opacity:.45;transform:translateY(3px)}to{opacity:1;transform:none}}

/* Page structure */
.page-heading{align-items:flex-end;margin:0 0 20px;gap:16px}
.page-heading h1{
  margin:4px 0 0;
  color:var(--ink);
  font-size:clamp(28px,3.4vw,42px);
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:680;
}
.eyebrow{
  color:var(--yellow);
  font-size:10px;
  font-weight:720;
  letter-spacing:.15em;
}
.muted{color:var(--muted)}
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:none;
}
.panel-head{gap:12px;margin-bottom:15px}
.panel-head h2{font-size:18px;font-weight:650;letter-spacing:-.025em;color:var(--ink)}
.panel-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}

/* Buttons */
.btn{
  min-height:42px;
  padding:10px 14px;
  border-radius:12px;
  font-weight:650;
  box-shadow:none;
}
.btn:hover{transform:none;filter:brightness(1.05)}
.btn-primary{background:var(--yellow);color:#111}
.btn-secondary,.btn-dark{background:var(--surface-3);color:var(--ink);border:1px solid var(--line)}
.btn-ghost{background:rgba(255,255,255,.045);color:var(--ink);border:1px solid var(--line)}
.btn-danger{background:var(--red-bg);color:var(--red);border:1px solid rgba(255,107,107,.17)}
.btn-compact{min-height:34px;padding:7px 10px;font-size:12px}
.btn[disabled]{opacity:.38}
.link-button{color:var(--yellow);font-weight:650}

/* Status */
.badge{
  min-height:27px;padding:5px 9px;border-radius:999px;
  background:rgba(255,255,255,.055);color:var(--ink);
  border:1px solid var(--line);font-size:11px;font-weight:650;
}
.badge.green{background:var(--green-bg);color:var(--green);border-color:rgba(67,209,123,.16)}
.badge.orange,.badge.yellow{background:var(--orange-bg);color:var(--yellow);border-color:rgba(255,149,0,.17)}
.badge.red{background:var(--red-bg);color:var(--red);border-color:rgba(255,107,107,.16)}

/* Freshness */
.freshness-banner{
  border:1px solid rgba(255,149,0,.22)!important;
  background:var(--orange-bg)!important;
  color:var(--ink)!important;
  border-radius:15px!important;
  padding:13px 14px!important;
  margin-bottom:14px!important;
}
.freshness-banner strong{font-weight:660}
.freshness-banner p,.freshness-banner small{color:var(--muted)!important}

/* Dashboard decision card */
.hero-card{
  min-height:0;
  grid-template-columns:minmax(0,1.28fr) minmax(250px,.72fr);
  gap:20px;
  margin-bottom:14px;
  padding:22px;
  border-radius:22px;
  background:linear-gradient(145deg,var(--surface-2),#101625);
  border:1px solid rgba(255,149,0,.25);
  box-shadow:none;
}
.hero-card::after{display:none}
.hero-card>div:first-child{position:relative;z-index:1}
.hero-card h2{margin:6px 0 8px;font-size:clamp(25px,3.3vw,38px);font-weight:650;line-height:1.08;letter-spacing:-.035em}
.hero-card p{margin:0;color:var(--muted);max-width:680px}
.hero-actions{margin-top:17px;gap:8px}
.hero-profile{
  position:relative;z-index:1;
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:14px;border-radius:16px;
  background:rgba(255,255,255,.025);
  border:1px solid var(--line);
}
.hero-profile .profile-svg{height:126px;filter:none}
.hero-profile-meta{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;color:var(--muted);font-size:11px}
.hero-profile-meta strong{color:var(--ink);font-weight:640;text-align:center}
.profile-svg path,.profile-svg polyline{stroke:var(--yellow)!important}
.profile-svg text{fill:var(--muted)!important}
.hero-label{background:var(--orange-bg);color:var(--yellow);border:1px solid rgba(255,149,0,.15)}
.hero-meta span{background:var(--surface-3);border-color:var(--line);color:var(--ink)}

/* Metrics */
.kpi-grid{gap:10px;margin-bottom:14px}
.kpi{
  min-height:105px;
  padding:14px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
}
.kpi strong{margin:8px 0 3px;color:var(--ink);font-size:25px;font-weight:660;letter-spacing:-.035em}
.kpi small{color:var(--muted)}
.kpi-top{color:var(--muted);font-size:11px;font-weight:620}
.kpi-icon{width:30px;height:30px;border-radius:10px;background:var(--orange-bg);color:var(--yellow);font-size:15px}
.dashboard-grid{gap:14px}

/* Timeline */
.stage-timeline{gap:8px}
.stage-chip,.timeline-stage{
  min-width:112px;
  min-height:84px;
  padding:11px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--ink);
}
.stage-chip.current,.timeline-stage.current{
  border-color:rgba(255,149,0,.45)!important;
  box-shadow:inset 0 0 0 1px rgba(255,149,0,.16)!important;
  outline:0!important;
}
.stage-chip.done,.timeline-stage.done{background:var(--green-bg)}
.stage-chip small,.timeline-stage small{color:var(--muted)}
.timeline-stage>span{background:var(--yellow)!important;color:#111!important}
.timeline-stage.done>span{background:var(--green)!important;color:#08140e!important}

/* Lists, rider identity */
.avatar,.rider-avatar{
  background:var(--surface-3)!important;
  color:var(--yellow)!important;
  border:1px solid var(--line);
  font-weight:680!important;
}
.avatar.tier-A,.avatar.tier-B,.avatar.tier-C,.avatar.tier-D{background:var(--surface-3)!important;color:var(--yellow)!important}
.rider-text small,.market-rider small,.rider-identity small{color:var(--muted)}
.mini-rider{border-color:var(--line)}
.alert{
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  border-left:3px solid var(--muted);
  color:var(--ink);
  border-radius:13px;
  padding:12px;
}
.alert.good{background:var(--green-bg);border-color:rgba(67,209,123,.16);border-left-color:var(--green)}
.alert.warn{background:var(--orange-bg);border-color:rgba(255,149,0,.17);border-left-color:var(--yellow)}
.alert.bad{background:var(--red-bg);border-color:rgba(255,107,107,.17);border-left-color:var(--red)}
.alert p,.alert small{color:var(--muted)}

/* Team */
.mode-bar{
  background:var(--panel)!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  padding:11px!important;
  margin-bottom:12px!important;
}
.segmented{background:var(--surface-2);border:1px solid var(--line);padding:4px;border-radius:12px}
.segmented button{color:var(--muted);border-radius:9px;font-weight:620}
.segmented button.active{background:var(--surface-3);color:var(--ink);box-shadow:none}
.team-summary-card{
  grid-template-columns:1.25fr repeat(4,minmax(100px,.5fr));
  gap:9px;padding:14px;
  background:var(--panel);color:var(--ink);
  border:1px solid rgba(255,149,0,.22);
  border-radius:18px;
}
.team-summary-card h2{font-size:22px;font-weight:650}
.summary-main p{color:var(--muted)}
.summary-stat{background:var(--surface-2);border:1px solid var(--line);border-radius:13px;padding:12px}
.summary-stat span{color:var(--muted);font-size:10px;font-weight:650}
.summary-stat strong{font-size:19px;font-weight:650}
.budget-bar,.coverage-bar{background:rgba(255,255,255,.075)}
.budget-bar i,.coverage-bar i{background:var(--yellow)}
.team-layout,.stage-layout,.transfer-layout,.insights-layout{gap:14px;margin:14px 0}
.preset-panel{margin-top:14px}
.preset-grid{gap:8px}
.preset-card{
  border:1px solid var(--line);border-radius:14px;
  background:var(--surface-2);color:var(--ink);
}
.preset-card.active{border-color:rgba(255,149,0,.48);box-shadow:inset 0 0 0 1px rgba(255,149,0,.16)}
.preset-card p{color:var(--muted)}
.roster-grid{gap:8px}
.roster-card{
  background:var(--surface-2);border-color:var(--line);border-radius:14px;padding:11px;
}
.roster-card:hover{border-color:rgba(255,149,0,.3)}
.price-tag{font-weight:650}
.remove-rider,.add-rider,.move-rider{
  min-width:40px;min-height:40px;border-radius:11px;
  border:1px solid var(--line);font-weight:700;
}
.remove-rider{background:var(--red-bg);color:var(--red)}
.add-rider{background:var(--green-bg);color:var(--green)}
.move-rider{background:rgba(255,255,255,.045);color:var(--ink)}
.go-transfer-rider{background:var(--surface-3);color:var(--ink)}
.sticky-panel{top:calc(var(--topbar) + 16px)}

/* Inputs */
.field label{color:var(--muted);font-size:11px;font-weight:620}
.field select,.field input,.field textarea,.filters input,.filters select,.stage-picker select,.connector-form textarea,.manual-import-grid textarea,.captain-select select,.result-table input,.result-table select{
  min-height:44px;
  color:var(--ink);
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 11px;
}
textarea{color:var(--ink)}
::placeholder{color:#6f788b}
.field select:focus,.field input:focus,.field textarea:focus,.filters input:focus,.filters select:focus,.stage-picker select:focus,textarea:focus{
  border-color:rgba(255,149,0,.65);
  box-shadow:0 0 0 3px rgba(255,149,0,.13);
  outline:none;
}
select option{background:var(--surface-2);color:var(--ink)}
.analysis-box{
  background:var(--surface-2);border:1px solid var(--line);border-radius:14px;
}
.analysis-box h3{font-weight:650}
.pros h4{color:var(--green)}
.cons h4{color:var(--red)}
.suggestion,.plan-row{
  background:var(--surface-2);border-color:var(--line);border-radius:12px;
}

/* Tables */
.table-wrap{border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.data-table th{
  background:#0e1424;color:var(--muted);
  border-bottom:1px solid var(--line);
  font-size:10px;font-weight:650;letter-spacing:.075em;
}
.data-table td{border-bottom:1px solid var(--line);color:var(--ink)}
.data-table tbody tr:hover{background:rgba(255,149,0,.045)}
.tier-pill{background:var(--surface-3);color:var(--muted);font-weight:650}
.tier-pill.S,.tier-pill.A,.tier-pill.B{background:var(--orange-bg);color:var(--yellow)}

/* Stage */
.stage-picker .icon-btn{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.stage-card{
  margin-bottom:14px;padding:20px;
  background:linear-gradient(145deg,var(--surface-2),#101625);
  border:1px solid rgba(255,149,0,.23);
  border-radius:20px;
}
.stage-card h2{font-size:clamp(25px,3vw,34px);font-weight:650;letter-spacing:-.035em}
.stage-card p{color:var(--muted)}
.stage-facts span{background:var(--surface-3);border:1px solid var(--line);border-radius:10px;font-weight:620}
.stage-analysis{border-color:var(--line)}
.keypoints{color:var(--muted)}
.keypoints strong{color:var(--yellow)}
.decision-panel{margin-bottom:14px}
.decision-comparison>div{background:var(--surface-2);border:1px solid var(--line);border-radius:13px}
.decision-verdict.agree{background:var(--green-bg);color:var(--green)}
.decision-verdict.differ{background:var(--orange-bg);color:var(--yellow)}
.lineup-list{gap:7px}
.lineup-row{
  background:var(--surface-2);border-color:var(--line);border-radius:13px;padding:11px;
}
.lineup-row.captain{border-color:rgba(255,149,0,.55);box-shadow:inset 0 0 0 1px rgba(255,149,0,.17)}
.lineup-row.unavailable{background:var(--red-bg)}
.score-ring{background:conic-gradient(var(--yellow) calc(var(--score)*1%),rgba(255,255,255,.08) 0)}
.score-ring::after{background:var(--surface-2)}
.lineup-toggle{min-height:36px;background:rgba(255,255,255,.05);border:1px solid var(--line);color:var(--ink)}
.captain-box{background:var(--orange-bg);border:1px solid rgba(255,149,0,.18);border-radius:14px}
.captain-box small{color:var(--muted)}
.stage-score-summary>div,.confirm-transfer-summary>div,.detail-kpis>div{
  background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
}
.stage-score-summary span{color:var(--muted)}

/* Transfer */
.fee-chip{background:var(--surface-2);border:1px solid var(--line);color:var(--muted)}
.fee-chip.current{background:var(--orange-bg);color:var(--yellow);border-color:rgba(255,149,0,.2)}
.transfer-card{
  background:var(--surface-2);border-color:var(--line);border-radius:14px;
}
.transfer-card p{color:var(--muted)}
.adjustment-suggestion,.warning-callout{
  background:var(--orange-bg);border:1px solid rgba(255,149,0,.2);color:var(--ink);
}
.validation-box{background:var(--red-bg);color:var(--red)}
.stage-delta{background:var(--surface-2);color:var(--muted)}

/* Insights */
.insight-grid{gap:10px}
.insight-card,.insight-card:nth-child(even){
  min-height:130px;
  background:var(--panel);color:var(--ink);
  border:1px solid var(--line);border-radius:16px;padding:15px;
}
.insight-card p,.insight-card:nth-child(even) p{color:var(--muted)}
.model-grid article{background:var(--surface-2);border:1px solid var(--line);border-radius:13px}
.model-grid article>span{background:var(--orange-bg);color:var(--yellow)}
.model-grid p{color:var(--muted)}
.model-disclaimer{background:var(--blue-bg);border-left-color:var(--blue)}

/* Data */
.datahub-grid{gap:14px}
.connector-form details{border-color:var(--line)}
.connector-form summary{color:var(--muted)}
.connector-snapshot>div,.manual-import-grid>div{
  background:var(--surface-2);border:1px solid var(--line);border-radius:12px;
}
.connector-snapshot span{color:var(--muted)}
.connector-result{border:1px solid var(--line);border-radius:12px}
.connector-result.good{background:var(--green-bg);color:var(--green);border-color:rgba(67,209,123,.16)}
.connector-result.warn{background:var(--orange-bg)!important;color:var(--yellow)!important;border-color:rgba(255,149,0,.2)!important}
.connector-result.bad{background:var(--red-bg)!important;color:var(--red)!important;border-color:rgba(255,107,107,.2)!important}
.sync-log article{border-color:var(--line)}
.sync-log small{color:var(--muted)}
.unmatched-panel{background:var(--surface-2)!important;border-color:var(--line)!important}
.unmatched-panel>summary{color:var(--ink)}
.unmatched-list{background:var(--line)!important;border-color:var(--line)!important}
.unmatched-list article{background:var(--panel)!important}
.unmatched-list article span{color:var(--muted)!important}

/* Charts */
.score-chart-wrap{background:transparent}
.score-chart .chart-grid line{stroke:rgba(255,255,255,.08)!important}
.score-chart text{fill:var(--muted)!important}
.score-chart .actual-line{stroke:var(--yellow)!important}
.score-chart .projected-line{stroke:#748098!important}
.chart-key{color:var(--muted)}
.key-actual{background:var(--yellow)!important}
.key-projected{background:#748098!important}

/* Modal and toast */
#toast{
  background:var(--surface-3);color:var(--ink);
  border:1px solid var(--line);border-radius:13px;box-shadow:none;
}
.modal-backdrop{background:rgba(2,4,10,.78);backdrop-filter:blur(8px)}
.modal{
  background:var(--panel);color:var(--ink);
  border:1px solid var(--line);border-radius:20px;box-shadow:none;
}
.close-modal{background:var(--surface-2);color:var(--ink);border:1px solid var(--line)}
.detail-badges{gap:6px}

/* Mobile bottom navigation */
.bottom-nav{display:none}
@media(max-width:1050px){
  .topbar-status{display:none}
}
@media(max-width:820px){
  :root{--topbar:66px}
  body{background:var(--paper)}
  .topbar{padding:0 13px;padding-top:env(safe-area-inset-top);height:calc(var(--topbar) + env(safe-area-inset-top))}
  .brand{gap:9px;min-width:0}
  .brand img{width:38px;height:38px;border-radius:12px}
  .brand strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .brand small{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--yellow)}
  .topbar-actions{gap:6px;margin-left:auto}
  .topbar-actions .icon-btn{width:37px;height:37px}
  .install-button{display:none!important}
  .sidebar{display:none}
  main{
    max-width:none;
    padding:calc(var(--topbar) + env(safe-area-inset-top) + 17px) 13px calc(88px + env(safe-area-inset-bottom));
  }
  .page-heading{align-items:flex-start;margin-bottom:15px}
  .page-heading h1{font-size:29px}
  .page-heading>.inline-actions{display:none}
  .eyebrow{font-size:9px}
  .panel{padding:14px;border-radius:16px}
  .panel-head{margin-bottom:13px}
  .panel-head h2{font-size:17px}
  .hero-card{
    display:block;min-height:0;padding:17px;border-radius:18px;margin-bottom:10px;
  }
  .hero-card h2{font-size:25px}
  .hero-card p{font-size:13px;line-height:1.5}
  .hero-profile{display:none}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:15px}
  .hero-actions .btn{width:100%;padding:9px 10px;font-size:13px}
  .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
  .kpi{min-height:92px;padding:12px;border-radius:14px}
  .kpi strong{font-size:22px}
  .dashboard-grid{grid-template-columns:1fr;gap:10px}
  .span-2{grid-column:auto}
  .stage-timeline{grid-template-columns:repeat(9,116px)}
  .team-summary-card{grid-template-columns:1fr 1fr;gap:7px;padding:11px}
  .team-summary-card .summary-main{grid-column:1/-1;padding:4px}
  .summary-stat{padding:10px}
  .team-layout,.stage-layout,.transfer-layout,.insights-layout{grid-template-columns:1fr!important;gap:10px;margin:10px 0}
  .sticky-panel{position:static}
  .preset-grid{grid-template-columns:repeat(5,205px)}
  .roster-grid{grid-template-columns:1fr}
  .filters{grid-template-columns:1fr;gap:7px}
  .filters input{grid-column:1/-1}
  .stage-card{padding:16px;border-radius:18px}
  .stage-card-grid{grid-template-columns:1fr}
  .stage-card h2{font-size:25px}
  .stage-card-grid>div:nth-child(2){display:none}
  .stage-picker{gap:5px}
  .stage-picker select{min-width:128px;max-width:152px;font-size:12px}
  .stage-picker .icon-btn{width:36px;height:36px}
  .lineup-row{grid-template-columns:minmax(0,1fr) auto}
  .lineup-row .lineup-toggle{grid-column:1/-1;width:100%}
  .pros-cons{grid-template-columns:1fr}
  .datahub-grid{grid-template-columns:1fr;gap:10px}
  .manual-import-grid{grid-template-columns:1fr}
  .insight-grid{grid-template-columns:1fr 1fr}
  .model-grid{grid-template-columns:1fr 1fr}
  .score-chart-wrap{overflow:hidden}
  .score-chart{min-width:0!important;width:100%}
  .panel-actions .muted{display:none}
  .bottom-nav{
    position:fixed;z-index:65;left:8px;right:8px;bottom:8px;
    display:grid!important;grid-template-columns:repeat(5,1fr)!important;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom));
    background:rgba(18,24,39,.94);
    border:1px solid var(--line);
    border-radius:18px;
    backdrop-filter:blur(22px) saturate(130%);
    box-shadow:0 8px 28px rgba(0,0,0,.28);
  }
  .bottom-nav button{
    min-width:0;min-height:49px;
    border:0;background:transparent;color:var(--muted);
    display:grid;place-items:center;align-content:center;gap:3px;
    padding:5px 2px;border-radius:13px;
  }
  .bottom-nav button.active{color:var(--yellow);background:var(--orange-bg)}
  .bottom-nav span{width:20px;height:20px;display:grid;place-items:center;font-size:0}
  .bottom-nav svg{width:20px;height:20px}
  .bottom-nav small{font-size:9px;font-weight:620;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
@media(max-width:520px){
  .insight-shortcut{display:none}
  .freshness-banner{flex-direction:column}
  .freshness-banner .btn{width:100%}
  .stage-score-summary,.confirm-transfer-summary,.detail-kpis{grid-template-columns:1fr 1fr}
  .connector-snapshot{grid-template-columns:1fr}
  .model-grid,.insight-grid{grid-template-columns:1fr}
  .mode-explanation{display:none}
  .segmented{width:100%}
  .segmented button{flex:1}
  .analysis-title{flex-direction:column}
  .stage-delta-strip{grid-template-columns:repeat(3,1fr)}
  .modal-actions .btn{width:100%}
  .sync-log article{grid-template-columns:1fr auto}
  .sync-source{grid-column:1/-1}
  .hero-actions{grid-template-columns:1fr}
  .decision-comparison{grid-template-columns:1fr}
  .decision-verdict{grid-column:auto}
  .page-heading h1{font-size:27px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
