/* RD012-A: presentation only; telemetry and controller state remain unchanged. */
:root{--bg:#f4f6fa;--card:#fff;--text:#24334a;--muted:#738198;--accent:#3974dc;--soft:#edf3ff;--line:#e3e9f1;--radius:12px}
body{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-variant-numeric:tabular-nums}
body.dark{--bg:#14202f;--card:#1b2a3e;--text:#e5edf8;--muted:#a4b2c6;--soft:#263c59;--line:#32445d}
header{box-shadow:none;border-bottom:1px solid var(--line)}
.brandmark{border-radius:9px;background:var(--soft)}
.brand b{font-size:17px;font-weight:650;letter-spacing:.2px}
.header-actions{gap:8px}.header-actions button,.home-link{border-radius:8px;min-height:34px}
.rd-review{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:3px 6px;white-space:nowrap}
.notice{background:var(--soft);color:var(--muted);font-size:11px}
.telemetry{background:var(--card);border-color:var(--line)}
.telemetry>span{font-size:11px}.telemetry b{font-size:12px;font-weight:600}
.flight-alert-main{font-size:11px}.flight-alert-main b{font-weight:600}
#nav{width:144px;padding:12px 8px;background:var(--card);border-right:1px solid var(--line)}
#nav button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;min-height:39px;padding:9px 14px;font-size:12px;border-radius:8px;margin-bottom:3px;color:var(--muted)}
#nav button svg{width:17px;height:17px}#nav button.active{color:var(--accent);background:var(--soft);font-weight:600}#nav button.active:before{display:none}
#nav button:focus-visible,button:focus-visible,.home-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
main{margin-left:144px;padding:16px 20px 28px}
.card{border:1px solid var(--line);box-shadow:0 2px 6px #23385604;border-radius:12px}
.page-head h1{font-size:19px;font-weight:650}.page-head .eyebrow{font-size:12px}
.dashboard-overview{margin-bottom:12px}
.dashboard-overview>.fusion-summary{border-radius:10px;padding:9px 12px;gap:14px;background:var(--card)}
.dashboard-overview .fusion-heading{font-size:11px;font-weight:600}
.dashboard-overview .fusion-items small{font-size:10px}
.dashboard-overview .fusion-items b{font-size:11px}
.dashboard-top{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(416px,auto);gap:12px}
.dashboard-top>.card,.dashboard-top>.card:last-child{height:100%;min-height:0;border-radius:12px}
.dashboard-top .model-viewport{height:100%;min-height:0}
.dashboard-top .model-bar{position:relative;inset:auto;min-height:44px;padding:8px 10px;box-sizing:border-box;background:var(--card);border-bottom:1px solid var(--line);flex-shrink:0}
.dashboard-top .model-bar button{min-height:28px;font-size:10px;padding:4px 6px}
.dashboard-top .model-modes{border:0;padding:0;background:transparent;gap:2px}
.dashboard-top .model-stage{background:radial-gradient(ellipse at 50% 35%,#fff,#f6f9fc 68%,#edf2f7)}
body.dark .dashboard-top .model-stage{background:radial-gradient(ellipse at 50% 35%,#294058,#172839)}
.dashboard-top .model-state{top:10px;left:10px;font-size:9px}
.dashboard-top .model-description{left:12px;bottom:12px}
.dashboard-top .attitude-c{padding:0 10px 10px;gap:8px}
.dashboard-top .attitude-c-title{height:43px;min-height:43px;box-sizing:border-box;margin:0;padding:10px 2px;align-items:center}
.dashboard-top .attitude-c-title b{font-size:12px;font-weight:600}
.dashboard-top .attitude-c-screen{border-radius:9px}
.dashboard-top .attitude-c-values{height:58px;gap:7px}
.dashboard-top .attitude-c-values>div{border-radius:8px;border-color:var(--line);background:var(--bg)}
.dashboard-top .attitude-c-values i{display:none}
.dashboard-top .attitude-c-values b{font-size:18px;font-weight:600}
.dashboard-top .sensor-summary-card .card-title{height:44px;min-height:44px;box-sizing:border-box;padding:10px 12px;font-size:12px;border-bottom:1px solid var(--line)}
.dashboard-top .sensor-summary-card .card-title small{font-size:10px;margin-left:auto;color:var(--muted)}
.dashboard-top .sensor-summary-card .sensor-grid{padding:5px 10px;gap:0;justify-content:flex-start}
.dashboard-top .sensor-text-row{grid-template-columns:62px minmax(0,1fr) 62px;gap:6px;border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:41px;padding:8px 2px;box-shadow:none}
.dashboard-top .sensor-text-row:last-child{border-bottom:0}
.dashboard-top .sensor-text-row .sensor-name{font-size:11px}
.dashboard-top .sensor-text-row .sensor-model-item{font-size:11px;line-height:1.7}
.dashboard-top .sensor-text-row .sensor-status{font-size:10px;border-radius:5px}
.dashboard-mid,.dashboard-bottom{gap:12px;margin-bottom:12px}
.io-card{padding:12px 14px}.io-head{min-height:28px}.io-head strong{font-size:12px;font-weight:600}
.io-strip{gap:6px;padding-top:12px}.io-strip .channel{min-width:29px}.io-strip .track{width:12px;height:64px;border-radius:4px;background:var(--bg)}
.io-strip .channel b{font-size:11px}.io-strip .channel span{font-size:9px}.io-note{font-size:10px}
.io-diagnosis{gap:8px;padding:0 2px}.io-diagnosis button{min-height:28px;padding:4px 8px;font-size:10px}
.dashboard-bottom .quick{padding:12px 10px 12px 28px;gap:8px;min-height:204px}
.dashboard-bottom .metric{border:1px solid var(--line);background:var(--card);border-radius:8px;min-width:0}
.dashboard-bottom .metric:hover{background:var(--soft);border-color:#a3bcec}
.dashboard-bottom .map{min-height:204px;border-radius:12px}
.dashboard-bottom .map .no-map{gap:10px}
footer{font-size:10px;border-color:var(--line)}
@media(min-width:751px) and (max-width:1199px){
 #nav{width:80px;padding:8px 5px}#nav button{flex-direction:column;gap:4px;justify-content:center;padding:8px 3px;min-height:48px;font-size:10px}
 main{margin-left:80px;padding:14px}.dashboard-top{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}
 .dashboard-top>.card{height:340px}.dashboard-top>.card:last-child{grid-column:1/-1;height:auto}
 .dashboard-top .sensor-summary-card .sensor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;padding:5px 12px}
 .dashboard-top .sensor-text-row{min-height:44px}
}
@media(max-width:750px){
 :root{--chrome:280px}body.closed{--chrome:250px}
 header{height:92px;padding:9px 12px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:26px 36px;gap:6px 8px;align-content:center}
 .brand{min-width:0}.brand b{font-size:15px}.rd-review{font-size:9px;padding:3px 5px}header #deviceIdentity{display:none}
 .header-actions{grid-column:1/-1;width:100%;margin:0;gap:6px;justify-content:flex-end}
 .header-actions button,.home-link{min-height:34px;font-size:11px;padding:6px 10px}.header-actions .home-link{margin-right:auto}
 #nav{top:calc(var(--chrome) - 64px)!important;width:100%;height:64px;padding:6px 8px;display:flex;flex-direction:row;gap:4px;border-right:0}
 #nav button{flex:0 0 59px;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:48px;padding:5px 4px;margin:0;font-size:10px}
 #nav button svg{width:18px;height:18px}
 main{margin-left:0;height:calc(100dvh - var(--chrome) - 46px);padding:12px 10px 24px}
 .dashboard-overview>.fusion-summary{padding:8px 10px;gap:10px}
 .dashboard-top{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:12px}
 .dashboard-top>.card,.dashboard-top>.card:last-child{height:320px;grid-column:auto}
 .dashboard-top>.sensor-summary-card:last-child{height:auto;min-height:0}
 .dashboard-top .sensor-summary-card .sensor-grid{display:flex;padding:5px 12px}
 .dashboard-top .sensor-text-row{grid-template-columns:62px minmax(0,1fr) 62px;min-height:44px}
 .dashboard-top .model-bar{min-height:44px;padding:8px 10px}
 .dashboard-top .model-bar button{font-size:10px;padding:4px 7px}
 .dashboard-top .attitude-c-values b{font-size:18px}.dashboard-top .attitude-c-values small{font-size:9px}
 .dashboard-mid,.dashboard-bottom{grid-template-columns:minmax(0,1fr);gap:12px}
 .dashboard-bottom .quick{grid-template-columns:repeat(2,minmax(0,1fr));min-height:260px;padding:12px 10px 12px 27px}
 .dashboard-bottom .map{height:210px;min-height:210px}
 .io-head{gap:6px}.io-head select{max-width:140px}.io-strip .channel{min-width:30px}
}
