/* Homepage refinement: scoped to protect all secondary pages. */
.home-refined .console-home{width:min(1500px,calc(100% - 48px));padding:34px 0 64px}
.home-refined .compact-head{gap:24px;align-items:center;margin-bottom:24px}
.home-refined .compact-head h1{font:600 clamp(28px,3vw,42px)/1.15 'Chakra Petch',sans-serif;letter-spacing:-.035em;margin:7px 0 0}
.home-refined .compact-head>p{max-width:440px;font-size:13px;line-height:1.65}
.home-refined .eyebrow{font-size:10px;letter-spacing:.12em}
.home-refined .connection-bar{margin-top:0;gap:20px;padding:16px 20px;box-shadow:none}
.home-refined .connection-title{min-width:0;flex:1}
.home-refined #device-meta{line-height:1.6;max-width:460px}
.home-refined .connection-controls{flex-wrap:wrap}
.home-refined .connection-controls select{width:180px}
.home-refined .device-status{font-size:11px;line-height:1.5}
.home-refined .setup-console{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin-top:18px;box-shadow:none}
.home-refined .setup-block{min-width:0;padding:20px 24px}
.home-refined .target-block{border-right:0}
.home-refined .setup-title h2{font-size:20px;line-height:1.2}
.home-refined .setup-title p{font-size:12px;line-height:1.5}
.home-refined .target-choice{flex-direction:row;margin-top:14px}
.home-refined .target-mode{flex:1;min-width:0;padding:10px 12px;text-align:left}
.home-refined .target-mode b{font-size:12px}
.home-refined .target-mode small{font-size:10px;line-height:1.4}
.home-refined .selectors-source{grid-template-columns:88px minmax(0,1fr) minmax(0,1.25fr)}
.home-refined .selectors label{min-width:0}
.home-refined .selectors select{width:100%;min-width:0}
.home-refined .selection-readout{font-size:11px;line-height:1.5}
.home-refined .analyze-button{grid-column:1/-1;justify-self:end;min-width:180px;height:42px;margin:0 24px 18px;font-size:13px}
.home-refined .chart-card{padding:18px;margin-top:18px;box-shadow:none}
.home-refined .chart-top{gap:12px;flex-wrap:wrap}
.home-refined .legend-item{font-size:11px;padding:8px 10px}
.home-refined .curve-label{font-size:10px}
.home-refined .frequency-regions{margin-left:6.1%;margin-right:4.92%}
.home-refined .frequency-region{padding:10px 3px;min-width:0}
.home-refined .frequency-regions b,.home-refined .frequency-regions small{white-space:normal}
.home-refined .result-head{margin-top:26px;gap:16px}
.home-refined .result-head h2{font-size:24px}
.home-refined .eq-workbench{margin-top:14px;box-shadow:none}
.home-refined .eq-toolbar{padding:18px;gap:20px}
.home-refined .eq-toolbar p{font-size:12px;max-width:580px;line-height:1.6}
.home-refined .workbench-label{font-size:11px}
.home-refined .workbench-actions{gap:8px}
.home-refined .workbench-actions button{font-size:12px;padding:11px 15px}
.home-refined .bands{min-width:1160px;gap:8px}
.home-refined .gain-entry{grid-template-columns:22px minmax(52px,1fr) 22px;gap:3px}
.home-refined .gain-input{font-size:12px;padding:0 2px}
.home-refined .apply-bar{padding:20px;margin-top:18px;gap:20px}
.home-refined .apply-bar h3,.home-refined .audition-panel h3{font-size:20px}
.home-refined .apply-bar p,.home-refined .audition-panel p{font-size:12px;line-height:1.6}
.home-refined .apply-actions{gap:8px;flex-wrap:wrap}
.home-refined .apply-actions button{font-size:12px;padding:12px 16px}
.home-refined .hardware-difference{margin-top:30px;padding:24px;box-shadow:none}
.home-refined .hardware-difference h2{font-size:24px;line-height:1.2}
.home-refined .hardware-difference p{font-size:13px;line-height:1.7}
@media(max-width:1100px){.home-refined .connection-bar{flex-direction:column;align-items:stretch}.home-refined .connection-controls{justify-content:flex-start}.home-refined .eq-toolbar,.home-refined .apply-bar{flex-wrap:wrap}}
@media(max-width:760px){.home-refined .console-home{width:calc(100% - 24px);padding-top:24px}.home-refined .compact-head>p{margin-top:12px}.home-refined .setup-console{grid-template-columns:1fr}.home-refined .setup-block{padding:18px;border-right:0}.home-refined .analyze-button{justify-self:stretch;margin:0 18px 18px}.home-refined .connection-controls select{width:100%}.home-refined .chart-card{padding:10px}.home-refined .frequency-regions{margin-left:0;margin-right:0}.home-refined .result-head{flex-wrap:wrap}.home-refined .workbench-actions{flex-wrap:wrap}.home-refined .apply-actions{width:100%}.home-refined .apply-actions button{flex:1}.home-refined .selectors-source{grid-template-columns:64px minmax(0,1fr) minmax(0,1fr)}}

.home-refined .device-profile-help{margin:0;padding:10px 20px;background:#111f2a;color:#b8d9e8;border-inline:1px solid #34465b;font-size:12px;line-height:1.6}.home-refined #chip-profile[aria-invalid="true"]{border-color:#e4ad60}

body .bands[data-band-count="8"] { min-width: 920px; }

/* Keep model names readable without widening the page. */
.home-refined .connection-controls label{min-width:0}
.home-refined .gain-input{font-variant-numeric:tabular-nums;min-width:0}
@media(max-width:520px){
  .home-refined .selectors-source{grid-template-columns:88px minmax(0,1fr)}
  .home-refined .selectors-source label:last-child{grid-column:1/-1}
  .home-refined .connection-controls label{width:100%}
  .home-refined .connection-controls select{max-width:100%}
  .home-refined .connection-bar,.home-refined .apply-bar{padding:16px}
  .home-refined .target-choice{flex-direction:column}
  .home-refined .analyze-button{min-height:44px}
  .home-refined .apply-actions{display:grid;grid-template-columns:1fr}
  .home-refined .apply-actions button{min-height:44px;width:100%}
}

.home-refined .listening-fallback{display:block;margin:14px 0 8px;color:#79ddff;font-size:13px;line-height:1.5;text-underline-offset:3px}

/* Match Personal Listening: keep each gain row inside its card at narrow widths. */
.home-refined #bands{min-width:calc(var(--eq-band-count,10) * 145px + 35px)}
.home-refined #bands .band{min-width:0;padding-inline:10px}
.home-refined #bands .gain-field{width:100%;min-width:0}
.home-refined #bands .gain-entry{width:100%;min-width:0;grid-template-columns:26px minmax(0,1fr) 26px;gap:3px}
.home-refined #bands .gain-entry button{padding:0;min-width:0}
.home-refined #bands .gain-input{min-width:0;width:100%;padding-inline:2px;text-align:center;font-variant-numeric:tabular-nums}

/* Source/target separators follow every palette, including their stacked mobile layout. */
html body.home-refined .setup-console .setup-block{border-color:var(--line)}
.home-refined .auto-eq-action{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 20px;padding:0 24px 18px}
html body.home-refined .auto-eq-action p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.home-refined .auto-eq-action .analyze-button{margin:0;flex:none}
@media(max-width:760px){.home-refined .auto-eq-action{padding:0 18px 18px;align-items:stretch;flex-direction:column}.home-refined .auto-eq-action .analyze-button{width:100%}}

/* Keep the toolbar background aligned with every horizontally scrolling band. */


/* Only the band strip scrolls; primary controls remain in the viewport. */
.home-refined .eq-workbench{overflow:hidden;min-width:0}
.home-refined .eq-workbench > .eq-toolbar{display:flex;flex-wrap:wrap;box-sizing:border-box;width:100%;min-width:0;gap:14px;padding:18px}
.home-refined .eq-toolbar>div:first-child{flex:1 1 260px;min-width:0}
.home-refined .eq-toolbar .workbench-actions{display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:10px}
.home-refined .eq-toolbar .live-sync-control{flex:0 0 auto;max-width:100%;margin-left:0}
.home-refined .eq-bands-scroll{width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.home-refined .eq-bands-scroll:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}

/* Touch layout: keep actions readable and give sync its own row. */
@media(max-width:650px){
.home-refined .eq-workbench>.eq-toolbar{flex-direction:column;align-items:stretch;padding:16px;gap:16px}
.home-refined .eq-toolbar>div:first-child{flex:0 1 auto;width:100%}
.home-refined .eq-toolbar .workbench-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;margin:0;gap:12px}
.home-refined .eq-toolbar .workbench-actions button{min-width:0;width:100%;min-height:44px;margin:0;padding:11px 12px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.home-refined .eq-toolbar .live-sync-control,.home-refined #v3-sync-slot .live-sync-control{display:flex;width:100%;box-sizing:border-box;justify-content:space-between;align-items:center;gap:16px;padding-top:12px;border-top:1px solid var(--line);margin:0}
.home-refined .eq-toolbar .live-sync-label,.home-refined #v3-sync-slot .live-sync-label{white-space:normal;min-width:0;line-height:1.4}
.home-refined .eq-toolbar .live-sync-control button,.home-refined #v3-sync-slot .live-sync-control button{flex:0 0 72px;width:72px;min-height:44px;margin:0}
.home-refined .v3-response-tools{flex-direction:column;align-items:stretch;gap:14px}
.home-refined #v3-sync-slot{width:100%;min-width:0}
.home-refined .v3-manual-entry{display:flex;flex-wrap:wrap;gap:10px;min-width:0}
.home-refined .v3-manual-entry button{min-height:44px;white-space:normal}
}
@media(max-width:480px){
.home-refined .eq-toolbar .workbench-actions{grid-template-columns:minmax(0,1fr)}
.home-refined .v3-manual-entry button{width:100%}
.home-refined .personal-save-bar .apply-actions{grid-template-columns:minmax(0,1fr);width:100%;gap:12px}
.home-refined .personal-save-bar .apply-actions button{min-height:44px;white-space:normal;line-height:1.4;margin:0}
}

@media(max-width:650px){html body.home-refined #preview-eq{height:44px;min-height:44px;width:72px}}
