body.lab-mode{background:#102731}
.lab-ribbon{position:relative;display:flex;align-items:center;justify-content:center;gap:15px;min-height:29px;padding:3px 8px;background:#1f3b43;color:#cbe6dd;font-size:12px}
.lab-ribbon a{color:#f3dda4;text-underline-offset:2px}
.lab-mode #app{min-height:calc(100svh - 29px)}
.lab-entry{max-width:460px;margin:12vh auto 0;padding:24px;border:1px solid #718c8b;border-radius:20px;background:linear-gradient(145deg,#29434d,#172f39);box-shadow:0 12px 40px #091a2559}
.lab-entry h1{font-size:clamp(28px,6vw,40px);margin-bottom:15px}
.lab-entry p{padding:9px 0;color:#d9e8e2}
.lab-entry button{width:100%;margin:12px 0 0}
.work-orders{padding:12px;border:1px solid #769e956b;border-radius:14px;background:linear-gradient(135deg,#203b43,#192e39);color:#e4efe8;margin:8px 0;text-align:left}
.work-orders h3{margin:0 0 9px;color:#eddfbb;font-size:17px}
.press-view{display:block;width:100%;height:auto;aspect-ratio:360/155;box-shadow:0 0 0 1px #809a8f69;border-radius:8px;margin-bottom:12px}
.order-options{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.order-option{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 6px;min-height:49px;padding:6px;border:1px solid #688e91;border-radius:9px;background:#29474d;color:#eef6e9;text-align:left;font-size:13px;font-weight:650;line-height:1.2}
.order-option i{grid-row:span 2;font-size:20px;font-style:normal;color:#e3c991}
.order-option small{color:#c3d6c9;font-weight:500;line-height:1.35;letter-spacing:0;font-size:10px}
.order-option[data-state=done]{background:#24483f;border-color:#76a891}
.order-option[data-state=locked]{background:#283942;border-color:#60727c}
.order-option[aria-pressed=true]{outline:2px solid #e8cf93;outline-offset:-2px}
.order-detail:not(:empty){border-top:1px solid #73928c6b;margin-top:10px;padding-top:9px}
.order-detail p,.order-status{font-size:12px;line-height:1.38;margin:5px 0;color:#d3e2d9}
.order-cost{display:flex;flex-flow:column;gap:3px;font-size:12px}
.material-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:#7ed79e}
.material-mineral{background:#eccb73}.material-crystal{background:#c39adb}.material-fluid{background:#84d3e7}.material-energy{background:#eb9985}
.order-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.order-controls>button{width:auto!important;min-height:42px;font-size:13px;padding:7px 12px}
.irrigated-terrace{display:flex;align-items:center;gap:12px;margin:6px 0 12px;color:#c7e9be;font-size:13px}
.survey-dispatch{display:grid;gap:6px;margin:6px 0 15px}
.survey-dispatch a{display:block;text-align:center;padding:11px 8px;line-height:1.2}
.survey-dispatch p{margin:0;color:#c9dcdf;font-size:13px}
.irrigated-terrace img{width:72px;height:65px;object-fit:cover;border-radius:8px}
.order-components{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 10px;margin:9px 0;padding:9px 11px;background:#1f363c;border-radius:9px;color:#d9eada;font-size:12px}
.order-components strong{grid-column:1/-1;color:#e3c991}
.order-components output{line-height:1.4}
.order-received{display:block;color:#a6e3ba;font-weight:700}
[data-order-area=laboratory] .order-options{padding-bottom:1px}
[data-order-area=laboratory] .order-option:last-child:nth-child(3){grid-column:1/-1;margin:7px 12% 0}
[data-order-area=laboratory] .order-option:last-child:nth-child(3):before{content:"";position:absolute;inset:auto 10% 100%;height:13px;border:solid #93cace;border-width:0 1px 2px;pointer-events:none}
[data-order-area=overlook] .order-options{grid-template-columns:1fr}
@media(prefers-reduced-motion:no-preference){.work-orders[data-working=true] .order-option[aria-pressed=true]{animation:order-scan .6s ease-in-out infinite alternate}.order-received{animation:order-received .4s ease-out}@keyframes order-scan{to{box-shadow:inset 0 -12px 25px #77d7d766}}@keyframes order-received{from{transform:translateY(4px);opacity:.5}}}

.technology-tree{display:grid;grid-template-columns:1fr;gap:0;max-width:34rem;margin:auto}
.tech-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:0;padding:0;list-style:none}
.tech-branches li{display:grid;gap:.45rem;align-content:stretch;min-width:0}
.tech-input{text-align:center;font-size:.78rem;color:#c1d8da}
.tech-input[data-done=true]{color:#a1e8ba}
.tech-junction{width:50%;height:.65rem;margin:0 auto .65rem;border:solid #729799;border-width:0 2px 2px;border-radius:0 0 8px 8px;position:relative}
.tech-junction::after{content:'';position:absolute;top:100%;left:50%;height:.65rem;border-left:2px solid #729799}
.tech-destination{color:#a8e8d0;text-align:center;line-height:1.3}
.order-options:has(.technology-tree){display:block}
.technology-tree>.order-option{justify-self:center;max-width:94%}
.order-facts{display:grid;gap:.4rem;padding:0;margin:.6rem 0;color:#d4e6e5}
.order-facts div{display:grid;grid-template-columns:5.2rem minmax(0,1fr);gap:.45rem}
.order-facts dt{color:#9fc6be;font-size:.78rem}
.order-facts dd{margin:0;font-size:.86rem}
.order-route{margin-top:.45rem;min-height:40px}

.field-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(100%,500px);max-width:100%;max-height:min(95dvh,850px);padding:clamp(12px,4vw,25px);overflow-y:auto;overscroll-behavior:contain;color:#e9f2f1;background:linear-gradient(145deg,#193a41,#0a1e2c 75%);border:1px solid #79988a;border-radius:20px;box-shadow:0 12px 50px #06141c}
.field-dialog::backdrop{background:#041116da}
.field-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.55rem;border-bottom:1px solid #709b984d;margin-bottom:.6rem;padding-bottom:.6rem}
.field-heading small,.field-dialog label{display:block;color:#a6d4c6;font-size:.81rem}
.field-heading h2{color:#ffdc95;margin:.2rem 0 0;font-size:clamp(22px,6vw,32px);line-height:1.04}
.field-heading button{flex:0 0 44px;min-height:44px;background:#1a3b46;border:1px solid #648882;border-radius:12px;color:#dcf4ea;font-size:1.4rem}
.field-dialog select{display:block;width:100%;font-size:1rem;margin:.25rem 0 .45rem;border:1px solid #699188;border-radius:8px;padding:.45rem;background:#132a35;color:#e3f2ef}
.field-mode-card{padding:.75rem 0;border-top:1px solid #90ab935e}
.field-mode-card h3,.field-pause h3{margin:0 0 .25rem;font-size:1.1rem}
.field-mode-card p,.field-line,.field-receipt,.field-dialog>p{margin:.4rem 0 .65rem;color:#c9dcdf;font-size:.91rem;line-height:1.32}
.field-priority h3,.field-receipt{color:#ffdc95}
.field-dialog .primary,.field-dialog .secondary{width:100%;min-height:42px}
.field-pause{position:absolute;inset:0;display:grid;place-items:center;padding:1rem;background:#081a23ed;z-index:5}
.field-pause section{width:min(100%,335px);display:grid;gap:.45rem;text-align:center}
.field-line{font-weight:600;color:#c7e4c7}
.field-goal-preview{display:flex;flex-wrap:wrap;gap:8px 18px;margin:6px 0 12px}
.field-goal-preview span{display:inline-flex;align-items:center;gap:5px}
.field-goal-preview canvas{width:32px;height:32px}
.steps .step span small{display:block;margin-top:3px;font-size:12px;line-height:1.35;font-weight:400}
.work-orders[data-exp-site] summary{box-sizing:border-box;min-height:44px;padding-block:11px;cursor:pointer}
.work-orders[data-exp-site] .order-detail p,.work-orders[data-exp-site] .order-cost{font-size:14px;line-height:1.45}
.work-orders[data-exp-site] .order-detail small{font-size:13px;line-height:1.4}

/* Keep the active job and its price visible above the equipment history. */
[data-dev-site] .equipment-history{margin-top:8px;border-block-start:1px solid #769e956b}
[data-dev-site] .equipment-history summary{min-height:44px;padding:12px 0;cursor:pointer;color:#c9ded8;font-size:14px}
[data-dev-site] .equipment-history .order-detail{border:0;background:transparent;padding:5px 0}
[data-dev-site] .equipment-history .order-detail p,[data-dev-site] .equipment-history .order-received{margin:2px 0}
[data-dev-site] .order-cost,[data-exp-site] .order-cost{display:flex;flex-flow:row wrap;gap:4px 8px}
[data-dev-site] .order-cost span,[data-exp-site] .order-cost span{padding:3px 6px;border-radius:4px;background:#102a31}
