:root{--ink:#eff2e9;--muted:#c0c9bd;--soft:#93a99a;--glass:rgba(15,37,37,.88);--stroke:rgba(206,221,206,.16);--accent:#d7de9a;--gold:#e9bb85;--teal:#8fc3c5;--danger:#e8a384;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:dark}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;background:#122a28;color:var(--ink);overflow:hidden}button,select,input{font:inherit}button,select{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #fff6be;outline-offset:3px}button{border:1px solid var(--stroke);color:var(--ink);background:rgba(255,255,255,.065);border-radius:8px;padding:9px 11px;transition:background .17s ease,border-color .17s ease}button:hover{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.30)}button:active{transform:translateY(1px)}button.primary{background:var(--accent);color:#18322d;font-weight:800;border-color:transparent}button.primary:hover{background:#eef4be}button.subtle{border-color:rgba(215,222,154,.31);color:var(--accent)}a{color:var(--accent)}select{max-width:100%;border:1px solid var(--stroke);border-radius:8px;background:#29423b;color:var(--ink);padding:8px 7px;font-size:12px}h1,h2,h3,p{margin-top:0}small{font-size:10px}#app{width:100%;height:100%;height:100dvh;position:relative;isolation:isolate}#world{position:absolute;inset:0;overflow:hidden}#world canvas{width:100%;height:100%;display:block;touch-action:none}#world:after{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,25,22,.16),transparent 37%,transparent 69%,rgba(7,24,23,.15))}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,rgba(12,28,26,.38),transparent 21%,transparent 79%,rgba(14,29,25,.30));z-index:1}.glass{background:var(--glass);border:1px solid var(--stroke);box-shadow:0 18px 60px rgba(7,14,13,.2);backdrop-filter:blur(19px);-webkit-backdrop-filter:blur(19px)}.topbar{z-index:5;position:absolute;top:14px;left:18px;right:18px;height:78px;display:flex;align-items:center;gap:15px;border-radius:14px;padding:10px 17px}.logo{width:54px;height:54px;border:1px solid rgba(220,234,189,.39);border-radius:12px;background:#344c40;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#e3e9ba;line-height:.79}.logo-top{font-family:Georgia,serif;font-size:35px}.logo-wave{font-size:22px;transform:translateY(-5px)}.identity{min-width:0;flex:1}.eyebrow,.panel-label,.section-title,.chart-heading,.selection-header,.camera-tools>span,.section-small{letter-spacing:.16em;font-size:10px;font-weight:700;color:var(--soft)}.identity .eyebrow{font-size:9px}.dot{color:#dadd9c;font-size:7px;margin:0 7px}.identity h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(22px,2.3vw,31px);font-weight:500;letter-spacing:.02em;margin:3px 0 2px}.identity h1 span{font-size:.63em;color:#d5e3d6}.identity p{font-size:11px;color:var(--muted);margin:0}.top-controls{display:flex;align-items:center;gap:8px}.tag{display:inline-flex;gap:7px;border:1px solid var(--stroke);padding:10px 11px;border-radius:9px;font-size:11px;letter-spacing:.1em;color:var(--soft)}.tag strong{color:#eff3cd;font-variant-numeric:tabular-nums}.icon-btn{width:39px;height:38px;padding:0;font-size:21px}.intro{z-index:2;position:absolute;top:102px;left:50%;transform:translateX(-50%);width:min(400px,38vw);border-radius:11px;padding:12px 17px;text-align:center;pointer-events:none;background:rgba(26,53,47,.69)}.intro p{font-family:Georgia,serif;color:#e6eee3;font-size:15px;line-height:1.36;margin:6px 0 0}.panel{position:absolute;z-index:4;top:103px;bottom:116px;width:298px;border-radius:13px;padding:18px;overflow:auto;scrollbar-width:thin;scrollbar-color:#668276 transparent;overscroll-behavior:contain}.panel.left{left:18px}.panel.right{right:18px;width:322px}.panel-label{display:flex;align-items:center;justify-content:space-between;color:#c2d4ba}.live-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#9dd3a7;box-shadow:0 0 12px #a3e1ad}.timeline{margin:17px 0;display:grid;grid-template-columns:1fr auto;align-items:end;gap:2px}.timeline>span{font-size:10px;color:var(--soft);font-weight:700;letter-spacing:.12em}.timeline strong{grid-column:2;grid-row:1/3;font-family:Georgia,serif;font-size:46px;line-height:1;color:var(--accent);font-weight:400}.timeline small{color:var(--muted);grid-column:1}.button-row{display:flex;gap:7px}.button-row button{flex:1;white-space:nowrap;font-size:11px}.select-row{margin:12px 0;display:flex;gap:10px;align-items:center;justify-content:space-between}.select-row label{font-size:12px;color:var(--muted)}.section-title{border-top:1px solid var(--stroke);padding-top:17px;margin:18px 0 11px}.range-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:14px 0 3px;color:var(--muted)}.range-label strong{color:#e4eabe;font-size:12px}input[type=range]{width:100%;accent-color:#d5e3ad;height:14px;cursor:pointer}.micro{margin:2px 0 8px;color:#9eafa2;font-size:10px;line-height:1.3}.full{width:100%;font-size:11px;margin-top:8px}.event-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.event-buttons button{font-size:11px;padding:9px 4px}.status{font-size:11px;margin:14px 0;color:#dce6a9;background:rgba(188,207,134,.1);border-left:2px solid #c9df99;padding:8px 10px;border-radius:3px}.status[data-severity=warn]{background:rgba(232,163,132,.13);border-color:var(--danger);color:#f5c7ad}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}.metric-grid>div{min-width:0;min-height:47px;padding-bottom:8px;border-bottom:1px solid rgba(218,234,212,.085)}.metric-grid small{font-size:9px;line-height:1.25;display:block;letter-spacing:.08em;color:var(--soft);margin-bottom:6px}.metric-grid strong{font-family:Georgia,serif;font-size:21px;font-weight:400;color:#eef0dd;white-space:nowrap}.metric-grid strong.danger{color:var(--danger)}.gauge{height:3px;background:rgba(201,222,201,.16);margin-top:8px;border-radius:3px;overflow:hidden}.gauge i{display:block;width:0;height:100%;background:#a5d0bc;transition:width .2s}.gauge.warn-gauge i{background:var(--gold)}.chart-heading{margin-top:18px;display:flex;justify-content:space-between;gap:4px;flex-wrap:wrap}.chart-heading small{font-size:9px;font-weight:400;letter-spacing:0;line-height:1.25;color:#c5cbc3}#chart{width:100%;height:88px;display:block;margin:6px 0 0}.divider{height:1px;background:var(--stroke);margin:13px 0}.selection-header{display:flex;align-items:center;justify-content:space-between}.selection-header button{padding:2px 9px;font-size:19px}#selected-title{font-family:Georgia,serif;font-size:23px;font-weight:400;margin:12px 0}.selected-content{font-size:11px;line-height:1.55;color:var(--muted);min-height:96px}.selected-content p{margin:9px 0}.selected-grid{display:grid;grid-template-columns:1fr auto;gap:3px 9px}.selected-grid b{color:#e2ebd4;font-variant-numeric:tabular-nums}.field-label{font-size:10px;color:var(--soft)}#variety{width:100%;margin:6px 0 8px}.harvest{margin:12px 0 0}.bottomline{position:absolute;left:18px;right:18px;bottom:14px;min-height:91px;border-radius:13px;display:grid;grid-template-columns:320px minmax(0,1fr) auto;gap:22px;align-items:center;z-index:3;padding:10px 18px}.camera-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.camera-tools button,.bottom-actions button{font-size:11px;padding:8px}.log-area{min-width:0;max-height:67px;overflow:hidden}.log-area ul{list-style:none;margin:5px 0 0;padding:0}.event{display:flex;gap:8px;font-size:10px;color:var(--muted);margin:3px 0}.event small{flex:none;color:var(--accent)}.event.warn{color:#f1bf95}.event.good{color:#b9d8a6}.bottom-actions{display:flex;gap:8px;align-items:center}.bottom-actions a{font-size:11px;white-space:nowrap}.boot{position:absolute;z-index:20;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;background:#172e2d;font-size:13px;color:var(--muted);text-align:center;padding:24px}.boot.error span{max-width:440px;line-height:1.6}.spinner{width:31px;height:31px;border:2px solid #607968;border-top-color:#e4eec5;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:absolute;z-index:18;bottom:122px;left:50%;transform:translateX(-50%) translateY(10px);opacity:0;pointer-events:none;background:#e0e5be;color:#19302c;padding:10px 17px;border-radius:30px;font-size:12px;box-shadow:0 7px 24px #10231c;transition:.2s}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.learning{position:absolute;z-index:9;max-width:470px;bottom:122px;left:50%;transform:translateX(-50%);padding:25px;border-radius:12px;font-size:13px;line-height:1.65}.learning[hidden],.help[hidden]{display:none}.learning h2,.help h2{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:12px 0}.learning p{margin:10px 0}.learning .source-mini{font-size:11px;color:var(--soft)}#learning-close,.close{float:right;font-size:23px;background:transparent;border:0;padding:0 5px}.cause{display:flex;flex-wrap:wrap;gap:7px;align-items:center}.cause span{background:rgba(201,220,168,.14);border:1px solid rgba(201,220,168,.25);border-radius:6px;padding:5px 8px;font-size:11px}.cause b{color:#c1d7a8}.help{border-radius:14px;position:fixed;z-index:10;max-width:490px;max-height:90dvh;overflow:auto;top:50%;left:50%;transform:translate(-50%,-50%);padding:26px;line-height:1.7;color:var(--ink)}.help ol{padding-left:20px;font-size:13px}.help li{margin:8px 0}.help p{font-size:12px;color:var(--muted)}
@media(min-width:1500px){.panel.left{width:335px}.panel.right{width:360px}.intro{width:460px}.bottomline{grid-template-columns:355px minmax(0,1fr) auto}}
@media(max-width:1120px){.panel{width:260px;padding:13px}.panel.right{width:278px}.topbar{height:70px}.intro{top:83px;width:310px;padding:9px 12px}.intro p{font-size:12px}.bottomline{grid-template-columns:210px minmax(0,1fr) auto;gap:12px}.camera-tools{gap:4px}.camera-tools>span{display:none}.camera-tools button{padding:7px 5px}.bottom-actions{flex-direction:column;gap:2px;align-items:flex-end}.bottom-actions button{padding:4px}.metric-grid strong{font-size:19px}}
@media(max-width:780px){html,body{overflow:hidden}#app{height:100dvh}.topbar{left:8px;right:8px;top:8px;height:67px;padding:8px;gap:8px}.logo{width:43px;height:44px}.logo-top{font-size:28px}.logo-wave{font-size:15px}.identity h1{font-size:19px}.identity h1 span{display:none}.identity .eyebrow{font-size:7px;letter-spacing:.11em}.identity p{font-size:9px}.tag{display:none}.icon-btn{width:31px;height:31px;font-size:18px}.intro{display:none}.panel{position:absolute;top:auto;bottom:92px;max-height:min(41dvh,380px);min-height:160px;width:calc(50% - 11px);padding:11px;box-shadow:0 8px 28px #0d231d}.panel.left{left:7px}.panel.right{right:7px;width:calc(50% - 11px)}.panel-label,.section-title{font-size:8px}.panel .section-title{margin:11px 0 6px;padding-top:10px}.timeline{margin:9px 0}.timeline strong{font-size:30px}.timeline small{font-size:9px}.range-label{font-size:10px;margin:8px 0 2px}.select-row{margin:9px 0}.select-row label{font-size:10px}.button-row button{font-size:10px;padding:7px 4px}.event-buttons button{font-size:9px;padding:8px 2px}.metric-grid{gap:7px}.metric-grid small{font-size:8px;margin-bottom:3px}.metric-grid strong{font-size:17px}.selected-content{font-size:10px}.bottomline{left:7px;right:7px;bottom:7px;min-height:76px;padding:7px 9px;grid-template-columns:1fr 1fr;gap:4px}.camera-tools{gap:3px}.camera-tools button{font-size:9px;padding:6px 5px}.log-area{grid-column:2;grid-row:1;max-height:45px}.log-area .event{font-size:9px}.bottom-actions{grid-column:1/3;grid-row:2;flex-direction:row;justify-content:space-between;align-items:center}.bottom-actions button{font-size:9px;padding:3px 6px}.bottom-actions a{font-size:9px}.learning{width:calc(100% - 24px);max-height:65dvh;overflow:auto;bottom:95px;font-size:12px}.help{width:calc(100vw - 30px)}#toast{bottom:91px;width:max-content;max-width:80vw;text-align:center;font-size:10px}}
@media(max-width:440px){.top-controls{gap:3px}.identity h1{font-size:17px}.identity p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px}.panel{max-height:38dvh}.metric-grid{gap:4px}.metric-grid strong{font-size:14px}.chart-heading{font-size:8px}.event-buttons{grid-template-columns:1fr 1fr}.timeline strong{font-size:25px}.button-row{flex-wrap:wrap}.panel.left .button-row button{flex:1 1 45%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
