@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root { font-family:'Be Vietnam Pro',system-ui,sans-serif; font-synthesis:none; color:#132b22; background:#0b1713; }
* { box-sizing:border-box; } body {margin:0;} button,input{font:inherit;} button{cursor:pointer;} button:focus-visible,input:focus-visible{outline:3px solid #a5d6a5;outline-offset:3px;}
.app-shell{height:100dvh; min-height:750px; display:flex; flex-direction:column; overflow:hidden;}
.header{height:78px;flex-shrink:0;background:#0e2119;border-bottom:1px solid #2c4036;display:flex;align-items:center;justify-content:space-between;padding:0 31px;color:white;gap:16px;}
.brand{display:flex;align-items:center;gap:13px;}.brand-mark{background:linear-gradient(140deg,#2a9b66,#185e43);height:44px;width:48px;border-radius:13px;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 6px 22px #0004}.brand-mark span{font-weight:800;font-size:19px;letter-spacing:-1.7px}.brand-mark small{position:absolute;right:-6px;bottom:-6px;background:#baf3c9;color:#164d35;padding:3px 5px;border-radius:4px;font-size:8px;font-weight:800}.brand>div:last-child{display:flex;flex-direction:column;gap:3px}.brand strong{font-size:16px;letter-spacing:1.65px}.brand>div:last-child span{color:#92b0a0;font-size:9px;letter-spacing:1.6px;font-weight:600;}
.header-right{display:flex;align-items:center;gap:12px}.live-pill{color:#bce7cc;font-size:10px;font-weight:800;letter-spacing:1px;background:#1a3628;border:1px solid #326c4a;padding:10px 13px;border-radius:9px;white-space:nowrap}.indicator,.pulse-dot{display:inline-block;width:7px;height:7px;background:#7be69c;border-radius:50%;margin-right:7px;box-shadow:0 0 10px #7be69c}.date-pill{font-size:11px;color:#aec9b9;padding-left:9px;white-space:nowrap}
.main-layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 410px;min-height:0;}.scene-section{position:relative;background:#c1d5bd;overflow:hidden;min-height:0}.scene-section:after{content:"";pointer-events:none;position:absolute;inset:0;background:linear-gradient(180deg,#0d281f6e 0%,transparent 25%, transparent 65%,#0a23184d 100%)}#scene-container{position:absolute;inset:0;}#scene-container canvas{display:block;width:100%;height:100%;touch-action:none}.webgl-message{position:absolute;inset:0;background:radial-gradient(at 60% 30%,#c9e1ba,#7e9c79);display:flex;align-items:center;justify-content:center;color:#28513f;font-size:14px;text-align:center;padding:25px;z-index:1}.webgl-message.hidden{display:none}.scene-top,.scene-bottom,.scene-legend,.scene-hint{position:absolute;z-index:2;pointer-events:none;}.scene-top{top:37px;left:37px;color:white;text-shadow:0 2px 17px #071b139c;}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:800;color:#d8ffe7}.scene-top h1{font-size:30px;letter-spacing:-1.2px;margin:13px 0 9px;line-height:1.15}.scene-top p{font-size:12px;color:#e1efe6;max-width:340px;line-height:1.75;margin:0}.scene-legend{right:25px;top:39px;display:flex;align-items:flex-end;flex-direction:column;gap:7px}.scene-legend span{font-size:10px;color:#eaffee;background:#123224ab;padding:8px 10px;border:1px solid #ffffff30;border-radius:7px;backdrop-filter:blur(10px)}.scene-legend i{display:inline-block;width:7px;height:7px;border-radius:3px;margin-right:4px}.legend-duck{background:#f6eabb}.legend-barn{background:#58b185}.scene-bottom{bottom:34px;left:26px;right:26px;display:flex;justify-content:space-between;gap:12px;align-items:center}.camera-group{display:flex;gap:4px;background:#10281fdc;border:1px solid #ffffff31;backdrop-filter:blur(12px);padding:5px;border-radius:11px;pointer-events:auto;box-shadow:0 15px 40px #14251b45}.scene-btn{border:none;background:transparent;color:#d0e7d8;font-size:10px;font-weight:700;padding:10px 12px;border-radius:7px;white-space:nowrap}.scene-btn:hover{background:#ffffff22}.scene-btn.active{background:#2e8b61;color:#fff}.sound-btn{min-width:128px}.scene-hint{bottom:92px;left:30px;font-size:10px;font-weight:600;color:#f3fff2;text-shadow:0 1px 10px #1b3629aa;}
.side-panel{background:#f7faf7;overflow-y:auto;overflow-x:hidden;padding:29px 24px 15px 25px;box-shadow:-10px 0 35px #263f2310;}.aside-topline{display:flex;justify-content:space-between;align-items:center;color:#428663;font-size:9px;font-weight:800;letter-spacing:1.2px}.tag-neutral{font-size:8px;background:#e5efe6;color:#607a66;padding:7px 9px;border-radius:6px;letter-spacing:.8px}.side-panel h2{font-size:25px;font-weight:800;letter-spacing:-1.1px;line-height:1.25;margin:18px 0 10px}.lead{font-size:11px;color:#708279;line-height:1.9;margin:0 0 21px}.metric-panel{background:#133c2b;color:white;padding:18px 19px;border-radius:13px;box-shadow:0 16px 30px #174f2a19}.metric-title{font-size:10px;color:#b9ddc7;font-weight:600}.metric-main{display:flex;align-items:baseline;gap:8px;margin:9px 0 13px}.metric-main strong{font-weight:800;font-size:37px;line-height:1;letter-spacing:-1.3px}.metric-main span{font-size:10px;font-weight:800;color:#b9dbc3}.meter{height:5px;background:#3b5d46;border-radius:10px;overflow:hidden}.meter-fill{height:100%;background:#92eb9c;border-radius:10px}.meter-row{display:flex;justify-content:space-between;gap:9px;font-size:8px;margin-top:9px;color:#c0d8ca;line-height:1.4}.metric-note{margin:10px 0 0;font-size:9px;color:#91baa2;line-height:1.5}.farms-label{display:flex;justify-content:space-between;margin:27px 0 12px;font-size:9px;font-weight:800;letter-spacing:.6px;color:#476355}.farms-label span:last-child{color:#93a49b;font-size:8px}.farm-card{width:100%;display:flex;align-items:flex-start;gap:12px;border:1px solid #e1eae3;background:white;padding:15px 12px;border-radius:11px;margin-bottom:9px;text-align:left;box-shadow:0 4px 10px #19362407;transition:border-color .16s,transform .16s,background .16s;}.farm-card:hover,.farm-card.selected{border-color:#40a670;background:#f6fff9;transform:translateY(-1px)}.farm-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:9px;font-size:25px;font-weight:bold;flex-shrink:0}.farm-icon.brooder{color:#cb9253;background:#fff1db}.farm-icon.grown{color:#388b66;background:#e4f4e9}.farm-details{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.farm-details strong{font-size:12px;color:#233c2d}.farm-details small{font-size:9px;color:#859b8b}.farm-details em{font-size:9px;color:#7b9b83;font-style:normal;line-height:1.4}.farm-details .warning-inline{color:#c68739}.farm-count{display:flex;flex-direction:column;align-items:end;flex-shrink:0;gap:4px}.farm-count strong{font-size:16px;font-weight:800;color:#265b3d}.farm-count small{font-size:9px;color:#a0ada5}.options-panel{margin-top:22px;border-top:1px solid #e2eae3;padding-top:18px}.options-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.options-heading strong{font-size:11px}.options-heading span{font-size:9px;color:#38875c}#density{width:100%;accent-color:#3a9466;cursor:pointer;margin:18px 0 5px}.options-marks{display:flex;justify-content:space-between;font-size:9px;color:#91a397}.options-panel p{font-size:9px;color:#798e7e;line-height:1.65;margin:12px 0}.options-panel p b{color:#53705c}.bottom-info{display:flex;align-items:flex-start;gap:11px;border-radius:10px;padding:12px 13px;background:#fff7ea;border:1px solid #f2e0c4;margin-top:18px}.alert-symbol{background:#e4ad53;color:white;font-size:12px;font-weight:800;border-radius:50%;height:22px;width:22px;display:grid;place-items:center;flex-shrink:0}.bottom-info strong{font-size:10px;color:#95632f}.bottom-info p{font-size:9px;line-height:1.7;color:#997a56;margin:6px 0 0}.footnote{border-top:1px solid #e2e8e1;padding-top:14px;margin-top:23px;display:flex;justify-content:space-between;font-size:8px;color:#9eafa2;font-weight:800;letter-spacing:1px}.footnote span{color:#8a9b91}
@media(max-width:1050px){.main-layout{grid-template-columns:minmax(0,1fr) 355px}.side-panel{padding:26px 18px 13px}.scene-top{left:25px}.scene-bottom{left:14px;right:14px}.scene-btn{padding:9px 8px;font-size:9px}}
@media(max-width:790px){.app-shell{height:auto;min-height:100dvh;overflow:visible}.header{height:67px;padding:0 15px}.brand strong{font-size:13px}.brand>div:last-child span{font-size:8px}.brand-mark{width:39px;height:38px}.date-pill{display:none}.live-pill{font-size:8px;padding:8px}.main-layout{display:flex;flex-direction:column}.scene-section{min-height:60vh;height:540px;max-height:720px}.side-panel{overflow:visible}.scene-top{top:24px;left:21px}.scene-top h1{font-size:24px}.scene-top p{font-size:10px;max-width:255px}.scene-legend{top:auto;bottom:107px;right:14px}.scene-bottom{bottom:16px;left:11px;right:11px;gap:7px;flex-wrap:wrap}.camera-group{flex:1;justify-content:center}.scene-btn{padding:9px 8px}.scene-hint{bottom:141px;left:15px;font-size:9px}.side-panel{padding:26px 20px}.side-panel h2{font-size:25px}}
@media(max-width:460px){.header{padding:0 12px}.brand{gap:9px}.brand>div:last-child span{font-size:6.5px;letter-spacing:.7px}.brand strong{font-size:12px}.scene-section{height:545px;min-height:545px}.scene-legend{bottom:119px;gap:5px}.scene-legend span{padding:6px;font-size:8px}.camera-group{min-width:0}.camera-group:first-child{flex:1 1 100%}.scene-btn{font-size:10px;flex:1;padding:10px 7px}.scene-hint{bottom:150px}.side-panel{padding:25px 16px}}

.upload-audio{display:inline-flex;align-items:center;justify-content:center;background:#e4f2e8;color:#276646;border:1px solid #b6d9bf;border-radius:7px;padding:9px 12px;font-size:10px;font-weight:800}.upload-audio:hover{background:#c8e7d0}
