

*{box-sizing:border-box}
body{margin:0;background:#edf2f5;color:#203644;font:14px/1.5 "SimHei","Heiti SC","PingFang SC",sans-serif}
header{height:74px;display:flex;align-items:center;justify-content:space-between;padding:12px 24px;border-bottom:1px solid #d8e2e8;background:#fff}
h1{font-size:22px;margin:0}.sub{font-size:12px;color:#6b7f89}a{color:#237b8d;text-decoration:none}
.layout{display:grid;grid-template-columns:280px 1fr;height:calc(100vh - 74px)}
aside{background:#fff;padding:18px 18px 8px;overflow:auto;border-right:1px solid #d8e2e8}
section{padding:0 0 15px;margin:0 0 15px;border-bottom:1px solid #edf0f2}
.caption{font-size:11px;color:#718795;letter-spacing:1px;margin-bottom:8px}
.row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0}
select,button{font:inherit;border:1px solid #ccdbe2;border-radius:6px;background:#f5f9fa;padding:7px 9px;color:#274553;cursor:pointer}
button:hover{background:#e4f0f2}button.on{background:#dceef0;border-color:#9cc9cf}select{width:100%;background:#eaf3f5}
input[type=checkbox]{accent-color:#237f85}input[type=range]{width:100%;accent-color:#237f85}
label{cursor:pointer}section label{display:block;margin:6px 0}.hint{font-size:11px;color:#71818c}
.swatch{width:12px;height:12px;border-radius:3px;display:inline-block;margin:0 6px;flex:none}
.surface{font-size:11px;display:flex;align-items:center;gap:4px;line-height:1.45;margin:6px 0}.surface span:last-child{flex:1}
#stage{position:relative;overflow:hidden;background:linear-gradient(145deg,#f5f8fa,#dfe8ef)}
canvas{display:block;width:100%;height:100%;touch-action:none}
#overlay,#leaders{position:absolute;inset:0;pointer-events:none}#leaders{width:100%;height:100%}
.tag{position:absolute;font-size:11px;padding:3px 7px;background:#ffffffdb;border:1px solid #dbe4e8;border-radius:4px;white-space:nowrap;transform:translate(-50%,-100%);box-shadow:0 2px 8px #18384412}
.tag.runway{font-weight:600;color:#17394a;border-color:#a9c3cc}.tag.obs{font-weight:600;color:#7a1c1c;border-color:#e0a4a4}.tag.obs.ok{color:#17472a;border-color:#98cbb0}
.viewTitle{position:absolute;top:18px;left:20px;pointer-events:none;font-size:17px;color:#294858;background:#ffffffe3;padding:6px 10px;border-radius:5px}#title2{left:calc(50% + 20px)}
#badge{position:absolute;bottom:18px;left:20px;font-size:12px;color:#496879;pointer-events:none;background:#ffffffe0;padding:8px 12px;border-radius:5px}
#readout{position:absolute;right:18px;bottom:18px;background:#ffffffed;padding:12px 15px;width:340px;max-width:calc(100% - 36px);max-height:70%;overflow-x:hidden;overflow-y:auto;border-radius:7px;box-shadow:0 4px 20px #12334b12;font-size:12px;display:none;overflow-wrap:anywhere}
/* 读数行改为弹性换行：名称在左可折行，数值靠右；两者放不下时数值自动换到下一行右对齐，卡片不出现横向滚动。 */
#readout table,#readout tbody{display:block;width:100%;margin:4px 0 8px}#readout tr{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:0 10px;padding:3px 0;border-bottom:1px solid #eef2f4}
#readout td{display:block;padding:0 2px;min-width:0}#readout td:first-child{flex:1 1 10em;color:#5b7482}#readout td:last-child:not(:first-child){flex:0 1 auto;margin-left:auto;max-width:100%;text-align:right;font-variant-numeric:tabular-nums}
#readout tr.wrap td:last-child:not(:first-child){flex-basis:100%;text-align:left}
#readout .ctl td{font-weight:600;color:#123c4d}#readout .grp{font-weight:600;color:#3c6273;margin-top:6px}#readout .x{float:right;cursor:pointer;color:#6b7f89}
#loading{position:absolute;inset:0;z-index:4;background:#edf3f7;display:flex;align-items:center;justify-content:center;color:#34586b;font-size:17px;text-align:center;padding:20px}
#clause{position:absolute;right:370px;top:18px;background:#ffffffef;padding:12px 15px;width:340px;max-width:calc(100% - 36px);max-height:58%;overflow:auto;border-radius:7px;box-shadow:0 4px 20px #12334b14;font-size:12px;display:none;z-index:3}
#clause table{border-collapse:collapse;width:100%;margin:4px 0 6px}#clause td{padding:2px 4px;border-bottom:1px solid #eef2f4;vertical-align:top}#clause td:first-child{color:#5b7482;white-space:nowrap;width:5.6em}#clause .x{float:right;cursor:pointer;color:#6b7f89}
.lnk{color:#1d6f80;cursor:pointer;text-decoration:underline dotted}.ramp{height:12px;border-radius:3px;margin:6px 0 2px}.rampx{display:flex;justify-content:space-between;font-size:10px;color:#6b7f89}
.hatch{background:repeating-linear-gradient(135deg,#1d2b33 0 2px,#ffffff00 2px 6px);border:1px solid #1d2b33}
.foot{font-size:11px;color:#7a8d97;padding-bottom:10px}details summary{cursor:pointer;color:#506c7a;font-size:12px}#stats{font-variant-numeric:tabular-nums}
@media(max-width:750px){#clause{width:auto;left:6px;right:6px;top:6px}header{height:65px;padding:10px 13px}h1{font-size:18px}.layout{grid-template-columns:205px 1fr;height:calc(100vh - 65px)}aside{padding:12px}.sub{max-width:400px;font-size:10px}#readout{right:6px;left:6px;width:auto;max-width:none;max-height:55%}.viewTitle{font-size:13px;left:10px}}
@media(max-width:600px){.layout{grid-template-columns:1fr;grid-template-rows:minmax(0,38%) 1fr}aside{border-right:0;border-bottom:1px solid #d8e2e8}.viewTitle{top:8px}#title2{left:10px;top:44px}#badge{display:none}}

.flexgrow{flex:1;margin:0}.m0{margin:0}
#webNote{font-size:11px;color:#7a8d97}
