/* PhytoTester 18 — shared, accessible workspace system */
:root{--ink:#122d37;--muted:#587079;--line:#dee7e9;--green:#087d53;--surface:#fff;--canvas:#f2f6f7;--shadow:0 10px 34px #163f4a09}
body,body.editorial-home{background:var(--canvas);color:var(--ink)}
.shell{grid-template-columns:216px minmax(0,1fr)}
.sidebar,.editorial-home .sidebar{background:#fff;border-right:1px solid var(--line);padding:26px 16px;scrollbar-width:thin}
.sidebar .brand{padding:0 6px;margin-bottom:32px}.nav-label{font-size:10px;letter-spacing:.06em;color:#6b828a}.nav-item{font-size:12px;min-height:42px;border-radius:10px;color:#536b73;gap:12px;margin-bottom:3px}.nav-item.active{background:#e5f3ec;color:#087b53;box-shadow:inset 3px 0 #079964}.nav-item:hover{background:#f0f5f4}.nav-extra summary{font-size:11px;color:#5f757d}.sidebar .account{overflow-wrap:anywhere}.side-footer{border-top:1px solid var(--line);padding-top:14px}
.topbar,.editorial-home .topbar{height:72px;background:#ffffffec;border-bottom:1px solid var(--line);padding:0 30px;backdrop-filter:blur(16px)}.topbar .search{background:#f5f8f9;border:1px solid #e6edef;border-radius:12px}.avatar{background:#e9f2ef;color:#31564c}.breadcrumb{font-size:12px}
.content,.editorial-home .content{padding:30px;max-width:1600px;margin:auto;background:transparent;min-width:0}.content h1{font-size:clamp(24px,2.5vw,34px);font-weight:650;letter-spacing:-.7px;line-height:1.45}.content h2{letter-spacing:-.3px}.content .muted,.content .help-text{color:var(--muted)}
button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #20a583;outline-offset:3px}button.primary,.primary{background:#087d53;border-color:#087d53;border-radius:12px;box-shadow:0 5px 14px #087d5320}button:not(:disabled),a{transition:background .18s,box-shadow .18s,transform .18s}button:disabled{cursor:not-allowed;opacity:.5}input,select,textarea{border:1px solid #d7e3e5;border-radius:10px;color:var(--ink);background:#fbfdfd;min-height:44px}label{line-height:1.65}button{min-height:40px;border-radius:10px}
.panel,.detail,.fi-card{border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);background:#fff}.panel h2{font-size:18px}.details-grid{gap:14px}.detail{padding:20px;box-shadow:none;background:#f7faf9}.detail small{color:var(--muted);font-size:11px}.detail strong{font-size:15px;overflow-wrap:anywhere}.table-wrap{border-radius:14px}th{font-size:11px;color:#647d84;background:#f5f8f8}td{font-size:13px}tr:hover td{background:#f7fbf9}td small{color:#627a82}.badge{font-size:10px;border-radius:7px}.filter-row input{min-width:240px}.empty{padding:40px 22px}.empty p{max-width:430px;margin-inline:auto;line-height:1.8}.empty h3{font-size:19px}
dialog{border:1px solid #dfe9e8;border-radius:24px;box-shadow:0 24px 100px #13372d30;padding:30px;max-height:90dvh}dialog::backdrop{background:#102d3b70;backdrop-filter:blur(6px)}dialog h2{font-size:23px;margin-top:0}.fields{gap:20px}.fields label{font-size:12px}.form-actions{position:sticky;bottom:-30px;background:#fff;padding:18px 0 4px;border-top:1px solid var(--line);margin-top:24px}
.plot-grid-v2{gap:22px}.plot-card-v2{border-radius:22px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}.plot-card-v2:hover{transform:translateY(-3px);box-shadow:0 18px 38px #173d4b14}.plot-card-v2 .pc-media{height:220px}.pc-identity h3{font-size:22px}.pc-numbers strong{font-size:22px}.pc-numbers span{font-size:11px;color:#607881}.pc-twin{background:#e6f4ec;color:#0b7954;border-radius:10px}.pc-image-label{backdrop-filter:blur(12px);background:#fffffff0!important;color:#254b3b!important;border:1px solid #ffffffb0}
/* Overview: one clear destination, followed by real workspace evidence */
.ed-home{max-width:1400px;color:var(--ink)}.ed-heading{margin-bottom:24px}.ed-heading h1{font-size:32px;color:var(--ink)}.ed-eyebrow{color:#608079;font-size:10px;letter-spacing:1.6px}.ed-dot{background:#0a9b67;box-shadow:0 0 0 5px #e0f3e9}.ed-account-count{color:#58757b}
.ed-main{display:grid;grid-template-columns:1fr 1.15fr;padding:0;gap:0;background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 16px 48px #173f4c0c;overflow:hidden}.ed-overview{padding:30px}.ed-select label{font-size:11px;color:#5c727c}.ed-select select{font-size:12px;max-width:195px;background:#f6faf8}.ed-identity{padding:28px 0}.ed-crop{background:#edf7f1;color:#13734f;font-size:11px;border:1px solid #e1eee5}.ed-identity h2{font-size:clamp(32px,3.5vw,48px);color:#163944;margin:16px 0 10px;letter-spacing:-1px}.ed-identity p{font-size:13px;color:#607880}.ed-stats{border-color:var(--line);margin-bottom:26px;padding-top:20px}.ed-stats strong{font-size:30px;color:#163944}.ed-stats span,.ed-stats em{font-size:11px;color:#607880}.ed-open{background:#123c35;border-radius:12px;font-size:12px;min-height:50px;box-shadow:0 5px 15px #103c3520}.ed-open i{background:#c5eed6;color:#0d6547;border-radius:8px}.ed-details{font-size:11px;color:#53736b}.ed-map-column{border:0;border-left:1px solid var(--line);padding:22px;background:#e8f0ec;border-radius:0;box-shadow:none}.ed-map-heading{color:#31554e;font-size:12px}.ed-map-tag{color:#4b7365;font-size:9px}.ed-map.pc-media{min-height:300px;border:0;border-radius:16px;box-shadow:0 6px 22px #143f4020;background:#cfded4}.ed-map-footer{font-size:11px;color:#45685b}.ed-map-footer a{color:#267359;background:#ffffffa0;border:0}.ed-section-title{margin:27px 0 14px}.ed-section-title h3{font-size:14px;color:var(--ink)}.ed-section-title>span{font-size:11px;color:#637d84}.ed-quick{gap:16px}.ed-quick>a,.ed-quick>button{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);padding:20px;border-radius:16px}.ed-quick>a:before,.ed-quick>button:before{display:none}.ed-action-icon{background:#edf6f2;border:0;box-shadow:none;color:#17815c;border-radius:12px}.ed-quick strong{font-size:13px;color:#21434c}.ed-quick small{font-size:11px;color:#647a82}.ed-bottom{font-size:10px;color:#6b8389}.ed-weather{background:#fff;border-color:var(--line)}
.overview-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.overview-evidence>a{padding:19px 22px;background:#fff;border:1px solid var(--line);border-radius:16px;display:grid;grid-template-columns:1fr auto;gap:8px;text-decoration:none;color:var(--ink)}.overview-evidence strong{font-size:27px;font-weight:600}.overview-evidence span{font-size:12px;color:#58747c}.overview-evidence small{grid-column:1/-1;font-size:10px;color:#627b83;line-height:1.7}.overview-evidence svg{width:19px;height:19px;color:#228267;grid-column:2;grid-row:1}
.scene-loading{min-height:380px;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:#274f41;background:radial-gradient(ellipse at center,#fff,#eaf3ee)}.scene-loading strong{font-size:16px;font-weight:550}.scene-loading small{font-size:12px;color:#6b867b}.scene-loader{width:40px;height:40px;border:3px solid #dcece3;border-top-color:#0b8a5d;border-radius:50%;animation:scene-spin 1s linear infinite}@keyframes scene-spin{to{transform:rotate(360deg)}}
/* The canvas backing buffer is device pixels, while its CSS box is logical pixels. */
.twin-studio .geo-scene>canvas{display:block;width:100%;height:100%;max-width:100%}
/* Spatial workspace: viewport first, one readable inspector */
.content:has(.twin-studio){padding:22px 28px}.ts-heading{margin-bottom:18px}.ts-heading h1{font-size:27px}.ts-heading>select{border-radius:12px;min-height:44px}.ts-workspace{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:18px;border:0;background:transparent;box-shadow:none;overflow:visible}.ts-stage{border:1px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;min-width:0}.ts-toolbar{background:#fff;padding:12px 16px;border-bottom:1px solid var(--line);gap:10px}.ts-toolbar .geo-modes{background:#f0f5f3;border:0;padding:4px;border-radius:12px}.ts-toolbar .geo-modes button{color:#4e6e64;min-height:36px;border-radius:9px;font-size:11px}.ts-toolbar .geo-modes button[aria-pressed=true]{background:#0c8057;color:#fff;box-shadow:0 3px 10px #0c805726}.ts-style{gap:7px}.ts-style>label{font-size:10px;color:#547068}.ts-style select{background:#f6f9f8;color:#25483e;border:1px solid #dfe9e3;font-size:11px;max-width:125px}.ts-style>button{background:#f2f7f4;color:#255546;border:1px solid #dce9e1}.ts-stage .geo-scene{height:clamp(420px,calc(100dvh - 285px),760px);min-height:420px;background:#eaf1ed;border-radius:0}.ts-canvas-caption{background:#fffffff0;color:#24493e;border:1px solid #fff;box-shadow:0 4px 20px #173e3b10;border-radius:12px;top:16px;left:16px;padding:10px 13px;font-size:12px}.ts-canvas-caption small{color:#638176;font-size:9px}.ts-dot{background:#13a56c;box-shadow:0 0 0 4px #d9f3e6}.ts-camera{bottom:40px;background:#153d34ed;border:1px solid #ffffff40;border-radius:13px;padding:5px;box-shadow:0 8px 24px #153b3330}.ts-camera button{color:#fff;font-size:11px;min-height:36px;padding:8px 10px}.ts-camera button:hover:not(:disabled){background:#ffffff20}.ts-interaction{font-size:10px;color:#355c50;background:#ffffffe6;text-shadow:none;border:1px solid #fff;bottom:8px}.ts-status{background:#fff;color:#5c746d;font-size:11px;padding:14px 18px;border-top:1px solid var(--line);line-height:1.7}.ts-status strong{color:#30584b}.ts-status p{margin:4px 0}.ts-status .actions{margin:8px 0 0}.ts-status button{background:#eef6f1;color:#2b624c;border-color:#d8e8de;font-size:10px}.ts-layers{background:#fff;border-color:var(--line);color:#4f6f61;padding:12px 18px}.ts-layers>span,.ts-layers label{color:#416756;font-size:11px}.ts-layers input{accent-color:#0a885b}.ts-stage .empty,.ts-stage .empty h3{color:#315747}.ts-stage .empty p{color:#5a7b6b}.ts-stage .empty-icon{background:#dfeee4;color:#25865c}
.ts-inspector{display:flex;flex-direction:column;background:transparent;border:0;gap:14px;max-height:none;overflow:visible}.ts-inspector>section,.ts-inspector>details,.ts-inspector .fi-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:var(--shadow);margin:0}.ts-selection{order:0}.ts-profile{order:1}.ts-inspector #field-summary{order:2;display:grid;gap:14px}.ts-readings{order:3}.ts-method{order:4}.ts-profile h2{font-size:20px;margin:8px 0}.ts-profile .eyebrow,.ts-selection .eyebrow{font-size:10px;color:#668276}.ts-selection h3{font-size:18px;margin:12px 0;line-height:1.6}.ts-selection p,.ts-readings>p{font-size:11px;color:#5e776f;line-height:1.85}.ts-facts strong{font-size:23px;color:#204b3d}.ts-facts span{font-size:10px;color:#678174}.ts-no-data{background:#f4f8f5;border:1px dashed #ccdfd0;border-radius:10px;padding:12px}.ts-inspector .fi-card-head h2{font-size:14px}.ts-inspector .fi-next{display:none}.ts-method{font-size:11px;color:#5e776d}.ts-expanded{padding:18px;background:var(--canvas)}.ts-expanded .geo-scene{height:calc(100dvh - 235px)}
.twin-legend{display:flex;gap:14px;flex-wrap:wrap;padding:12px 18px;background:#fff;border-top:1px solid var(--line);font-size:10px;color:#4c6b60}.twin-legend span{display:flex;align-items:center;gap:6px}.twin-legend i{width:7px;height:7px;border-radius:50%;background:var(--tone)}.plant-selection-label{background:#123e34!important;color:#fff!important;border-radius:9px!important;font-size:11px!important;padding:8px 12px!important;box-shadow:0 4px 14px #123e3430}
@media(min-width:1450px){.ts-workspace{grid-template-columns:minmax(0,1fr) 310px}.ts-stage .geo-scene{min-height:540px}.ed-overview{padding:34px}.ed-map.pc-media{min-height:340px}}
@media(max-width:1100px){.shell{grid-template-columns:190px minmax(0,1fr)}.content,.editorial-home .content{padding:22px}.ts-workspace{grid-template-columns:minmax(0,1fr)}.ts-inspector{display:grid;grid-template-columns:1fr 1fr;max-height:none}.ts-inspector #field-summary{display:contents}.ts-inspector .fi-card{order:2}.ts-method,.ts-readings{grid-column:auto}.ed-main{grid-template-columns:1fr 1fr}.ed-overview{padding:24px}.ed-stats strong{font-size:25px}.ed-map-column{padding:16px}.ed-map.pc-media{min-height:270px}.ed-select{align-items:flex-start;flex-direction:column;gap:8px}.ed-select select{max-width:none;width:100%}.ts-style{flex-wrap:wrap}.ts-stage .geo-scene{height:520px}}
@media(max-width:760px){.shell{display:block}.content,.editorial-home .content,.content:has(.twin-studio){padding:20px 14px}.topbar,.editorial-home .topbar{padding:0 16px;height:64px}.ed-heading h1{font-size:27px}.ed-main{grid-template-columns:1fr}.ed-overview{padding:23px}.ed-map-column{border-left:0;border-top:1px solid var(--line)}.ed-map.pc-media{height:240px;min-height:240px}.ed-select{flex-direction:row;align-items:center}.ed-select select{width:55%}.ed-identity{padding:22px 0}.ed-identity h2{font-size:34px}.ed-quick{grid-template-columns:1fr;gap:10px}.ed-quick>a,.ed-quick>button{padding:15px}.ed-section-title>span{display:none}.overview-evidence{gap:9px}.overview-evidence>a{padding:13px 10px}.overview-evidence strong{font-size:24px}.overview-evidence span{font-size:10px}.overview-evidence svg,.overview-evidence small{display:none}.overview-evidence strong,.overview-evidence span{grid-column:1/-1}.ts-heading{flex-direction:column;align-items:stretch;gap:12px}.ts-heading>select{width:100%}.ts-toolbar{flex-wrap:wrap;padding:10px}.ts-style{margin-left:0;justify-content:space-between;width:100%}.ts-style>label{display:flex;align-items:center;gap:6px}.ts-style select{margin:0;max-width:120px}.ts-stage .geo-scene{height:450px;min-height:380px}.ts-inspector{grid-template-columns:1fr}.ts-camera{max-width:95%;gap:0}.ts-camera button{padding:8px;font-size:10px}.ts-canvas-caption{left:10px;top:10px;font-size:11px}.ts-interaction{font-size:9px}.twin-legend{gap:10px;padding:12px}.ts-expanded{padding:10px}.ts-expanded .geo-scene{height:60dvh}.plot-card-v2 .pc-media{height:200px}dialog{padding:22px;max-width:calc(100vw - 24px)}.form-actions{bottom:-22px}.filter-row input{min-width:0;width:70%}}
.editorial-home .nav-item.active{background:#e5f3ec;color:#087b53;box-shadow:inset 3px 0 #079964}
.ed-overview{padding:24px 28px}.ed-identity{padding:20px 0}.ed-stats{background:transparent;border-radius:0;border:0;border-top:1px solid var(--line);padding:17px 0 0;margin-bottom:19px;box-shadow:none}.ed-map.pc-media{min-height:260px}.ed-main-actions{gap:10px}.ed-main-actions .ed-details{padding:0}.ed-map-column{padding:20px}.ed-map-footer{padding-top:10px}.ed-identity h2{font-size:36px;margin:12px 0 8px}
.twin-studio.ts-model .ts-workspace{grid-template-columns:minmax(0,1fr) 286px;align-items:start}
.twin-studio.ts-model .ts-stage .geo-scene{height:clamp(400px,calc(100dvh - 270px),720px);min-height:400px}
.twin-studio.ts-model .ts-camera{background:#153d34ed;border:1px solid #ffffff40;border-radius:13px;bottom:40px;padding:5px}.twin-studio.ts-model .ts-camera button{color:#fff;font-size:11px}.twin-studio.ts-model .ts-inspector{max-height:none;overflow:visible}.twin-studio .ts-canvas-wrap{flex:0 0 auto}
@media(max-width:1100px){.twin-studio.ts-model .ts-workspace{grid-template-columns:1fr}.twin-studio.ts-model .ts-stage .geo-scene{height:480px}.ed-main-actions{flex-direction:column;align-items:stretch}.ed-main-actions .ed-details{justify-content:center}}
@media(max-width:760px){.twin-studio.ts-model .ts-stage .geo-scene{height:430px;min-height:380px}.twin-studio.ts-model .ts-camera button{font-size:10px}.ed-main-actions{flex-direction:row;align-items:center}.ed-main-actions .ed-details{max-width:115px}.ed-overview{padding:22px}.ed-map-column{padding:16px}.ed-map.pc-media{min-height:230px;height:230px}}
.topbar .search,.editorial-home .topbar .search{display:flex;align-items:center;gap:8px;width:210px;height:36px;min-height:36px;padding:0 11px;border:1px solid #e1e9e7;border-radius:10px;background:#f6f9f8;box-shadow:none;flex:0 0 auto;transition:border-color .18s,box-shadow .18s}
.topbar .search:focus-within{border-color:#70b59a;box-shadow:0 0 0 3px #0b885512}
.topbar .search input,.editorial-home .topbar .search input{width:100%;min-width:0;min-height:0;height:34px;padding:0;border:0;border-radius:0;background:transparent;font-size:11px;box-shadow:none;outline:none}
.topbar .search svg{position:static;transform:none;inset:auto;width:16px;height:16px;flex:none;color:#728b80}
@media(max-width:900px){.topbar .search,.editorial-home .topbar .search{width:175px}}
@media(max-width:700px){.topbar .search,.editorial-home .topbar .search{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
