/* Navigation shares the existing header; performance layout is isolated. */
.has-performance-area .brand-name,.has-performance-area .brand-divider{display:none}
.workspace-nav{display:flex;gap:2px;padding:3px;background:var(--fill-2);border-radius:12px;white-space:nowrap}
.workspace-nav button{border:0;border-radius:9px;background:transparent;color:var(--label-2);font-size:13px;font-weight:600;height:34px;padding:0 14px;position:relative}
.workspace-nav button:hover{color:var(--label)}.workspace-nav button[aria-current=page]{color:var(--label);background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.app-menu{position:relative;flex:none}
#app-menu-button{position:relative}
body.performance-view #app-menu-button{background:var(--hover);color:var(--label)}
.app-menu-list{position:absolute;top:calc(100% + 6px);right:0;z-index:60;min-width:180px;padding:5px;background:var(--surface);border-radius:12px;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 10px 30px rgba(0,0,0,.16)}
.app-menu-list[hidden]{display:none}
.app-menu-list [role=menuitem]{display:flex;align-items:center;width:100%;height:34px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--label);font-size:13px;font-weight:600;text-align:left;position:relative}
.app-menu-list [role=menuitem]:hover,.app-menu-list [role=menuitem]:focus-visible{background:var(--hover)}
.app-menu-list [role=menuitem][aria-current=page]{color:#16788a}
.performance-nav-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#16788a;position:absolute;right:4px;top:4px}
body.performance-view .app-shell>main,body.performance-view .app-shell #destination-controls,body.performance-view #help-button{display:none!important}
body.performance-view .app-shell .topbar.has-destination-controls{height:var(--toolbar);min-height:var(--toolbar);flex-basis:var(--toolbar)}
body.performance-view .has-destination-controls .top-actions{grid-column:2}
.performance-page{width:100%;max-width:1250px;margin:0 auto;padding:25px 32px 16px;min-height:0;flex:1;overflow:auto;scrollbar-gutter:stable;color:#253246}
.performance-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.performance-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#7d8999;margin-bottom:6px}
.performance-heading h1{font-size:29px;letter-spacing:-.9px;font-weight:650;line-height:1.2;outline:none}
.performance-heading p{font-size:13px;color:#6c788a;margin-top:5px}
.performance-profile{font-size:11px;display:flex;flex-direction:column;gap:5px;border-left:1px solid #dce2e9;padding-left:18px;color:#7b8795;white-space:nowrap}
.performance-profile strong{font-size:14px;color:#48576c;font-weight:600}
.performance-run-card{background:#fff;border:1px solid #dfe5ec;border-radius:17px;padding:18px 20px;box-shadow:0 3px 15px #22334b04}
.performance-run-top{display:flex;align-items:center;justify-content:space-between;gap:14px}
.performance-page h2{font-size:15px;font-weight:650;letter-spacing:-.2px;margin:0}
.performance-run-top p{font-size:12px;line-height:1.45;color:#708095;margin:5px 0 0}
.performance-state-badge{flex:none;font-size:11px;font-weight:600;padding:6px 10px;color:#6b7d8d;background:#f1f4f7;border-radius:20px}
.performance-state-badge[data-state=running]{color:#176c80;background:#e9f5f7}.performance-state-badge[data-state=completed]{color:#327759;background:#edf7f1}.performance-state-badge[data-state=error]{color:#9a5d32;background:#fff4e9}
.performance-run-controls{display:flex;align-items:stretch;gap:12px;margin-top:16px}
#performance-targets{display:grid;grid-template-columns:1fr 1.25fr;gap:9px;flex:1;min-width:0;border:0;padding:0;margin:0}
.performance-target{display:flex;align-items:center;gap:9px;min-width:0;border:1px solid #dfe5ec;border-radius:10px;padding:10px 12px;cursor:pointer;background:#fcfdfe}
.performance-target:has(input:checked){border-color:#a3c3df;background:#f1f7fd;box-shadow:inset 0 0 0 1px #c1d7ed}.performance-target input{margin:0;accent-color:#2b709f;flex:none}.performance-target span{display:flex;flex-direction:column;gap:4px;min-width:0}.performance-target strong{font-size:12px;font-weight:600;color:#3d526a}.performance-target small{font-size:10px;color:#7b899a;line-height:1.3}#performance-targets:disabled .performance-target{opacity:.65;cursor:default}
.performance-target:has(input:disabled){opacity:.65;cursor:default}
#performance-start,#performance-cancel{flex:none;border:1px solid #236080;border-radius:10px;padding:10px 16px;min-height:52px;display:flex;align-items:center;justify-content:center;gap:12px;background:#245c7b;color:#fff;font-size:12px;font-weight:600;white-space:nowrap;box-shadow:0 2px 5px #214c6415}
#performance-start:hover:not(:disabled){background:#1b4c68}#performance-start:disabled{background:#eff2f5;color:#93a0ad;border-color:#e4e9ef;box-shadow:none}
#performance-start svg{width:16px;height:16px}#performance-cancel{color:#647185;background:#f6f8fa;border-color:#dce3eb;box-shadow:none}#performance-cancel:hover:not(:disabled){background:#edf1f5}#performance-cancel:disabled{opacity:.6}
.performance-message{font-size:11px;line-height:1.4;color:#7a8797;margin:11px 0 0;min-height:15px}
#performance-progress{margin-top:14px}.performance-progress-copy{display:flex;justify-content:space-between;font-size:11px;color:#4a6c7f;gap:12px;margin-bottom:7px}
#performance-progress-bar{display:block;appearance:none;width:100%;height:5px;border:0;border-radius:5px;overflow:hidden;background:#e9f0f5}#performance-progress-bar::-webkit-progress-bar{background:#e9f0f5}#performance-progress-bar::-webkit-progress-value{background:#43859a;border-radius:5px}
.performance-results{margin-top:22px}.performance-results-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.performance-results-heading>div{display:flex;align-items:baseline;gap:14px}.performance-results-heading h2{font-size:14px}.performance-results-heading>div>span{font-size:11px;color:#8b96a4}
.performance-history{display:flex;align-items:center;gap:8px;font-size:11px;color:#7d8999}.performance-history select{max-width:245px;border:1px solid #dbe3eb;background:#fff;color:#56677c;border-radius:7px;padding:6px 8px;font-size:11px}
.performance-machines{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.performance-machine{min-width:0;border:1px solid #dfe5ec;border-radius:14px;background:linear-gradient(125deg,#fff,#fbfcfe);padding:16px 18px}
.performance-machine-top{display:flex;align-items:center;gap:10px}.performance-machine-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#71879c;background:#edf2f7;flex:none}.performance-machine-icon svg{width:22px;height:22px}.performance-machine-top>div:nth-child(2){min-width:0}.performance-machine h3{font-size:13px;font-weight:650;margin:0 0 3px}.performance-machine-hint{font-size:10px;line-height:1.3;color:#8a96a5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.performance-machine-status{font-size:10px;color:#80909f;margin-left:auto;white-space:nowrap}.performance-machine[data-state=unavailable] .performance-machine-status,.performance-machine[data-state=error] .performance-machine-status{color:#9a754c}
.performance-machine-score{display:flex;align-items:baseline;gap:12px;margin-top:14px}.performance-machine-score strong{font-size:30px;letter-spacing:-1px;font-weight:600;line-height:1.15;color:#234c69;font-variant-numeric:tabular-nums;white-space:nowrap}.performance-machine-score>span{font-size:11px;color:#7a899c;line-height:1.4}
.performance-budget{height:4px;border-radius:4px;background:#e8edf3;overflow:hidden;margin-top:11px}.performance-budget>span{display:block;height:100%;background:#57929f;border-radius:4px}.performance-budget[data-over=true]>span{background:#c39952}
.performance-machine-note{font-size:11px;color:#8490a0;margin:9px 0 0;line-height:1.5;min-height:17px}
.performance-matrix-wrap{border:1px solid #e1e6ed;border-radius:13px;overflow:hidden;background:#fff;margin-top:14px}.performance-matrix{border-collapse:collapse;width:100%;table-layout:fixed;font-size:11px;color:#596b80}.performance-matrix th,.performance-matrix td{padding:10px 15px;text-align:left;vertical-align:middle;overflow-wrap:anywhere;border-bottom:1px solid #edf0f4;line-height:1.5}.performance-matrix thead th{font-size:10px;font-weight:600;color:#7f8b9c;background:#f8fafc;padding:8px 15px}.performance-matrix th:first-child{width:32%}.performance-matrix th strong{display:block;font-size:11px;font-weight:600;color:#4b5d73}.performance-matrix th span{display:block;font-size:10px;font-weight:400;color:#929caa;margin-top:1px}.performance-matrix tr:last-child th,.performance-matrix tr:last-child td{border-bottom:0}.performance-unmeasured{color:#a0a8b3}.performance-transport{font-size:11px;line-height:1.5;margin-top:10px;color:#7e8ca0}
.performance-footer{display:flex;align-items:flex-start;gap:7px;font-size:10px;line-height:1.5;color:#939daa;margin-top:14px;padding:0 2px 2px}.performance-footer svg{height:14px;width:14px;flex:none}
.performance-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1100px){.has-performance-area .brand-mark{display:none}.has-performance-area .brand{gap:0}.workspace-nav button{padding:7px 9px}.performance-page{padding:20px 24px 14px}.performance-run-card{padding:16px 18px}.performance-run-controls{gap:10px}#performance-start{padding:10px 12px}.performance-machine-score{flex-wrap:wrap;gap:4px 10px}.performance-results-heading>div{gap:10px}}
@media(max-width:850px){.workspace-nav{padding:3px}.workspace-nav button{font-size:11px;padding:7px 8px}.performance-page{padding:17px 20px 13px}.performance-heading{margin-bottom:15px}.performance-heading h1{font-size:27px}.performance-run-top p{font-size:11px}.performance-target{padding:9px}.performance-target strong{font-size:11px}.performance-target small{font-size:9px}#performance-start,#performance-cancel{font-size:11px;padding:9px 11px}.performance-results{margin-top:18px}.performance-machine{padding:14px}.performance-machine-status{font-size:9px}.performance-machine-score strong{font-size:27px}.performance-machine-score>span{font-size:10px}.performance-history>span{display:none}.performance-history select{max-width:205px}.performance-matrix th,.performance-matrix td{padding:9px 12px}.performance-results-heading>div{display:block}.performance-results-heading>div>span{display:block;margin-top:4px}.performance-machine-hint{max-width:180px}}
@media(max-width:650px){.has-performance-area .has-destination-controls>.brand{display:flex}.performance-run-controls{flex-wrap:wrap}#performance-targets{flex-basis:100%}#performance-start,#performance-cancel{min-height:42px;width:100%}.performance-run-top{align-items:flex-start}.performance-heading p{font-size:11px}.performance-profile{font-size:10px}.performance-profile strong{font-size:12px}.performance-machine-status{display:none}.performance-machine-score{display:block}.performance-machine-score>span{display:block;margin-top:5px}.performance-machine-note{font-size:10px}.performance-matrix th,.performance-matrix td{padding:8px;font-size:10px}.performance-matrix th span{display:none}.performance-matrix th strong{font-size:10px}.performance-history select{max-width:180px}.performance-page{overflow:visible}.performance-heading{align-items:flex-start}body.performance-view .app-shell .topbar.has-destination-controls{height:64px;min-height:64px;flex-basis:64px;flex-wrap:nowrap}}

.performance-capture-card{margin-bottom:18px}
.performance-capture-controls{display:flex;align-items:flex-end;gap:12px;margin-top:15px}
.performance-capture-controls label{display:grid;gap:5px;font-size:11px;color:#64758a;flex:1}
.performance-capture-controls select,.performance-capture-result-heading select{min-width:0;max-width:100%;border:1px solid #dbe3eb;border-radius:9px;background:#fff;color:#334d65;padding:10px;font-size:12px;min-height:42px}
.performance-capture-controls button{min-height:42px;border:1px solid #236080;border-radius:9px;background:#245c7b;color:white;padding:10px 16px;font-size:12px;font-weight:600}
.performance-capture-controls button:disabled{background:#eff2f5;color:#8796a5;border-color:#e4e9ef}
.performance-capture-controls [hidden]{display:none}
.performance-capture-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}
.performance-capture-result-heading h3{font-size:13px;margin:0}
.performance-capture-result-heading select{font-size:11px;padding:6px;max-width:65%}
.performance-stack-details{margin-top:14px}
.performance-stack-details summary{cursor:pointer;font-size:12px;font-weight:600;color:#425f77;padding:6px 0}
.performance-stack-details .performance-matrix-wrap{margin-top:6px}
.performance-stack-details .performance-matrix th:first-child{width:43%}
.performance-stack-details .performance-matrix thead th:last-child{width:14%}
#performance-capture-models{overflow-wrap:anywhere}
@media(max-width:650px){.performance-capture-controls{flex-wrap:wrap}.performance-capture-controls label{flex-basis:100%}.performance-capture-controls button{width:100%}.performance-capture-result-heading{align-items:flex-start}.performance-stack-details .performance-matrix th:first-child{width:42%}.performance-stack-details .performance-matrix td{font-size:10px}}

.performance-capture-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.performance-capture-highlights>div{padding:12px;background:#f6f9fc;border-radius:10px;min-width:0}
.performance-capture-highlights span{display:block;color:#748398;font-size:11px;margin-bottom:5px}
.performance-capture-highlights strong{font-size:18px;color:#234c69;font-weight:600;font-variant-numeric:tabular-nums}
.performance-stack-details .performance-matrix thead th:last-child{width:54px;white-space:nowrap;overflow-wrap:normal}
@media(max-width:650px){.performance-capture-highlights{gap:7px}.performance-capture-highlights>div{padding:9px 7px}.performance-capture-highlights span{font-size:9px}.performance-capture-highlights strong{font-size:12px}.performance-stack-details .performance-matrix thead th:last-child{width:54px}}
