:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#26352f;background:#f5f7f6;font-synthesis:none;font-size:14px;letter-spacing:0;--border:#dde3df;--muted:#7a8780;--accent:#087c68}
*{box-sizing:border-box;letter-spacing:0}
body{margin:0;height:100dvh;overflow:hidden}
button,a,input{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button,a{touch-action:manipulation}
button{color:inherit}
button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #0c9f82;outline-offset:3px}
button:disabled{opacity:.45;cursor:default}
button, a{-webkit-user-select:none;user-select:none}
svg{width:18px;height:18px;stroke-width:1.6;flex:none}
[hidden]{display:none!important}
.app-header{height:64px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 25px;gap:14px}
.brand{display:flex;align-items:center;gap:11px;font-weight:650;font-size:17px;white-space:nowrap}
.brand>svg{width:26px;height:26px;color:var(--accent)}
.brand-sub{border-left:1px solid var(--border);padding-left:15px;margin-left:4px;font-weight:400;font-size:13px;color:#6d7b73}
.header-end{display:flex;align-items:center;gap:25px;font-size:11px;color:#7b8780}
.local-mark{display:flex;align-items:center;gap:7px;color:#52665b}
.local-mark>span,.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#17937b;flex:none}
.build-label{font-size:10px}
.workspace{height:calc(100dvh - 64px);display:flex;position:relative}
.sidebar{width:248px;flex:0 0 248px;background:#fafbfa;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:26px 17px 0;overflow:hidden;z-index:12}
.section-heading{display:flex;align-items:center;justify-content:space-between;min-height:24px;margin-bottom:12px;padding:0 5px}
.section-heading h2{font-size:11px;font-weight:600;margin:0;color:#6b7971}
.section-heading>span{font-size:10px;color:#929b96;font-variant-numeric:tabular-nums}
.section-heading>svg{width:14px;height:14px;color:#939d96}
.scene-list{display:flex;flex-direction:column;gap:7px}
.scene-item{display:flex;align-items:center;text-align:left;gap:12px;padding:10px 8px;width:100%;background:transparent;border:1px solid transparent;border-radius:6px;min-height:67px;position:relative}
.scene-item:hover{background:#f0f4f1}
.scene-item[aria-pressed=true]{background:#e9f2ee;border-color:#ceded5}
.scene-item[aria-pressed=true]::before{position:absolute;content:"";width:3px;height:20px;background:var(--accent);left:-1px;border-radius:2px}
.scene-thumb{width:65px;height:47px;object-fit:cover;flex:none;border-radius:3px;mix-blend-mode:multiply}
.scene-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.scene-copy strong{font-size:13px;font-weight:600}
.scene-copy small{font-size:10px;color:#819087}
.versions-section{border-top:1px solid var(--border);margin-top:24px;padding-top:23px}
.segmented{display:flex;align-items:center;background:#eaf0ec;padding:3px;border-radius:5px;gap:2px}
.segmented button{border:0;border-radius:3px;background:transparent;display:flex;align-items:center;justify-content:center}
#version-list button{flex:1;min-width:0;min-height:35px;font-size:12px;gap:5px;color:#748078}
#version-list small{font-size:10px;color:#87948b}
.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #243d2412;color:#1d5947!important}
.groups-section{margin-top:27px;min-height:0;flex:1;display:flex;flex-direction:column}
.group-list{overflow:auto;margin:0 -6px;padding:0 6px 16px;scrollbar-width:thin}
.group-row{min-height:37px;display:flex;align-items:center;gap:9px;padding:5px 5px;cursor:pointer;font-size:12px;color:#5c6c63;border-radius:4px}
.group-row:hover{background:#edf2ef}
.group-row input{margin:0;accent-color:var(--accent);width:14px;height:14px;cursor:pointer}
.group-row .count{margin-left:auto;color:#9aa49e;font-size:10px}
.sidebar-footer{height:43px;flex:0 0 43px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);font-size:10px;color:#939d96}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.scene-header{height:74px;flex:0 0 74px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 27px;background:#fff;border-bottom:1px solid var(--border)}
.scene-heading{display:flex;align-items:center;gap:13px;min-width:0}
h1{margin:0;font-size:19px;font-weight:600;white-space:nowrap}
#version-tag{font-size:10px;color:#537565;background:#edf4ef;padding:4px 6px;border-radius:3px}
.file-actions{display:flex;gap:7px}
.action-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d7dfd9;background:#fff;min-height:34px;padding:6px 11px;border-radius:4px;text-decoration:none;color:#53675b;font-size:11px;position:relative;cursor:pointer}
.action-button[hidden]{display:none}
.action-button:hover{border-color:#9bb7a8;background:#f6faf8}
.action-button svg{width:15px;height:15px}
.viewport{position:relative;flex:1;min-height:0;overflow:hidden;background:#e9eeeb}
#scene-canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-3px}
.view-toolbar{position:absolute;top:20px;left:23px;display:flex;align-items:center;gap:3px;background:#ffffffed;border:1px solid #d9e1db;padding:4px;border-radius:6px;box-shadow:0 2px 10px #25352805}
.view-tabs{padding:0;background:transparent}
.view-tabs button{width:36px;height:34px;color:#87978d}
.view-tabs button[aria-pressed=true]{background:#e9f2ed;box-shadow:none;color:var(--accent)!important}
.tool-separator{width:1px;height:19px;background:#dfe6e0;margin:0 4px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:35px;height:34px;padding:0;border:0;background:transparent;border-radius:4px;color:#63786b;position:relative;flex:none}
.icon-button:hover{background:#edf3ef;color:#155a43}
.icon-button[aria-pressed=true]{color:var(--accent);background:#deeee5}
.icon-button.small{width:25px;height:25px}
.icon-button.small svg{width:15px;height:15px}
.right-tools{position:absolute;top:20px;right:21px;display:flex;flex-direction:column;align-items:center;padding:4px;background:#ffffffed;border:1px solid #d9e1db;border-radius:6px}
.right-tools>span{height:1px;width:20px;background:#dfe6e0;margin:4px 0}
[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;top:calc(100% + 9px);transform:translateX(-50%);background:#263e32;color:#fff;padding:6px 8px;border-radius:4px;white-space:nowrap;font-size:11px;opacity:0;pointer-events:none;transition:opacity .12s;z-index:50}
[data-tip]:hover::after,[data-tip]:focus-visible::after{opacity:1}
.right-tools [data-tip]::after{top:50%;left:auto;right:calc(100% + 9px);transform:translateY(-50%)}
.loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:13px;min-width:150px;padding:24px;background:#f9fbfaed;border:1px solid var(--border);border-radius:7px;color:#63766a}
.loading strong{font-size:13px;font-weight:500}
.loading>span:last-of-type{font-size:11px;font-variant-numeric:tabular-nums}
.spinner{width:23px;height:23px;border:2px solid #c4d8cc;border-top-color:#168767;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.selection{position:absolute;bottom:20px;left:23px;background:#fffffff2;border:1px solid #d5dfd7;box-shadow:0 4px 20px #23462b08;padding:10px 10px 10px 14px;display:flex;align-items:center;gap:12px;border-radius:5px;max-width:calc(100% - 90px)}
.selection>svg{color:#348466;width:17px}
.selection>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.selection strong{font-weight:500;font-size:12px}
.selection span{font:10px ui-monospace,Consolas,monospace;color:#8a978e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:230px}
.axis-label{position:absolute;right:29px;bottom:29px;width:33px;height:37px;font:10px ui-monospace,monospace;pointer-events:none}
.axis-y{position:absolute;left:13px;top:0;color:#34845c}
.axis-z{position:absolute;left:0;bottom:0;color:#5b88b5}
.axis-x{position:absolute;right:0;bottom:0;color:#bc725e}
.statusbar{height:35px;flex:0 0 35px;display:flex;align-items:center;gap:20px;padding:0 23px;border-top:1px solid var(--border);background:#fff;color:#87938b;font-size:10px;font-variant-numeric:tabular-nums}
#model-status{display:flex;align-items:center;gap:7px;color:#637b6b}
#file-size{margin-left:auto}
.mobile-only{display:none}
@media(max-width:900px){
  .sidebar{width:213px;flex-basis:213px;padding-left:12px;padding-right:12px}
  .scene-thumb{width:52px;height:41px}.scene-item{gap:8px}
  .scene-header{padding:0 19px}.header-end{gap:14px}
}
@media(max-width:640px){
  .app-header{height:56px;padding:0 13px;gap:7px;justify-content:flex-start}
  .brand{font-size:15px;gap:8px}.brand>svg{width:22px;height:22px}.brand-sub{display:none}
  .header-end{margin-left:auto}.build-label{display:none}.local-mark{font-size:10px}
  .workspace{height:calc(100dvh - 56px)}
  .mobile-only{display:inline-flex}
  .sidebar{position:absolute;left:0;top:0;bottom:0;width:252px;transform:translateX(-100%);transition:transform .18s;background:#fafbfa}
  .sidebar.is-open{transform:translateX(0)}
  .sidebar-backdrop{position:absolute;inset:0;background:#17302145;border:0;z-index:11}
  .scene-thumb{width:65px;height:47px}.scene-item{gap:12px}
  .scene-header{height:64px;flex-basis:64px;padding:0 15px;gap:7px}
  h1{font-size:17px}.scene-heading{gap:8px}
  .action-button{min-height:33px;padding:5px 8px;gap:5px;font-size:10px}
  .file-actions{gap:5px}.action-button svg{width:14px}
  .view-toolbar{top:13px;left:12px;padding:3px;gap:1px}
  .view-tabs button{width:30px;height:32px}
  .view-toolbar>.icon-button{width:30px;height:32px}
  .view-toolbar svg{width:16px;height:16px}
  .tool-separator{margin:0 2px}
  .right-tools{right:11px;top:13px;padding:3px}
  .right-tools .icon-button{width:30px;height:32px}
  .statusbar{gap:12px;padding:0 13px;font-size:9px;height:32px;flex-basis:32px}
  .selection{left:12px;bottom:13px;padding:9px;gap:8px}
  .selection span{max-width:170px}
  .axis-label{right:22px;bottom:23px}
  [data-tip]::after{display:none}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.spinner{animation-duration:2s}}

/* V003 monitoring chrome. Instrument HUDs are transparent scene overlays. */
:root{color:#d6e2e1;background:#141d20;--border:#304043;--muted:#84999a;--accent:#66d9bd}
.app-header{height:56px;background:#141d20;padding:0 20px}
.brand-sub,.header-end,.local-mark{color:#91a7a9}
.brand{font-size:16px}
.workspace{height:calc(100dvh - 56px)}
.sidebar{width:208px;flex-basis:208px;background:#1a2427;padding:20px 12px 0}
.section-heading h2{color:#98adb0}
.section-heading>span,.section-heading>svg,.scene-copy small{color:#71898c}
.scene-item{border-radius:3px;padding:8px 5px;gap:9px}
.scene-item:hover{background:#233337}
.scene-item[aria-pressed=true]{background:#263b3c;border-color:#42615d}
.scene-thumb{width:54px;height:44px;mix-blend-mode:normal}
.scene-copy strong{font-size:12px}
.scene-copy small{font-size:9px}
.versions-section{margin-top:19px;padding-top:18px}
.segmented{background:#111d20;border-radius:3px}
#version-list button{flex-direction:column;gap:4px;font-size:10px;min-height:43px;color:#91a8aa}
#version-list small{color:#7b9a9b}
.segmented button[aria-pressed=true]{background:#2d4747;color:#a6eddd!important;box-shadow:none}
.groups-section{margin-top:21px}
.group-row{color:#9bb0b1;font-size:11px;min-height:33px}
.group-row:hover{background:#253638}
.group-row .count{color:#6e8d8d}
.sidebar-footer{color:#789193}
.scene-header{height:60px;flex-basis:60px;padding:0 20px;background:#1b2629}
h1{font-size:18px}
#version-tag{color:#8ddac8;background:#27443d}
.action-button{background:#202f32;border-color:#3a5052;color:#abc1c2}
.action-button:hover{background:#2a4042;border-color:#58887e}
.scene-stage{display:flex;flex:1;min-height:0;min-width:0}
.viewport{background:#263235;min-width:0}
.view-toolbar,.right-tools{background:#172225ed;border-color:#3b5053;box-shadow:none}
.view-toolbar{left:17px;top:17px;gap:1px}
.view-tabs button{width:32px}
.view-tabs button[aria-pressed=true]{background:#2d4847;color:#a1e9d7!important}
.icon-button{color:#9bb7b8}
.icon-button:hover{background:#2b4445;color:#b9ffed}
.icon-button[aria-pressed=true]{background:#2c4943;color:#8ce0c8}
.tool-separator,.right-tools>span{background:#3a5354}
.right-tools{right:16px;top:17px}
.right-tools .icon-button{width:31px}
.selection{background:#192a2eee;border-color:#426266;box-shadow:none;color:#d6e2e1;left:17px;bottom:17px}
.selection>svg{color:#64d1b6}
.selection span{color:#8caaad}
.loading{background:#19292ef5;border-color:#3f6165;color:#aac4c7}
.spinner{border-color:#36575a;border-top-color:#77d4ba}
.statusbar{background:#172225;color:#80999c}
#model-status{color:#9fb8b7}
.status-dot,.local-mark>span{background:#68cdb0}
[data-tip]::after{background:#0b1518;border:1px solid #3d5a5f}
.hud{--hud-alpha:.22;position:absolute;inset:0;width:100%;height:100%;background:transparent;border:0;padding:0;pointer-events:none;z-index:2;overflow:hidden;container-type:inline-size}
.hud.is-loading{visibility:hidden}
#hud-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hud-heading{position:absolute;top:85px;left:27px;padding:0;text-shadow:0 1px 4px #031e25}
.hud-kicker{font-size:9px;color:#8ffff2;font-weight:500}
.hud-heading h2{font-size:15px;font-weight:500;margin:7px 0}
#hud-code{font:9px "Segoe UI",sans-serif;color:#b1d9dc}
.demo-notice{position:absolute;right:77px;top:84px;display:flex;align-items:center;gap:7px;padding:5px 8px;color:#ffe0a4;font-size:10px;white-space:nowrap;background:#0b232d30;text-shadow:0 1px 3px #102117}
.demo-notice>span{height:5px;width:5px;flex:none;background:#dfb260}
.hud-metrics{position:absolute;inset:165px 27px 155px;display:grid;grid-template-columns:184px 1fr 184px;grid-template-rows:repeat(3,116px);gap:24px 0;align-content:center;margin:0}
.metric-row{min-width:0;text-align:left;border:1px solid color-mix(in srgb,var(--metric) 32%,transparent);border-radius:0;background:rgb(4 26 33 / var(--hud-alpha));padding:12px 14px;position:relative;pointer-events:auto;backdrop-filter:blur(1.5px);box-shadow:inset 0 0 18px #76e8ec08;text-shadow:0 1px 3px #04242d,0 0 7px #092e36;transition:background .15s}
.metric-row:nth-child(odd){grid-column:1}
.metric-row:nth-child(even){grid-column:3}
.metric-row:nth-child(1),.metric-row:nth-child(2){grid-row:1}
.metric-row:nth-child(3),.metric-row:nth-child(4){grid-row:2}
.metric-row:nth-child(5),.metric-row:nth-child(6){grid-row:3}
.metric-row::before,.metric-row::after{content:"";position:absolute;width:18px;height:13px;border-color:var(--metric);border-style:solid;opacity:.9;pointer-events:none}
.metric-row::before{left:-2px;top:-2px;border-width:1px 0 0 1px}
.metric-row::after{right:-2px;bottom:-2px;border-width:0 1px 1px 0}
.metric-row:hover,.metric-row[aria-pressed=true]{background:rgb(5 38 45 / calc(var(--hud-alpha) + .12));border-color:color-mix(in srgb,var(--metric) 68%,transparent)}
.metric-row[data-instrument=level],.metric-row[data-instrument=humidity]{background:rgb(4 26 33 / calc(var(--hud-alpha) * .65))}
.metric-code{font:8px ui-monospace,Consolas,monospace;color:#b1d5d8;display:block;margin-bottom:6px}
.metric-name{font-size:11px;color:#e0f8f5;display:block;white-space:nowrap}
.metric-value{display:flex;align-items:baseline;gap:6px;margin-top:4px;white-space:nowrap}
.metric-value strong{font:400 29px "Segoe UI",sans-serif;color:var(--metric);font-variant-numeric:tabular-nums;text-shadow:0 0 14px color-mix(in srgb,var(--metric) 30%,transparent),0 1px 4px #071819}
.metric-value small{font-size:10px;color:#d5efed}
.metric-trace{position:absolute;bottom:7px;right:12px;width:66px;height:27px;opacity:.76;pointer-events:none}
.hud-trend{position:absolute;right:27px;bottom:30px;width:220px;padding:8px 10px;border-top:1px solid #75dfeb77;background:rgb(4 26 33 / var(--hud-alpha));backdrop-filter:blur(1px)}
.hud-trend h3{font-size:10px;color:#cbf4f1;font-weight:400;margin:0 0 5px;text-shadow:0 1px 3px #071f25}
#hud-chart{display:block;width:100%;height:62px}
.hud-source{position:absolute;bottom:29px;left:27px;width:170px;padding:8px 0;font-size:9px;color:#c9ece7;pointer-events:auto;text-shadow:0 1px 4px #0b2929}
.hud-source label{display:flex;justify-content:space-between;margin-bottom:7px}
#hud-opacity{width:100%;margin:0;height:14px;accent-color:#77e3d8;cursor:pointer}
#hud-snapshot{display:block;font:8px ui-monospace,monospace;color:#b2dbdb;margin-top:7px}
.view-toolbar,.right-tools{z-index:6}
.loading{z-index:8}
.selection{z-index:5;bottom:135px}
.axis-label{z-index:3;right:26px;bottom:145px}
@media(max-width:1180px){
  .sidebar{width:192px;flex-basis:192px}
  .view-toolbar{gap:0;left:12px;padding:3px}
  .view-toolbar>.icon-button,.view-tabs button{width:29px}
  .right-tools{right:12px}
}
@container(max-width:1050px){
  .hud-metrics{grid-template-columns:146px 1fr 146px;grid-template-rows:repeat(3,107px);inset:157px 20px 145px;gap:20px 0}
  .metric-row{padding:10px 11px}
  .metric-value strong{font-size:25px}
  .metric-trace{width:43px;height:22px;right:9px}
  .hud-trend{width:186px;right:20px}
}
@container(max-width:759px){
  .hud-heading{top:75px;left:17px}
  .hud-heading h2{font-size:12px;margin:6px 0}
  .hud-kicker{font-size:8px}
  #hud-code{font-size:8px}
  .demo-notice{top:137px;left:17px;right:auto;font-size:9px;padding:0;background:transparent}
  .hud-metrics{inset:auto 17px 67px;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,89px);gap:9px}
  .metric-row:nth-child(n){grid-column:auto;grid-row:auto;padding:8px 10px}
  .metric-code{font-size:7px;margin-bottom:4px}
  .metric-name{font-size:10px}
  .metric-value strong{font-size:24px}
  .metric-value small{font-size:9px}
  .metric-trace{width:33px;height:13px;right:8px;bottom:3px;opacity:.6}
  .hud-trend{display:none}
  .hud-source{bottom:10px;left:17px;right:17px;width:auto;display:flex;align-items:center;gap:12px;padding:0}
  .hud-source label{width:92px;flex:none;margin:0}
  #hud-opacity{width:100px;max-width:35%}
  #hud-snapshot{margin:0 0 0 auto;font-size:7px}
}
@media(max-width:640px){
  .app-header{padding:0 12px}
  .sidebar{width:252px;background:#1a2427;padding:23px 16px 0}
  .sidebar-backdrop{background:#050d1299}
  .scene-thumb{width:65px;height:47px}
  .scene-header{height:58px;flex-basis:58px;padding:0 13px}
  h1{font-size:16px}
  .view-toolbar{top:12px;left:10px;padding:3px}
  .view-toolbar>.icon-button,.view-tabs button{width:27px;height:31px}
  .tool-separator{margin:0 2px}
  .right-tools{right:10px;top:12px;padding:3px}
  .right-tools .icon-button{width:28px;height:31px}
  .selection{bottom:270px;left:10px}
  .axis-label{bottom:271px;right:18px}
}
@media(max-height:670px) and (min-width:901px){
  .hud-metrics{inset:140px 20px 55px;grid-template-rows:repeat(3,85px);gap:9px 0}
  .metric-row{padding:8px 10px}
  .metric-code{margin-bottom:3px}
  .metric-trace{height:21px;width:46px}
  .hud-trend{display:none}
  .hud-source{bottom:10px}
}
@container(max-width:350px){
  .hud-metrics{left:12px;right:12px;gap:7px}
  .metric-row:nth-child(n){padding:8px 6px}
  .metric-value{gap:3px}
  .metric-value strong{font-size:21px}
  .metric-value small{font-size:8px}
  #hud-snapshot{display:none}
}

/* Agricultural V004: full-height scene with an unframed workflow inspector. */
.agri-flowbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:4px 18px;background:#1b292b;border-bottom:1px solid var(--border);flex:none}
.agri-phase-tabs{display:flex;align-self:stretch;gap:18px;min-width:0}
.agri-phase-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:6px 4px;font-size:12px;color:#9fb4b1;white-space:nowrap}
.agri-phase-tabs button[aria-selected=true]{color:#b6efd3;border-bottom-color:#79d9af}
.agri-playback{display:flex;gap:4px}
.agri-stepnav{display:flex;align-items:center;gap:7px;margin-left:auto}
.agri-stepnav output{font-size:11px;white-space:nowrap;min-width:82px;text-align:center;color:#cee8d9}
.agri-inspector{width:280px;flex:0 0 280px;overflow-y:auto;scrollbar-width:thin;background:#1b292b;border-left:1px solid var(--border);padding:17px 17px 24px}
.agri-inspector-heading{display:flex;flex-direction:column;gap:9px;margin-bottom:15px}
.agri-inspector-heading>span{font-size:10px;color:#e6c680}
.agri-inspector-heading strong{font-size:11px;font-weight:500;color:#8fdfbd}
.agri-inspector h2{font-size:14px;line-height:1.6;font-weight:500;margin:0 0 17px}
.agri-inspector h3{font-size:12px;font-weight:500;color:#c5dad0;margin:18px 0 7px}
.agri-sensor-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border-bottom:1px solid #3a5350;padding-bottom:11px}
.agri-sensor-tabs button{min-width:0;border:0;background:transparent;border-bottom:2px solid transparent;padding:8px 1px;font-size:11px;color:#92aaa5;white-space:nowrap}
.agri-sensor-tabs button[aria-selected=true]{color:#b6efd3;border-bottom-color:#79d9af}
.agri-readings{margin:0}
.agri-readings>div{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #30443f;padding:11px 0}
.agri-readings dt{font-size:11px;color:#a9beb7}
.agri-readings dd{font-size:19px;font-variant-numeric:tabular-nums;margin:0;white-space:nowrap;color:#e2f3e6}
.agri-readings small{font-size:10px;color:#a9c6bc;margin-left:4px}
.agri-factors{font-size:10px;line-height:1.8;color:#92ada3;margin:16px 0 0}
.agri-threshold{display:flex;flex-direction:column;gap:13px;padding:17px 0;border-block:1px solid #41574f}
.agri-threshold>span{font-size:11px;color:#aac2b8}
.agri-threshold strong{font-size:31px;color:#f0cd80;font-weight:500;white-space:nowrap}
.agri-threshold small{font-size:14px}
.agri-threshold b{font-size:20px;font-weight:400;margin:0 10px;color:#95aba2}
.agri-checks{list-style:none;padding:0;margin:20px 0;font-size:12px;color:#b3cabe}
.agri-checks li{padding:8px 0}
.agri-checks li::before{content:"";display:inline-block;width:6px;height:6px;background:#70d7aa;margin-right:9px}
.agri-result{font-size:11px;line-height:1.8;color:#eac477;border-top:1px solid #3d5349;padding-top:14px}
.agri-relays>div{display:grid;grid-template-columns:23px 1fr auto;align-items:center;gap:7px;min-height:37px;border-bottom:1px solid #32493f;font-size:11px}
.agri-relays>div>span:first-child{font:10px ui-monospace,monospace;color:#8fae9e}
.agri-relays strong{font-size:10px;font-weight:400;color:#81998d}
.agri-relays [data-on=true]{color:#a3edc0}
.agri-relays [data-on=true] strong{color:#9ce8b6}
.agri-act-targets{display:flex;flex-wrap:wrap;gap:6px;margin-top:17px}
.agri-locate{display:flex;align-items:center;gap:5px;border:1px solid #405d4d;background:transparent;color:#b8d7c5;padding:7px;font-size:10px;border-radius:3px}
.agri-locate svg{width:13px;height:13px}
.agri-batch{display:flex;justify-content:space-between;gap:7px;font-size:9px;color:#94b5a3;margin:0 0 12px}
.agri-events{list-style:none;margin:0;padding:0}
.agri-events li{display:grid;grid-template-columns:66px 1fr;gap:7px;padding:14px 0;border-bottom:1px solid #355041}
.agri-events time{font:10px ui-monospace,monospace;color:#8ed6ad}
.agri-events strong{font-size:12px;font-weight:500}
.agri-events li>span{grid-column:2;font-size:10px;line-height:1.8;color:#9fb8a8}
.has-agri-loop .hud-heading,.has-agri-loop .hud-trend,.has-agri-loop .hud-source,.has-agri-loop .demo-notice{display:none}
.has-agri-loop .selection{bottom:17px}
.has-agri-loop .axis-label{bottom:20px}
.has-agri-loop .metric-row[data-device=equipment] .metric-trace{display:none}
.has-agri-loop .viewport[data-view=display] #hud{visibility:hidden}
.has-agri-loop #hud{visibility:hidden}
.has-agri-loop .selection{display:none}
#version-list.has-four-versions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
#version-list.has-four-versions button{flex-direction:row;gap:5px;min-height:32px}
@media(max-width:1100px){
  .agri-inspector{width:245px;flex-basis:245px;padding:13px}
  .agri-phase-tabs{gap:12px}
}
@media(max-width:760px){
  .has-agri-loop .scene-stage{flex-direction:column}
  .agri-inspector{width:100%;height:224px;flex:0 0 224px;border-left:0;border-top:1px solid var(--border);padding:10px 14px 18px}
  .agri-inspector-heading{flex-direction:row;justify-content:space-between;margin-bottom:8px}
  .agri-inspector h2{font-size:12px;line-height:1.5;margin-bottom:7px}
  .agri-inspector h3{margin-top:9px}
  .agri-sensor-tabs{grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:5px;gap:1px}
  .agri-sensor-tabs button{font-size:10px;padding:6px 0}
  .agri-readings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
  .agri-readings>div{gap:4px;padding:7px 0}
  .agri-readings dd{font-size:16px}
  .agri-readings dt{font-size:10px}
  .agri-readings small{font-size:9px}
  .agri-flowbar{padding:3px 9px;gap:3px;min-height:43px}
  .agri-phase-tabs{flex:1;justify-content:space-between;gap:1px}
  .agri-phase-tabs button{font-size:11px;padding:5px 1px}
  .agri-playback{gap:0}
  .agri-playback .icon-button{width:28px;height:31px}
  .has-agri-loop .metric-row:nth-child(n){height:45px;padding:3px 6px}
  .has-agri-loop .metric-value strong{font-size:18px;line-height:21px}
  .has-agri-loop .metric-value{margin-top:1px;line-height:21px}
}

/* Kitchen labels use projected equipment positions instead of fixed columns. */
.is-device-anchored .hud-metrics{inset:0;display:block;pointer-events:none}
.is-device-anchored .metric-row:nth-child(n){position:absolute;left:0;top:0;width:116px;height:58px;padding:6px 8px;margin:0;will-change:transform;backdrop-filter:blur(2px)}
.is-device-anchored .metric-row{background:rgb(4 26 33 / var(--hud-alpha))}
.is-device-anchored .metric-row:hover,.is-device-anchored .metric-row[aria-pressed=true]{background:rgb(5 38 45 / calc(var(--hud-alpha) + .12))}
.is-device-anchored .metric-code{display:none}
.is-device-anchored .metric-name{font-size:10px;line-height:14px;padding-right:30px}
.is-device-anchored .metric-value{margin-top:2px;gap:4px;line-height:26px}
.is-device-anchored .metric-value strong{font-size:22px;line-height:26px}
.is-device-anchored .metric-value small{font-size:9px;line-height:14px}
.is-device-anchored .metric-trace{width:26px;height:12px;top:8px;bottom:auto;right:8px;opacity:.65}
.is-device-anchored .metric-row.is-combined{width:144px}
.is-combined .metric-readings{display:flex;justify-content:space-between;gap:6px}
.is-device-anchored .is-combined .metric-value{gap:2px}
.is-device-anchored .is-combined .metric-value strong{font-size:20px}
.sidebar-tabs{display:flex;gap:12px;min-width:0}
.sidebar-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:6px 0;font-size:11px;color:#81999a;white-space:nowrap}
.sidebar-tabs button[aria-selected=true]{color:#d6ece5;border-bottom-color:#66d9bd}
.device-list{overflow:auto;scrollbar-width:thin;padding:0 3px 16px}
.device-summary{font-size:11px;color:#b7cdcc;margin:0 0 5px}
.device-notice{font-size:9px;color:#e0c087;margin:0 0 16px}
.device-branch{margin-bottom:18px}
.gateway-row{display:flex;align-items:center;gap:5px;width:100%;border:0;background:transparent;padding:7px 0;color:#dfd5aa;text-align:left}
.gateway-row svg{width:14px;height:14px}
.gateway-row span{font-size:11px}
.device-branch small{margin-left:auto;font:8px ui-monospace,monospace;color:#859fa1}
.gateway-row[aria-pressed=true]{color:#ffe49b}
.device-branch ul{margin:3px 0 0 6px;padding:0 0 0 12px;border-left:1px solid #476060;list-style:none}
.device-branch li{position:relative}
.device-branch li::before{content:"";position:absolute;left:-12px;top:16px;width:7px;border-top:1px solid #476060}
.device-branch li button{display:flex;align-items:center;gap:4px;width:100%;min-height:32px;border:0;background:transparent;padding:4px 0;color:#c3d9d5;text-align:left;font-size:11px}
.device-branch button:hover{background:#29403f}
@container(max-width:759px){
  .is-device-anchored .metric-row:nth-child(n){width:96px;height:52px;padding:5px 7px}
  .is-device-anchored .metric-code,.is-device-anchored .metric-trace{display:none}
  .is-device-anchored .metric-name{font-size:9px;padding-right:0;line-height:13px}
  .is-device-anchored .metric-value strong{font-size:21px;line-height:24px}
  .is-device-anchored .metric-value small{font-size:8px}
  .is-device-anchored .metric-value{gap:3px;margin-top:2px;line-height:24px}
  .is-device-anchored .metric-row.is-combined{width:132px}
  .is-device-anchored .is-combined .metric-value strong{font-size:18px}
}
@container(max-width:350px){
  .is-device-anchored .metric-row:nth-child(n){width:89px;height:50px;padding:4px 6px}
  .is-device-anchored .metric-row.is-combined{width:132px}
  .is-device-anchored .metric-value strong{font-size:20px}
}

/* Keep equipment HUD in the website embed without the workbench chrome. */
.is-embedded .workspace{height:100dvh}
.is-embedded .app-header,
.is-embedded .sidebar,
.is-embedded .sidebar-backdrop,
.is-embedded .scene-header,
.is-embedded .agri-flowbar,
.is-embedded .agri-inspector,
.is-embedded .statusbar,
.is-embedded .view-toolbar,
.is-embedded .right-tools,
.is-embedded .selection,
.is-embedded .axis-label,
.is-embedded .hud-heading,
.is-embedded .demo-notice,
.is-embedded .hud-source,
.is-embedded .hud-trend,
.is-embedded .hud:not(.is-device-anchored),
.is-embedded .has-agri-loop .hud{display:none!important}
.agri-scope-nav{position:absolute;z-index:5;bottom:20px;left:50%;transform:translateX(-50%);display:flex;max-width:calc(100% - 24px);padding:4px;border:1px solid #bad3d1;border-radius:6px;background:rgba(255,255,255,.95);box-shadow:0 3px 16px #163b3422}
.agri-scope-nav[hidden]{display:none}
.agri-scope-nav button{flex:1;min-height:40px;padding:8px 16px;border:0;border-radius:3px;background:transparent;color:#3b5b58;font-size:13px;white-space:nowrap}
.agri-scope-nav button[aria-pressed=true]{background:#087e82;color:#fff}
.agri-scope-nav button:focus-visible{outline:2px solid #087e82;outline-offset:2px}
.agri-scope-nav .agri-playback{align-items:center;margin-left:4px;padding-left:4px;border-left:1px solid #bad3d1}
.agri-scope-nav .agri-playback button{width:32px;min-width:32px;height:40px;padding:6px}
@media(max-width:600px){
  .is-embedded .agri-scope-nav [data-scope]{padding:8px 6px}
  .agri-scope-nav .agri-playback{gap:0;margin-left:2px;padding-left:2px}
  .agri-scope-nav .agri-playback button{width:28px;min-width:28px;padding:4px}
}
.agri-cold-readout{display:none}
@media(max-width:600px){
  .agri-scope-nav{bottom:14px;width:max-content}
  .agri-scope-nav button{padding:8px 10px;font-size:12px}
  .agri-phase-tabs{flex-wrap:wrap}
  .agri-cold-readout:not([hidden]){display:block;position:absolute;z-index:4;top:14px;left:14px;width:210px;max-width:calc(100% - 28px);padding:12px 14px;border:1px solid #b0d2ce;border-radius:5px;background:rgba(255,255,255,.94);color:#254d47;pointer-events:none}
  .agri-cold-readout header{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .agri-cold-readout h2{margin:0;font-size:14px}
  .agri-cold-readout header span{font-size:10px;color:#647b75}
  .agri-cold-readout dl{margin:8px 0 0}
  .agri-cold-readout dl>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px solid #dbe6e2;font-size:12px}
  .agri-cold-readout dd{margin:0;font-weight:600}
  .agri-cold-readout[data-scope=transport]:not([hidden]){background:rgba(5,27,37,.88);border-color:#62dfe9;color:#a5d7e0;box-shadow:inset 0 0 16px #1b8cab22}
  .agri-cold-readout[data-scope=transport] h2{color:#b9f9ff}
  .agri-cold-readout[data-scope=transport] header span{color:#92b6c0}
  .agri-cold-readout[data-scope=transport] dl{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
  .agri-cold-readout[data-scope=transport] dl>div{grid-column:1 / -1;border-color:#315961}
  .agri-cold-readout[data-scope=transport] dl>div:nth-child(-n+2){grid-column:auto;display:block;padding:9px 0}
  .agri-cold-readout[data-scope=transport] dl>div:nth-child(-n+2) dd{margin-top:7px;font-size:18px;color:#84f5e2;white-space:nowrap}
}
