:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#203d35;background:#f5f7f4;font-size:14px}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button{cursor:pointer;background:white;border:1px solid #d9e2dc;border-radius:8px;padding:10px 15px;color:#24483c}
button:hover{background:#e8eee9}
button:disabled{opacity:.5;cursor:wait}
.primary{background:#20684e;color:white;border-color:#20684e}
.primary:hover{background:#174c39}
input,select,textarea{width:100%;padding:11px;border:1px solid #ccd9d0;border-radius:7px;background:white;color:#203d35}
textarea{min-height:100px}
label{display:block;margin:15px 0;font-weight:600}
label input,label select,label textarea{margin-top:7px;font-weight:400}
h1{font-size:32px;letter-spacing:-1px;margin:7px 0 12px}
h2{font-size:19px}
p{line-height:1.6}
.muted,small{color:#718178}
.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#72857b}
.brand{font-size:21px;font-weight:750;letter-spacing:-.7px}
.brand span{color:#92ba6b;margin-right:7px}
aside{position:fixed;inset:0 auto 0 0;width:235px;padding:32px 20px;background:#143f32;color:white;display:flex;flex-direction:column}
aside .eyebrow{margin:45px 14px 14px;color:#99b4a6}
nav{display:grid;gap:6px}
nav button{text-align:left;background:transparent;color:#b7cec1;border:0;padding:13px 15px}
nav button.active{background:#2b5947;color:white}
nav button:hover{background:#244f3f}
.sidebar-footer{margin-top:auto;padding:20px 10px;display:grid;gap:20px}
.sidebar-footer small{color:#a5bfb0}
main{margin-left:235px;padding:36px 42px;max-width:1600px}
header{display:flex;justify-content:space-between;align-items:center;gap:20px}
.header-actions{display:flex;align-items:center;gap:15px;font-size:12px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:28px 0}
.card,.panel{background:white;border:1px solid #e0e7df;border-radius:12px;padding:24px}
.card small{font-weight:600}
.card strong{display:block;font-size:34px;margin:14px 0 4px;letter-spacing:-1px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.panel h2{margin-top:0}
.metric-row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid #edf0eb;gap:15px}
.provider-row{align-items:center;flex-wrap:wrap}
.provider-row>span:first-child{flex:1;min-width:220px;overflow-wrap:anywhere}
.provider-row>span:last-child{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.provider-row button.mini{padding:6px 9px;font-size:12px;white-space:nowrap}
.toolbar{display:flex;gap:12px;margin:24px 0}
.toolbar input{max-width:350px}
.table-wrap{overflow:auto;background:white;border:1px solid #e0e7df;border-radius:10px}
table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}
th{background:#edf2eb;padding:15px;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#728178}
td{padding:16px;border-bottom:1px solid #edf0eb;font-size:12px;max-width:300px;overflow:hidden;text-overflow:ellipsis}
td button{padding:6px 10px;font-size:12px}
.badge{display:inline-block;border-radius:20px;padding:5px 9px;background:#edf2eb;color:#50735a}
.badge.bad{background:#fff0e9;color:#a35431}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:18px}
.callout{background:#edf1dd;border:1px solid #dce4bf;border-radius:9px;padding:16px;line-height:1.7;margin:20px 0}
.empty{padding:50px;text-align:center;color:#728178}
.loading{padding:50px;color:#728178}
#notice{position:fixed;bottom:25px;right:25px;max-width:500px;padding:17px 23px;background:#143f32;color:white;border-radius:10px;box-shadow:0 8px 40px #173a3430;z-index:10}
#login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(at 10% 10%,#dce9d5,transparent 55%),#f5f7f4}
.login-card{max-width:510px;width:90%;background:white;padding:42px;border:1px solid #dde5dc;border-radius:18px}
.login-card .eyebrow{margin-top:35px}
.login-card button{width:100%;margin-top:15px}
dialog{border:1px solid #dce5dc;border-radius:14px;width:min(570px,92vw);max-height:85vh;padding:28px;color:#203d35}
dialog.wide{width:min(1100px,95vw)}
.test-results .test-detail{white-space:normal;min-width:210px;overflow:visible}
.test-results td{max-width:none}
.test-progress{padding:12px;background:#edf2eb;border-radius:8px}
dialog::backdrop{background:#0c2d2366}
.dialog-head{display:flex;justify-content:space-between;align-items:center}
pre{white-space:pre-wrap;word-break:break-word;font-size:12px;max-height:55vh;overflow:auto}
.settings-form{max-width:650px}
.setting-hint{display:block;margin:6px 0 13px;color:#61736a;font-size:12px;font-weight:400;line-height:1.45}
.settings-form h3{margin:24px 0 6px}
.settings-form .table-wrap+.muted{margin-top:9px}
.compact{margin:12px 0;padding:12px}
.farm-picker{display:grid;grid-template-columns:1fr auto;align-items:end;gap:10px}
.farm-picker label{margin-bottom:0}
.json-editor{min-height:330px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.45}
.compact-json{min-height:100px}
.studio-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0;color:#61736a;font-size:12px}
.studio-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.studio-actions .danger{color:#8e3d23;border-color:#dfb3a3;background:#fff8f4}
.studio-json-view{max-height:330px;padding:13px;border:1px solid #dfe7df;border-radius:8px;background:#f8faf7}
.section-picker{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:14px;border:1px solid #dfe7df;border-radius:8px;background:#f8faf7;margin:12px 0}
.section-picker strong{width:100%}
.section-picker label{margin:0;font-weight:400}
.section-picker input{width:auto;margin:0 4px 0 0}
.section-picker button{margin-left:auto}
.studio-meta+p{margin-top:0}
hr{border:0;border-top:1px solid #e3e9e2;margin:26px 0}
[hidden]{display:none!important}
.sys-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;align-items:end}
.sys-filters label{margin:0;min-width:0}.sys-filters select,.sys-filters input{width:100%;min-width:0}
.sys-state{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:13px}
.sys-chart{margin:20px 0;padding:24px;min-width:0;overflow:hidden;box-shadow:0 4px 18px #183f3205}
.sys-chart-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:18px}
.sys-chart-heading h2{font-size:22px;margin:6px 0 0;letter-spacing:-.5px}.sys-chart-heading .eyebrow{margin:0}
.sys-chart-hint{font-size:12px;color:#718178;max-width:245px;line-height:1.6}
.sys-chart-viewport{width:100%;overflow-x:auto;border-radius:10px;background:#fbfcfa;border:1px solid #edf1eb}
.sys-chart .sys-plot{display:block;width:100%;height:auto;min-width:620px;cursor:crosshair;outline-offset:-3px}
.sys-chart .sys-plot text{font-size:13px;fill:#6b7c73;font-variant-numeric:tabular-nums}
.sys-grid{stroke:#e4ebe3;stroke-width:1;stroke-dasharray:3 5}
.sys-crosshair{stroke:#536c60;stroke-width:1.3;stroke-dasharray:4 4;pointer-events:none}
.sys-series-hidden{display:none}
.sys-legend{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.sys-legend button{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;padding:8px 12px;border-radius:20px;background:#f6f9f5;border-color:#e1e9df}
.sys-legend button[aria-pressed="false"]{opacity:.45;background:white;text-decoration:line-through}
.sys-legend button svg{display:block;flex:none}
.sys-chart-readout{display:flex;align-items:center;flex-wrap:wrap;gap:10px 22px;min-height:58px;padding:14px 4px 0;color:#64766c;font-size:12px;font-variant-numeric:tabular-nums}
.sys-chart-readout strong{color:#24483c}.sys-chart-readout b{color:#203d35;margin-left:6px}
.sys-speed-test{margin:22px 0;border-top:3px solid #287ab6}
.sys-speed-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.sys-speed-results>div{background:#f4f8fb;border:1px solid #e3ecf2;border-radius:12px;padding:22px;min-width:0}
.sys-speed-results strong{display:block;margin-top:12px;font-size:30px;color:#225b80;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sys-speed-results strong small{font-size:13px;color:#718797;letter-spacing:0}
.sys-speed-status{padding:12px 15px;background:#f5f8f3;border-radius:8px;margin:0;overflow-wrap:anywhere}
@media(max-width:700px){.sys-chart{padding:16px}.sys-chart-heading{gap:12px}.sys-chart-hint{max-width:none}.sys-speed-results{grid-template-columns:1fr;gap:10px}.sys-speed-results>div{padding:16px}.sys-speed-results strong{font-size:28px}.sys-chart-heading h2{font-size:20px}}
.sys-warning{padding:12px;background:#fff4df;color:#805213;border-radius:8px;overflow-wrap:anywhere}
.sys-swatch-2c7768{background:#2c7768}.sys-swatch-b46a17{background:#b46a17}.sys-swatch-287ab6{background:#287ab6}.sys-swatch-9a4b98{background:#9a4b98}
:focus-visible{outline:3px solid #94b861;outline-offset:3px}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}
main{padding:25px}
.grid{grid-template-columns:1fr}
}
@media(max-width:700px){aside{position:static;width:auto;padding:20px}
aside .eyebrow,.sidebar-footer small{display:none}
nav{display:flex;overflow:auto;margin-top:20px}
nav button{white-space:nowrap}
.sidebar-footer{padding:10px 0 0}
.sidebar-footer button{padding:5px}
main{margin:0;padding:20px}
header{align-items:flex-start}
.header-actions{flex-direction:column;align-items:flex-end}
h1{font-size:27px}
.card{padding:16px}
.farm-picker{grid-template-columns:1fr}
.section-picker button{margin-left:0;width:100%}
}
