:root{color:#142337;font-synthesis:none;text-rendering:optimizelegibility;--navy:#071b31;--navy-soft:#0d2944;--green:#1f9d72;--green-dark:#147a58;--green-soft:#e7f5ef;--red:#e31e24;--ink:#142337;--muted:#6b7a8c;--line:#e2e8ee;--surface:#fff;--page:#f3f6f8;--radius:14px;background:#f3f6f8;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{min-width:320px}button,input,select{font:inherit}button{cursor:pointer}h1,h2,strong{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}h1,h2,p{margin-top:0}.auth-shell{background:var(--surface);grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);min-height:100vh;display:grid}.auth-brand-panel{color:#fff;background-color:var(--navy);flex-direction:column;justify-content:space-between;min-height:100vh;padding:clamp(32px,5vw,76px);display:flex;position:relative;overflow:hidden}.auth-brand-panel:after{content:"";border:1px solid #ffffff1a;border-radius:50%;width:440px;height:440px;position:absolute;bottom:-160px;right:-120px;box-shadow:0 0 0 70px #ffffff06,0 0 0 140px #ffffff05}.auth-copy{z-index:1;max-width:650px;position:relative}.auth-copy h1{letter-spacing:-.05em;max-width:720px;margin:18px 0 24px;font-size:clamp(38px,5.3vw,72px);line-height:1.02}.auth-copy p{color:#b8c7d6;max-width:570px;font-size:18px;line-height:1.65}.auth-form-panel{place-items:center;padding:40px;display:grid;position:relative}.auth-language{position:absolute;top:28px;right:32px}.auth-card{gap:22px;width:min(100%,420px);display:grid}.auth-card h2{letter-spacing:-.03em;margin:10px 0 8px;font-size:32px}.auth-card p{color:var(--muted)}.auth-card label,.modal label{color:#405165;gap:8px;font-size:13px;font-weight:700;display:grid}.auth-card input,.modal input{width:100%;height:48px;color:var(--ink);background:#fff;border:1px solid #d6dfe7;border-radius:10px;outline:none;padding:0 14px;transition:border-color .18s,box-shadow .18s}.auth-card input:focus,.modal input:focus{border-color:var(--green);box-shadow:0 0 0 3px #1f9d7221}.brand-lockup{color:#fff;z-index:1;align-items:center;gap:12px;display:flex;position:relative}.brand-lockup>span:last-child{flex-direction:column;line-height:1.05;display:flex}.brand-lockup strong{letter-spacing:-.02em;font-size:17px}.brand-lockup small{color:#91a6b9;text-transform:uppercase;letter-spacing:.14em;margin-top:5px;font-size:10px}.brand-mark{color:#fff;background:var(--green);letter-spacing:-.05em;border:1px solid #ffffff57;border-radius:10px;place-items:center;width:38px;height:38px;font-size:14px;font-weight:800;display:grid}.brand-lockup-large .brand-mark{width:46px;height:46px}.brand-lockup-large strong{font-size:20px}.eyebrow{color:var(--green-dark);text-transform:uppercase;letter-spacing:.14em;font-size:10px;font-weight:800}.auth-brand-panel .eyebrow{color:#7bd2b3}.primary-button,.secondary-button,.add-farm-button{border:0;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 18px;font-weight:700;display:inline-flex}.primary-button,.add-farm-button{color:#fff;background:var(--green)}.primary-button:hover,.add-farm-button:hover{background:var(--green-dark)}.primary-button:disabled{opacity:.55;cursor:wait}.secondary-button{color:var(--ink);background:#eef2f5}.privacy-note{text-align:center;font-size:11px}.form-error{background:#fff0f0;border:1px solid #f2c6c8;border-radius:9px;padding:10px 12px;font-size:12px;color:#a92228!important}.callback-shell{background:var(--page);text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:32px;display:flex}.callback-shell h1{margin:18px 0 8px;font-size:30px}.callback-shell p{color:var(--muted);max-width:520px}.callback-shell a{color:var(--green-dark);font-weight:700}.loading-mark{width:50px;height:50px;color:var(--green);background:var(--green-soft);border-radius:14px;place-items:center;display:grid}.loading-mark.error{color:var(--red);background:#ffeded}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.app-shell{background:var(--page);min-height:100vh;display:flex}.sidebar{z-index:30;color:#c4d0db;background:var(--navy);flex-direction:column;width:272px;padding:20px 14px 14px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-top{justify-content:space-between;align-items:center;padding:0 7px 22px;display:flex}.sidebar-close{color:#fff;background:0 0;border:0;display:none}.sidebar nav{flex-direction:column;gap:3px;display:flex;overflow-y:auto}.sidebar nav button{color:#a9b8c6;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;gap:12px;width:100%;min-height:42px;padding:0 12px;font-size:13px;font-weight:600;transition:background .15s,color .15s;display:flex}.sidebar nav button:hover{color:#fff;background:#ffffff0f}.sidebar nav button.active{color:#fff;background:var(--green)}.sidebar-navigation{scrollbar-width:thin;scrollbar-color:#ffffff38 transparent}.nav-section{border-radius:10px;padding:5px}.nav-section.active{background:#ffffff0b}.nav-section-title{color:#d9e3eb;align-items:center;gap:10px;min-height:36px;padding:0 9px;font-size:12px;font-weight:800;display:flex}.nav-section-title svg{color:#7fc8ac;flex:none}.nav-pages{gap:1px;margin:0 0 3px 27px;display:grid}.sidebar nav .nav-pages button{color:#869bac;border-radius:6px;min-height:30px;padding:5px 9px;font-size:11px;font-weight:600;line-height:1.25}.sidebar nav .nav-pages button.active{color:#fff;background:var(--green)}.sidebar-footer{border-top:1px solid #ffffff17;gap:4px;margin-top:auto;padding:18px 8px 3px;display:grid}.sidebar-footer span{color:#fff;font-size:12px;font-weight:700}.sidebar-footer small{color:#71879a;font-size:10px}.sidebar-scrim{display:none}.app-main{width:calc(100% - 272px);min-height:100vh;margin-left:272px}.topbar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;justify-content:space-between;align-items:center;gap:20px;height:72px;padding:0 clamp(18px,3vw,42px);display:flex;position:sticky;top:0}.mobile-menu{color:var(--ink);background:0 0;border:0;display:none}.farm-selector{background:#f3f6f8;border:1px solid #e4e9ee;border-radius:10px;align-items:center;gap:10px;min-width:230px;height:46px;padding:0 12px;display:flex}.farm-selector>svg:first-child{color:var(--green)}.farm-selector>svg:last-child{color:var(--muted);margin-left:auto}.farm-selector label{min-width:0;display:grid}.farm-selector label span{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:9px;font-weight:700}.farm-selector select{appearance:none;max-width:185px;color:var(--ink);background:0 0;border:0;outline:none;font-size:13px;font-weight:700}.topbar-actions{align-items:center;gap:12px;display:flex}.language-switch{border:1px solid var(--line);background:#f3f6f8;border-radius:8px;align-items:center;gap:2px;height:32px;padding:3px;display:inline-flex}.language-switch button{min-width:30px;height:24px;color:var(--muted);background:0 0;border:0;border-radius:5px;padding:0 6px;font-size:10px;font-weight:800}.language-switch button:hover{color:var(--ink)}.language-switch button.active{color:#fff;background:var(--navy-soft)}.add-farm-button{min-height:38px;padding:0 14px;font-size:12px}.user-chip{align-items:center;gap:9px;min-width:0;display:flex}.user-chip>span{width:34px;height:34px;color:var(--green-dark);background:var(--green-soft);border-radius:50%;place-items:center;font-weight:800;display:grid}.user-chip>div{min-width:0;display:grid}.user-chip strong{font-size:12px}.user-chip small{max-width:180px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:10px;overflow:hidden}.icon-button{border:1px solid var(--line);color:#526276;background:#fff;border-radius:9px;place-items:center;width:38px;height:38px;display:grid}.icon-button:hover{color:var(--ink);background:#f5f7f9}.content{max-width:1480px;margin:0 auto;padding:34px clamp(18px,3vw,42px) 54px}.inline-alert{color:#8d2529;background:#fff0f0;border:1px solid #f2cbcd;border-radius:9px;margin-bottom:18px;padding:12px 14px;font-size:13px}.page-heading{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:26px;display:flex}.page-heading h1{letter-spacing:-.04em;margin:9px 0 8px;font-size:clamp(25px,3vw,38px);line-height:1.15}.page-heading p{color:var(--muted);font-size:14px}.status-pill{border-radius:999px;flex:none;align-items:center;gap:8px;height:32px;padding:0 12px;font-size:11px;font-weight:800;display:flex}.status-pill span,.health-status span{border-radius:50%;width:7px;height:7px}.status-pill.demo{color:#8a5b13;background:#fff1d6}.status-pill.demo span{background:#e6a53b}.status-pill.live{color:var(--green-dark);background:var(--green-soft)}.status-pill.live span,.health-status span{background:var(--green)}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.metric-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);min-height:132px;padding:19px;box-shadow:0 5px 18px #192c4109}.metric-card>div:nth-child(2){gap:5px;display:grid}.metric-card>div:nth-child(2)>span{color:var(--muted);font-size:11px;font-weight:700}.metric-card strong{letter-spacing:-.04em;font-size:clamp(23px,2.3vw,31px)}.metric-card strong small{color:var(--muted);letter-spacing:0;font-family:inherit;font-size:11px;font-weight:600}.metric-card p{color:#8491a1;margin:12px 0 0 42px;font-size:10px}.metric-icon{float:left;border-radius:8px;place-items:center;width:31px;height:31px;margin-right:11px;display:grid}.tone-1{color:#1b8a67;background:#e5f5ee}.tone-2{color:#3977b7;background:#e8f1fb}.tone-3{color:#ad7922;background:#fff2d8}.tone-4{color:#8a56a8;background:#f3eafa}.dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:18px;margin-bottom:18px;display:grid}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:0 5px 18px #192c4109}.panel>header{justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px 15px;display:flex}.panel h2{letter-spacing:-.03em;margin:5px 0 0;font-size:18px}.panel-total{color:var(--muted);padding-top:7px;font-size:10px}.chart-wrap{width:100%;height:280px;padding:4px 16px 15px 9px}.chart-loading{height:100%;color:var(--muted);place-items:center;font-size:12px;display:grid}.ration-panel header>svg{color:var(--green)}.ration-list{padding:2px 20px 14px}.ration-row{border-top:1px solid #edf1f4;align-items:center;gap:10px;min-height:52px;display:flex}.ration-row:first-child{border-top:0}.ration-dot{background:var(--green);border-radius:50%;flex:none;width:7px;height:7px}.ration-row>div{flex:1;min-width:0;display:grid}.ration-row strong{white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.ration-row small{color:var(--muted);font-size:9px}.ration-row b{color:#405165;white-space:nowrap;font-size:11px}.table-panel header{align-items:center}.text-button{color:var(--green-dark);background:0 0;border:0;font-size:11px;font-weight:800}.responsive-table{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;white-space:nowrap;border-top:1px solid #edf1f4;padding:13px 22px}th{color:#8794a3;text-transform:uppercase;letter-spacing:.08em;background:#fafbfc;font-size:9px}td{color:#546477;font-size:12px}td strong{color:var(--ink);font-size:12px}.health-status{color:var(--green-dark);align-items:center;gap:6px;font-size:10px;font-weight:700;display:inline-flex}.module-heading{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px;display:flex}.module-heading h1{letter-spacing:-.045em;margin:8px 0 7px;font-size:clamp(28px,3vw,42px)}.module-heading p{max-width:760px;color:var(--muted);margin:0;font-size:13px;line-height:1.55}.module-meta{justify-items:end;gap:8px;display:grid}.module-meta small{color:var(--muted);white-space:nowrap;font-size:9px}.segmented-tabs{border:1px solid var(--line);background:#eaf0f3;border-radius:10px;gap:2px;width:fit-content;max-width:100%;margin-bottom:16px;padding:3px;display:flex;overflow-x:auto}.segmented-tabs button{min-height:32px;color:var(--muted);white-space:nowrap;background:0 0;border:0;border-radius:7px;padding:0 13px;font-size:11px;font-weight:800}.segmented-tabs button.active{color:#fff;background:var(--navy-soft)}.module-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.module-kpis article{border:1px solid var(--line);border-top:3px solid var(--green);border-radius:var(--radius);background:#fff;min-height:116px;padding:18px;box-shadow:0 5px 18px #192c4109}.module-kpis article>span{min-height:30px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.35;display:block}.module-kpis strong{color:var(--ink);letter-spacing:-.035em;margin-top:4px;font-size:26px;display:block}.module-kpis strong small{color:var(--muted);letter-spacing:0;font-size:10px}.module-kpis p{margin:8px 0 0;font-size:9px}.module-kpis p.positive{color:var(--green-dark)}.module-kpis p.negative{color:#b33339}.module-kpis p.neutral{color:var(--muted)}.module-chart{margin-bottom:18px}.module-chart-body{height:320px;padding:4px 22px 20px 7px}.filter-panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin-bottom:18px;padding:16px 18px}.filter-title{color:var(--ink);text-transform:uppercase;letter-spacing:.08em;align-items:center;gap:8px;margin-bottom:13px;font-size:11px;font-weight:800;display:flex}.filter-title svg{color:var(--green)}.filter-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.filter-fields label{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;gap:6px;font-size:9px;font-weight:800;display:grid}.filter-fields input{width:100%;min-width:0;height:38px;color:var(--ink);background:#fbfcfd;border:1px solid #d8e0e7;border-radius:8px;outline:none;padding:0 11px}.filter-fields input:focus{border-color:var(--green);box-shadow:0 0 0 3px #1f9d721a}.module-table-panel{overflow:hidden}.module-table-panel>header{align-items:center}.table-actions{align-items:center;gap:9px;display:flex}.table-search{border:1px solid var(--line);background:#fafcfd;border-radius:8px;align-items:center;gap:7px;min-width:220px;height:38px;padding:0 10px;display:flex}.table-search svg{color:var(--muted)}.table-search input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;font-size:11px}.secondary-button.compact{min-height:38px;padding:0 12px;font-size:10px}.secondary-button:disabled{opacity:.5;cursor:default}.module-table-panel .responsive-table{max-height:610px}.module-table-panel table{min-width:100%}.module-table-panel tbody tr:hover{background:#f7faf9}.clickable-row{cursor:pointer}.clickable-row td:first-child strong{color:var(--green-dark);text-underline-offset:3px;-webkit-text-decoration:underline #1f9d724d;text-decoration:underline #1f9d724d}.empty-table{min-height:210px;color:var(--muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:7px;padding:30px;display:flex}.empty-table svg{color:#a7b4c0}.empty-table strong{color:var(--ink);font-size:13px}.empty-table span{font-size:11px}.empty-module{border-radius:var(--radius);min-height:260px;color:var(--green-dark);background:#ffffff8c;border:1px dashed #cad5de;justify-content:center;align-items:center;gap:14px;padding:36px;display:flex}.empty-module strong{color:var(--ink)}.empty-module p{color:var(--muted);margin:5px 0 0;font-size:12px}.module-notice{color:#6f572f;background:#fff8e9;border-left:3px solid #e6a53b;margin-top:16px;padding:13px 15px;font-size:11px;line-height:1.5}.detail-backdrop{z-index:60;background:#0412207a;justify-content:flex-end;display:flex;position:fixed;inset:0}.detail-drawer{background:#f4f7f9;width:min(840px,94vw);height:100%;overflow-y:auto;box-shadow:-25px 0 70px #03111f3d}.detail-drawer>header{z-index:1;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff7;justify-content:space-between;align-items:flex-start;padding:20px 22px;display:flex;position:sticky;top:0}.detail-drawer h2{margin:6px 0 0;font-size:23px}.detail-content{gap:16px;padding:20px;display:grid}.compact-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.compact-kpis article{border:1px solid var(--line);background:#fff;border-radius:10px;padding:15px}.compact-kpis span{color:var(--muted);font-size:9px;display:block}.compact-kpis strong{margin-top:5px;font-size:18px;display:block}.detail-section{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:18px}.detail-section h3{margin:0 0 14px;font-size:14px}.detail-section dl{background:var(--line);grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;display:grid}.detail-section dl div{background:#fff;padding:11px 12px}.detail-section dt{color:var(--muted);font-size:9px}.detail-section dd{color:var(--ink);margin:4px 0 0;font-size:12px;font-weight:800}.placeholder-panel{border:1px solid var(--line);border-radius:var(--radius);background:#fff;flex-direction:column;justify-content:center;align-items:flex-start;min-height:calc(100vh - 160px);padding:clamp(30px,6vw,80px);display:flex}.placeholder-icon{width:54px;height:54px;color:var(--green);background:var(--green-soft);border-radius:14px;place-items:center;margin-bottom:24px;display:grid}.placeholder-panel h1{letter-spacing:-.05em;margin:10px 0 12px;font-size:clamp(32px,4vw,52px)}.placeholder-panel>p{max-width:650px;color:var(--muted);line-height:1.65}.foundation-note{border-left:3px solid var(--green);color:#4c5d70;background:#f2f8f5;gap:12px;max-width:610px;margin-top:24px;padding:15px 16px;font-size:12px;line-height:1.5;display:flex}.foundation-note svg{color:var(--green);flex:none}.foundation-note strong{color:var(--ink);display:block}.modal-backdrop{z-index:50;background:#04122094;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:16px;width:min(100%,560px);box-shadow:0 30px 80px #00000042}.modal>header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;padding:23px 24px 18px;display:flex}.modal h2{margin:7px 0 0;font-size:22px}.modal form{gap:18px;padding:22px 24px 24px;display:grid}.form-row{grid-template-columns:150px minmax(0,1fr);gap:14px;display:grid}.modal-actions{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}@media (width<=1023px){.metric-grid,.module-kpis,.filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.ration-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;display:grid}}@media (width<=800px){.auth-shell{grid-template-columns:1fr}.auth-brand-panel{min-height:330px;padding:32px}.auth-copy h1{font-size:42px}.auth-copy p{font-size:15px}.auth-form-panel{padding:44px 24px}.sidebar{width:min(286px,86vw);transition:transform .22s;transform:translate(-102%);box-shadow:14px 0 40px #0000002e}.sidebar.open{transform:translate(0)}.sidebar-close,.mobile-menu{place-items:center;display:grid}.sidebar-scrim{z-index:25;background:#03101d73;border:0;display:block;position:fixed;inset:0}.app-main{width:100%;margin-left:0}.topbar{gap:10px;padding:0 16px}.farm-selector{flex:1;min-width:0}.farm-selector select{width:100%}.user-chip>div,.add-farm-button span{display:none}.add-farm-button{width:38px;padding:0}.content{padding:26px 16px 42px}}@media (width<=599px){.auth-brand-panel{min-height:300px}.auth-copy h1{font-size:35px}.metric-grid{grid-template-columns:1fr}.module-heading{flex-direction:column}.module-meta{justify-items:start}.module-kpis,.filter-fields,.compact-kpis{grid-template-columns:1fr}.module-table-panel>header,.table-actions{flex-direction:column;align-items:stretch}.table-search{width:100%;min-width:0}.detail-section dl{grid-template-columns:1fr}.metric-card{min-height:115px}.page-heading{flex-direction:column}.status-pill{order:-1}.ration-list{grid-template-columns:1fr}.chart-wrap{height:245px}.form-row{grid-template-columns:1fr}.modal-actions{flex-direction:column-reverse}.modal-actions button{width:100%}.farm-selector label span{display:none}.topbar-actions{gap:7px}.topbar .language-switch{height:30px}.topbar .language-switch button{min-width:26px;padding:0 4px}.user-chip{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
