:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#142c26;background:#f5f7f5;font-size:17px;line-height:1.55;--green:#075740;--border:#a7b7af}*{box-sizing:border-box}body{margin:0}h1,h2,h3,p{margin:0 0 14px}h1{font-size:clamp(1.6rem,3vw,2.15rem);line-height:1.2}h2{font-size:1.25rem}h3{font-size:1rem;margin-top:22px}.topbar,main,footer{max-width:1440px;margin:auto;padding:24px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--border)}.eyebrow{font-size:.78rem;letter-spacing:.06em;font-weight:750;color:#3b5d50;margin-bottom:7px}.workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px;min-width:0}.steps{display:grid;gap:22px}.settings-panel{grid-column:1/-1}.results,.history{margin-top:22px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap}.section-heading h2{margin:0}.step{display:inline-grid;place-items:center;background:var(--green);color:#fff;border-radius:50%;height:30px;width:30px;font-size:.9rem;margin-right:7px}.badge{border:1px solid #8ba497;background:#edf6ef;padding:6px 12px;border-radius:8px;font-size:.85rem;font-weight:750;white-space:normal}.badge.offline{color:#8b2417;background:#fff0ed;border-color:#bf6759}.preview{background:#17241f;position:relative;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;border-radius:8px;overflow:hidden;color:#fff;text-align:center}.preview img{width:100%;height:100%;object-fit:contain}.preview p{padding:24px}.caption{font-size:.87rem;color:#425b51;margin-top:10px}.camera-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.camera-meta div{border-bottom:1px solid #dce4de;padding-bottom:8px;min-width:0}dt{color:#52685e;font-size:.8rem}dd{margin:2px 0 0;font-weight:700;overflow-wrap:anywhere}label{display:block;font-weight:700;font-size:.95rem;margin-bottom:16px}input,select{display:block;width:100%;font:inherit;background:#fff;color:#142c26;border:2px solid #879c90;border-radius:7px;padding:12px;margin-top:6px;min-height:52px}input:focus,select:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #e09b00;outline-offset:3px}button,.button{display:inline-flex;align-items:center;justify-content:center;min-height:54px;border:2px solid transparent;border-radius:8px;padding:12px 18px;font:inherit;font-weight:750;text-decoration:none;text-align:center;cursor:pointer;line-height:1.35;touch-action:manipulation}button.primary{background:var(--green);color:#fff}.secondary{background:#f2f6f2;color:#143e2d;border-color:#748e7d}button:disabled{cursor:not-allowed;background:#e0e5e1;color:#5e6b63;border-color:#bdc8c0}button:not(:disabled):hover,.button:hover{filter:brightness(.94)}.full{width:100%}.actions{display:flex;gap:12px;margin-top:18px}.actions>*{flex:1;min-width:0}.notice{border:1px solid #87a590;border-left:5px solid var(--green);border-radius:6px;background:#eef6ef;padding:14px 16px;margin-bottom:18px;overflow-wrap:anywhere}.notice p{margin:10px 0}.danger{color:#831d12;background:#fff0ed;border-color:#b74131}.warning{color:#614000;background:#fff8df;border-color:#ad7900}.notice label{margin-bottom:0}.check{display:flex;align-items:flex-start;gap:12px}.check input{min-height:26px;width:26px;flex-shrink:0;accent-color:var(--green);margin-top:2px}.fields{display:grid;gap:16px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.two{grid-template-columns:repeat(2,minmax(0,1fr))}fieldset{border:0;padding:0;margin:0}legend{font-weight:750;margin-bottom:14px}details{margin:16px 0}summary{font-weight:750;cursor:pointer;padding:10px 0;min-height:46px}details[open] summary{margin-bottom:8px}.captures{display:flex;gap:16px;margin-top:18px}.captures p{background:#f2f6f2;border:1px solid #c8d4ca;padding:12px;flex:1;margin:0;overflow-wrap:anywhere}.captures strong{display:block;font-size:1.15rem}.captures span{font-size:.85rem}.empty{padding:42px 22px;text-align:center;color:#52685e;background:#f5f7f5;border-radius:8px}.chart svg{width:100%;height:auto;display:block;min-width:360px}.chart{overflow-x:auto}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.85rem}th,td{border-bottom:1px solid #becdc2;padding:12px;text-align:right;white-space:nowrap}th{background:#eef4ef}.file-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.file-links a{color:#075740;font-weight:700;padding:12px 15px;border:1px solid #91aa99;border-radius:6px;overflow-wrap:anywhere;min-width:0;max-width:100%}.result-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.result-images figure{margin:20px 0 0}.result-images img{max-width:100%;height:auto;border:1px solid #b8c7bc}.result-images figcaption{font-size:.85rem;overflow-wrap:anywhere}footer{font-size:.85rem;color:#52685e}#reasons{padding-left:24px}#error,#status-error{position:relative}[hidden]{display:none!important}@media(min-width:1100px){.camera-panel{position:sticky;top:20px}}@media(max-width:760px){.topbar,main,footer{padding:16px}.topbar{align-items:flex-start;flex-direction:column}.workspace{grid-template-columns:1fr;gap:16px}.panel{padding:18px;border-radius:10px}.steps{gap:16px}.settings-panel{grid-column:auto}.two{grid-template-columns:1fr}.three{gap:10px}.fields label{font-size:.85rem}.fields input{padding:10px 8px}.actions{flex-direction:column}.result-images{grid-template-columns:1fr}.section-heading .button{width:100%}.badge{font-size:.82rem}h2{font-size:1.15rem}.captures{gap:10px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}}
:root{--subtle:#f2f6f2}.imu-streams{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.imu-streams p{margin:0;border:1px solid #c8d4ca;background:var(--subtle);padding:12px;border-radius:7px;min-width:0}.imu-streams strong,.imu-streams span{display:block}.imu-streams span{font-size:.82rem;overflow-wrap:anywhere;margin-top:5px}.camera-setup{border-top:1px solid #dce4de;padding-top:18px}.imaging-panel{border-top:1px solid #dce4de;margin-top:22px;padding-top:8px}.field-hint{display:block;font-size:.76rem;font-weight:400;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}input:disabled,select:disabled{background:#edf1ee;color:#5e6b63;border-color:#bdc8c0}fieldset:disabled label{color:#5e6b63}#camera-warning{white-space:pre-line}@media(min-width:1100px){.camera-panel{position:static}}@media(max-width:760px){.imu-streams{grid-template-columns:1fr}}

/* Preflight measurement confirmation and flat-ground error report */
.measurement-confirmation{padding:16px;margin:14px 0;background:#f5f8f6;border:1px solid #a6b9ae;border-radius:10px}
.measurement-confirmation .check{font-weight:650;margin:8px 0 14px;line-height:1.55}
.measurement-confirmation .caption{margin:0}
.measurement-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.measurement-results>div{padding:14px;background:#f3f7f4;border:1px solid #c6d6cb;border-radius:9px;min-width:0}
.measurement-results span{display:block;font-size:.86rem;color:#3a5849;min-height:2.7em}
.measurement-results strong{display:block;margin-top:6px;font-size:clamp(1rem,1.7vw,1.4rem);font-weight:800;overflow-wrap:anywhere}
@media(max-width:900px){.measurement-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.measurement-results{grid-template-columns:1fr}}

/* 可视化实时调参：同一预览 DOM 进入工作台，不发起第二路视频采集。 */
.tune-open{margin:12px 0 6px;gap:8px}
.tune-field{min-width:0;padding:12px 14px 15px;border:1px solid #d8e3dc;border-radius:12px;background:#f8faf8;margin-bottom:12px}
.tune-field>label:first-child{margin-bottom:10px}
.tune-range-label{font-size:.84rem;font-weight:750;color:#305448;margin:5px 0 0;display:flex;align-items:center;justify-content:space-between;gap:8px}
.tune-range-label span{font-variant-numeric:tabular-nums;color:#075740}
input.tune-range{display:block;width:100%;height:35px;min-height:35px;padding:0;margin:7px 0 0;accent-color:#077556;cursor:pointer;border:none;background:transparent;touch-action:pan-y}
input.tune-range:disabled{opacity:.45;cursor:not-allowed}
.tune-status{margin:16px 0 10px;border-radius:10px;background:#edf5ef;border:1px solid #b6cdbd;color:#204638;padding:10px 12px;font-size:.87rem;line-height:1.5}
.tune-status.is-error{border-color:#c87969;background:#fff1ed;color:#8c2418}
.tune-overlay{position:fixed;inset:0;z-index:1000;background:rgba(13,32,26,.78);padding:clamp(8px,2vw,22px);display:grid;place-items:center}
.tune-shell{display:flex;flex-direction:column;min-width:0;width:min(1520px,100%);height:min(920px,calc(100dvh - 24px));background:#f5f7f5;border-radius:18px;overflow:hidden;box-shadow:0 25px 80px #0a231f80}
.tune-header{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #c7d7cd;background:#fff}
.tune-header h2{margin:0 0 4px;font-size:1.25rem}
.tune-header p{margin:0;font-size:.78rem;line-height:1.4;color:#425c4f}
.tune-header .tune-kicker{letter-spacing:.06em;text-transform:uppercase;font-size:.71rem;color:#0f795c;font-weight:850}
.tune-header button{flex:0 0 auto;min-height:42px}
.tune-grid{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(325px,.86fr);gap:14px;padding:14px}
.tune-visual{min-width:0;display:flex;flex-direction:column;justify-content:center;overflow:hidden;background:#12251f;border-radius:12px;padding:12px;color:white}
.tune-visual #tune-preview-slot{min-height:0;flex:1;display:flex;flex-direction:column}
.tune-visual #preview-block{min-height:0;flex:1;display:flex;flex-direction:column}
.tune-visual .preview{background:#0a1610;aspect-ratio:4/3;max-height:calc(100% - 90px);min-height:100px}
.tune-visual .caption,.tune-visual .tune-guidance{color:#cde0d4}
.tune-visual #preview-state{font-size:.8rem;margin:8px 0 0}
.tune-guidance{font-size:.8rem;line-height:1.5;margin:9px 0 0}
.tune-parameters{min-width:0;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #ccd8ce;border-radius:12px;padding:14px 16px}
.tune-parameters .imaging-panel{margin:0;border:0;padding:0}
.tune-parameters .imaging-panel>summary{font-size:1rem;padding:3px 0}
.tune-parameters .fields.two{grid-template-columns:1fr;gap:8px}
.tune-parameters .tune-field{padding:11px}
.tune-parameters input[type=number],.tune-parameters select{min-height:42px;padding:7px 10px}
.tune-parameters label{margin-bottom:10px}
.tune-parameters .caption{margin:7px 0 9px;font-size:.77rem}
@media(max-width:850px){
  .tune-shell{height:calc(100dvh - 12px);border-radius:12px}
  .tune-header{padding:8px 12px;gap:10px}
  .tune-header h2{font-size:1.02rem}
  .tune-header p:not(.tune-kicker){display:none}
  .tune-header button{padding:7px 9px;min-height:40px;font-size:.83rem}
  .tune-grid{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(150px,33%) minmax(0,1fr);gap:9px;padding:9px}
  .tune-visual{padding:7px;justify-content:flex-start}
  .tune-visual .preview{aspect-ratio:auto;flex:1;min-height:0;max-height:none}
  .tune-visual #preview-state{font-size:.73rem;margin:3px 0 0}
  .tune-guidance{display:none}
  .tune-parameters{padding:9px 12px}
  .tune-parameters .fields.two{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){.tune-parameters .fields.two{grid-template-columns:1fr}.tune-header .tune-kicker{display:none}}
.sync-panel{margin-top:22px}
.sync-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}
.sync-actions>*{flex:1;min-width:170px}
.sync-actions>button{margin-bottom:16px}
.sync-panel #sync-status{margin-bottom:5px}
@media(max-width:650px){.sync-actions{display:grid;grid-template-columns:1fr}.sync-actions>button{margin:0}}

/* Always-visible camera monitor. Reuse #preview-block: no duplicate video stream. */
.experiment-shell{
  display:grid;
  grid-template-columns:minmax(310px,.88fr) minmax(0,1.12fr);
  gap:20px;
  align-items:start;
}
.experiment-content{min-width:0}
.experiment-content .workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.experiment-content .workspace>.camera-panel,
.experiment-content .workspace>.settings-panel{grid-column:1/-1}
.experiment-content .steps{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}
.experiment-content .camera-panel{position:static}
.preview-rail{
  position:sticky;top:12px;align-self:start;z-index:5;
  padding:17px;box-shadow:0 8px 26px rgba(18,49,37,.07);
  max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;
}
.preview-rail-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.preview-rail-header h2{font-size:1.15rem;margin:0}
.preview-kicker{font-size:.72rem;font-weight:800;letter-spacing:.06em;color:#367461}
.preview-rail .preview-size{min-height:40px;padding:7px 12px;font-size:.83rem;white-space:nowrap}
.preview-rail #rail-mode{margin:11px 0;font-size:.83rem}
.preview-rail .preview{aspect-ratio:4/3;max-height:min(60dvh,620px);border-radius:10px}
.preview-rail #preview-state{margin-top:8px}
.preview-camera-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.preview-camera-actions button{width:100%;min-width:0;min-height:44px;padding:9px 10px;font-size:.89rem}
.preview-rail-links{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.preview-rail-links a{display:inline-block;font-size:.79rem;font-weight:700;border:1px solid #b8ccc1;border-radius:6px;background:#eef5ef;color:#174e38;text-decoration:none;padding:7px 9px}
.preview-rail-links a:focus-visible{outline:3px solid #e09b00;outline-offset:2px}
.preview-rail-footnote{font-size:.75rem;color:#51695a;margin:12px 0 0}
.experiment-content .camera-panel .section-heading{margin-bottom:10px}
.experiment-content .camera-panel .camera-meta{margin-top:12px}
.experiment-content .imaging-panel{margin-top:14px}
.experiment-shell.preview-compact{grid-template-columns:minmax(180px,235px) minmax(0,1fr)}
.experiment-shell.preview-compact .preview-rail .preview{max-height:210px}
.experiment-shell.preview-compact .preview-rail-links,
.experiment-shell.preview-compact .preview-rail-footnote{display:none}
.experiment-shell.preview-compact .preview-rail-header{align-items:start;flex-direction:column;gap:5px}
.experiment-shell.preview-compact .preview-rail .preview-size{align-self:stretch}
@media(min-width:1250px){
  .experiment-content .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .experiment-shell{grid-template-columns:minmax(260px,.82fr) minmax(0,1.18fr);gap:12px}
  .experiment-content .workspace{gap:12px}
  .preview-rail{padding:12px}
  .preview-rail-header{align-items:start;flex-direction:column;gap:7px}
  .preview-rail .preview-size{width:100%}
  .preview-rail-links{display:none}
}
@media(max-width:760px){
  .experiment-shell{display:block}
  .preview-rail{
    position:sticky;top:0;z-index:20;max-height:none;overflow:visible;
    margin:0 0 14px;padding:10px 12px;
    border-radius:0 0 13px 13px;box-shadow:0 6px 22px rgba(18,49,37,.17);
  }
  .preview-rail-header{flex-direction:row;align-items:center;gap:8px}
  .preview-rail-header h2{font-size:1rem}
  .preview-rail .preview-size{width:auto;font-size:.78rem;min-height:36px;padding:6px 9px}
  .preview-rail #rail-mode{font-size:.74rem;margin:5px 0}
  .preview-rail .preview{height:min(27dvh,230px);min-height:135px;aspect-ratio:auto}
  .preview-rail #preview-state{font-size:.7rem;margin-top:4px}
  .preview-rail-footnote,.preview-rail-links{display:none}
  .experiment-shell.preview-compact .preview-rail .preview{height:98px;min-height:98px;max-height:98px}
  .experiment-shell.preview-compact .preview-rail-header{flex-direction:row;align-items:center}
  .experiment-shell.preview-compact .preview-rail .preview-size{width:auto}
  .experiment-content .workspace{grid-template-columns:minmax(0,1fr)}
  #camera-heading,#settings-heading,#sync-heading,#capture-heading,#experiment-heading{
    scroll-margin-top:320px;
  }
}

/* Guided task-first workflow: one visible experiment at a time. */
.workflow-switch{padding:18px 20px;margin-bottom:14px}
.workflow-switch h2{margin:0 0 10px;font-size:1.05rem}
.task-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.task-choice{
  background:#f4f7f4;color:#315344;border:1px solid #ccd9ce;
  border-radius:10px;min-height:52px;padding:10px 14px;font-size:.94rem;
}
.task-choice[aria-pressed="true"]{background:#e8f4ed;border:2px solid #197655;color:#075740}
.task-caption{margin:9px 0 0}
.workflow-guide{
  border-color:#9db6a6;background:#fcfefc;padding:19px 21px;margin-bottom:17px;
}
.workflow-guide-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.workflow-guide-header h2{margin:0;font-size:1.2rem}
.workflow-progress{background:#e9f2eb;border:1px solid #b9cebf;border-radius:8px;padding:4px 10px;font-size:.8rem;font-weight:700;white-space:nowrap}
.workflow-instruction{font-size:.97rem;line-height:1.6;margin:14px 0}
.workflow-next{width:100%;font-size:1.06rem;min-height:53px}
.workflow-steps{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.workflow-step{display:inline-block;padding:5px 9px;border:1px solid #d4e2d6;background:#f4f7f5;border-radius:7px;color:#53665c;font-size:.78rem}
.workflow-step.is-done{background:#edf6ee;color:#0e6c49;border-color:#b2cdbb}
.workflow-step.is-current{background:#eaf3ed;color:#075740;border-color:#428b6f;font-weight:800}
.workflow-camera-state{padding:10px 12px;background:#f2f8f4;border-radius:9px;border:1px solid #c0d6c5;font-weight:700;font-size:.86rem;margin:7px 0 13px}
.camera-diagnostics{border-top:1px solid #e2eae4;border-bottom:1px solid #e2eae4;margin:12px 0}
.camera-diagnostics>summary,.optional-name>summary,
.capture-advanced>summary,.sync-guide>summary,
#sync-history-details>summary,#history-details>summary{font-size:.87rem;color:#2c5c45}
.camera-diagnostics[open]{padding-bottom:12px}
.camera-diagnostics .camera-meta{margin:10px 0}
.camera-setup{padding-top:13px}
#camera-advanced{margin:10px 0}
.optional-name,.capture-advanced{margin:5px 0 12px}
.optional-name[open]{padding-bottom:4px}
.optional-name label{margin-top:8px}
#quick-freeze-auto{margin:12px 0;font-size:.9rem}
.experiment-content .camera-panel{padding-top:18px}
.experiment-content .steps{gap:14px}
.experiment-content .sync-panel{margin-top:0}
.experiment-content .results{margin-top:14px}
.experiment-content .history{margin-top:14px;padding:11px 20px}
#sync-history-details{margin-top:13px;border-top:1px solid #e3eae4}
#sync-history-details .file-links{margin-top:6px}
.experiment-content [id$="-heading"]{scroll-margin-top:16px}
@media(max-width:760px){
  .workflow-switch,.workflow-guide{padding:14px 15px;margin-bottom:12px}
  .task-buttons{gap:6px}
  .task-choice{min-height:49px;font-size:.83rem;padding:7px}
  .workflow-guide-header h2{font-size:1.05rem}
  .workflow-instruction{font-size:.88rem}
  .workflow-next{font-size:.93rem}
  .workflow-step{font-size:.72rem}
  .experiment-content [id$="-heading"]{scroll-margin-top:320px}
}
@media(max-width:385px){
  .workflow-step{padding:4px 6px}
  .task-buttons{grid-template-columns:1fr 1fr}
}

.repeat-trial{margin-top:10px;background:#075740;color:white}
.repeat-trial:disabled{background:#e0e5e1;color:#5e6b63}

.chart-panel{margin:18px 0 20px;padding:18px 18px 12px;border-radius:12px;border:1px solid #aec7b8;background:#f8fbf8}
.chart-panel h3{margin:0 0 7px;font-size:1.08rem;color:#0d533d}
.chart-panel .caption{margin:0 0 11px;line-height:1.65}
.aux-chart{border-top:1px solid #d8e4db;padding-top:7px}
.quality-hints{border:1px solid #e4c892;border-left:4px solid #ad7900;border-radius:8px;padding:13px 16px;margin-top:10px;background:#fffaf0;color:#654300}
.quality-hints ul{margin:8px 0 0;padding-left:23px}
.quality-hints li{margin-bottom:4px}
@media(max-width:760px){.chart-panel{padding:12px 9px}.chart svg{min-width:460px}}

.trial-exit-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.trial-discard{background:#a33127;color:white;border:2px solid #a33127}
.trial-discard:not(:disabled):hover{background:#84261e;border-color:#84261e}
.trial-discard:disabled{background:#e6dfdf;color:#655955;border-color:#c8bcbc}
@media(max-width:660px){.trial-exit-actions{grid-template-columns:1fr}}

/* v13 gravity inclination comparison, kept adjacent to measurement inputs. */
.inclination-panel{border:1px solid #bed1c4;background:#f4f8f5;border-radius:10px;padding:16px;margin:8px 0 16px}
.manual-angle-field{min-width:0;margin-bottom:16px}
.manual-angle-field>label{margin:0 0 6px}
.manual-angle-actions{display:flex;align-items:stretch;gap:8px}
.manual-angle-actions input{min-width:0;flex:1;margin:0}
.manual-angle-actions button{flex:0 0 auto;min-height:52px;max-width:50%;font-size:.88rem}
@media(max-width:540px){.manual-angle-actions{flex-wrap:wrap}.manual-angle-actions button{width:100%;max-width:none}}
.inclination-panel label{margin:0 0 12px}
.inclination-panel p{overflow-wrap:anywhere;margin:8px 0}
#imu-live-angle,#imu-a-angle{background:#fff;border:1px solid #d6e2da;padding:10px 12px;border-radius:7px;color:#1c4836;font-weight:650}
#inclination-choice-note{font-weight:700;color:#244a39}

/* v20 — independent experiment destinations; one camera service, many views */
:root{
  --portal-ink:#17362d;
  --portal-muted:#506c60;
  --portal-border:#d3e0d7;
  --portal-accent:#086447;
}
body{background:linear-gradient(180deg,#f8faf8 0%,#f2f6f3 100%);}
.topbar{max-width:1440px;padding-top:18px;padding-bottom:16px;border-bottom:0;}
.topbar h1{font-size:clamp(1.4rem,2.35vw,1.88rem);letter-spacing:-.035em;margin-bottom:3px;}
.header-subtitle{font-size:.8rem;color:var(--portal-muted);margin:6px 0 0;}
.site-nav{position:sticky;top:0;z-index:65;background:rgba(255,255,255,.97);border-top:1px solid #e5ece7;border-bottom:1px solid #cddcd2;box-shadow:0 4px 19px rgba(10,56,39,.055);backdrop-filter:blur(10px);}
.site-nav-inner{max-width:1440px;display:flex;gap:5px;margin:0 auto;padding:8px 24px;overflow-x:auto;scrollbar-width:thin;overscroll-behavior-x:contain;}
.site-nav a{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;white-space:nowrap;min-height:43px;padding:10px 15px;border:1px solid transparent;border-radius:9px;text-decoration:none;color:#36584b;font-size:.87rem;font-weight:750;transition:background .15s,color .15s,border .15s;}
.site-nav a:hover{color:#064f39;background:#edf6ef;}
.site-nav a[aria-current="page"]{background:#e8f5eb;color:#07583f;border-color:#95bca3;box-shadow:inset 0 -3px 0 #0b7652;}
.site-page{animation:portal-enter .13s ease-out;min-height:45vh;}
.site-page[hidden]{display:none!important;}
@keyframes portal-enter{from{opacity:.86;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.page-intro{border:1px solid #cedbd1;background:linear-gradient(115deg,#f5faf6,#ffffff 72%);margin-bottom:17px;padding:22px 26px;}
.page-intro .eyebrow{margin-bottom:8px;color:#0b7350;}
.page-intro h2{margin:0 0 6px;font-size:clamp(1.2rem,2vw,1.55rem);letter-spacing:-.02em;color:#153c2e;}
.page-intro p{margin:7px 0 0;color:#3e5a4c;font-size:.91rem;}
.page-context-note,.portal-hint{background:#f3f8f4;border:1px solid var(--portal-border);border-radius:10px;padding:13px 16px;margin:15px 0 18px;color:#3f6151;font-size:.87rem;}
.page-context-note a,.portal-hint a{color:#076344;font-weight:750;}
#page-record,#page-stereo{max-width:1120px;margin:0 auto;}
#page-stereo .panel,#page-record .panel{margin-bottom:16px;}
#page-stereo .fields.two{max-width:930px;}
#page-stereo #flight-analysis-state{margin:2px 0 0;background:#f0f6f2;border-left:3px solid #0a744e;padding:10px 13px;border-radius:4px;}
#page-stereo .record-list{display:grid;gap:12px;margin-top:14px;}
.record-session{background:#f7faf8;border:1px solid #d5e2d8;border-radius:11px;padding:16px;}
.record-session p{margin:0 0 9px;color:#173f2c;overflow-wrap:anywhere;}
.record-session-meta{display:block;font-size:.8rem;color:#5b7668;margin-bottom:11px;}
.record-session button{min-height:44px;max-width:100%;font-size:.87rem;}
#flight-recorder-panel{background:#fff;}
#record-conflict-note{margin-bottom:16px;}
.archive-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;}
.archive-grid .panel{margin:0;}
.archive-grid .archive-wide{grid-column:1/-1;}
.archive-grid .file-links{align-items:start;}
.archive-grid .file-links>div{width:100%;background:#fafcfb;border:1px solid #d4e0d8;border-radius:10px;padding:12px;margin-bottom:10px;}
.archive-grid .file-links a{display:inline-flex;padding:8px 10px;font-size:.8rem;margin:3px 5px 3px 0;}
.archive-grid .history,.archive-grid details{margin:0;border:0;padding:0;background:transparent;}
.archive-grid details[open] summary{margin-bottom:8px;}
.archive-grid summary{min-height:35px;padding:7px 0;}
.archive-grid .history{box-shadow:none;}
.portal-hero{background:linear-gradient(114deg,#124c39,#0c684b);border-radius:17px;padding:clamp(22px,3vw,35px);color:white;margin-bottom:20px;box-shadow:0 10px 28px rgba(12,63,42,.11);}
.portal-hero .eyebrow{color:#b7e3cb;margin-bottom:8px;}
.portal-hero h2{font-size:clamp(1.5rem,2.4vw,2.1rem);margin-bottom:11px;color:white;}
.portal-hero p{max-width:900px;margin:0 0 14px;font-size:.95rem;color:#e2f1e8;}
.portal-hero .portal-live{display:inline-block;max-width:100%;padding:10px 13px;margin:7px 0 0;border:1px solid #7cbaa0;background:rgba(255,255,255,.12);border-radius:9px;font-size:.84rem;color:#fff;}
.portal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.portal-card{display:flex;flex-direction:column;min-height:190px;padding:23px;border:1px solid #c9dcd0;border-radius:14px;background:#fff;color:#264a39;text-decoration:none;box-shadow:0 3px 12px rgba(13,63,42,.035);transition:border-color .18s,transform .18s,box-shadow .18s;}
.portal-card:hover{transform:translateY(-2px);border-color:#76a78a;box-shadow:0 10px 25px rgba(13,63,42,.07);}
.portal-card .portal-card-kicker{color:#07724f;font-size:.77rem;letter-spacing:.03em;font-weight:800;margin-bottom:12px;}
.portal-card strong{font-size:1.17rem;line-height:1.35;color:#17382a;margin-bottom:10px;}
.portal-card>span:nth-child(3){font-size:.89rem;line-height:1.7;color:#516c5c;flex:1;}
.portal-card-link{margin-top:16px;color:#076344;font-size:.85rem;font-weight:800;}
.portal-card-link::after{content:"  →";}
#page-experiments .experiment-shell{margin-top:4px;}
#page-experiments .page-intro{margin-bottom:17px;}
#page-experiments .workflow-guide{margin-top:0;}
#page-data .history{display:block!important;}
@media(max-width:850px){
  .site-nav-inner{padding:7px 16px;gap:4px;}
  .site-nav a{padding:9px 11px;font-size:.84rem;min-height:41px;}
  .archive-grid{grid-template-columns:1fr;}
  .archive-grid .archive-wide{grid-column:auto;}
  .portal-grid{gap:12px;}
}
@media(max-width:640px){
  .topbar{padding-bottom:12px;}
  .site-nav-inner{padding:6px 14px;}
  .site-nav a{font-size:.79rem;padding:9px 10px;min-height:42px;}
  .portal-grid{grid-template-columns:1fr;}
  .portal-card{min-height:150px;padding:18px;}
  .portal-hero{border-radius:12px;}
  .page-intro{padding:18px;}
  .page-intro p{font-size:.86rem;}
  .record-session{padding:12px;}
}
@media(prefers-reduced-motion:reduce){.site-page{animation:none}.portal-card{transition:none}}
/* Collapsed history records: a visible type/status, expandable file list */
.archive-grid #flight-sessions{display:grid;gap:9px;}
.archive-grid #flight-sessions>details.archive-session{display:block;width:100%;background:#f8fbf9;border:1px solid #d3e2d8;border-radius:10px;padding:2px 13px;}
.archive-grid #flight-sessions>details.archive-session[open]{background:#fff;border-color:#b0cbb9;}
.archive-grid #flight-sessions>details.archive-session summary{overflow-wrap:anywhere;color:#1d4c37;font-size:.85rem;font-weight:730;margin:0;min-height:44px;display:list-item;list-style-position:inside;}
.archive-grid #flight-sessions .archive-files{display:flex;flex-wrap:wrap;gap:5px;border-top:1px solid #e4eee6;padding:10px 0 12px;}
.archive-grid #flight-sessions .archive-files a{display:inline-flex;align-items:center;margin:0;max-width:100%;font-size:.78rem;padding:8px 10px;}
.header-status{display:flex;align-items:center;justify-content:flex-end;gap:11px;flex-wrap:wrap;}
.global-work-status{display:inline-flex;align-items:center;padding:7px 10px;background:#f0f5f1;color:#456458;border:1px solid #d2e0d6;border-radius:8px;font-size:.78rem;font-weight:750;}
.global-work-status.is-busy{background:#e8f4ed;color:#07583f;border-color:#85af93;}
@media(max-width:760px){.header-status{width:100%;justify-content:space-between;gap:8px}.global-work-status{font-size:.75rem}}


/* v21: one-click static IMU tilt on stereo offline page */
.stereo-angle-field{display:flex;flex-direction:column;min-width:0;}
.stereo-angle-field>label{margin-bottom:0;}
.stereo-imu-button{align-self:flex-start;min-height:43px;margin-top:10px;font-size:.87rem;}
#stereo-imu-angle-note{margin-top:8px;line-height:1.6;font-weight:500;color:#356451;}
#page-stereo .stereo-angle-field{max-width:100%;}
@media(max-width:640px){.stereo-imu-button{width:100%;}}


/* v22: separate quality-gated fusion option, not a replacement for v21 */
.v22-analysis-note{margin-top:16px;padding:15px 17px;background:#f4f8f5;border:1px solid #cbded1;border-left:4px solid #39765a;border-radius:9px;}
.v22-analysis-note strong{color:#18583b;font-weight:800;}
.v22-analysis-note p{line-height:1.68;font-size:.85rem;color:#486b57;margin:9px 0 0;}
#stereo-v22-state{font-weight:690;color:#275942;}
#stereo-sessions .v22-launch-button{margin-left:8px;border-color:#82b49b;}
@media(max-width:640px){#stereo-sessions .v22-launch-button{margin:9px 0 0;width:100%;}}


/* v23 N7 flight controller diagnostics — separate from vision experiments */
/* v38 CUAV dashboard */
.fc-page{max-width:1220px;margin:0 auto;--fc-ink:#19382f;--fc-muted:#536c5e;--fc-line:#d9e5de;font-variant-numeric:tabular-nums}
.fc-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:2px 0 17px}.fc-hero h2{font-size:clamp(1.45rem,2.3vw,2rem);line-height:1.2;margin:0 0 6px;letter-spacing:-.025em}.fc-kicker{font-size:.68rem;letter-spacing:.12em;color:#507b69;margin:0 0 7px}.fc-subtitle{font-size:.8rem;color:var(--fc-muted);margin:0}
.fc-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fc-controls button{font-size:.85rem;min-height:42px;padding:9px 16px;border-radius:9px}
.fc-status-pill{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;line-height:1.3;font-weight:780;color:#607067;background:#e8eeea;border-radius:20px;padding:8px 11px;white-space:nowrap}.fc-status-pill:before{content:"";width:8px;height:8px;border-radius:100%;background:currentColor;flex:0 0 auto}
.fc-status-pill.fc-state-live{background:#dcf2e6;color:#0b6745}.fc-status-pill.fc-state-warn{background:#fff0db;color:#89591f}.fc-status-pill.fc-state-error{background:#fbe8e5;color:#982f21}
.fc-linkbar{display:grid;grid-template-columns:minmax(0,1.8fr) repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--fc-line);border-radius:13px;padding:12px 3px;box-shadow:0 2px 7px rgba(30,60,44,.025)}.fc-linkbar>div{padding:3px 13px;border-right:1px solid var(--fc-line);min-width:0}.fc-linkbar>div:last-child{border-right:0}.fc-linkbar small{display:block;color:var(--fc-muted);font-size:.7rem;margin-bottom:3px}.fc-linkbar strong{display:block;font-size:.94rem;color:var(--fc-ink);line-height:1.4;overflow-wrap:anywhere}
.fc-state-note{font-size:.76rem;color:var(--fc-muted);margin:9px 2px 14px;min-height:1.2em}.fc-primary-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:stretch}.fc-page .fc-card{border:1px solid var(--fc-line);box-shadow:0 2px 7px rgba(30,60,44,.035);border-radius:13px;padding:16px 18px;margin:0;min-width:0}
.fc-page .fc-card h3,.fc-page .fc-diagnostics h3{font-size:.95rem;color:var(--fc-ink);font-weight:790;margin:0}.fc-card-head{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:23px;margin-bottom:13px}.fc-meta{color:var(--fc-muted);font-size:.74rem;font-weight:450;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.fc-card-head .fc-meta{text-align:right;margin:0;font-size:.69rem}
.fc-pose{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.8fr);align-items:center;gap:13px}.fc-horizon{display:grid;place-items:center;min-width:0;max-width:235px;width:100%;margin:auto}.fc-horizon svg{display:block;width:100%;height:auto;overflow:visible}.fc-horizon-motion{transform-origin:120px 120px;transition:transform .35s ease-out}
.fc-pose-empty{display:grid;place-items:center;align-content:center;text-align:center;min-height:150px;aspect-ratio:1;background:#f1f5f1;border:1px dashed #cddbd1;border-radius:50%;max-width:210px;margin:auto;width:100%}.fc-pose-empty span{font-size:2rem;line-height:1;color:#82988a;letter-spacing:.11em}.fc-pose-empty p{margin:4px 0 0;font-size:.73rem;color:#6b8172}
.fc-pose-readings{display:grid;gap:4px}.fc-pose-readings>div{border-bottom:1px solid var(--fc-line);padding:5px 0;min-width:0}.fc-pose-readings>div:last-child{border-bottom:0}.fc-pose-readings span{font-size:.76rem;color:var(--fc-muted);display:block}.fc-pose-readings small{color:#739282;font-size:.62rem;margin-left:3px}.fc-pose-readings strong{font-size:clamp(1.22rem,2.2vw,1.55rem);line-height:1.2;color:var(--fc-ink);font-weight:795;white-space:nowrap}
.fc-value{font-size:clamp(1.1rem,1.8vw,1.48rem);font-weight:780;line-height:1.35;color:var(--fc-ink);margin:0 0 6px;overflow-wrap:anywhere}.fc-speed-panel .fc-value{font-size:clamp(1.35rem,2.1vw,1.68rem);margin:6px 0}.fc-speed-unavailable{color:#94642f}.fc-speed-verified{color:#096748}.fc-sync-note{font-size:.74rem;color:#806024;background:#fff8e8;border:1px solid #f1e5ca;border-radius:7px;padding:7px 9px;margin:10px 0 12px}.fc-qual{color:#5b7265;background:#edf3ee;border-radius:6px;padding:4px 7px;font-size:.73rem;font-weight:700;overflow-wrap:anywhere}
.fc-sub-readings{display:grid;grid-template-columns:1fr 1fr;gap:11px}.fc-sub-readings>div{background:#f5f8f5;border-radius:8px;padding:9px 10px;min-width:0}.fc-sub-readings span,.fc-sub-readings small{font-size:.68rem;color:var(--fc-muted);display:block}.fc-sub-readings strong{display:block;font-size:1.07rem;color:var(--fc-ink);line-height:1.5;overflow-wrap:anywhere}
.fc-trend-card{grid-column:1/-1}.fc-trend-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fc-trend{padding:10px 11px 7px;background:#f8faf8;border:1px solid #e1e9e2;border-radius:9px;margin:0;min-width:0}.fc-trend figcaption{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:.75rem;margin:0 4px 2px;color:var(--fc-muted)}.fc-trend figcaption strong{font-size:.77rem;color:var(--fc-ink)}.fc-trend figcaption span{display:flex;gap:4px;align-items:center;flex-wrap:wrap}.fc-trend figcaption i{width:10px;height:3px;border-radius:4px;display:inline-block;margin-left:6px}.fc-legend-roll{background:#167d65}.fc-legend-pitch{background:#c1843e}.fc-legend-speed{background:#347b99}.fc-trend svg{width:100%;height:auto;display:block}.fc-trend svg text{fill:#668070;font-size:9px;font-family:inherit}.fc-plot-line{stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none;vector-effect:non-scaling-stroke}.fc-roll-line{stroke:#167d65;color:#167d65}.fc-pitch-line{stroke:#c1843e;color:#c1843e}.fc-speed-line{stroke:#347b99;color:#347b99}.fc-trend circle{fill:currentColor}
.fc-type-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.fc-type-row .fc-value{margin:0}.fc-ekf-bits{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.fc-bit{font-size:.72rem;font-weight:620;padding:3px 7px;background:#f1f4f1;color:#6b7d70;border:1px solid #dde6de;border-radius:6px}.fc-bit.fc-bit-good{color:#116447;background:#e7f4e9;border-color:#ccdfce}.fc-bit.fc-bit-warn{color:#8b612a;background:#fff7e8;border-color:#f1e4c6}
.fc-diagnostics{padding:7px 16px 10px!important;border:1px solid var(--fc-line);margin:13px 0 0!important;border-radius:11px!important}.fc-diagnostics summary{font-size:.84rem;color:var(--fc-ink);min-height:42px;padding:9px 0}.fc-diagnostic-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fc-diagnostic-grid .fc-value{font-size:1rem;margin:7px 0}.fc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.fc-hero{flex-direction:column;align-items:stretch;gap:11px;margin-bottom:13px}.fc-controls{display:grid;grid-template-columns:auto 1fr 1fr;gap:6px}.fc-controls button{padding:9px 8px;min-height:43px}.fc-status-pill{padding:8px 9px;font-size:.7rem}.fc-linkbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:7px}.fc-linkbar>div{padding:7px 9px;border-right:0;border-bottom:1px solid var(--fc-line)}.fc-linkbar>div:first-child{grid-column:1/-1}.fc-linkbar>div:nth-last-child(-n+2){border-bottom:0}.fc-primary-grid{grid-template-columns:minmax(0,1fr);gap:10px}.fc-card-head{margin-bottom:10px}.fc-page .fc-card{padding:14px}.fc-trend-grid,.fc-diagnostic-grid{grid-template-columns:minmax(0,1fr);gap:10px}.fc-trend-card{grid-column:auto}.fc-pose{grid-template-columns:minmax(0,1.1fr) minmax(0,.78fr);gap:12px}.fc-pose-readings strong{font-size:1.38rem}.fc-pose-empty{min-height:0}.fc-speed-panel .fc-value{font-size:1.45rem}}
@media(max-width:370px){.fc-status-pill{grid-column:1/-1;justify-self:start}.fc-controls{grid-template-columns:1fr 1fr}.fc-sub-readings{gap:7px}}@media(prefers-reduced-motion:reduce){.fc-horizon-motion{transition:none!important}}

/* v24 mobile recording & terrain-test workflow: no duplicated camera stream */
.mobile-record-bar{display:none;}
:root{--mobile-navigation-height:54px;}
@media(max-width:760px){
  html{scroll-padding-top:210px;}
  .site-nav{top:0;z-index:65;}
  .site-nav-inner{
    gap:5px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;touch-action:pan-x pan-y;
  }
  .site-nav a{scroll-snap-align:nearest;}
  .experiment-shell .preview-rail{
    top:var(--mobile-navigation-height);
    max-height:calc(100dvh - var(--mobile-navigation-height) - 8px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  .preview-rail .preview{height:clamp(100px,19dvh,154px);min-height:100px;}
  .experiment-shell.preview-compact .preview-rail .preview{
    height:88px;min-height:88px;max-height:88px;
  }
  .preview-rail-header h2{font-size:.94rem;}
  .preview-rail .preview-size{min-height:42px;}
  .preview-rail #rail-mode{margin:4px 0;font-size:.72rem;}
  .preview-rail #preview-state{font-size:.7rem;margin-top:2px;}
  .preview-camera-actions{margin-top:7px;}
  .preview-camera-actions button{min-height:44px;padding:7px 8px;}
  .experiment-content,.site-page{min-width:0;}
  #camera-heading,#settings-heading,#sync-heading,#capture-heading,
  #experiment-heading,.workflow-guide{scroll-margin-top:245px;}
  /* Keep the live video visible above sliders even when the mobile keyboard
     reduces visual viewport height; scroll parameters independently. */
  .tune-overlay{padding:0;overscroll-behavior:contain;}
  .tune-shell{height:100dvh;width:100%;border-radius:0;}
  .tune-grid{
    grid-template-rows:clamp(156px,26dvh,230px) minmax(0,1fr);
    min-height:0;gap:7px;padding:7px;
  }
  .tune-visual{min-height:0;}
  .tune-parameters{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 12px;}
  .tune-header{padding:8px 10px;gap:8px;flex-wrap:nowrap;}
  .tune-header button{min-height:44px;}
  .tune-header h2{font-size:.95rem;margin:0;}
  .tune-parameters input[type="number"],.tune-parameters select{font-size:16px;}
  #page-record{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px));}
  .mobile-record-bar:not([hidden]){
    position:fixed;bottom:0;left:0;right:0;z-index:90;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,42%);
    align-items:center;gap:10px;
    padding:12px 13px calc(12px + env(safe-area-inset-bottom,0px));
    border-top:2px solid #9fc5ad;background:rgba(250,253,250,.98);
    box-shadow:0 -8px 25px rgba(15,52,29,.16);
  }
  .mobile-record-summary{min-width:0;display:grid;gap:4px;}
  .mobile-record-summary strong{color:#164934;font-size:.91rem;line-height:1.3;}
  .mobile-record-summary span{color:#4f6b5b;font-size:.74rem;overflow-wrap:anywhere;}
  .mobile-record-stop{
    min-height:56px;min-width:0;padding:11px 9px;
    border:2px solid #8b2d24;border-radius:10px;background:#a7352a;
    color:white;font-size:.9rem;font-weight:800;white-space:normal;
  }
  .mobile-record-stop:disabled{background:#dde4dd;color:#536759;border-color:#9cab9f;}
}
@media(max-width:370px){
  .tune-header .actions{gap:5px;}
  .tune-header button{font-size:.72rem;padding:5px 6px;}
  .mobile-record-bar:not([hidden]){grid-template-columns:minmax(0,1fr) 130px;gap:7px;padding-inline:8px;}
}
@media(max-width:760px){
  /* Override the generic mobile .actions{flex-direction:column} inside the
     tuner header: keep the close control reachable on narrow screens. */
  .tune-header .actions{
    display:flex;flex-direction:row;flex-wrap:wrap;
    justify-content:flex-end;align-items:center;margin:0;gap:6px;
  }
  .tune-header .actions>button{flex:0 1 auto;max-width:100%;}
  input.tune-range{height:44px;min-height:44px;}
  .tune-parameters{padding-bottom:calc(15px + env(safe-area-inset-bottom,0px));}
}
@media(max-width:900px) and (max-height:500px){
  .tune-grid{grid-template-rows:105px minmax(0,1fr);}
  .tune-header{padding:6px 9px;}
  .preview-rail .preview{height:95px;min-height:95px;}
}


/* v26 read-only historical result visualizations */
.stereo-results-v26 {scroll-margin-top:90px;}
.result-metrics-v26{display:grid;grid-template-columns:repeat(auto-fit,minmax(154px,1fr));gap:10px;margin:15px 0;}
.result-metrics-v26 .metric{padding:13px 15px;background:#f3f7f4;border:1px solid #c3d4c9;border-radius:9px;}
.result-metrics-v26 .metric strong{display:block;font-size:1.4rem;line-height:1.4;}
.result-metrics-v26 .metric span{display:block;font-size:.87rem;color:#476054;}
.stereo-results-v26 figure{margin:18px 0 25px;}
.stereo-results-v26 figcaption{font-size:.97rem;font-weight:700;margin-bottom:9px;line-height:1.55;}
.stereo-results-v26 figure img{display:block;width:100%;height:auto;border:1px solid #d4dfd7;border-radius:8px;background:white;aspect-ratio:118/58;object-fit:contain;}
.result-reasons-v26 .reason-group{border-top:1px solid #d6e2d9;margin-top:14px;padding-top:13px;}
.result-reasons-v26 .reason-group h4{margin:0 0 7px;font-size:1rem;}
.result-reasons-v26 .reason-group p{margin:5px 0;font-size:.9rem;color:#3b5649;}
.stereo-compare-v26{margin-top:22px;}
.stereo-compare-v26 summary{font-size:1.03rem;}
.stereo-compare-v26 th,.stereo-compare-v26 td{text-align:left;white-space:normal;font-size:.88rem;min-width:90px;}
.stereo-results-v26 #stereo-results-video,.stereo-results-v26 #stereo-results-reference{padding:8px 0;}
@media(max-width:760px){
  .stereo-results-v26{padding:16px 12px;}
  .result-metrics-v26{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .result-metrics-v26 .metric{padding:9px 11px;}
  .result-metrics-v26 .metric strong{font-size:1.2rem;}
  .stereo-results-v26 figure{margin:12px 0 20px;}
  .stereo-results-v26 figcaption{font-size:.87rem;}
  .stereo-results-v26 .file-links a{flex:1 1 46%;font-size:.87rem;padding:10px;}
}


/* v27 IMU startup: prominently actionable but not a false green readiness badge */
.imu-startup-v27{
  margin:12px 0;padding:13px 15px;border:1px solid #bccac3;border-left:4px solid #7a9290;
  border-radius:8px;background:rgba(124,152,141,.06);line-height:1.6;
}
.imu-startup-v27 strong{font-size:1rem;display:block;margin-bottom:6px;}
.imu-startup-v27 p{margin:5px 0;}
.imu-startup-v27[data-state="ready"]{border-left-color:#277d57;}
.imu-startup-v27[data-state="failed"],.imu-startup-v27[data-state="incomplete"]{border-left-color:#b77638;}
@media(max-width:760px){.imu-startup-v27{padding:10px 12px;font-size:.94rem;}}

/* v28: concentrated, mobile-friendly experiment preparation and output */
.experiment-readiness-v28,.experiment-result-action-v28{
 border:1px solid #cad8d0;border-radius:10px;padding:16px;margin:14px 0;
 background:rgba(104,152,134,.055);min-width:0;
}
.experiment-readiness-v28 .fields,.experiment-result-action-v28 .actions{margin-top:10px}
.experiment-readiness-v28 .section-heading{margin:0 0 10px}
.experiment-readiness-v28 .workflow-confirmation{display:flex;align-items:flex-start;gap:9px;margin:12px 0}
.experiment-readiness-v28 .workflow-confirmation input{margin-top:6px;flex:0 0 auto}
.experiment-result-action-v28 strong{display:block;margin:4px 0}
@media(max-width:760px){
 .experiment-readiness-v28,.experiment-result-action-v28{padding:13px 11px}
 .experiment-readiness-v28 .fields{display:grid;grid-template-columns:minmax(0,1fr)}
 .experiment-result-action-v28 .actions{display:grid;grid-template-columns:minmax(0,1fr)}
}


/* v29: optional recording-only observation; never changes recorder dimensions. */
.record-live-preview{margin:14px 0;padding:12px;border:1px solid #cfddd4;border-radius:12px;background:#f7faf8}
.record-live-preview .section-heading{margin-bottom:8px}
.record-live-preview-frame{display:flex;align-items:center;justify-content:center;min-height:170px;background:#18221f;border-radius:9px;overflow:hidden}
.record-live-preview-frame img{display:block;width:100%;max-height:310px;object-fit:contain}
.record-live-preview-frame img[hidden]{display:none}
.record-live-preview-frame .caption{color:#d7e4dc;padding:18px;text-align:center}

/* v30: recording page, visually grouped without moving or duplicating controls */
#page-record{min-width:0;overflow-wrap:anywhere;}
#page-record .panel{min-width:0;}
#page-record #flight-recorder-panel{padding:clamp(17px,2.4vw,28px);}
#page-record .caption{line-height:1.6;}
#page-record .fields.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px;}
#page-record label{min-width:0;overflow-wrap:anywhere;}
#page-record input,#page-record select{max-width:100%;min-width:0;}
#page-record .experiment-readiness-v28{
  margin:20px 0 22px;padding:clamp(15px,2.3vw,23px);
  background:linear-gradient(180deg,#f7faf8,#fff);border-color:#c7dbce;
}
#page-record .experiment-readiness-v28 h3{font-size:1.09rem;line-height:1.4;margin:0 0 6px;color:#164d37;}
#page-record .record-hint-label{display:inline-block;vertical-align:middle;font-size:.72rem;font-weight:650;color:#426451;background:#e8f1eb;border-radius:5px;padding:3px 7px;margin-left:7px;}
#page-record .experiment-readiness-v28 .fields{margin-top:15px;}
#page-record .experiment-readiness-v28 .fields label{margin:0;}
#page-record .experiment-readiness-v28 .workflow-confirmation{margin:16px 0;line-height:1.5;font-weight:600;}
#page-record .experiment-readiness-v28 .workflow-confirmation input{
 width:22px;height:22px;min-height:22px;margin:2px 0 0;accent-color:var(--green);
}
#page-record .record-preflight-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;
}
#page-record .record-preflight-actions button{
 width:100%;min-width:0;min-height:54px;white-space:normal;overflow-wrap:anywhere;
 text-align:center;padding:10px 13px;font-size:.88rem;
}
#page-record #flight-preflight-status-v28,
#page-record #record-scene-check-status-v28{
 margin:9px 0 0;padding:9px 12px;border-radius:7px;background:#f0f5f1;
}
#page-record .record-operate-grid{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 align-items:stretch;gap:16px;margin:20px 0;
}
#page-record .record-operate-main{
 display:flex;flex-direction:column;min-width:0;padding:16px;
 background:#f7faf8;border:1px solid #cbded1;border-radius:12px;
}
#page-record .record-step-heading{font-size:1rem;margin:0 0 12px;color:#215b43;}
#page-record .record-operate-main>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 13px;}
#page-record .record-operate-main>.actions button{width:100%;min-width:0;min-height:56px;white-space:normal;padding:10px;}
#page-record #flight-status{margin:auto 0 0;line-height:1.65;font-size:.9rem;}
#page-record .record-live-preview{
 display:flex;flex-direction:column;min-width:0;margin:0;padding:14px;
}
#page-record .record-live-preview .section-heading{gap:7px;align-items:center;}
#page-record .record-live-preview .section-heading strong{font-size:.94rem;line-height:1.5;}
#page-record .record-live-preview-frame{flex:1;min-height:170px;max-height:310px;aspect-ratio:4/3;}
#page-record .record-live-preview-frame img{height:100%;width:100%;object-fit:contain;}
#page-record .record-live-preview-note{margin:9px 0 0;font-size:.8rem;}
#page-record .imu-startup-v27{margin:18px 0 12px;}
#page-record #flight-details{padding:13px 15px;background:#f4f8f5;border-radius:9px;}
#page-record .record-results-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
#page-record .record-results-actions>*{min-width:0;white-space:normal;overflow-wrap:anywhere;}
#page-record .experiment-result-action-v28{padding:18px;margin:18px 0;}
@media(max-width:820px){
 #page-record .record-operate-grid{grid-template-columns:minmax(0,1fr);}
 #page-record .record-live-preview-frame{max-height:340px;aspect-ratio:4/3;}
 #page-record .record-operate-main{padding:13px;}
}
@media(max-width:640px){
 #page-record #flight-recorder-panel{padding:15px 12px;}
 #page-record .fields.two{grid-template-columns:minmax(0,1fr);}
 #page-record .experiment-readiness-v28{padding:13px 12px;}
 #page-record .record-preflight-actions{grid-template-columns:minmax(0,1fr);}
 #page-record .record-preflight-actions button{min-height:46px;}
 #page-record .record-operate-main>.actions{grid-template-columns:repeat(2,minmax(0,1fr));}
 #page-record .record-operate-main>.actions button{font-size:.85rem;padding:9px 6px;}
 #page-record .record-results-actions{grid-template-columns:minmax(0,1fr);}
 #page-record .record-live-preview{padding:10px;}
 #page-record .record-live-preview-frame{min-height:155px;max-height:270px;}
 #page-record .experiment-readiness-v28 h3{font-size:1rem;}
 #page-record #flight-status{font-size:.85rem;}
}
@media(max-width:365px){
 #page-record .record-operate-main>.actions{grid-template-columns:minmax(0,1fr);}
 #page-record .record-hint-label{margin:5px 0 0;}
}
/* Keep the last tab on the far right at desktop sizes, without changing mobile scroll logic. */
@media(min-width:1440px){#app-nav .site-nav-inner{justify-content:space-between;}}

/* v31: explicit, read-only analysis funnel; no shared v21/v22 denominator. */
.stereo-workflow-v31{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:17px}
.stereo-workflow-v31>div{display:flex;flex-direction:column;gap:5px;padding:13px 14px;
 border:1px solid #cbded2;border-radius:10px;background:#f6faf7;min-width:0}
.stereo-workflow-v31 strong{font-size:.92rem;color:#174c36}
.stereo-workflow-v31 span{font-size:.79rem;line-height:1.5;color:#496456}
.stereo-diagnostics-v31{border:1px solid #bdd4c4;border-radius:12px;
 background:#fafcfb;margin:18px 0;padding:clamp(14px,2vw,21px);min-width:0}
.stereo-diagnostics-v31 h4{font-size:1rem;margin:0;color:#174c36}
.stereo-diagnostics-v31 .section-heading{align-items:center;margin-bottom:10px}
.stereo-v31-mark{font-size:.78rem;color:#516b5c;white-space:normal}
.stereo-verdict-v31{border-left:4px solid #407761;padding:11px 12px;background:#edf5ef;
 font-weight:680;font-size:.92rem;line-height:1.65;margin:10px 0 15px}
.stereo-stages-v31{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.stereo-stage-v31{border:1px solid #d3e1d8;background:white;border-radius:9px;padding:11px;min-width:0}
.stereo-stage-v31 strong,.stereo-stage-v31 small{display:block;line-height:1.55}
.stereo-stage-v31 strong{font-size:.83rem;color:#294c3b}
.stereo-stage-count-v31{display:block;font-size:1.3rem;font-weight:790;color:#164934;margin:7px 0;font-variant-numeric:tabular-nums}
.stereo-stage-progress-v31{height:8px;background:#e0e9e2;border-radius:20px;overflow:hidden;margin-bottom:9px}
.stereo-stage-progress-v31>div{height:100%;background:#337759;max-width:100%;border-radius:20px}
.stereo-stage-v31 small{color:#587162;font-size:.75rem}
.stereo-diagnosis-columns-v31{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:19px 0}
.stereo-diagnosis-columns-v31>div{border-top:1px solid #d7e4db;padding-top:13px;min-width:0}
.stereo-diagnosis-columns-v31 h4{margin-bottom:9px}
.stereo-diagnosis-columns-v31 p{font-size:.85rem;color:#496457;line-height:1.62;margin:6px 0;overflow-wrap:anywhere}
.stereo-compare-windows-v31{border-top:1px solid #d7e4db;padding-top:9px}
.stereo-compare-windows-v31 summary{font-size:.91rem;color:#19583f}
.stereo-compare-windows-v31 th,.stereo-compare-windows-v31 td{text-align:left;font-size:.78rem;
 padding:8px 10px;max-width:240px;white-space:normal;overflow-wrap:anywhere}
.stereo-compare-windows-v31 .table-scroll{max-height:510px;overflow:auto}
.stereo-disclaimer-v31{font-size:.78rem}
#page-stereo .record-session{min-width:0;}
#page-stereo .record-session>button{margin:5px 7px 5px 0;white-space:normal;}
@media(max-width:760px){
 .stereo-workflow-v31{grid-template-columns:minmax(0,1fr)}
 .stereo-workflow-v31>div{padding:9px 12px}
 .stereo-stages-v31{grid-template-columns:minmax(0,1fr)}
 .stereo-diagnosis-columns-v31{grid-template-columns:minmax(0,1fr);gap:9px}
 .stereo-stage-v31{padding:10px 12px}
 .stereo-compare-windows-v31 th,.stereo-compare-windows-v31 td{min-width:90px;white-space:normal}
}

#flight-ground-nav-v32{display:inline-block;width:22px;height:22px;min-height:22px;margin:0 6px 0 0;vertical-align:middle;accent-color:#075740}

/* v33: simple, mobile-first laboratory workflow; advanced tools are opt-in. */
:root{--v33-ink:#18372d;--v33-muted:#587065;--v33-soft:#f2f8f4}
body{background:#f5f8f5}
.topbar{padding-top:13px;padding-bottom:11px}
.topbar h1{font-size:clamp(1.33rem,2.2vw,1.85rem)}
.header-subtitle{font-size:.87rem}
.site-nav-inner{gap:9px;align-items:center;flex-wrap:wrap;overflow:visible;padding-block:8px}
.site-nav a{font-size:.91rem;padding:9px 14px}
.site-nav-more{position:relative;margin:0 0 0 auto;min-width:95px}
.site-nav-more>summary{display:flex;justify-content:center;align-items:center;
  min-height:42px;cursor:pointer;padding:8px 12px;border-radius:9px;
  background:#eef4f0;border:1px solid #ccdcd2;color:#25563f;
  font-weight:750;font-size:.88rem;list-style:none}
.site-nav-more>summary::-webkit-details-marker{display:none}
.site-nav-more>summary::after{content:"⌄";margin-left:7px;color:#60826a;font-size:1.1rem}
.site-nav-more[open]>summary{background:#e2f2e7;border-color:#9fc5a9}
.site-nav-extras{position:absolute;top:calc(100% + 6px);right:0;z-index:130;
  background:white;border:1px solid #c5d7c9;box-shadow:0 9px 28px #1c4b342b;
  border-radius:13px;min-width:195px;padding:8px;display:grid;gap:5px}
.site-nav-extras a{justify-content:flex-start;white-space:normal;width:100%;font-size:.88rem}
.portal-hero{padding:clamp(20px,2.8vw,34px);margin-bottom:16px}
.portal-hero p{margin:0 0 11px}
.portal-grid.portal-simple-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.portal-simple-grid .portal-card{min-height:165px;padding:20px 19px}
.portal-simple-grid .portal-card strong{font-size:1.25rem}
.portal-simple-grid .portal-card .portal-card-kicker{margin-bottom:7px}
.portal-simple-grid .portal-card-primary{background:linear-gradient(145deg,#eef8f0,#fff);border-color:#78ae91}
.portal-more-tools{margin:16px 0;border:1px solid #d3e2d7;background:#fff;border-radius:11px;padding:0 17px}
.portal-more-tools summary{color:#496b58;font-size:.87rem}
.portal-shortcuts{display:flex;flex-wrap:wrap;gap:10px;padding-bottom:16px}
.portal-shortcuts a{display:inline-flex;padding:9px 13px;border:1px solid #abc9b6;
  text-decoration:none;color:#075740;border-radius:9px;font-size:.9rem}
.page-intro{padding:18px 23px}
.page-intro .eyebrow{font-size:.74rem}
.page-intro h2{margin-bottom:2px}
.page-intro p{font-size:.9rem}
#flight-recorder-panel>.caption{margin:0 0 10px}
#flight-record-label{max-width:100%}
#flight-recorder-panel>.section-heading h2{font-size:1.15rem}
#flight-recorder-panel label.caption:has(#flight-ground-nav-v32){
  display:flex;align-items:flex-start;gap:8px;font-weight:650;
  background:#f2f8f4;border-radius:9px;padding:11px;margin-top:10px;
}
#flight-ground-nav-v32{flex:0 0 22px}
.record-mode-hint{margin:3px 0 11px}
.compact-explain{margin:0 0 14px;border:0;padding:0 3px}
.compact-explain>summary{padding:4px 0;font-size:.83rem;color:#426552;min-height:30px}
.compact-explain p{font-size:.83rem;color:#566f62}
.experiment-readiness-v28{margin:14px 0;padding:16px 18px}
.experiment-readiness-v28 .section-heading h3{margin:0}
.experiment-readiness-v28 .workflow-confirmation{font-weight:600;color:#345747}
.record-ready-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:9px;margin-top:13px}
.record-ready-actions button{min-height:42px;padding:9px 15px;font-size:.9rem;flex:1 1 180px}
.record-advanced-v33{margin:12px 0 0;border-top:1px solid #d8e6db;padding-top:5px}
.record-advanced-v33 summary,.record-telemetry-v33 summary{
  font-size:.87rem;color:#365f48;min-height:38px}
.record-advanced-v33[open]{padding-bottom:7px}
.record-advanced-v33 .actions{flex-wrap:wrap}
.record-advanced-v33 .actions button{font-size:.86rem;min-height:42px}
#flight-status{font-size:.92rem;margin:11px 0 0;padding:12px 14px}
.record-telemetry-v33{margin:9px 0 13px;padding:0 12px;border:1px solid #d7e3da;border-radius:9px}
#flight-startup-imu-panel[hidden]{display:none!important}
#record-finish-host{margin:15px 0}
#record-finish-host .experiment-result-action-v28{background:linear-gradient(125deg,#eff8f1,#fff);padding:16px 19px}
#record-finish-host .experiment-result-action-v28>strong{font-size:1.07rem;color:#174730}
#record-finish-host .record-results-actions button{min-height:48px}
#page-stereo .stereo-analysis-setup-v33{padding:11px 19px}
#page-stereo .stereo-analysis-setup-v33>#stereo-v22-state{margin:5px 0 9px}
.detail-card{border:1px solid #d3e3d9;background:#fbfdfb;border-radius:11px;
  padding:0 14px;margin:13px 0}
.detail-card summary{min-height:43px;color:#315a42;font-size:.9rem}
.detail-card[open]>summary{border-bottom:1px solid #e0ebe3}
#stereo-results-summary{margin-top:13px}
#stereo-results-figures{margin-top:10px}
.path-message-v33{border-radius:10px;border:1px solid #bed9c7;
  background:#f0f8f2;padding:12px 14px;font-size:.91rem;color:#25543a;line-height:1.6}
.stereo-results-v26 figure{margin:15px 0}
.stereo-results-v26 figure figcaption{font-size:1rem}
.stereo-results-v26 figure img{aspect-ratio:auto;max-height:620px}
.simple-downloads-v33{align-items:start}
.simple-downloads-v33>a{font-size:.88rem;padding:11px 13px;min-height:44px}
.download-formats-v33{flex:1 1 100%;border-top:1px solid #e1e9e3;margin:1px 0}
.download-formats-v33 summary{min-height:38px;font-size:.86rem;color:#42664f}
.download-formats-v33 .file-links{margin:0 0 10px}
.compact-more-btn{margin-top:12px;min-height:42px;font-size:.9rem}
#stereo-diagnostic-details .stereo-diagnostics-v31{margin:10px 0}
.record-session[hidden]{display:none!important}
@media(max-width:900px){
  .portal-grid.portal-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .topbar{padding-top:9px;padding-bottom:9px}
  .header-subtitle{font-size:.8rem}
  .site-nav-inner{display:flex;flex-wrap:nowrap;overflow:visible;gap:2px;
    justify-content:space-between;padding:6px 8px}
  .site-nav-inner>a{min-width:0;flex:1 1 auto;font-size:clamp(.72rem,3.05vw,.83rem);
    padding:8px 6px;min-height:38px}
  .site-nav-more{margin-left:2px;min-width:0;flex:0 0 auto}
  .site-nav-more>summary{padding:8px 7px;min-height:38px;font-size:clamp(.72rem,3vw,.82rem)}
  .site-nav-more>summary::after{margin-left:3px}
  .site-nav-extras{min-width:182px}
  .portal-grid.portal-simple-grid{grid-template-columns:1fr;gap:11px}
  .portal-simple-grid .portal-card{min-height:0;padding:17px 18px}
  .portal-simple-grid .portal-card strong{font-size:1.13rem;margin-bottom:5px}
  .portal-simple-grid .portal-card-link{margin-top:10px}
  .portal-hero{padding:18px;border-radius:11px}
  #record-controls-host>.panel{padding:15px 13px}
  .page-intro{padding:14px 15px}
  .experiment-readiness-v28{padding:12px 12px}
  #record-finish-host .experiment-result-action-v28{padding:13px 12px}
  #stereo-results-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #stereo-results-summary .metric{min-width:0}
  .record-operate-grid{gap:10px}
  .site-page{min-height:35vh}
}
@media(max-width:370px){
  .site-nav-inner>a{font-size:11px;padding-inline:4px}
  .site-nav-more>summary{font-size:11px;padding-inline:5px}
}

.record-next-v33{margin:9px 0 12px;padding:10px 13px;border:1px solid #b6d1be;
  border-radius:9px;background:#f0f8f2;color:#20513a;font-size:.92rem;line-height:1.55;font-weight:600}
.record-next-v33[data-state="warning"]{background:#fff7e9;border-color:#d7b88c;color:#775020}
.record-next-v33[data-state="recording"]{background:#edf6f2;border-color:#7dbaa1}
.record-next-v33[data-state="done"]{background:#eaf7ec;border-color:#9ecba8}

/* v34: user-first recording and IMU preflight workflow */
.record-calibration-step-v34{display:flex;gap:12px;padding:15px 0;border-bottom:1px solid var(--border, #dae0e3)}
.step-circle-v34{flex:0 0 26px;height:26px;border-radius:50%;background:#e0ebed;color:#1d5964;display:inline-flex;align-items:center;justify-content:center;font-weight:bold}
.record-calibration-step-v34>div{flex:1;min-width:0}
.record-calibration-step-v34 .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
#flight-delete-confirm-v34{margin-top:12px}
#flight-imu-precheck-status-v34{margin-top:8px}
#flight-delete-confirm-v34[hidden]{display:none}
@media(max-width:650px){.record-calibration-step-v34 .actions{flex-direction:column}.record-calibration-step-v34 .actions button{width:100%}}

.record-calibration-step-v34[hidden]{display:none}

.record-measure-confirm-v34{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}

/* v35 clear capture fields, readback, and verifiable analysis stage */
.record-tilt-row-v35{display:flex;align-items:stretch;gap:8px}
.record-tilt-row-v35 input{flex:1;min-width:80px;margin-top:0}
.record-tilt-row-v35 button{flex:0 0 auto;max-width:46%;white-space:normal}
.record-tilt-v35 label{margin-bottom:6px}
#record-imu-angle-status-v35{margin:8px 0 16px;min-height:1.5em}
#record-imu-angle-status-v35[data-state="success"]{color:#125c3a;font-weight:700}
#record-imu-angle-status-v35[data-state="error"]{color:#8d2a1b;font-weight:700}
#record-imu-angle-status-v35[data-state="loading"]{color:#315a70}
#stereo-results-panel{scroll-margin-top:22px}
.analysis-progress-v35{border:1px solid #a3b6ae;background:#f6faf8;border-radius:10px;padding:14px 16px;margin-bottom:14px}
.analysis-progress-v35[hidden]{display:none}
.analysis-progress-v35 strong{display:block;margin-bottom:8px}
.analysis-progress-v35 progress{display:block;width:100%;height:15px;accent-color:#12654b}
.analysis-progress-v35 .caption{margin-top:8px}
@media(max-width:670px){.record-tilt-row-v35{flex-direction:column}.record-tilt-row-v35 button{max-width:100%}}

/* v39 passive UART4 flight-data capture and measured receive diagnostics. */
.record-fc-option-v39{display:flex;align-items:flex-start;gap:12px;margin:12px 0;padding:12px;border:1px solid #bdceca;border-radius:10px;background:#f6faf8;cursor:pointer}
.record-fc-option-v39 input[type="checkbox"]{width:19px;height:19px;flex:0 0 19px;margin:4px 0 0;accent-color:#075740}
.record-fc-option-v39 span{min-width:0}
.record-fc-option-v39 small{display:block;color:#51645c;font-weight:normal}
.flight-fc-health-v39{margin:12px 0;padding:14px;border:1px solid var(--border);border-radius:10px;background:#f8fbfa}
.flight-fc-health-v39[hidden],#flight-fc-mode-note-v39[hidden],#flight-legacy-nav-note-v39[hidden]{display:none}
.flight-fc-metrics-v39{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:8px;margin:10px 0}
.flight-fc-metrics-v39>div{padding:9px 10px;border:1px solid #c8d7d1;border-radius:7px;background:#fff;min-width:0;overflow-wrap:anywhere}
.flight-fc-metrics-v39 strong{font-size:.86rem}
.flight-fc-metrics-v39 p{margin:4px 0 0;font-size:.85rem;font-variant-numeric:tabular-nums}
#flight-fc-summary-v39,#flight-fc-quality-v39{overflow-wrap:anywhere}
.record-fc-analysis-v39{margin-top:15px;padding-top:12px;border-top:1px solid var(--border)}
.record-fc-analysis-v39[hidden]{display:none}
.record-fc-analysis-v39 h3{margin:0 0 5px}
.record-fc-analysis-v39 .notice{overflow-wrap:anywhere}
