/* TRANSOBA VAS / measurement workspace. No external assets or fonts. */
:root{--bg:#050c15;--surface:#0a1622;--card:#0d1c2b;--card2:#081420;--line:#1c3245;--cyan:#48d9ee;--green:#57d5ac;--muted:#91a8bb}
body{background:radial-gradient(ellipse at 75% 0,#11293e 0,transparent 52%),#050c15;font-family:Inter,Segoe UI,Arial,sans-serif}
.shell{width:min(1550px,100%);padding:24px 28px 64px}.top{border-bottom:1px solid #2e586b;padding-bottom:20px;background:#07131eee}.brand h1{font-size:26px;letter-spacing:.04em}.brand small{letter-spacing:.17em}
.viewbar{background:transparent;border:0;padding:10px 0;margin:14px 0}.viewbar button{border-color:#294052;background:#0c1d2a;border-radius:8px}.viewbar span{font-size:11px;color:#849db1}
.selector{padding:14px 18px;border-radius:14px;background:#0a1723;gap:12px}.selector select{background:#08131e;border-color:#304557;border-radius:8px}.selector button{border-radius:8px}.selector label{font-size:10px;letter-spacing:.04em}
.gauge-detail-row{display:grid;grid-template-columns:290px minmax(0,1fr);gap:35px;padding:25px 32px;margin:16px 0 22px;border:1px solid #284759;border-radius:20px;background:radial-gradient(ellipse at 10% 20%,#17344277,transparent 48%),linear-gradient(115deg,#0b1d2b,#081420);box-shadow:0 20px 55px #0003;overflow:hidden}
.gauge-detail-row>.cloud-gauge{width:100%;max-width:290px;margin:0}.cloud-gauge svg{filter:drop-shadow(0 0 13px #3bd6c00c)}.gauge-detail-copy{min-width:0;line-height:1.5}.eyebrow{display:block;color:#6ccad7;font-size:10px;font-weight:700;letter-spacing:.16em}.gauge-detail-copy h2{font-size:38px;line-height:1.1;letter-spacing:-.035em;margin:12px 0 9px;color:#f2f8fd}.hero-subtitle{color:#9cb0c1;font-size:14px;margin:0 0 24px}.hero-states{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hero-states>div{padding:15px 12px;border:1px solid #294051;border-radius:10px;background:#07121b77;min-width:0}.hero-states span{display:block;color:#91a8bb;font-size:9px;letter-spacing:.12em;margin-bottom:9px}.hero-states strong{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.hero-foot{font-size:11px;color:#7892a6;margin:20px 0 0}.cloud-gauge figcaption .gauge-scale{display:block;margin-top:6px;color:#6ccad7;font-size:9px;letter-spacing:.06em}
.history-primary{border:1px solid #2a465c;border-radius:18px;background:linear-gradient(145deg,#0c1b29,#07121d);box-shadow:0 16px 40px #0002}.chart-head{padding:23px 24px 10px}.chart-head h2{font-size:23px;font-weight:600;letter-spacing:-.02em;margin:7px 0}.chart-head>span{font-size:10px;max-width:47%;line-height:1.6;text-align:right;color:#93a7b7}.chart-periods{display:flex;flex-wrap:wrap;gap:5px;padding:8px 24px 17px}.chart-periods button{min-height:34px;padding:8px 13px;border:1px solid #263c4e;border-radius:7px;background:#0a1723;color:#a4b7c7;font-size:11px;font-weight:650;box-shadow:none}.chart-periods button[aria-pressed=true]{background:#48d9ee;color:#05212b;border-color:#48d9ee;box-shadow:0 0 20px #48d9ee14}.chart-periods button:hover{border-color:#48d9ee}.chart-periods button:focus-visible,button:focus-visible{outline:2px solid #b6f5ff;outline-offset:3px}
.trend-summary{display:flex;gap:30px;align-items:center;margin:0 24px 7px;padding:16px 0;border-top:1px solid #223b4b;border-bottom:1px solid #223b4b}.trend-summary>div>span{display:block;font-size:9px;letter-spacing:.1em;color:#839eb2;margin-bottom:7px}.trend-summary strong{font-size:20px;color:#dfeef7;font-weight:600;font-variant-numeric:tabular-nums}.trend-summary>div:nth-child(3) strong{color:#65dfef}.scale-badge{margin-left:auto;color:#6ed9e6;border:1px solid #245767;background:#12334066;border-radius:6px;padding:8px 11px;font-size:10px;letter-spacing:.025em;white-space:nowrap}
.history-primary .chart{height:350px;background:transparent;margin-top:5px}.daily-history-note{min-height:0;margin:6px 24px 8px;color:#8fa9bd;font-size:11px;line-height:1.65}.daily-history-note:empty{display:none}.quality-history{padding:4px 24px 6px;font-size:11px;color:#e5b05d}.history-primary .legend{padding:16px 24px 20px;gap:14px;border-top:1px solid #183041;margin-top:12px;font-size:10px}.legend .envelope{height:9px;background:#35d9ff50;border:1px solid #35d9ff99}.quality-note{padding:10px 0;margin:3px 4px 16px;font-size:12px}
.metrics{gap:14px}.metric{border-radius:14px;padding:20px;background:linear-gradient(150deg,#0d1d2a,#09141f);box-shadow:none;min-height:125px}.metric small{font-size:9px;letter-spacing:.1em}.metric strong{font-size:32px;font-variant-numeric:tabular-nums}.metric .sub{font-size:11px}.profile-grid,.alarm-grid{opacity:.92}.settings-panel,details{border-radius:14px}button{transition:background .15s,border-color .15s}.vessel-card:hover,.sensor-card:hover{border-color:#397082}
@media(min-width:1600px){.shell{width:min(1680px,100%)}.history-primary .chart{height:380px}.hero-states strong{font-size:14px}}
@media(max-width:900px){.shell{padding:14px}.gauge-detail-row{grid-template-columns:240px minmax(0,1fr);padding:22px 18px;gap:16px}.hero-states{grid-template-columns:1fr}.hero-states>div{padding:8px 10px;display:flex;justify-content:space-between;gap:10px}.hero-states span{margin:0}.hero-states strong{font-size:11px}.gauge-detail-copy h2{font-size:30px}.hero-subtitle{margin-bottom:14px}.trend-summary{gap:18px;flex-wrap:wrap}.scale-badge{margin-left:0}.chart-head>span{max-width:45%}}
@media(max-width:600px){.gauge-detail-row{grid-template-columns:1fr;gap:8px;padding:18px}.gauge-detail-row>.cloud-gauge{max-width:245px;margin:auto}.gauge-detail-copy h2{font-size:29px}.hero-subtitle,.hero-foot{font-size:11px}.hero-states{grid-template-columns:1fr}.chart-head{padding:19px 15px 8px;flex-direction:column}.chart-head>span{max-width:100%;text-align:left}.chart-periods{padding:8px 15px 14px}.trend-summary{margin:0 15px;gap:15px}.trend-summary strong{font-size:16px}.trend-summary>div>span{font-size:8px}.scale-badge{width:100%;text-align:center}.history-primary .chart{height:280px}.daily-history-note{margin-inline:15px}.history-primary .legend{padding:14px 15px}.brand{gap:8px}.brand small{display:none}.top{gap:7px}.brand h1{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* RMS chart refresh. Signal focus is explicitly labeled; thresholds are unchanged. */
.gauge-detail-row{grid-template-columns:190px minmax(0,1fr);padding:14px 26px;gap:26px;margin-bottom:18px}
.gauge-detail-row>.cloud-gauge{max-width:190px}.gauge-detail-copy h2{font-size:29px;margin:8px 0 6px}.hero-subtitle{font-size:12px;margin-bottom:12px}.hero-states>div{padding:10px 12px}.hero-states span{margin-bottom:5px}.hero-foot{margin-top:10px;font-size:10px}
.history-primary{border-color:#2c546b;background:radial-gradient(ellipse at 12% 0,#14465944,transparent 55%),linear-gradient(135deg,#0b1c2c,#06131f);box-shadow:0 24px 70px #0005,inset 0 1px #6fe9ff12;position:relative}
.history-primary:before{content:"";position:absolute;left:24px;right:24px;top:0;height:1px;background:linear-gradient(90deg,transparent,#56e8f588,transparent);pointer-events:none}
.history-primary .chart-head{padding:25px 28px 10px}.history-primary .chart-head h2{font-size:30px;letter-spacing:-.035em;font-weight:650;margin-top:8px}.chart-title-accent{color:#4ee5ed!important;font-size:34px!important}.chart-head .eyebrow{font-size:9px;letter-spacing:.2em;color:#77d2df}
.chart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px 17px;border-bottom:1px solid #224254}
.chart-toolbar .chart-periods{padding:0;gap:4px}.chart-periods button{border-color:transparent;background:transparent;color:#a8c1d4;border-radius:7px;padding:9px 12px;font-size:11px;min-height:35px}
.chart-periods button[aria-pressed=true]{background:#c3f7f5;color:#07353f;border-color:#c3f7f5;box-shadow:0 0 18px #47dcea1c}.chart-periods button:hover{background:#18465566;border-color:#38718a}
.chart-modes{display:flex;gap:3px;padding:4px;background:#06121d;border:1px solid #254354;border-radius:9px;flex-shrink:0}
.chart-modes button{background:transparent;color:#819eb5;border:0;border-radius:5px;font-size:10px;letter-spacing:.03em;font-weight:600;padding:8px 11px;min-height:30px;white-space:nowrap}
.chart-modes button[aria-pressed=true]{background:#173949;color:#aef4f8;box-shadow:inset 0 0 0 1px #2e6578}
.chart-current{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:25px 28px 20px}.chart-current>div:first-child{min-width:200px;position:relative}
.chart-stream{display:inline-flex;align-items:center;gap:7px;font-size:9px;letter-spacing:.12em;font-weight:700;color:#8399ac;margin-bottom:15px}
.chart-stream i{display:block;width:6px;height:6px;border-radius:50%;background:#7c8d9b}.chart-stream.is-live{color:#70e5c7}.chart-stream.is-live i{background:#70e5c7;box-shadow:0 0 0 4px #70e5c717;animation:chartPulse 2.6s ease-in-out infinite}
.chart-current-label{display:block;color:#89a9be;font-size:9px;letter-spacing:.12em;margin-bottom:3px}.chart-current-number{display:flex;gap:12px;align-items:baseline}
.chart-current-number strong{font-size:58px;line-height:1.08;color:#e4ffff;letter-spacing:-.055em;font-weight:600;font-variant-numeric:tabular-nums;text-shadow:0 0 30px #3acdd416}
.chart-current-number strong.warning{color:#ffc47b}.chart-current-number>span{color:#80b4c6;font-size:15px}.chart-sample-time{display:block;margin-top:7px;font-size:10px;color:#7f9db3}
.chart-current .trend-summary{margin:0;gap:0;border:1px solid #254254;border-radius:12px;align-items:stretch;flex:0 1 720px;padding:0;background:#09192577;flex-wrap:wrap;overflow:hidden}
.chart-current .trend-summary>div{flex:1;padding:18px 22px;border-right:1px solid #203b4c;min-width:140px}.chart-current .trend-summary>div:nth-child(3){border-right:0;background:linear-gradient(140deg,#123c4533,transparent)}
.trend-summary>div>span{color:#81a4bb;font-size:9px;letter-spacing:.08em;white-space:nowrap}.trend-summary strong{font-size:24px;letter-spacing:-.025em;color:#d6eaf6;white-space:nowrap}.trend-summary>div:nth-child(3) strong{color:#7aefec}
.chart-current .scale-badge{width:100%;margin:0;padding:9px 20px;border:0;border-top:1px solid #203b4c;border-radius:0;background:#0d263566;color:#84bacb;font-size:9px;text-align:right}
.chart-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 28px 3px;padding-top:12px;border-top:1px solid #213e51;color:#82a4ba;font-size:10px;line-height:1.6}
.chart-caption>span:first-child{color:#8dbfce}.chart-caption>span:last-child{flex-shrink:0;color:#638ca4}
.chart-stage{position:relative;padding-top:6px;background:linear-gradient(180deg,#07162200,#06121c66)}.history-primary .chart{height:375px;margin:0;background:transparent;cursor:crosshair;touch-action:pan-y}
.chart:focus-visible{outline:1px solid #7de6f2;outline-offset:-2px}.chart-cursor-readout{position:absolute;top:8px;max-width:min(440px,calc(100% - 24px));padding:10px 14px;background:#0c2c3cf5;border:1px solid #3d889a;color:#e5fcff;box-shadow:0 8px 26px #0008;border-radius:8px;font-size:11px;line-height:1.6;pointer-events:none;z-index:2;font-variant-numeric:tabular-nums}
.chart-cursor-readout[hidden]{display:none}.daily-history-note{margin-top:8px}.history-primary .legend{border-top-color:#203e50;padding:16px 28px 19px;gap:18px;color:#8eaec2}
.legend .live{background:#6ae7ee;height:3px;box-shadow:0 0 7px #6ae7ee55}.quality-history{color:#ffc37b;font-size:10px}
@keyframes chartPulse{50%{box-shadow:0 0 0 7px #70e5c708}}
@media(min-width:1600px){.history-primary .chart{height:405px}}
@media(max-width:1050px){.chart-toolbar{flex-wrap:wrap}.chart-current{gap:20px}.chart-current .trend-summary>div{padding:15px 16px;min-width:110px}.trend-summary strong{font-size:19px}.chart-current-number strong{font-size:50px}}
@media(max-width:700px){.gauge-detail-row{grid-template-columns:145px minmax(0,1fr);padding:14px;gap:14px}.gauge-detail-row>.cloud-gauge{max-width:145px}.hero-foot,.hero-subtitle{display:none}.gauge-detail-copy h2{font-size:24px;margin-top:7px}.hero-states>div{padding:6px 8px}.hero-states span{font-size:8px}.hero-states strong{font-size:9px}.gauge-detail-copy>.eyebrow{font-size:8px}.chart-current{flex-direction:column;align-items:stretch;gap:18px;padding:20px 17px}.chart-current>div:first-child{display:grid;grid-template-columns:1fr auto;align-items:center;min-width:0}.chart-stream{grid-column:1;margin-bottom:7px}.chart-current-label{grid-column:1}.chart-current-number{grid-column:2;grid-row:1/4;align-self:center}.chart-current-number strong{font-size:46px}.chart-sample-time{grid-column:1;font-size:9px}.chart-current .trend-summary{flex-basis:auto}.chart-current .trend-summary>div{min-width:0;padding:13px 10px}.trend-summary strong{font-size:16px}.trend-summary>div>span{font-size:8px}.history-primary .chart-head{padding:19px 17px 8px}.history-primary .chart-head h2{font-size:26px}.chart-toolbar{padding:0 17px 15px;gap:14px}.chart-periods button{font-size:10px;padding:7px 10px}.chart-modes{width:100%}.chart-modes button{flex:1}.chart-caption{margin:0 17px 2px;align-items:flex-start;flex-direction:column;gap:3px;font-size:9px}.history-primary .chart{height:300px}.chart-head>span{font-size:9px}.history-primary .legend{padding:14px 17px;gap:12px;font-size:9px}.chart-current .scale-badge{font-size:9px;padding:8px 10px}}
@media(max-width:400px){.gauge-detail-row{grid-template-columns:1fr}.gauge-detail-row>.cloud-gauge{display:none}.trend-summary strong{font-size:14px}.chart-current-number strong{font-size:39px}.chart-current-number>span{font-size:12px}}
@media(prefers-reduced-motion:reduce){.chart-stream.is-live i{animation:none}}

/* Calibration: yellow. Warning: orange. Alarm: red. Quality remains separate. */
.history-primary{border-color:#685039;background:radial-gradient(ellipse at 12% 0,#6a3e1826,transparent 57%),linear-gradient(135deg,#161c26,#0b1420)}
.history-primary:before{background:linear-gradient(90deg,transparent,#ffce6b99,#ff805d55,transparent)}
.history-primary .eyebrow,.chart-title-accent{color:#ffd67b!important}.chart-periods button[aria-pressed=true]{background:#ffe6ac;color:#482c15;border-color:#ffe6ac;box-shadow:0 0 20px #ffc8751c}
.chart-modes button[aria-pressed=true]{background:#3d3025;color:#ffe1a2;box-shadow:inset 0 0 0 1px #796040}.chart-modes{border-color:#554433}
.chart-current-number strong{text-shadow:0 0 28px #ffa54116}.chart-current-number strong.warning{color:#ffb764}.chart-current-number>span{color:#c5ab86}
.chart-current .trend-summary{border-color:#4b4037;background:#131c2577}.chart-current .trend-summary>div{border-color:#4b4037}.chart-current .trend-summary>div:nth-child(3){background:linear-gradient(140deg,#6a3f1733,transparent)}
.trend-summary>div:nth-child(3) strong{color:#ffca78}.chart-current .scale-badge{border-color:#4b4037;background:#2a231d66;color:#d4b98e}
.chart-caption{border-color:#433c32}.chart-caption>span:first-child{color:#c5b297}.chart-cursor-readout{background:#30251df5;border-color:#af8850;color:#fff1d0}
.history-primary .legend .live{background:#ffe06c;box-shadow:0 0 8px #ffe06c55}.history-primary .legend .reference{background:#ffe06c}.history-primary .legend .normal-zone{background:#dcc16c}.history-primary .legend .warn{background:#ff9f43}.history-primary .legend .alarm{background:#ff526b}
.history-primary .legend .raw-series{height:2px;background:repeating-linear-gradient(90deg,#ffb453 0 6px,transparent 6px 10px);box-shadow:0 0 6px #ffb45344}
.history-primary #calibrationReferenceLabel,.history-primary #warningZoneLabel,.history-primary #alertZoneLabel{padding:7px 10px;border-radius:5px;border:1px solid;font-size:11px;font-variant-numeric:tabular-nums}
.history-primary #calibrationReferenceLabel{color:#ffe06c;border-color:#ffe06c55;background:#ffe06c09}.history-primary #warningZoneLabel{color:#ffb26a;border-color:#ff9f4355;background:#ff9f430b}.history-primary #alertZoneLabel{color:#ff8292;border-color:#ff526b55;background:#ff526b0c}
.raw-rms-note{margin:8px 28px;color:#ffc27c;font-size:11px;line-height:1.7;padding:9px 12px;border:1px solid #7c552c66;border-radius:6px;background:#50331b26}.raw-rms-note[hidden]{display:none}
@media(max-width:700px){.raw-rms-note{margin:8px 17px;font-size:10px}}
