@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f3f5f8; --panel: #fff; --text: #202e40; --muted: #68778a;
  --soft: #788698; --line: #e2e7ee; --blue: #2860ba; --cyan: #2860ba;
  --green: #237b66; --amber: #986111; --danger: #b53d46;
  --mono: "Cascadia Code", Consolas, monospace;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
a, button { transition: background .15s, border-color .15s, color .15s; }
a:focus-visible, button:focus-visible, canvas:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.4; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: 15px; font-weight: 600; }
small { font-size: 11px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: 8px; left: 230px; transform: translateY(-160%); z-index: 100; padding: 8px 15px; background: var(--blue); color: white; border-radius: 4px; }
.skip-link:focus { transform: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 214px; background: #17263a; color: #c7d0dd; padding: 29px 15px 19px; display: flex; flex-direction: column; z-index: 40; overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; gap: 11px; align-items: center; padding: 0 5px; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 38px; flex-shrink: 0; color: #9bb8e6; }
.brand-symbol svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-size: 15px; color: #f2f5fa; font-weight: 600; white-space: nowrap; }
.brand-copy small { display: block; font-size: 10px; color: #8e9eb5; margin-top: 4px; }
.plant-switch { display: flex; align-items: center; gap: 9px; border: 1px solid #344257; border-radius: 5px; padding: 11px 10px; margin: 34px 0 28px; }
.plant-mark { font-size: 10px; color: #a5bbd8; border-right: 1px solid #445166; padding-right: 10px; }
.plant-switch strong { display: block; font-size: 12px; color: #d9e1ed; font-weight: 500; }
.plant-switch small { display: block; font: 10px var(--mono); color: #8d9eb4; margin-top: 4px; }
.nav-label { font-size: 10px; color: #8e9eb5; padding: 0 13px 11px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 13px; margin: 4px 0; border-radius: 4px; font-size: 13px; color: #b1bfd1; border: 1px solid transparent; }
.nav-link .icon { width: 17px; height: 17px; opacity: .85; }
.nav-link:hover { color: white; background: #24354d; }
.nav-link.selected { background: #2d4566; color: #fff; border-color: #3c5474; }
.nav-tag { margin-left: auto; font-size: 9px; color: #93a7c4; }
.nav-separator { height: 1px; background: #334156; margin: 22px 12px; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.sidebar-note { padding: 0 12px; font-size: 10px; line-height: 1.9; color: #91a1b7; }
.demo-button { display: flex; justify-content: space-between; gap: 5px; width: 100%; background: transparent; color: #c4d2e6; border: 1px solid #42516a; border-radius: 4px; margin: 15px 0 20px; padding: 9px 11px; font-size: 11px; }
.demo-button:hover { background: #2b3d56; }
.side-foot { display: flex; justify-content: space-between; gap: 6px; border-top: 1px solid #334156; padding: 15px 2px 0; color: #8e9eb5; font-size: 9px; }
.side-foot small { font-size: 9px; }
.workspace { margin-left: 214px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 32px; background: white; border-bottom: 1px solid var(--line); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 17px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb span { margin: 0 12px; color: #b4beca; }
.breadcrumb strong { color: #34445b; font-weight: 500; }
.header-clock { font: 11px var(--mono); color: var(--muted); }
.readonly-label { padding: 3px 8px; background: #f3f6fa; color: #61738b; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; }
.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: white; }
.icon-button:hover { background: #f1f5fb; color: var(--blue); }
.icon-button .icon { width: 15px; height: 15px; }
.mobile-only { display: none; }
main { width: 100%; max-width: 1570px; margin: 0 auto; padding: 27px 32px 32px; flex: 1; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.page-heading p { margin-top: 7px; font-size: 12px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 7px 12px; border: 1px solid #d4dce7; border-radius: 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.button .icon { width: 14px; height: 14px; }
.secondary { background: white; color: #465770; }
.secondary:not(:disabled):hover { background: #f0f4fa; border-color: #a9b9ce; }
.primary { background: var(--blue); color: white; border-color: var(--blue); }
.primary:not(:disabled):hover { background: #204e9b; border-color: #204e9b; }
.device-strip { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; padding: 0 0 15px; margin-bottom: 18px; border-bottom: 1px solid var(--line); min-height: 31px; }
.connection { display: flex; align-items: center; gap: 7px; }
.connection strong { font-weight: 500; }
.connection i { width: 6px; height: 6px; border-radius: 50%; background: #8996a6; }
.connection[data-state=online] { color: var(--green); }
.connection[data-state=online] i { background: var(--green); }
.connection[data-state=error], .connection[data-state=offline] { color: var(--amber); }
.connection[data-state=error] i, .connection[data-state=offline] i { background: var(--amber); }
.strip-device { font: 10px var(--mono); }
.strip-divider { width: 1px; height: 10px; background: #d4dce6; }
.refresh-note { margin-left: auto; color: var(--soft); }
.demo-banner { display: flex; align-items: center; gap: 12px; padding: 9px 13px; margin-bottom: 14px; border: 1px solid #cad9ee; border-radius: 4px; background: #edf3fc; color: #4d668c; font-size: 11px; }
.demo-banner strong { font-weight: 600; color: #285a9b; white-space: nowrap; }
.demo-banner button { margin-left: auto; border: 0; background: transparent; color: #285a9b; font-size: 11px; white-space: nowrap; padding: 3px; }
.stale-banner, .info-callout { border: 1px solid var(--line); border-radius: 4px; padding: 11px 14px; color: var(--muted); background: #f8fafc; font-size: 11px; line-height: 1.85; }
.stale-banner { margin-bottom: 18px; color: #805b20; background: #fff9ed; border-color: #eadbb8; }
.temperature-alert, .wind-alert { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 12px 15px; border: 1px solid #eadbb8; border-left: 3px solid #bb8531; border-radius: 4px; background: #fff9ed; color: #875d1e; }
.temperature-alert { background: #fff3f3; border-color: #ebcdcf; border-left-color: var(--danger); color: #a23b45; }
.alert-symbol { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; font: 12px var(--mono); margin-top: 2px; }
.wind-alert strong, .temperature-alert strong { font-size: 12px; font-weight: 600; }
.wind-alert p, .temperature-alert p { font-size: 11px; line-height: 1.85; margin-top: 4px; }
[data-tone=stale].wind-alert, [data-tone=stale].temperature-alert { background: #f2f4f7; color: #637387; border-color: #d5dce6; }
.metrics { display: grid; gap: 16px; margin-bottom: 20px; }
.overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); background: white; border-radius: 6px; }
.metric-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #52637a; font-size: 12px; }
.metric-code { color: #7e8b9c; font-size: 9px; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin: 8px 0 5px; font: 34px/1.45 var(--mono); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: #253d5c; }
.metric-value small { color: var(--muted); font: 12px var(--sans); letter-spacing: 0; }
.metric-note { color: var(--muted); font-size: 10px; line-height: 1.7; }
.metric.accent { border-top: 2px solid #4d76b0; padding-top: 17px; }
.metric.accent .metric-value { color: var(--blue); }
.metric-state { font: 600 23px/2.14 var(--sans); letter-spacing: 0; }
.metric[data-status=normal] .metric-state { color: var(--green); }
.metric[data-status=fault] .metric-state, .metric[data-thermal=danger] .metric-value { color: var(--danger); }
.metric[data-status=manual] .metric-state { color: var(--blue); }
body[data-stale=true] .metric-value, body[data-stale=true] .pose-stage { opacity: .5; }
.panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 21px 0; }
.panel-heading p { font-size: 10px; color: var(--muted); margin-top: 4px; }
.pill { display: inline-flex; align-items: center; padding: 3px 7px; font-size: 10px; font-weight: 400; background: #f5f7fa; color: #68788d; border: 1px solid var(--line); border-radius: 3px; white-space: nowrap; }
.pill.cyan { color: var(--blue); border-color: #d0dcf0; background: #f1f5fc; }
.pill[data-state=normal] { color: #237b66; background: #eff8f4; border-color: #cfe6dd; }
.pill[data-state=fault] { color: var(--danger); background: #fff2f2; border-color: #ebcdcf; }
.pill[data-state=warning] { color: var(--amber); background: #fff7e8; border-color: #eadbb8; }
.text-link { color: var(--blue); font-size: 11px; white-space: nowrap; }
.text-link:hover, .panel-link:hover { text-decoration: underline; }
.overview-grid { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.4fr); gap: 20px; margin-bottom: 20px; }
.pose-stage { height: 263px; position: relative; display: grid; place-items: center; margin: 5px 14px 0; }
.pose-stage svg { width: 100%; height: 100%; max-width: 380px; }
.pose-outer { fill: #fbfcfe; stroke: #d7dfea; stroke-width: 1; }
.pose-ring { fill: none; stroke: #e3e8f0; stroke-dasharray: 2 5; }
.pose-grid { stroke: #e2e8ef; stroke-width: 1; fill: none; }
.pose-labels { fill: #718198; font: 10px var(--sans); }
.pose-target { stroke: #7790b2; stroke-width: 2; stroke-dasharray: 5 5; }
.pose-target-dot { fill: #7790b2; }
.pose-actual-line, .pose-actual-head { stroke: var(--blue); stroke-width: 2; fill: none; }
.pose-cabin { fill: #dce7f8; stroke: #3c649d; stroke-width: 1.5; }
.pose-rotor { stroke: #305a93; stroke-width: 4; stroke-linecap: round; }
.pose-cabin-detail { stroke: #8aa4c9; stroke-width: 1; }
.pose-center { fill: #305a93; }
.pose-error-arc { stroke: #4c7cc3; stroke-width: 7; fill: none; opacity: .2; stroke-linecap: round; }
.pose-empty { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #ffffffed; color: var(--muted); padding: 7px 12px; font-size: 11px; white-space: nowrap; }
.plot-legend { display: flex; align-items: center; justify-content: center; gap: 19px; color: #63738a; font-size: 10px; }
.plot-legend>span { display: inline-flex; gap: 6px; align-items: center; }
.legend-line { width: 17px; height: 0; display: inline-block; border-top: 2px solid var(--blue); }
.legend-line.target { border-top: 2px dashed #7790b2; }
.pose-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding: 12px 19px; margin-top: 16px; font-size: 9px; color: var(--muted); }
.tracking-panel { display: flex; flex-direction: column; }
.chart-legend { justify-content: flex-start; margin: 18px 21px 0; }
.chart-legend .legend-unit { margin-left: auto; }
.chart-wrap { position: relative; height: 230px; margin: 12px 17px 0; min-width: 0; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.tracking-chart { flex: 1; min-height: 230px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--soft); font-size: 12px; pointer-events: none; }
.chart-tooltip { position: absolute; left: 0; top: 8px; max-width: 100%; padding: 8px 11px; background: white; border: 1px solid #cbd7e7; border-radius: 4px; box-shadow: 0 3px 14px #20365412; color: #344a67; font: 10px/1.7 var(--mono); pointer-events: none; z-index: 2; }
.chart-caption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 21px 16px; font-size: 9px; color: var(--muted); }
.overview-bottom { display: grid; grid-template-columns: 1fr 1.15fr 1.1fr; gap: 20px; }
.environment-speed { display: flex; align-items: baseline; gap: 7px; padding: 19px 21px 0; }
.environment-speed>span { margin-right: auto; color: #63738a; font-size: 11px; }
.environment-speed strong { color: #2d4260; font: 28px var(--mono); }
.environment-speed small { color: var(--muted); }
.wind-grade { margin: 10px 21px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.wind-grade summary { display: flex; gap: 7px; align-items: center; cursor: pointer; list-style: none; border-radius: 2px; }
.wind-grade summary::-webkit-details-marker { display: none; }
.wind-grade summary strong { font-weight: 400; margin-left: auto; color: #576d89; }
.detail-chevron { font-size: 14px; }
.wind-grade[open] .detail-chevron { transform: rotate(180deg); }
.wind-grade-detail { font-size: 10px; line-height: 1.8; margin-top: 9px; }
.wind-grade-detail p+p { margin-top: 5px; }
.wind-grade[data-grade-band=high] strong { color: var(--danger); }
.wind-grade[data-grade-band=strong] strong { color: var(--amber); }
.status-list { margin: 8px 21px 14px; }
.status-list>div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid #edf0f5; font-size: 11px; }
.status-list>div:last-child { border-bottom: 0; }
.status-list dt { color: var(--muted); }
.status-list dd { color: #34475f; margin: 0; text-align: right; }
.status-list dd small { color: var(--muted); font-size: 10px; }
.status-note { background: #f6f8fb; border-left: 2px solid #b5c4d9; color: var(--muted); font-size: 10px; line-height: 1.8; margin: 0 21px 18px; padding: 8px 10px; }
.direction-number { color: var(--blue); font: 22px var(--mono); white-space: nowrap; }
.direction-content { display: flex; align-items: center; padding: 0 15px 0 7px; min-height: 174px; }
.compass-wrap { width: 54%; flex-shrink: 0; max-width: 210px; }
.compass-wrap svg { width: 100%; display: block; }
.wind-disc { fill: #f8fafd; stroke: #d6e0ec; }
.wind-ticks { fill: none; stroke: #bdcbdc; stroke-dasharray: 1 6; }
.wind-axis { fill: none; stroke: #8c9fb7; stroke-width: 1.4; }
.dial-labels { fill: #667991; font: 12px var(--sans); }
#wind-pointer { color: var(--blue); }
#wind-pointer circle { fill: currentColor; }
#wind-pointer path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.wind-center { fill: white; stroke: #d2dce9; }
.wind-nacelle { fill: #e3eaf4; stroke: #6c87ac; stroke-width: 2; }
.wind-nacelle path { stroke-width: 4; stroke-linecap: round; }
.direction-summary { padding-left: 4px; }
.direction-summary>span { display: block; font-size: 9px; color: var(--muted); }
.direction-summary strong { display: block; font-size: 12px; font-weight: 500; margin: 6px 0; color: #344a66; }
#direction-angle-caption { display: none; }
.direction-summary p { font-size: 9px; color: var(--muted); line-height: 1.9; }
.panel-footnote { font-size: 9px; color: var(--muted); padding: 0 21px 16px; line-height: 1.8; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; padding: 0 21px 19px; font-size: 11px; color: var(--blue); }
.section-intro { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 4px 0 17px; }
.section-intro .small-note { min-width: 0; }
.small-note { font-size: 11px; color: var(--muted); line-height: 1.85; }
.monitor-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.monitor-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sensor-list { padding: 7px 21px 12px; }
.sensor-row { display: flex; gap: 11px; align-items: center; padding: 15px 0; border-bottom: 1px solid #edf0f5; }
.sensor-row:last-child { border-bottom: 0; }
.sensor-marker { font: 10px var(--mono); padding: 7px; color: #6c80a1; background: #f0f4fa; border-radius: 3px; }
.sensor-row strong { font-size: 12px; font-weight: 500; display: block; }
.sensor-row small { font-size: 10px; color: var(--muted); display: block; margin-top: 3px; }
.sensor-status { font-size: 10px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.sensor-status[data-state=valid] { color: var(--green); }
.sensor-status[data-state=invalid] { color: var(--danger); }
.trend-tools { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; padding: 22px 21px 0; }
.segmented { display: flex; gap: 3px; padding: 3px; background: #f1f4f8; border: 1px solid var(--line); border-radius: 5px; flex-wrap: wrap; }
.segmented button { border: 1px solid transparent; background: transparent; color: #67778e; padding: 6px 10px; font-size: 11px; border-radius: 3px; }
.segmented button[aria-pressed=true] { background: white; border-color: #d9e1ec; color: var(--blue); }
.select-label { display: inline-flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
select { padding: 7px 25px 7px 9px; color: #40536c; border: 1px solid #d5dde8; border-radius: 4px; background: white; font-size: 11px; max-width: 100%; }
.trend-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 4px; margin: 20px 21px 0; background: #fafbfd; }
.trend-stats>div { padding: 15px 20px; }
.trend-stats>div+div { border-left: 1px solid var(--line); }
.trend-stats span { display: block; font-size: 10px; color: var(--muted); }
.trend-stats strong { display: block; margin-top: 6px; font: 23px var(--mono); color: #344b6b; }
.large-chart { height: 340px; margin-top: 27px; }
.history-note { margin-top: 17px; }
.records-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 23px 21px 18px; font-size: 11px; color: var(--muted); }
.records-toolbar>div { display: flex; gap: 18px; align-items: center; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { font-size: 11px; font-weight: 500; color: #687991; background: #f5f7fa; padding: 12px 16px; border-block: 1px solid var(--line); }
th small { font-size: 9px; color: #7b899b; }
td { font: 12px var(--mono); color: #3f526b; padding: 15px 16px; border-bottom: 1px solid #edf0f5; }
th:first-child, td:first-child { text-align: left; padding-left: 21px; }
th:nth-last-child(2), td:nth-last-child(2) { text-align: left; }
tbody tr:hover { background: #f8fafe; }
.table-state { font: 10px var(--sans); border: 1px solid #dde4ee; border-radius: 3px; padding: 3px 7px; background: #f6f8fb; color: #667992; white-space: nowrap; }
.table-state[data-state="1"] { color: var(--green); border-color: #cce4db; background: #f0f8f4; }
.table-state[data-state="2"] { color: var(--danger); border-color: #ebcdcf; background: #fff4f4; }
.table-state[data-state="3"], .table-state[data-state="4"] { color: var(--blue); border-color: #d1dff1; background: #f2f6fc; }
.empty-row { text-align: center !important; padding: 55px 20px !important; font: 12px var(--sans); color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 21px; color: var(--muted); font-size: 11px; }
.pagination>div { display: flex; gap: 7px; }
.records-note { margin-top: 16px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin: 0 32px; padding: 16px 0; color: #7c899b; font-size: 9px; }
.footer-version { font: 9px var(--mono); margin-left: 8px; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 107px); transform: translateX(-50%); background: #24364f; color: white; padding: 11px 18px; border-radius: 5px; font-size: 12px; z-index: 70; max-width: calc(100vw - 40px); box-shadow: 0 3px 18px #18243820; }
.nav-backdrop { position: fixed; inset: 0; background: #16263e66; z-index: 35; }

/* Control workspace shares the monitoring layout. Device interlocks remain in control.js. */
.control-login { display: grid; grid-template-columns: .95fr 1fr; max-width: 830px; margin: 35px auto; }
.login-art { background: #f2f6fc; border-right: 1px solid var(--line); padding: 35px; display: flex; flex-direction: column; justify-content: center; }
.login-art svg { width: 100%; max-width: 240px; margin: 0 auto 20px; }
.login-art h2 { font-size: 16px; }
.login-art p { color: var(--muted); font-size: 11px; margin-top: 10px; line-height: 1.9; }
.login-content { padding: 38px; }
.login-lock { color: var(--blue); display: inline-grid; place-items: center; width: 34px; height: 34px; background: #edf3fc; border-radius: 5px; margin-bottom: 18px; }
.login-lock .icon { width: 19px; }
.login-content h2 { font-size: 22px; }
.login-content>p { color: var(--muted); font-size: 11px; margin: 9px 0 24px; }
.login-content label { display: block; font-size: 12px; color: #52657f; margin-bottom: 8px; }
.login-content input { width: 100%; border: 1px solid #cdd8e6; border-radius: 4px; padding: 10px 12px; color: var(--text); background: white; font-size: 13px; }
.login-content .button { width: 100%; margin: 16px 0 13px; min-height: 39px; }
.login-content .small-note { font-size: 10px; }
.control-device { padding: 12px 15px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.control-device strong { font-size: 13px; font-weight: 500; color: #364e6d; }
.control-device p { font-size: 10px; margin-top: 4px; color: var(--muted); }
.control-device .button { margin-left: auto; }
.control-connection { margin: -6px 0 19px; }
.control-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; align-items: start; }
.position-panel { padding: 21px; }
.position-panel .panel-heading { padding: 0; margin-bottom: 11px; }
.position-intro { color: var(--muted); font-size: 11px; }
.position-dial { width: min(100%, 290px); margin: 12px auto 3px; touch-action: none; cursor: grab; border-radius: 50%; user-select: none; }
.position-dial:active { cursor: grabbing; }
.position-dial svg { display: block; width: 100%; overflow: visible; }
.position-halo { fill: #f8fafd; stroke: #dae3ee; }
.position-track { fill: none; stroke: #d3dfef; stroke-width: 3; }
.position-ticks { stroke: #9db0c9; }
.position-cross { stroke: #6f85a2; stroke-width: 2; }
.position-labels text { fill: #6b7f98; font-size: 11px; text-anchor: middle; }
.position-target-line { stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.position-handle-glow { fill: var(--blue); opacity: .1; }
.position-handle { fill: var(--blue); stroke: white; stroke-width: 2; }
.position-actual-line { stroke: #237b66; stroke-width: 3; stroke-dasharray: 4 5; }
.position-actual-head { fill: none; stroke: #237b66; stroke-width: 3; stroke-linejoin: round; }
.position-center { fill: white; stroke: #d8e1ed; }
.position-center-label { fill: #6d7e94; text-anchor: middle; font-size: 12px; }
.position-center-value { fill: #2b486d; text-anchor: middle; font: 30px var(--mono); }
.position-legend { display: flex; justify-content: center; gap: 18px; font-size: 10px; color: var(--muted); margin: 7px 0 20px; }
.position-legend span { display: flex; align-items: center; gap: 6px; }
.position-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.position-legend .actual-key { background: var(--green); }
.position-input-row { display: flex; align-items: center; gap: 9px; }
.position-input-row label { margin-right: auto; color: #526780; font-size: 12px; }
.position-input-row button { width: 32px; height: 35px; border: 1px solid #d0dbe9; border-radius: 4px; background: #f6f8fc; color: #4c678a; font-size: 18px; }
.position-input-row>div { display: flex; align-items: center; border: 1px solid #bfcde0; border-radius: 4px; padding: 0 10px; }
.position-input-row input { width: 65px; padding: 6px 0; text-align: center; font: 18px var(--mono); color: #2d496d; border: 0; background: white; appearance: textfield; }
.position-input-row input::-webkit-inner-spin-button { appearance: none; }
.position-input-row>div>span { color: var(--muted); }
.position-presets { display: flex; gap: 7px; margin: 11px 0 18px; }
.position-presets button { flex: 1; padding: 7px 2px; border: 1px solid #d6dfeb; border-radius: 4px; background: #f8fafd; color: #5a7394; font-size: 11px; }
.position-presets button:hover, .position-input-row button:hover { background: #edf3fc; border-color: #9ab5db; }
.position-presets button[aria-pressed=true] { color: var(--blue); border-color: #8baada; background: #edf3fc; }
.position-readings { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); padding: 13px 0; gap: 8px; }
.position-readings span { color: var(--muted); font-size: 10px; display: block; }
.position-readings strong { font: 21px var(--mono); color: #385477; display: block; margin-top: 7px; }
.position-readings #position-wind-error { color: var(--blue); }
.position-active { font-size: 11px; color: #5a6e89; min-height: 37px; margin: 13px 0; }
.position-active[data-moving=true] { color: var(--green); }
.position-go { width: 100%; min-height: 38px; margin-bottom: 9px; }
.position-panel .small-note { font-size: 10px; margin-top: 8px; }
.control-right { display: grid; gap: 20px; min-width: 0; }
.control-steps { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 18px 21px 0; color: var(--muted); font-size: 10px; }
.control-steps b { font: 10px var(--mono); color: #8295b0; margin-right: 4px; }
.control-steps i { font-style: normal; color: #9baabe; }
.jog-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 21px; }
.jog-buttons button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 116px; border: 1px solid #cfdaea; background: #f5f8fd; color: #3e618e; border-radius: 5px; }
.jog-buttons button:not(:disabled):hover { background: #e9f1fc; border-color: #8daedc; }
.jog-buttons strong { font-size: 12px; font-weight: 500; margin-top: 8px; }
.jog-buttons small { font-size: 9px; color: var(--muted); margin-top: 5px; }
.jog-arrow { font-size: 27px; line-height: 1; }
.jog-buttons .stop-button { color: #ad3e49; border-color: #e8c1c6; background: #fff3f4; }
.jog-buttons .stop-button:not(:disabled):hover { background: #ffe7ea; border-color: #cf8793; }
.stop-square { width: 17px; height: 17px; background: currentColor; border-radius: 2px; margin: 5px 0; }
.secondary-controls { display: flex; gap: 10px; padding: 0 21px 17px; }
.secondary-controls .button { flex: 1; }
.control-actions .info-callout { margin: 0 21px 12px; font-size: 10px; }
.control-actions>.small-note { padding: 0 21px 18px; font-size: 10px; }
.control-history #command-list { list-style: none; margin: 5px 21px 0; padding: 0; max-height: 230px; overflow-y: auto; }
.control-history li { border-bottom: 1px solid var(--line); padding: 13px 0; font-size: 11px; color: var(--muted); }
.control-history li:last-child { border: 0; }
.control-history strong { display: block; font-size: 11px; font-weight: 500; color: #3c5372; }
.control-history li span { display: block; font: 10px var(--mono); color: var(--muted); margin-top: 5px; }
.control-history li[data-status=rejected] strong, .control-history li[data-status=interrupted] strong, .control-history li[data-status=expired] strong, .control-history li[data-status=unconfirmed] strong { color: var(--amber); }
.control-history li[data-status=applied] strong, .control-history li[data-status=completed] strong { color: var(--green); }
.control-history .panel-footnote { padding-top: 12px; }
.control-notice { margin-top: 20px; }
.control-message { margin-top: 18px; color: #4b6488; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.control-message:empty { display: none; }

@media (min-width: 1600px) { .pose-stage { height: 280px; } .tracking-chart { min-height: 245px; } }
@media (max-width: 1250px) {
  .sidebar { width: 200px; padding-inline: 12px; } .workspace { margin-left: 200px; }
  main { padding: 24px; } .topbar { padding-inline: 24px; } .site-footer { margin-inline: 24px; }
  .metrics { gap: 12px; } .metric { padding-inline: 16px; } .metric-code { display: none; }
  .metric-value { font-size: 30px; } .metric-state { font-size: 21px; line-height: 2.07; }
  .overview-grid { gap: 16px; grid-template-columns: minmax(285px,.9fr) minmax(0,1.2fr); }
  .overview-bottom { gap: 16px; grid-template-columns: 1fr 1fr; } .overview-bottom .status-panel { grid-column: 1/-1; }
  .overview-bottom .status-panel .status-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .overview-bottom .status-panel .status-list>div { border-bottom: 0; }
  .control-steps { gap: 4px; font-size: 9px; padding-inline: 15px; }
  .jog-buttons { padding: 18px 15px; gap: 7px; } .secondary-controls { padding-inline: 15px; gap: 7px; }
  .secondary-controls .button { font-size: 11px; padding-inline: 7px; }
}
@media (max-width: 1000px) {
  .overview-grid { grid-template-columns: 1fr; } .pose-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .pose-panel .panel-heading { grid-column: 1/-1; } .pose-stage { grid-column: 1; grid-row: 2/4; height: 235px; }
  .pose-panel .plot-legend { flex-direction: column; align-items: flex-start; align-self: end; padding: 0 15px 16px; }
  .pose-footer { align-self: start; flex-direction: column; align-items: flex-start; margin: 0 20px 0 0; padding-left: 15px; }
  .tracking-chart { flex: auto; height: 240px; }
  .control-layout { grid-template-columns: 1fr; } .control-right { grid-row: 2; }
  .position-panel { display: block; } .position-dial { max-width: 310px; }
  .header-clock { font-size: 10px; } .topbar-right { gap: 10px; }
  .metric-value { font-size: 27px; } .metric-state { font-size: 19px; }
  .monitor-bottom { grid-template-columns: 1fr; }
  .control-login { grid-template-columns: .8fr 1fr; } .login-content, .login-art { padding: 28px; }
}
@media (max-width: 720px) {
  body.menu-open { overflow: hidden; } .sidebar { width: 230px; transform: translateX(-100%); transition: transform .2s; padding: 27px 18px 20px; }
  .sidebar.is-open { transform: none; } .workspace { margin-left: 0; } .mobile-only { display: grid; }
  .topbar { height: 55px; padding-inline: 17px; } .topbar-left { gap: 10px; } .breadcrumb { font-size: 11px; }
  .breadcrumb span { margin-inline: 7px; } .header-clock { display: none; } .readonly-label { font-size: 9px; }
  main { padding: 21px 17px 25px; } h1 { font-size: 23px; } .eyebrow { font-size: 9px; }
  .page-heading { gap: 10px; margin-bottom: 20px; align-items: center; } .page-heading p { font-size: 11px; max-width: 220px; }
  .page-heading .button { font-size: 10px; padding: 6px 9px; min-height: 32px; }
  .device-strip { gap: 9px; font-size: 10px; flex-wrap: wrap; } .strip-device { font-size: 9px; }
  .refresh-note { display: none; } #freshness { margin-left: auto; } .strip-divider { display: none; }
  .demo-banner { flex-wrap: wrap; gap: 5px 9px; font-size: 10px; padding: 8px 11px; }
  .demo-banner button { font-size: 10px; } .demo-banner>span { flex: 1; min-width: 175px; }
  .metrics { gap: 11px; margin-bottom: 16px; } .overview-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric { padding: 14px; } .metric.accent { padding-top: 13px; } .metric-label { font-size: 11px; }
  .metric-value { font-size: 30px; } .metric-state { font-size: 21px; line-height: 2.07; } .metric-note { font-size: 9px; }
  .overview-grid, .overview-bottom { gap: 16px; margin-bottom: 16px; } .overview-bottom { grid-template-columns: 1fr; }
  .overview-bottom .status-panel { grid-column: auto; } .overview-bottom .status-panel .status-list { display: block; }
  .overview-bottom .status-panel .status-list>div { border-bottom: 1px solid #edf0f5; }
  .pose-panel { display: block; } .pose-stage { height: 250px; } .pose-panel .plot-legend { flex-direction: row; align-items: center; justify-content: center; padding: 0; }
  .pose-footer { flex-direction: row; align-items: center; margin: 16px 0 0; padding: 12px 17px; }
  .panel-heading { padding: 17px 17px 0; } .panel-heading h2 { font-size: 14px; } .panel-heading p { font-size: 9px; }
  .tracking-chart { min-height: 210px; height: 210px; } .chart-wrap { margin-inline: 9px; }
  .chart-caption { padding-inline: 17px; font-size: 9px; } .chart-legend { margin-inline: 17px; gap: 14px; font-size: 9px; }
  .plot-legend .legend-unit { display: none; } .text-link { font-size: 10px; }
  .direction-content { min-height: 185px; } .compass-wrap { width: 52%; max-width: 225px; }
  .direction-summary strong { font-size: 13px; } .direction-summary p { font-size: 10px; }
  .section-intro { align-items: flex-start; } .section-intro .small-note { font-size: 10px; max-width: 165px; }
  .monitor-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .monitor-metrics .metric-value { font-size: 28px; }
  .sensor-list { padding-inline: 17px; } .sensor-row { gap: 9px; } .sensor-row small { font-size: 9px; }
  .trend-tools { padding: 18px 15px 0; } .segmented { gap: 2px; } .segmented button { font-size: 10px; padding: 6px 8px; }
  .trend-stats { margin-inline: 15px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trend-stats>div { padding: 13px; } .trend-stats>div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trend-stats>div:nth-child(4) { border-top: 1px solid var(--line); } .trend-stats strong { font-size: 21px; }
  .large-chart { height: 270px; } .history-note { font-size: 10px; }
  .records-toolbar { padding: 19px 15px 15px; flex-wrap: wrap; } .records-toolbar>div { gap: 12px; }
  .select-label { font-size: 10px; gap: 6px; } select { font-size: 10px; }
  th, td { padding: 12px; font-size: 10px; } th:first-child, td:first-child { padding-left: 17px; }
  .pagination { padding: 15px; font-size: 10px; } .pagination .button { font-size: 10px; }
  .site-footer { margin-inline: 17px; flex-direction: column; gap: 5px; font-size: 9px; }
  .toast { left: 50%; font-size: 11px; } .skip-link { left: 60px; }
  .wind-alert, .temperature-alert { padding: 10px 12px; gap: 8px; } .wind-alert p, .temperature-alert p { font-size: 10px; }
  .control-login { display: block; max-width: 440px; margin: 22px auto; } .login-art { display: none; }
  .login-content { padding: 28px; } .control-layout, .control-right { gap: 16px; } .position-panel { padding: 17px; }
  .position-readings { gap: 6px; } .position-readings span { font-size: 9px; } .position-readings strong { font-size: 20px; }
  .control-device { flex-wrap: nowrap; } .control-device p { font-size: 9px; } .control-device .button { font-size: 10px; }
  .control-steps { font-size: 10px; } .jog-buttons button { min-height: 108px; }
  .jog-buttons strong { font-size: 11px; } .jog-buttons small { font-size: 8px; }
  .control-history #command-list { margin-inline: 17px; } .secondary-controls .button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { animation: none !important; transition: none !important; } }
.demo-behavior { color: #566d88; font-size: 11px; margin: -8px 0 16px; }
.demo-banner[hidden] ~ .demo-behavior { display: none; }
.alarm-summary { margin: 18px 21px 0; padding: 12px 14px; border: 1px solid #dfe7f0; border-radius: 5px; background: #f5f8fc; color: #47617e; font-size: 12px; }
.alarm-panel .table-scroll { max-height: 620px; }
.alarm-panel th { white-space: nowrap; }
.alarm-panel td { min-width: 115px; font-size: 11px; }
.alarm-panel td:nth-child(2) { min-width: 160px; }
.alarm-row-detail { display: block; max-width: 230px; margin-top: 5px; color: #748195; font-size: 10px; line-height: 1.7; }
.alarm-panel td[data-alarm-status=active] { color: #ae3444; font-weight: 600; }
.alarm-panel td[data-alarm-status=recovered] { color: #237b66; }
.angle-help { margin-top: 18px; padding: 17px 21px; color: #5e728b; font-size: 11px; }
.angle-help summary { cursor: pointer; color: #365678; font-size: 12px; }
.control-demo-banner { margin-bottom: 20px; }
.angle-help p { margin-top: 12px; line-height: 1.9; }
@media(max-width:720px) { .alarm-summary { margin-inline: 15px; font-size: 11px; } .alarm-panel .panel-heading { flex-wrap: wrap; gap: 12px; } .demo-behavior { font-size: 10px; } }
