/* Blue customer workspace. Native chart colours are preserved on white. */
.customer-workspace{--bg:#050d20;--panel:#10264b;--line:#294c80;--ink:#f3f7ff;--muted:#a8bddc;--accent:#3c83ff;color-scheme:dark;background:radial-gradient(ellipse at 95% 0,#143b7960,transparent 55%),#050d20;color:var(--ink);font-family:Inter,'Segoe UI',Arial,sans-serif}
.customer-workspace p{color:var(--muted)}
.customer-workspace h1,.customer-workspace h2,.customer-workspace h3{color:#f3f7ff}
.customer-workspace a{color:#8cbaff}
.customer-workspace button,.customer-workspace .button{border-radius:9px;background:#286df0;color:#fff;border:1px solid #528fff;transition:background .16s,border-color .16s,box-shadow .16s;letter-spacing:.1px}
.customer-workspace button:hover,.customer-workspace .button:hover{background:#2469d6;border-color:#8cb7ff;box-shadow:0 4px 20px #1767f533;text-decoration:none}
.customer-workspace button.secondary,.customer-workspace a.button.secondary{background:#142a4e;border:1px solid #41618c;color:#e0ecff}
.customer-workspace button.secondary:hover{background:#1e3c6a;border-color:#6b9bdd}
.customer-workspace button:disabled{background:#1b3152;border-color:#365074;color:#a1b6d3;cursor:not-allowed;box-shadow:none}
.customer-workspace .eyebrow{color:#8dbbff;letter-spacing:1.8px;font-size:10px;font-weight:700}
.customer-workspace input,.customer-workspace select,.customer-workspace textarea{background:#0a1932;color:#edf4ff;border-color:#41608c}
.customer-workspace input[type=checkbox],.customer-workspace input[type=radio]{accent-color:#72acff}
.account-sidebar{background:linear-gradient(165deg,#10274d,#061126 65%);border-color:#233f67;width:216px;padding:28px 18px}
.account-sidebar .brand{display:flex;align-items:center;font-weight:800;letter-spacing:1px;font-size:16px}
.account-sidebar .brand:before{content:'N';display:grid;place-items:center;width:29px;height:31px;margin-right:9px;border:1px solid #5b9fff;border-radius:7px;color:#c0dcff;background:#164381;font-size:18px;box-shadow:0 0 18px #2878ff26}
.account-sidebar .brand span{color:#8dbbff;font-size:12px;font-weight:500;margin-left:5px}
.sidebar-label{color:#94afd3}.sidebar-bottom>span{color:#8ba6ce}
.customer-workspace .account-sidebar button{color:#a8bfdf;border-radius:9px}
.customer-workspace .account-sidebar button.active{background:linear-gradient(110deg,#245fbd,#183e79);border-color:#4d89de;color:#fff;box-shadow:inset 3px 0 #84bbff,0 8px 25px #0002}
.account-page{margin-left:216px}
.account-topbar{min-height:74px;background:#08152beF;border-color:#23436e;padding:15px 32px;backdrop-filter:blur(14px)}
#account-identity{color:#bed0ea}.balance-chip{background:#102d57;border-color:#365d95;color:#c9dcf8;border-radius:9px}.balance-chip>b{color:#fff}
.account-main{max-width:1700px;padding:26px 32px 0}
.workspace-heading{margin:0 0 22px;gap:18px}.workspace-heading h1{font-size:32px;margin:7px 0 8px;letter-spacing:-.8px}.workspace-heading p{font-size:14px}
.all-files-link{display:inline-block;margin:-6px 0 16px;font-size:12px}
.focused-file>.workspace-heading>div{display:none}.focused-file>.workspace-heading{margin:0 0 18px}.focused-file .all-files-link{margin:0}
/* A distinct header, configuration surface and results surface. */
.tune-card{position:relative;border:1px solid #365a8d;border-radius:20px;background:#0a1730;box-shadow:0 22px 70px #0005;overflow:hidden;margin-bottom:25px}
.tune-header{position:relative;isolation:isolate;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 30px;min-height:125px;border-bottom:1px solid #3e6db1;background:#102b56}
.tune-header:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#0e2a56 8%,#10366cd9 44%,#11346735 85%),url('/remaps-static/images/nexus-performance-hangar.webp') 83% 54%/cover no-repeat;opacity:1}
.tune-header:after{content:'';position:absolute;bottom:-1px;left:30px;width:110px;height:3px;background:#63a6ff;box-shadow:0 0 24px #428cff}
.customer-workspace .tune-header h2{font-size:clamp(29px,2.2vw,36px);font-weight:750;letter-spacing:-1.1px;line-height:1.12;margin:8px 0}
.tune-filename{font-size:12px!important;margin:0;color:#c5dafa!important;overflow-wrap:anywhere}
.tune-status{font-size:10px;font-weight:750;letter-spacing:1px;display:inline-flex;align-items:center;gap:9px;padding:11px 14px;background:#082452de;border:1px solid #6eafff;color:#d4e8ff;border-radius:100px;white-space:nowrap;align-self:start;flex-shrink:0;box-shadow:0 0 22px #377fff20}
.tune-status:before{content:'';width:6px;height:6px;border-radius:50%;background:#86c7ff;box-shadow:0 0 10px #5fafff}
.tune-status.processing:before{animation:telemetry-pulse 1.5s infinite}
.tune-grid{display:grid;grid-template-columns:minmax(0,.97fr) minmax(0,1.13fr);gap:18px;padding:20px;background:#08142b}
.tune-controls{padding:24px;min-width:0;border:1px solid #4878b9;border-radius:14px;background:linear-gradient(150deg,#173c76,#102c59 65%);box-shadow:inset 0 1px #73aaff26}
.tune-section-title{display:flex;align-items:center;gap:11px;margin-bottom:8px}
.tune-section-title h3{font-size:19px;letter-spacing:-.4px;font-weight:700;margin:0}
.step-number{font-family:Consolas,monospace;color:#c1dcff;font-size:11px;letter-spacing:1px;border:1px solid #699ada;background:#214c8c;padding:6px 7px;border-radius:6px;line-height:1.2}
.tune-intro{font-size:13px;margin:0 0 20px;color:#c4d8f7!important}
.tune-options{border:0;padding:0;margin:0 0 19px;min-width:0}
.tune-options legend{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;color:#bbd2f3;font-weight:700;margin-bottom:9px;padding:0}
.tune-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.tune-option-grid:has(>label:only-child){grid-template-columns:1fr}
.tune-option{position:relative;display:flex;align-items:center;gap:10px;padding:13px;border-radius:9px;border:1px solid #5578a7;background:#102950;cursor:pointer;min-height:49px;transition:background .16s,border-color .16s,box-shadow .16s}
.tune-option:hover{border-color:#93beff;background:#204980;box-shadow:0 5px 16px #0002}
.tune-option:has(input:checked){border-color:#94c4ff;background:linear-gradient(115deg,#2162d0,#235bbd);box-shadow:inset 0 1px #c1ddff40,0 5px 20px #07347655}
.tune-option:has(input:focus-visible){outline:3px solid #c0ddff;outline-offset:3px}
.customer-workspace .tune-option input{width:17px;height:17px;flex-shrink:0;padding:0;margin:0;accent-color:#dbeaff}
.tune-option-copy{flex:1;min-width:0}.tune-option strong{font-size:14px;font-weight:650;line-height:1.4;color:#f0f6ff;display:block;overflow-wrap:anywhere}
.tune-option small{display:block;font-size:11px;line-height:1.5;color:#b5d1f5;margin-top:5px}.tune-option:has(input:checked) small{color:#e0edff}
.option-indicator{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#203f6b;color:#a7cbff;font-size:15px;flex-shrink:0}
.tune-option:has(input:checked) .option-indicator{background:#e6f2ff;color:#1756b5;font-weight:800}
.tune-stage-options .tune-option{min-height:76px;padding:16px 13px}.tune-stage-options .tune-option strong{font-size:20px;letter-spacing:-.5px}
.tune-hint{font-size:11px!important;line-height:1.75;color:#b9cdeb!important;margin:9px 0 0}
.customer-workspace .tune-clear{padding:1px 0;background:transparent;color:#bed8ff;border:0;font-size:11px;min-height:0;margin-top:5px}.customer-workspace .tune-clear:hover{background:transparent;color:#fff;box-shadow:none}
/* The action follows stage + extras, before the secondary package catalogue. */
.tune-checkout{padding:18px;margin-top:18px;border:1px solid #628ad0;border-radius:11px;background:#091e40;box-shadow:0 9px 25px #06162c33;scroll-margin-top:90px}
.tune-checkout>.eyebrow{font-size:9px;color:#91baff}
.tune-summary{font-size:18px!important;color:#f5f9ff!important;font-weight:700;margin:7px 0 14px;min-height:26px;line-height:1.5}
.customer-workspace .tune-primary{display:block;width:100%;font-size:15px;font-weight:750;min-height:52px;background:linear-gradient(110deg,#246ce0,#185cdb);border-color:#82b5ff;box-shadow:0 6px 22px #1c6dff35}
.customer-workspace .tune-primary:hover{background:linear-gradient(110deg,#2c70e5,#1e59bf)}
.customer-workspace .tune-primary:disabled{background:#223f6c;border-color:#4c6d9e;color:#b7cbea;box-shadow:none}
.file-consent{font-size:11px;color:#c0d2ed;line-height:1.65;margin:13px 0 7px;align-items:start;gap:9px}
.customer-workspace .file-consent input{height:16px;width:16px;margin-top:2px;flex-shrink:0}
.file-consent a{color:#b7d8ff;text-decoration:underline;text-underline-offset:2px}
.tune-selection-notes p{margin:12px 0 0;padding-top:12px;border-top:1px solid #345582;font-size:11px;line-height:1.75;color:#c4d5ed}
.tune-secondary{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:17px}.customer-workspace .tune-secondary button{font-size:11px;padding:8px 12px;min-height:35px}.tune-proof{font-size:9px;letter-spacing:.5px;color:#aac2e4}
.tune-selected{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.tune-selected-chip{padding:9px 14px;border:1px solid #7baff2;color:#e6f2ff;background:#245797;font-size:13px;border-radius:7px}
/* Results have their own darker material; gain and graph are intentionally distinct. */
.tune-performance{min-width:0;padding:24px;border:1px solid #34588c;border-radius:14px;background:linear-gradient(155deg,#10274d,#0a1a36 70%)}
.tune-performance .tune-section-title{margin-bottom:20px}
.tune-performance .matched-performance{border:0;margin:0;padding:0}.tune-performance .performance-sheet{padding:0}
.tune-performance .performance-sheet>.eyebrow{display:none}.tune-performance .performance-sheet h3{font-size:18px;margin:0 0 5px;line-height:1.5}.tune-performance .small-note{font-size:11px;color:#b2c8e7;margin:0}
.customer-workspace .tune-performance .performance-variant{padding:15px;border:1px solid #628ed0;border-radius:10px;background:#1d477e;color:#edf5ff;font-size:13px;margin-bottom:20px}
.customer-workspace .tune-performance .performance-variant select{margin-top:10px;padding:12px;border:1px solid #7fa8e0;border-radius:7px;background:#0e2b52;color:#fff;font-size:13px;min-height:46px}
.tune-performance .performance-figures{gap:9px;margin:18px 0}
.tune-performance .performance-figures section{background:#dfebfc;border:1px solid #b7cff3;border-radius:10px;padding:14px 12px}
.tune-performance .performance-figures h4{font-size:11px;color:#385680;margin:0 0 10px;line-height:1.4}
.tune-performance .performance-figures strong{color:#113265;font-size:30px;letter-spacing:-1px;line-height:1.2}
.tune-performance .performance-figures span{font-size:12px;color:#47638b;margin-top:6px}
.tune-performance .performance-figures section:last-child{background:linear-gradient(135deg,#2162d0,#1b51b3);border-color:#70a5ff}
.tune-performance .performance-figures section:last-child strong{color:#fff}.tune-performance .performance-figures section:last-child h4,.tune-performance .performance-figures section:last-child span{color:#e0edff}
.tune-performance .performance-chart{padding:12px 9px 5px;background:#fff;border:1px solid #d7e5fa;border-radius:11px;margin:0 0 14px;position:relative;box-shadow:0 10px 25px #0002;color-scheme:light}
.tune-performance .performance-chart img{filter:none;mix-blend-mode:normal;display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#fff}
.tune-performance .performance-chart figcaption{font-size:10px;color:#49617e;padding:8px 7px}
.tune-reference-label{font-size:9px;color:#9cb9df;letter-spacing:1.3px;display:block;margin-top:18px}
.tune-performance .reference-empty-message{padding:28px 15px;border:1px dashed #5277a7;border-radius:9px;font-size:13px}.tune-performance .reference-empty-link{font-size:12px}
/* Every package stays visible, outside the main selection / dyno area. */
.tune-packages{padding:24px 28px;background:#10284f;border-top:1px solid #43689d}
.tune-packages>.tune-hint{margin-bottom:18px}.tune-packages .tune-options{margin:0}.tune-packages legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.tune-packages .tune-option-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tune-packages .tune-option{min-height:77px;background:#0a1d3d;border-color:#406292}
.tune-packages .tune-option:has(input:checked){background:linear-gradient(115deg,#2162d0,#235bbd);border-color:#94c4ff}
.tune-packages .tune-option strong{font-size:13px}.tune-package-review{display:inline-block;font-size:12px;font-weight:600;margin-top:17px;text-decoration:underline;text-underline-offset:4px}
.customer-workspace .tune-meta{display:flex;justify-content:space-between;gap:10px;padding:13px 28px;border-top:1px solid #2a4975;font-size:10px;color:#97b2d6;flex-wrap:wrap;background:#07152d;overflow-wrap:anywhere}
.tune-history{padding:13px 28px;border-top:1px solid #2a4975;margin:0;font-size:11px;color:#b1c7e7}.tune-history summary{cursor:pointer}
.tune-retry{padding:18px 28px;font-size:13px}
.tune-disclosure{padding:28px 0 10px;margin-top:38px;border-top:1px solid #38557c;scroll-margin-top:24px}
.customer-workspace .tune-disclosure h2{font-size:19px;margin:9px 0 18px;color:#d4e3f8}.tune-disclosure p{font-size:12px;line-height:1.9;color:#a5bddc;max-width:1100px}
/* Shared account surfaces. */
.workspace-card,.dashboard-grid article,.credit-pack,.history-row,.document-row,.customer-workspace .ticket-row,.customer-workspace .auth-dialog{background:#10264a;border-color:#365883;color:#dfebfc}
.dashboard-grid strong,.credit-pack strong,.credit-pack b{color:#a9ceff}.dashboard-grid article>span,.dashboard-grid small,.account-caption{color:#a7bfdf}
.account-notice{background:#163c6e;border-color:#6eacff;color:#d8eaff}.account-notice.error{background:#3b2b25;border-color:#d9a46e;color:#f6d9b5}.account-footer{background:transparent;color:#95b1d5;border-color:#2c4870}
.empty-state{background:#0b203f;border-color:#41638f;color:#afc6e5}.status-tag{background:#183d73;border-color:#4979b6;color:#c0dcff}
.support-message{background:#0b1c37;border-color:#335780}.support-message.operator{background:#193d6c;border-color:#5b8dce}.support-message p,.support-message b,.profile-grid label,.customer-workspace .stack-form label{color:#c6d8f1}
.customer-workspace .ticket-row.unread{background:#1d487d;border-color:#6ca7f2}.history-row,.document-row{border-color:#355780}.customer-workspace .or-divider span{background:#10264a}.credits-balance{background:#183f76;color:#c5dfff}.pack-bonus{background:#193e35;color:#b3f0d4}
.tune-card.is-processing .tune-header:after{width:28%;animation:telemetry-scan 2s ease-in-out infinite}
@keyframes telemetry-pulse{50%{opacity:.3;box-shadow:0 0 16px #6daaff}}
@keyframes telemetry-scan{0%,100%{left:3%;opacity:.4}50%{left:65%;opacity:1}}
@media(min-width:1600px){.tune-header{padding:22px 34px}.tune-grid{padding:22px;gap:22px}.tune-controls,.tune-performance{padding:26px}.tune-packages{padding:26px 34px}}
@media(max-width:1120px){.account-sidebar{width:185px;padding-inline:12px}.account-page{margin-left:185px}.account-main,.account-topbar{padding-inline:22px}.tune-grid{gap:12px;padding:14px}.tune-controls,.tune-performance{padding:18px}.tune-option{padding:11px 9px}.tune-stage-options .tune-option strong{font-size:18px}.tune-option strong{font-size:12px}.tune-proof{display:none}.tune-performance .performance-figures{gap:6px}.tune-performance .performance-figures strong{font-size:24px}.tune-packages .tune-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.account-sidebar{position:static;width:auto;padding:12px 16px 4px}.account-page{margin-left:0}.account-sidebar nav{margin-top:12px;scrollbar-width:none}.account-sidebar nav::-webkit-scrollbar{display:none}.account-topbar{min-height:62px;padding:10px 16px}#account-identity{max-width:90px;font-size:10px}.account-top-actions button{white-space:nowrap;font-size:10px!important;padding:8px!important}.balance-chip{padding:6px;font-size:9px}.balance-chip>b{font-size:14px}.account-main{padding:16px 16px 0}.focused-file>.workspace-heading{margin-bottom:12px}.workspace-heading h1{font-size:27px}.focused-file>.workspace-heading>a.button{padding:8px 12px!important}.tune-card{border-radius:15px}.tune-grid{grid-template-columns:1fr;padding:12px;gap:14px}.tune-header{padding:22px 20px;min-height:150px;align-items:start;flex-direction:column;gap:10px}.tune-header:before{background:linear-gradient(90deg,#0e2a56f5,#12366fb0 75%),url('/remaps-static/images/nexus-performance-hangar.webp') 72% center/auto 100% no-repeat}.tune-header h2{font-size:30px!important}.tune-status{padding:7px 10px;font-size:9px}.tune-filename{font-size:11px!important}.tune-controls,.tune-performance{padding:20px 16px}.tune-section-title h3{font-size:18px}.tune-stage-options .tune-option{min-height:70px}.tune-option strong{font-size:13px}.tune-performance .performance-figures{grid-template-columns:repeat(3,minmax(0,1fr))}.tune-performance .performance-figures section{padding:12px 9px}.tune-performance .performance-figures section:last-child{grid-column:auto}.tune-performance .performance-figures strong{font-size:23px}.tune-performance .performance-figures h4{font-size:10px}.tune-performance .performance-chart{padding:7px 3px 4px}.tune-packages{padding:22px 20px}.tune-meta,.tune-history{padding:12px 20px!important}.tune-disclosure{margin-top:28px}.account-footer{margin-top:25px}}
@media(max-width:480px){.tune-packages .tune-option-grid{grid-template-columns:1fr}.tune-checkout{padding:15px}.tune-stage-options .tune-option{padding:12px 9px}.tune-option-caption{font-size:10px!important}.option-indicator{width:18px;height:18px;font-size:13px}.tune-option{gap:8px}.tune-performance .performance-figures strong{font-size:21px}.tune-performance .performance-figures section{padding:11px 7px}}
@media(prefers-reduced-motion:reduce){.tune-status.processing:before,.tune-card.is-processing .tune-header:after{animation:none}.tune-option,.customer-workspace button{transition:none}}

