/* FragClinic Performance Workbench v1.2: layout is scoped to its own tool. */
.csfl-tool--workbench{background:#0d1b25;border-color:#35554f;box-shadow:0 20px 60px #0005}
.csfl-tool--workbench .csfl-tool-toolbar{border-color:#304a44}
.fc-workbench{font-family:inherit;color:#eefaf3;padding:0 24px 28px;max-width:100%;overflow-wrap:anywhere}
.fc-workbench *{box-sizing:border-box}
.fc-headline{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin:31px 0 25px}
.fc-brow{font:700 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.35px;color:#8cf2b9}
.fc-headline h3,.fc-results h3{font-size:clamp(24px,3vw,38px)!important;line-height:1.1!important;letter-spacing:-.055em!important;margin:7px 0 10px!important;color:#f7fff9!important}
.fc-headline p{font-size:14px;line-height:1.7;color:#a9c0c5;max-width:700px;margin:0}
.fc-privacy{white-space:nowrap;border:1px solid #4f7863;border-radius:20px;font:700 10px/1.2 monospace;color:#9af3b9;padding:10px 12px;background:#19332c}
.fc-input-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fc-input-card{min-width:0;background:#142733;border:1px solid #35515a;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:9px}
.fc-run-header{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.fc-run-header h4{font-size:19px!important;color:#f4fefa!important;margin:0!important;letter-spacing:-.4px}
.fc-letter{font:850 14px/1 monospace;border-radius:6px;display:inline-grid;place-items:center;width:34px;height:34px;background:#8cf2b9;color:#0e2821}
.fc-input-card:nth-child(2) .fc-letter{background:#eda57b;color:#282019}
.fc-label{font-size:12px;line-height:1.4;font-weight:800;color:#d7e9e7;margin-top:7px}
.fc-input-card input[type=text],.fc-input-card select,.fc-notes textarea{display:block;width:100%;min-width:0;min-height:45px;padding:11px 12px;background:#091a24!important;border:1px solid #4b6970!important;border-radius:7px!important;color:#f4faf9!important;font:500 13px/1.5 system-ui}
.fc-input-card input[type=file]{width:100%;min-width:0;border:1px dashed #60917e;background:#101f29;border-radius:9px;padding:14px 10px;font:500 12px/1.5 system-ui;color:#dcece7;cursor:pointer}
.fc-input-card input[type=file]::file-selector-button{background:#8cf2b9;color:#102219;border:0;border-radius:5px;padding:9px 10px;margin-right:10px;font-weight:800;cursor:pointer}
.fc-input-card :focus-visible,.fc-workbench button:focus-visible,.fc-workbench a:focus-visible{outline:2px solid #b9ffdd!important;outline-offset:3px}
.fc-column{margin-top:4px}
.fc-column select{margin-top:5px}
.fc-file-status{font:600 11px/1.55 ui-monospace,monospace;color:#a9d9c5;background:#0c1e27;border-radius:6px;padding:10px;margin:5px 0 0!important;min-height:35px}
.fc-file-status.fc-error{color:#ffb49e;background:#371f25}
.fc-minor{margin-top:auto;align-self:flex-start;background:transparent!important;color:#b7c7ce!important;border:1px solid #47606c!important;border-radius:6px;padding:8px 12px;cursor:pointer;font-size:12px}
.fc-minor:hover{border-color:#8cf2b9!important}
.fc-demo-row{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:18px 0 25px}
.fc-demo,.fc-exports button{cursor:pointer;background:#8cf2b9;color:#0b241a;border:1px solid #8cf2b9;border-radius:6px;font-weight:850;font-size:13px;padding:12px 17px}
.fc-demo:hover,.fc-exports button:hover:not([disabled]){background:#b4ffd1}
.fc-demo-row span{font-size:12px;color:#a8bdc4;max-width:590px}
.fc-how,.fc-trust{background:#13232d;border:1px solid #304d51;border-radius:10px;padding:20px;margin:22px 0}
.fc-how h4,.fc-trust h4{font-size:18px!important;letter-spacing:-.4px;color:#fff!important;margin:0 0 8px!important}
.fc-how p,.fc-trust p,.fc-how details{font-size:13px;line-height:1.75;color:#b7c9cc;margin:7px 0}
.fc-how a,.fc-trust a{color:#a4f2c5!important}
.fc-how code{padding:1px 4px;border:1px solid #365d55;border-radius:3px;background:#112a2a;color:#d6ffe4;font-size:11px}
.fc-how summary{cursor:pointer;color:#e9f7f0;font-weight:750;padding:12px 0}
.fc-how pre{padding:15px;white-space:pre-wrap;overflow:auto;border:1px solid #395155;border-radius:6px;color:#deefe9;background:#0b1b23}
.fc-notes{display:grid;gap:8px;margin:18px 0 10px}
.fc-notes span{font-size:12px;font-weight:800;color:#dce9e7}
.fc-notes textarea{resize:vertical;min-height:94px}
.fc-results{margin-top:36px;padding-top:25px;border-top:1px solid #47665d}
.fc-results-header{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:15px}
.fc-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:#c5d5d7}
.fc-legend span{display:flex;align-items:center;gap:6px}
.fc-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.fc-legend .fc-a{background:#8cf2b9}.fc-legend .fc-b{background:#eda57b}
.fc-chart-wrap{background:#0c1b25;border:1px solid #31525a;border-radius:10px;padding:12px;min-width:0}
.fc-chart-wrap canvas{width:100%;height:240px;display:block;max-width:100%}
.fc-chart-wrap p{font-size:11px;color:#a6b7bc;line-height:1.6;margin:7px 5px 2px!important}
.fc-run-metrics{display:grid;grid-template-columns:1fr;gap:20px;margin-top:24px}
.fc-run-summary{min-width:0;border-radius:10px;border:1px solid #3c5d54;padding:20px;background:#142831}
.fc-run-summary h3,.fc-comparison h3,.fc-guidance h3{font-size:20px!important;margin:0 0 15px!important;color:#eafbf1!important;letter-spacing:-.5px}
.fc-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.fc-metric{min-width:0;background:#0c2029;border:1px solid #304c50;border-radius:7px;padding:12px;display:flex;flex-direction:column;gap:7px}
.fc-metric-label{font:700 11px/1.45 ui-monospace,monospace;color:#a2c6bc}
.fc-metric-value{font-size:clamp(17px,2vw,25px);line-height:1.2;letter-spacing:-.6px;color:#f5fff9;white-space:normal;word-break:break-word}
.fc-metric-note{font-size:10px;line-height:1.5;color:#91adb0}
.fc-meta{color:#9cbab5;font:600 11px/1.6 ui-monospace,monospace;margin:14px 0 0!important;overflow-wrap:anywhere}
.fc-comparison{padding:19px 22px;margin:18px 0;border:1px solid #648064;border-radius:10px;background:#182b25}
.fc-comparison p{font-size:14px;line-height:1.65;color:#e4eee9;margin:7px 0}
.fc-comparison .fc-caveat{color:#a9c6bd;font-size:12px}
.fc-run-guidance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fc-guidance{background:#0f222c;border:1px solid #38545c;border-radius:10px;padding:20px;min-width:0}
.fc-guidance ul{padding-left:19px;color:#b9cfd0;font-size:12px;line-height:1.7;margin:0}
.fc-guidance li{margin:0 0 10px}
.fc-exports{display:flex;gap:11px;flex-wrap:wrap;margin:20px 0 0}
.fc-exports button:nth-child(2){background:transparent;border-color:#68877b;color:#e2f0e8}
.fc-exports button[disabled]{opacity:.5;cursor:not-allowed}
.fc-measure-note{font-size:12px!important;line-height:1.8!important;color:#b7c9c8!important}
@media(max-width:760px){.fc-input-cards{grid-template-columns:1fr}.fc-run-guidance{grid-template-columns:1fr}.fc-headline{flex-direction:column}.fc-privacy{white-space:normal}.fc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.fc-workbench{padding:0 13px 17px}.fc-input-card{padding:14px}.fc-metrics{grid-template-columns:1fr 1fr}.fc-metric{padding:10px}.fc-metric-value{font-size:18px}.fc-results h3{font-size:25px!important}}
@media print{body{background:#fff!important;color:#111!important}.csfl-site-header,.csfl-topline,.csfl-site-footer,.csfl-tool-toolbar,.fc-input-cards,.fc-demo-row,.fc-how,.fc-notes,.fc-exports,.fc-trust,.fc-file-status,.csfl-page-head{display:none!important}.fc-workbench,.fc-run-summary,.fc-guidance,.fc-comparison,.fc-metric,.fc-chart-wrap{background:#fff!important;color:#111!important;border-color:#bbb!important;box-shadow:none!important;break-inside:avoid}.fc-workbench *{color:#111!important}.fc-results{display:block!important}.fc-metrics{grid-template-columns:repeat(3,1fr)!important}.fc-run-guidance{display:block!important}}

.fc-distribution{margin-top:12px}.fc-distribution h4{color:#e9faf2!important;font-size:15px!important;margin:2px 5px 9px!important;letter-spacing:-.3px}.fc-distribution canvas{height:170px}.fc-outliers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.fc-slowest{min-width:0;padding:15px 18px;border:1px solid #304e53;border-radius:9px;background:#10252e}.fc-slowest h4{font-size:14px!important;color:#d9f7e7!important;margin:0 0 8px!important}.fc-slowest ol{margin:0;padding-left:20px;color:#c1d2d4;font:500 11px/1.8 ui-monospace,monospace}.fc-slowest li{overflow-wrap:anywhere}@media(max-width:760px){.fc-outliers{grid-template-columns:1fr}}

/* v1.3 bridge from measurement to guided retest */
.fc-guided-next{margin:22px 0 8px;padding:22px;border-radius:10px;background:linear-gradient(110deg,#143c34,#172b35);border:1px solid #568f78;display:flex;flex-direction:column;align-items:flex-start;gap:11px}
.fc-guided-next h4{font-size:22px!important;margin:0 0 6px!important;color:#f0fff5!important}.fc-guided-next p{font-size:13px!important;line-height:1.65!important;margin:0!important;color:#c0d6d0!important}
.fc-guided-next button{color:#17291b;background:#a5ef9e;border:1px solid #baffb3;border-radius:6px;padding:12px 17px;font-weight:850;font-size:12px;cursor:pointer}.fc-guided-next button:hover{background:#c5ffbd}.fc-guided-next .fc-guided-status{color:#ffccae!important;font-size:12px!important}
@media print{.fc-guided-next{display:none!important}}
