.board-body{background:#040a12;color:var(--white);font-size:14px}.view-controls,.edit-tools{position:relative;z-index:20;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#0c1725;padding:10px 18px;border-bottom:1px solid var(--line);font-size:12px}.view-controls label{display:flex;align-items:center;gap:7px;color:var(--muted)}.view-controls select,.edit-tools select{background:#122238;border:1px solid var(--line);color:#fff;border-radius:4px;padding:5px}.view-controls button,.edit-tools button{padding:6px 10px;font-size:12px}.view-controls a{color:var(--gold)}.edit-tools{background:#19303b;border-color:var(--cyan)}#edit-note{color:var(--cyan)}.board-frame{background:radial-gradient(ellipse at 50% 0,#18293b,transparent 65%),#080f19;position:relative;margin:auto;max-width:1800px}.board-header{height:43px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:6px 12px;border-bottom:1px solid #304054;overflow:hidden}.board-brand{display:flex;align-items:center;gap:8px;flex-shrink:0}.brand-mark{background:var(--red);color:#ffe6d4;padding:3px 5px;font-family:serif;font-size:15px}.board-header h1{font-size:17px;letter-spacing:1px;white-space:nowrap}.board-header h1 span{font-size:12px;margin-left:4px;letter-spacing:0;color:var(--muted)}.board-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:var(--muted);font-size:10px;white-space:nowrap}.demo-badge{font-size:10px;padding:2px 5px}.board-meta time{color:var(--gold);font-family:Arial;font-size:16px}.board-content{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-auto-rows:var(--cell);gap:5px;padding:5px}.module-card{position:relative;min-width:0;min-height:0;padding:12px;background:linear-gradient(145deg,#142235,#0c1725);border:1px solid #2b3c51;border-radius:3px;display:flex;flex-direction:column;overflow:hidden}.module-card:before{content:"";position:absolute;top:-1px;left:12px;width:25px;height:2px;background:var(--gold)}.module-head{display:flex;justify-content:space-between;align-items:center;gap:6px;flex-shrink:0;height:25px;margin-bottom:6px;min-width:0}.module-head h2{font-size:14px;font-weight:500;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.5px}.module-head small{color:var(--muted);font-size:10px;white-space:nowrap}.module-body{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}.module-note{font-size:10px;line-height:1.45;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;margin-top:5px}.chart-host{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}.chart-svg{display:block;width:100%;height:100%;min-height:0;flex:1}.chart-svg text{font-family:Arial,"Microsoft YaHei",sans-serif;fill:#a9bdd0;font-size:12px}.metric-cells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:center;gap:18px 12px;flex:1;min-height:0}.metric-cell{min-width:0}.metric-cell span{display:block;color:#b7c6d8;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}.metric-cell b{font-family:Arial;font-size:30px;line-height:1.15;font-weight:500;color:var(--gold);display:block;white-space:nowrap;font-variant-numeric:tabular-nums}.metric-cell:nth-child(even) b{color:var(--cyan)}.metric-cell em{font-family:inherit;font-style:normal;font-size:11px;color:var(--muted);margin-left:4px}.single .metric-cells{grid-template-columns:1fr}.single .metric-cell{text-align:center}.single .metric-cell b{font-size:32px}.module-table{table-layout:fixed;border-collapse:collapse;width:100%;font-size:12px}.module-table th{color:var(--muted);text-align:right;font-weight:400;font-size:10px;padding:7px 0}.module-table th:first-child{text-align:left;width:44%}.module-table td{padding:9px 0;border-top:1px solid #26384c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;font-variant-numeric:tabular-nums}.module-table td:first-child{text-align:left;padding-right:8px}.module-table td:nth-child(2){color:var(--gold)}.table-foot{font-size:10px;color:var(--muted);margin-top:auto;padding-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.module-empty{color:var(--muted);line-height:1.8;text-align:center;margin:auto;font-size:13px}.full-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:150px 1fr 1fr;gap:16px}.full-grid .full-summary{grid-column:1/-1}.full-grid .full-wide{grid-column:1/-1}.full-pane{min-height:0;min-width:0;display:flex;flex-direction:column;border-top:1px solid var(--line);padding-top:10px}.full-pane h3{font-size:12px;color:var(--muted);font-weight:400;margin:0 0 8px}.full-pane .chart-host{min-height:0}.board-footer{height:25px;display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:5px 12px}.board-body:not(.zone-desktop){overflow:hidden}.board-body:not(.zone-desktop) .board-frame{position:absolute;max-width:none;transform-origin:top left;padding:0;height:1080px}.zone-left .board-frame,.zone-right .board-frame{width:768px}.zone-center .board-frame{width:1920px}.board-body:not(.zone-desktop) .board-header{position:absolute;top:0;left:0;right:0;z-index:2;height:38px;background:#0a1421e8;border:0}.board-body:not(.zone-desktop) .board-content{height:1080px;grid-template-rows:repeat(5,minmax(0,1fr));grid-auto-rows:auto}.board-body:not(.zone-desktop) .module-card.first-row{padding-top:42px}.board-body:not(.zone-desktop) .module-card.last-row{padding-bottom:26px}.board-body:not(.zone-desktop) .board-footer{position:absolute;bottom:0;left:0;right:0;height:20px;background:#0a1421d9;z-index:2}.zone-left #source-status,.zone-right #source-status{display:none}.zone-left .board-meta,.zone-right .board-meta{gap:7px}.zone-left .board-meta time,.zone-right .board-meta time{font-size:13px}.zone-left .board-header h1,.zone-right .board-header h1{font-size:14px}.zone-left #scene-name,.zone-right #scene-name{display:none}.zone-center .board-header h1{font-size:19px}.zone-center .board-meta{font-size:12px}.seam-overlay{position:absolute;inset:0;pointer-events:none;z-index:15;background-image:linear-gradient(90deg,transparent calc(100% - 1px),#ef627bb0 0),linear-gradient(0deg,transparent calc(100% - 1px),#ef627bb0 0);background-size:50% 20%}.zone-center .seam-overlay{background-size:20% 20%}.editing .board-content{background-image:linear-gradient(90deg,transparent calc(100% - 1px),#58c5ce40 0),linear-gradient(0deg,transparent calc(100% - 1px),#58c5ce40 0);background-size:calc(100% / var(--cols)) calc(100% / 5)}.editing .module-card{border-color:#558798;cursor:pointer}.editing .module-card:hover{border-color:var(--cyan)}.block-edit-button{position:absolute;right:6px;top:4px;z-index:5;background:#203a49;padding:3px 7px;font-size:10px;color:#a8f3ee}.editing .module-head{padding-right:25px}.clean-mode:not(.editing) .view-controls{display:none}.board-toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);max-width:90vw;padding:12px 18px;border:1px solid var(--cyan);background:#142b3c;z-index:40;line-height:1.6;border-radius:6px;box-shadow:0 8px 35px #0008}dialog{color:var(--white);background:#102033;border:1px solid #42627a;border-radius:10px;padding:24px;width:590px;max-width:94vw;max-height:90vh;overflow:auto}dialog::backdrop{background:#020913bb}dialog h2{font-size:21px;margin:0 0 14px}dialog p,.dialog-help{color:var(--muted);font-size:12px;line-height:1.8}dialog label{display:block;font-size:12px;color:#b9c9d9}dialog input,dialog select{display:block;width:100%;margin-top:7px;padding:9px;background:#081322;color:var(--white);border:1px solid #36516b;border-radius:4px;font-size:14px}.block-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:20px}.dialog-actions button{font-size:13px}.error-text{color:#ef9c94!important;white-space:pre-line}.launch-shell{max-width:1100px;margin:40px auto;padding:24px}.launch-shell h1{font-size:30px}.launch-shell p{color:var(--muted);line-height:1.9}.launch-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.launch-card{display:block;border:1px solid var(--line);background:var(--panel);padding:24px;border-radius:7px}.launch-card h2{color:var(--gold);font-size:23px;margin:0 0 14px}.resolution{color:var(--cyan);font-size:19px}.config-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.config-zone{border:1px solid var(--line);border-radius:6px;padding:20px}.config-zone h3{color:var(--gold)}.config-zone a{display:inline-block;padding:10px;color:var(--cyan)}.config-help{color:var(--muted);line-height:1.8}.config-top{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.config-top input,.config-top select{width:220px}@media(max-width:760px){.board-body.zone-desktop .board-meta #source-status,.board-body:not(.wall-mode).zone-desktop #scene-name{display:none}.board-body.zone-desktop .board-header{height:65px;align-items:flex-start;flex-direction:column;gap:5px}.board-body.zone-desktop .board-meta{font-size:10px;gap:8px}.board-body.zone-desktop .module-card{padding:9px}.board-body.zone-desktop .module-head h2{font-size:12px}.board-body.zone-desktop .metric-cell span{font-size:11px}.board-body.zone-desktop .metric-cell b,.board-body.zone-desktop .single .metric-cell b{font-size:25px}.board-body.zone-desktop .module-note{font-size:9px}.board-body:not(.wall-mode) .launch-grid,.board-body:not(.wall-mode) .config-grid{grid-template-columns:1fr}.board-body:not(.wall-mode) .block-fields{gap:10px}.board-body:not(.wall-mode) .view-controls{gap:8px}.board-body.zone-desktop .full-grid{grid-template-rows:100px 1fr 1fr;gap:9px}}

.metric-cell b em{display:block;margin:5px 0 0;font-size:10px}.metric-cell b{max-width:100%}.single .metric-cell b em{font-size:11px}

.zone-desktop.editing .board-content{background-size:calc(100% / var(--cols)) calc(var(--cell) + 5px)}

/* Wall pixels remain anchored at (0,0); controls overlay without shifting output. */
.wall-mode .view-controls{position:fixed;top:0;left:0;right:0;max-height:100vh;overflow:auto}
.view-help{color:var(--muted);font-size:11px}
.launch-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:15px}
.launch-actions a{padding:9px 14px;border:1px solid var(--line);border-radius:4px;color:var(--gold)}
.launch-actions .wall-link{background:#203544;color:var(--white)}

.config-section{margin:28px 0;padding:20px;border:1px solid var(--line);border-radius:7px}.config-section h2{font-size:19px;color:var(--gold);margin:0 0 16px}.config-section .config-top{margin:15px 0}.config-section input[type=file]{width:240px}.rotation-row{display:flex;gap:6px;align-items:center;margin:10px 0;flex-wrap:wrap}.rotation-row>label:first-child{flex:1;min-width:100px}.rotation-row input[type=number]{width:70px;padding:6px}.rotation-row input[type=checkbox],.config-zone input[type=checkbox]{width:auto}.rotation-row button{padding:4px 8px}.history-chart{min-height:300px;height:46vh;max-height:500px;border:1px solid var(--line);background:var(--panel);margin:20px 0;padding:12px}.history-chart svg{width:100%;height:100%}.history-chart svg text{font:12px Arial,sans-serif;fill:#9cafc2}.history-summary{display:flex;gap:24px;flex-wrap:wrap;color:var(--gold)}.history-table-wrap{overflow:auto}.history-table{width:100%;border-collapse:collapse;min-width:620px}.history-table td,.history-table th{padding:9px;border-bottom:1px solid var(--line);text-align:left;font-size:12px}

/* Preserve fixed panel geometry; only add chart and health details within existing boxes. */
.chart-zero{stroke:#8da4ba;stroke-width:1;stroke-dasharray:3 4}.module-error{color:#e3a7a0}.board-footer #saved{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.board-footer #saved.offline{color:#ef9c94}.board-footer #page-info{flex-shrink:0;margin-left:8px}

/* Compact only when actual metric height requires it; keep every value and the fixed grid. */
.metric-cells.responsive-metrics{row-gap:var(--metric-row-gap);height:100%;max-height:100%}.metric-cells.responsive-metrics .metric-cell span{font-size:var(--metric-label-font);line-height:1.25;margin-bottom:var(--metric-label-gap)}.metric-cells.responsive-metrics .metric-cell b{font-size:var(--metric-value-font);line-height:1.15}.metric-cells.responsive-metrics .metric-cell b em{font-size:var(--metric-unit-font);line-height:1.2;margin-top:var(--metric-unit-gap)}

/* A one-cell table still shows its name, value and page count without clipping. */
.compact-table .module-table th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:3px 0;line-height:12px}.compact-table .module-table td{padding:4px 0;line-height:14px;font-size:11px}.compact-table .table-foot{padding-top:4px;line-height:14px}

/* V3.7: keep a readable font floor; page content instead of shrinking text. */
.distance-readable .module-head{height:auto;min-height:24px;max-height:43px;align-items:flex-start;gap:4px;margin-bottom:6px}
.distance-readable .module-head h2{font-size:18px!important;font-weight:600;line-height:1.16;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:0}
.distance-readable .module-head small{font-size:14px;color:#d8e3ed}
.distance-readable .module-card{background:linear-gradient(145deg,#122033,#091522)}
.readable-content{color:#deebf7;overflow:hidden}
.read-metrics{display:grid;align-content:center;gap:8px 16px;flex:1;min-height:0}
.read-metric{min-width:0;text-align:left}
.read-metric span,.read-record span{font-size:var(--read-label);font-weight:500;line-height:1.3;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#deebf7}
.read-metric strong,.read-record strong{display:block;font:600 var(--read-value)/1.15 Arial,sans-serif;color:#edd19e;white-space:nowrap;font-variant-numeric:tabular-nums;margin-top:4px}
.read-metric:nth-child(even) strong{color:#66dfe6}
.read-metric i{font-style:normal;font-size:var(--read-foot);line-height:1.2;color:#e1ad9b;display:block}
.read-page{flex-shrink:0;font-size:var(--read-foot);line-height:1.3;color:#ccd9e7;text-align:right;padding-top:4px}
.read-records{display:flex;flex-direction:column;justify-content:center;flex:1;min-height:0;gap:12px}
.read-record{border-bottom:1px solid #3c536d;padding-bottom:4px;min-width:0}
.read-empty{margin:auto;font-size:var(--read-label);line-height:1.5;color:#dbbdab;text-align:center}
.read-svg text{fill:#d9e5f1;font-weight:500}
.distance-readable .module-note{display:none}
.distance-readable .module-body{min-height:0}
.read-calibration{display:flex;flex-direction:column;gap:14px;padding:20px;background:#081522;color:#deebf7}
.read-calibration strong{font:600 36px Arial;color:#edd19e}
.read-calibration span{font-size:18px;line-height:1.5}

.calibration-overlay{position:absolute;inset:0;z-index:18;background:#050d18eb;display:flex;align-items:center;justify-content:center}.calibration-overlay[hidden]{display:none}.calibration-overlay .read-calibration{max-width:95%;border:2px solid #66dfe6}.calibration-overlay strong{font-size:var(--sample-value)}.calibration-overlay span,.calibration-overlay button{font-size:var(--sample-label)}

/* V3.8: scroll the fixed canvas, keeping the document and overlay controls stationary. */
.wall-viewport{display:contents}
.wall-mode .wall-viewport{display:block;position:fixed;inset:0;overflow:auto;overscroll-behavior:contain}
#wall-extent{pointer-events:none;position:relative;flex:none}

/* V3.10 repair: stable two-line session headings, including standard mode. */
.module-head.has-session-title{height:auto;min-height:36px;max-height:none;align-items:flex-start}
.module-head.has-session-title h2{display:block;flex:1;min-width:0;white-space:normal;-webkit-line-clamp:unset}
.session-project,.session-number{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}
.session-number{font-size:12px;color:#b9ccdf;margin-top:2px;letter-spacing:0}
.distance-readable .module-head.has-session-title{min-height:42px;max-height:none}
.distance-readable .session-number{font-size:14px}
/* Intrinsic measurements prevent centered text from disappearing above the body. */
.measure-readable .read-metrics{flex:0 0 auto;align-content:start}
.measure-readable .read-records,.measure-readable .performance-progress{flex:0 0 auto;justify-content:flex-start}
.compact-readable .read-metrics{gap:4px 12px}
.compact-readable .read-records{gap:4px}
.compact-readable .read-metric strong,.compact-readable .read-record strong{margin-top:2px}
.compact-readable .comparison-line{margin-top:2px;line-height:1.2}
.compact-readable .read-page{padding-top:2px;line-height:1.2}
.compact-readable .performance-progress{gap:3px}
.compact-readable .performance-values strong{margin-top:2px}

/* Category headings stay in maintenance; display metric labels carry context. */
.module-card.hide-category-title .module-head{display:none}.display-metric-caption{font-weight:var(--type-labelWeight,400);font-size:calc(14px * var(--type-scale,1));color:#b7c6d8;line-height:1.3;margin:0 0 6px;flex-shrink:0}.distance-readable .display-metric-caption{font-weight:var(--type-labelWeight,400);font-size:var(--read-label,18px)}

.hide-category-title>.viewing-badge{position:absolute;top:8px;right:8px}.board-body:not(.zone-desktop) .hide-category-title.first-row>.viewing-badge{top:42px}
