:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#21362b;background:#f5f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}a{color:inherit}input,textarea,select{display:block;width:100%;border:1px solid #d3dfd0;border-radius:10px;padding:11px 12px;outline-color:#8dae41;background:#fff;color:#263a2b}textarea{resize:vertical}label{display:block;font-size:13px;font-weight:650;margin:12px 0}label input,label select,label textarea{margin-top:6px}button{border:1px solid #d5dfd1;background:white;color:#25402b;border-radius:10px;padding:10px 13px;font-weight:650;transition:background .15s}button:hover{background:#eaf2e6}.primary{color:#fff;background:linear-gradient(125deg,#153f24,#426a30);border-color:#275530}.primary:hover{background:#254e2b}.quiet{background:transparent;border:0}.brand-mark{display:flex;gap:12px;align-items:center}.leaf{background:#8db132;color:#fff;font-size:24px;font-weight:800;border-radius:15px;padding:10px 14px}.brand-mark strong{font-size:18px;display:block;letter-spacing:.03em}.brand-mark small{font-size:11px;display:block;color:#bbd3b0;letter-spacing:.09em}.intro{min-height:100vh;display:grid;grid-template-columns:minmax(300px,1fr) minmax(370px,1fr)}.intro-visual{padding:clamp(30px,5vw,95px);color:white;background:radial-gradient(circle at 30% 15%,#456f3c,#113221 60%);display:flex;flex-direction:column;justify-content:space-between;min-height:500px}.intro-visual h1{font-size:clamp(42px,5vw,86px);line-height:.98;letter-spacing:-.05em;margin:30px 0}.intro-visual p{color:#dbe7d8;max-width:500px;line-height:1.65}.intro-visual .footnote{font-size:12px;color:#9ec096}.intro-form{display:flex;align-items:center;justify-content:center;padding:28px;background:#f6f8f5}.login-card{width:min(410px,100%);padding:36px;background:white;box-shadow:0 18px 80px #1e352212;border-radius:22px;border:1px solid #ecf0e8}.login-card h2{font-size:30px;margin:12px 0}.login-card>p{font-size:14px;color:#65766b;line-height:1.6}.login-card .primary{width:100%;margin-top:15px}.login-card small{display:block;margin-top:18px;font-size:12px;line-height:1.55;color:#748076}.shell{min-height:100vh;display:grid;grid-template-columns:240px 1fr}.sidebar{background:linear-gradient(140deg,#123a24,#09251a);color:#f2faf1;display:flex;flex-direction:column;padding:24px 15px;position:sticky;top:0;height:100vh}.sidebar .brand-mark{margin:4px 8px 25px}.sidebar nav{display:grid;gap:5px}.sidebar nav button{width:100%;text-align:left;border:0;color:#dcead6;background:transparent;padding:13px 16px;border-radius:10px;font-size:14px;font-weight:600}.sidebar nav button.active{color:#fff;background:#507b35}.sidebar nav button:hover{background:#42643a}.sidebar .side-end{margin-top:auto;padding:10px 12px;border-top:1px solid #44684c;font-size:12px;overflow-wrap:anywhere}.sidebar .side-end button{width:100%;margin-top:10px}.main{padding:23px clamp(18px,3vw,52px) 50px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:25px}.topbar .eyebrow{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#648a48;font-weight:750}.topbar h1{font-size:32px;margin:4px 0}.tools{display:flex;align-items:center;gap:10px}.tools select{min-width:190px}.tools button{white-space:nowrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.metric{background:#fff;border:1px solid #e4ebe1;border-radius:15px;padding:19px;display:grid;gap:7px;min-height:128px}.metric span{font-size:13px;color:#57715d}.metric strong{font-size:31px;color:#143e28}.metric small{font-size:12px;color:#7c9583}.headrow{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:25px 0 14px}.headrow h2{font-size:20px;margin:0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.project-card{background:#fff;border:1px solid #e2eadf;border-radius:15px;padding:22px;min-height:160px}.project-card h3{font-size:18px;margin:12px 0}.project-card p{font-size:14px;line-height:1.6;color:#5b7061;min-height:35px}.project-card small{color:#788778}.project-card button{margin-top:16px}.tag{font-size:11px;padding:5px 9px;background:#e9f3e3;border-radius:50px;color:#3c6830;text-transform:uppercase;font-weight:800}.explainer{border-left:3px solid #8faf42;background:#eff6e9;border-radius:8px;padding:14px 17px;font-size:13px;line-height:1.65;color:#4a674b}.table-scroll{overflow-x:auto;background:white;border:1px solid #e2e9de;border-radius:14px}table{border-collapse:collapse;width:100%;min-width:690px;text-align:left}thead{background:#eff3ed;color:#3d5340}th{font-size:12px;padding:16px 15px}td{font-size:13px;padding:15px;border-top:1px solid #edf1ea}.empty{padding:32px;color:#7c8b7c;text-align:center}.notice{position:fixed;right:22px;bottom:22px;z-index:100;padding:16px 20px;max-width:min(480px,calc(100vw - 40px));background:#123b26;color:#fff;border-radius:12px;box-shadow:0 10px 40px #0002;font-size:13px}.notice[data-kind=error]{background:#8d3028}.notice[data-kind=success]{background:#266638}.modal{position:fixed;inset:0;background:#0a1e15bd;z-index:99;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.modal-card{background:#fff;max-width:510px;width:100%;padding:26px;border-radius:17px;max-height:92vh;overflow:auto}.modal-card h2{margin:5px 0 16px}.modal-card footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.demo-link{display:block;color:#b8d995;font-size:12px;margin-top:20px;text-decoration:underline}@media(max-width:1040px){.metrics{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.shell{grid-template-columns:190px 1fr}}@media(max-width:720px){.intro{grid-template-columns:1fr}.intro-visual{min-height:270px;padding:28px}.intro-visual h1{font-size:46px;margin:20px 0}.intro-visual p{display:none}.intro-form{padding:16px}.login-card{padding:26px}.shell{display:block}.sidebar{height:auto;position:static;padding:12px}.sidebar .brand-mark{margin:0 5px 10px}.sidebar nav{grid-template-columns:repeat(4,1fr);gap:4px}.sidebar nav button{padding:10px 4px;text-align:center;font-size:11px}.sidebar .side-end{display:flex;justify-content:space-between;align-items:center;padding:5px;font-size:11px}.sidebar .side-end button{width:auto;margin:0}.main{padding:18px 14px}.topbar{display:block}.topbar h1{font-size:24px}.tools{margin-top:14px}.tools select{min-width:0;flex:1}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:14px;min-height:104px}.metric strong{font-size:25px}.cards{grid-template-columns:1fr}.headrow h2{font-size:18px}.two{grid-template-columns:1fr}}
#geo-map{height:min(65vh,610px);min-height:380px;border-radius:16px;border:1px solid #dce7d8;background:#f0f3ed;overflow:hidden;position:relative;z-index:0}
.map-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:14px 0}
.geo-upload{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid #d5dfd1;border-radius:10px;padding:10px 13px;margin:0;cursor:pointer;font-size:13px}
.geo-upload input{width:185px;border:0;padding:0;margin:0;font-size:11px}
.map-note{font-size:12px;color:#70826f}
.leaflet-container{font-family:Inter,system-ui,sans-serif}

.photo-view-card{width:min(1100px,96vw);max-height:90vh;background:white;padding:15px;border-radius:16px;display:flex;flex-direction:column}
.photo-view-card .headrow{margin:0 0 8px}.photo-view-card h2{font-size:15px;overflow-wrap:anywhere}
.photo-view-card img{display:block;max-width:100%;max-height:74vh;object-fit:contain;margin:auto}

.sidebar nav .sidebar-link{display:block;padding:12px 14px;margin:6px 0 8px;text-decoration:none;border:1px solid #71945a;border-radius:9px;color:#eaffd4;background:#254c2d;font-size:12px;font-weight:700}.sidebar nav .sidebar-link:hover{background:#578438;color:#fff}

/* Integrated local photogrammetry lab (same-domain iframe). */
.lab-iframe{display:block;width:100%;height:clamp(630px,83vh,1100px);border:1px solid #dce7d8;border-radius:14px;background:#f5f8f2}
.lab-standalone{font-size:13px;text-decoration:none;color:#225c33;background:#e7f2df;border:1px solid #c6dab5;padding:9px 13px;border-radius:9px;font-weight:700}
.lab-standalone:hover{background:#d9ebcb}
.map-status{font-size:12px;line-height:1.5;color:#3a573a;margin:8px 0;background:#f2f6ed;padding:9px 12px;border-radius:8px;border-left:3px solid #7daa4f}
@media(max-width:900px){.lab-iframe{height:80vh;min-height:580px}}

/* Keep all sections accessible on short laptop screens. */
.sidebar{overflow:hidden}.sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#597f45 transparent}.sidebar .side-end{flex-shrink:0}

/* Local desktop integration guide, neutral if the local motor is offline */
.local-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.local-step{background:#fff;border:1px solid #dce6d7;border-radius:12px;padding:16px;min-height:125px}
.local-step span{display:inline-flex;color:#477331;background:#e3efd7;font-size:12px;font-weight:800;border-radius:20px;padding:4px 9px;margin-bottom:7px}
.local-step h3{color:#1b4526;font-size:15px;margin:4px 0 8px}
.local-step p{font-size:13px;line-height:1.55;color:#455b45;margin:0}
.local-step code{font-size:12px;overflow-wrap:anywhere}
@media(max-width:700px){.local-steps{grid-template-columns:1fr}}


/* PHYSIS | dashboard built only from private Supabase records */
.dash-home{display:grid;gap:21px}
.dash-hero{min-height:236px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.65fr);
  border-radius:22px;overflow:hidden;color:#fff;position:relative;
  background:radial-gradient(ellipse at 75% -35%,#709854aa,transparent 58%),
  linear-gradient(112deg,#0b3123 5%,#1d4b2a 55%,#436d35 100%);
  box-shadow:0 16px 40px #163b2520}
.dash-hero-copy{padding:28px clamp(22px,3vw,36px);position:relative;z-index:1}
.dash-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#cfeba9}
.dash-hero h2{font-size:clamp(24px,2.35vw,34px);letter-spacing:-.035em;
  line-height:1.11;max-width:610px;margin:11px 0}
.dash-hero p{font-size:13px;line-height:1.65;color:#e1efdb;max-width:530px;margin:0 0 20px}
.dash-hero-actions{display:flex;gap:9px;flex-wrap:wrap}
.dash-hero-actions button{font-size:12px;min-height:39px;border-radius:9px;padding:9px 16px}
.dash-hero-primary{background:#92ac32;color:#173b24;border:1px solid #c3d87e}
.dash-hero-primary:hover{background:#b0c94f}
.dash-hero-ghost{background:#ffffff16;border:1px solid #b4d0a688;color:#fff}
.dash-hero-ghost:hover{background:#ffffff28}
.dash-hero-art{position:relative;min-height:230px;overflow:hidden;
  background:radial-gradient(ellipse at 70% 85%,#a7c9646a,transparent 58%)}
.dash-topo-ring{position:absolute;border:1px solid #e9f6d04f;border-radius:50%;
  width:370px;height:210px;transform:rotate(-27deg);left:6%;top:6%}
.dash-topo-ring-b{width:470px;height:270px;left:-22%;top:4%;border-color:#e9f6d036}
.dash-topo-line{position:absolute;height:1px;background:#ceebaa88;width:130%;top:73%;left:-5%;
  transform:rotate(-17deg);box-shadow:0 25px #ceebaa31,0 -25px #ceebaa31}
.dash-drone{position:absolute;z-index:1;top:47%;left:47%;transform:translate(-50%,-50%);
  width:126px;height:56px;filter:drop-shadow(2px 10px 8px #001a14a9)}
.dash-drone:before,.dash-drone:after{content:"";position:absolute;width:130px;height:9px;
  border-radius:15px;background:#142d29;left:0;top:21px;transform:rotate(17deg)}
.dash-drone:after{transform:rotate(-17deg)}
.dash-drone span{position:absolute;z-index:2;display:block;width:53px;height:37px;
  top:9px;left:37px;background:linear-gradient(#eff4e8,#a6b3a0);border-radius:22px 22px 13px 13px;
  box-shadow:inset 0 -7px #567468;color:#32563f;text-align:center;line-height:33px}
.dash-hero-coordinate{position:absolute;bottom:20px;right:23px;color:#d8eac7;
  letter-spacing:.1em;font-size:10px}
.dash-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dash-toolbar h3{margin:0 0 4px;font-size:20px;letter-spacing:-.02em}
.dash-toolbar p{margin:0;color:#677b69;font-size:12px}
.dash-toolbar label{margin:0;display:flex;align-items:center;gap:8px;color:#627b63;font-size:12px}
.dash-toolbar select{width:185px;padding:9px;border-radius:10px}
.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.dash-kpi{position:relative;min-width:0;min-height:135px;border:1px solid #e0eadd;
  background:white;border-radius:15px;display:flex;flex-direction:column;gap:6px;padding:17px;
  box-shadow:0 6px 18px #153c1e09}
.dash-kpi:before{content:"";position:absolute;height:3px;left:17px;right:17px;top:0;
  background:#8ead37;border-radius:0 0 6px 6px}
.dash-kpi-mission:before{background:#04b4c4}
.dash-kpi-process:before{background:#3969b0}
.dash-kpi-storage:before{background:#7a9c8d}
.dash-kpi-icon{position:absolute;right:17px;top:12px;border-radius:11px;background:#edf5e8;
 color:#386838;padding:7px 10px;font-size:18px}
.dash-kpi-label{color:#596d5d;font-weight:650;font-size:12px}
.dash-kpi strong{font-size:clamp(23px,2.15vw,32px);letter-spacing:-.035em;color:#143b24}
.dash-kpi small{color:#728475;font-size:11px;line-height:1.45;max-width:95%}
.dash-panels{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:14px}
.dash-panel{min-width:0;background:#fff;border:1px solid #e1eadf;border-radius:16px;padding:20px;
  box-shadow:0 6px 19px #153c1e07}
.dash-panel-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;
  border-bottom:1px solid #edf0eb;padding-bottom:13px;margin-bottom:13px}
.dash-panel h3{margin:0;font-size:16px;letter-spacing:-.02em;color:#244631}
.dash-panel-head small{color:#80917d;font-size:10px}
.dash-donut-layout{display:grid;grid-template-columns:minmax(140px,1fr) minmax(145px,1.1fr);
 align-items:center;gap:12px}
.dash-donut-holder{position:relative;max-width:260px;width:100%;aspect-ratio:1}
.dash-donut-holder canvas{display:block;width:100%;height:auto}
.dash-donut-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
 flex-direction:column;pointer-events:none}
.dash-donut-center strong{font-size:32px;letter-spacing:-.04em;color:#213c29}
.dash-donut-center span{font-size:11px;color:#718272}
.dash-legend{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.dash-legend li{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;
 gap:6px;align-items:center;font-size:11px}
.dash-legend li>span:nth-child(2){overflow-wrap:anywhere}
.dash-legend strong{font-size:12px}
.dash-legend small{color:#7c9080;min-width:32px;text-align:right}
.dash-dot{width:9px;height:9px;border-radius:50%;display:block}
.dash-color-0{background:#92ac32}.dash-color-1{background:#3969b0}
.dash-color-2{background:#04b4c4}.dash-color-3{background:#a8a5a2}
#dash-trend{width:100%;height:auto;display:block}
.dash-chart-key{display:flex;gap:17px;flex-wrap:wrap;color:#657b65;font-size:11px}
.dash-chart-key span{display:flex;align-items:center;gap:6px}
.dash-chart-key i{width:10px;height:10px;border-radius:3px;display:inline-block}
.dash-key-missions{background:#92ac32}.dash-key-jobs{background:#3969b0}
.dash-note{font-size:10px;line-height:1.5;color:#819083}
.dash-activity{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.dash-activity-item{display:grid;grid-template-columns:32px minmax(0,1fr) auto;
 align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f0f3ed;min-height:52px}
.dash-activity-icon{display:flex;width:32px;height:32px;border-radius:10px;
 background:#edf5e9;color:#47723b;align-items:center;justify-content:center;font-size:16px}
.dash-activity-item div{display:grid;gap:3px;min-width:0}
.dash-activity-item strong{font-size:12px;color:#284530}
.dash-activity-item div>span{font-size:11px;color:#667b68;overflow-wrap:anywhere}
.dash-activity-item time{font-size:10px;color:#8a9b88;white-space:nowrap}
.dash-empty{font-size:12px;color:#708373;padding:17px 0}
.dash-engine{background:#f2f7ef;border:1px solid #e2eadf;border-radius:12px;padding:14px}
.dash-engine>span{font-size:12px;font-weight:760}
.dash-online{color:#34773c}.dash-offline{color:#946c38}
.dash-engine p{font-size:11px;color:#637b67;line-height:1.5;margin:5px 0 0}
.dash-statuses{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.dash-status{font-size:10px;color:#3e614a;border:1px solid #d9e7d3;
  background:#f8faf6;padding:8px;border-radius:8px}
.dash-status strong{font-size:12px;color:#235636}
.dash-quick-title{font-size:12px;font-weight:760;color:#244b2e;margin:17px 0 10px}
.dash-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.dash-shortcuts button{display:flex;align-items:center;gap:9px;font-size:12px;
 text-align:left;min-height:42px}
.dash-shortcuts button span{color:#6e9d4a;font-size:16px}
.dash-footnote{color:#869489;font-size:10px;line-height:1.6;margin:0}
.dash-warning{margin:0;background:#fff3d8;border-left:3px solid #ba852a;
 padding:11px 15px;border-radius:9px;color:#6b531f;font-size:12px}
@media(max-width:1200px){
 .dash-panels{grid-template-columns:1fr}
 .dash-donut-layout{grid-template-columns:minmax(160px,.6fr) minmax(180px,1fr)}
}
@media(max-width:960px){
 .dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dash-hero{grid-template-columns:1fr .38fr}
 .dash-hero-copy{padding:24px}
}
@media(max-width:600px){
 .dash-hero{grid-template-columns:1fr}
 .dash-hero-art{display:none}
 .dash-toolbar{align-items:stretch;flex-direction:column}
 .dash-toolbar label{justify-content:space-between}
 .dash-toolbar select{max-width:210px}
 .dash-kpis{gap:9px}
 .dash-kpi{padding:13px;min-height:120px}
 .dash-kpi strong{font-size:23px}
 .dash-kpi-icon{font-size:14px;padding:5px 7px;right:11px}
 .dash-panel{padding:14px}
 .dash-donut-layout{grid-template-columns:1fr}
 .dash-donut-holder{margin:auto;max-width:230px}
 .dash-activity-item{grid-template-columns:28px minmax(0,1fr)}
 .dash-activity-item time{grid-column:2}
}

/* Extended factual operational indicators — dashboard step 3 */
.dash-insights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dash-insight{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:14px;
 background:linear-gradient(145deg,#f8fbf6,#edf5eb);border:1px solid #dce9d7;border-radius:13px}
.dash-insight>span{width:35px;height:35px;display:grid;place-items:center;flex-shrink:0;
 color:#416e45;background:#e0eedb;border-radius:9px;font-size:19px}
.dash-insight>div{min-width:0;display:grid;gap:3px}
.dash-insight small{font-size:11px;color:#507055;font-weight:650}
.dash-insight strong{font-size:23px;letter-spacing:-.035em;color:#214d2e}
.dash-insight p{font-size:10px;line-height:1.4;color:#708672;margin:0}
.dash-workflow{display:grid;gap:9px;margin:17px 0}
.dash-workflow-row>div{display:flex;justify-content:space-between;gap:9px;align-items:center;
 color:#56715b;font-size:11px;margin-bottom:4px}
.dash-workflow-row strong{color:#294b32}
.dash-workflow-row progress{width:100%;height:10px;border:0;border-radius:99px;
 accent-color:#83a949;overflow:hidden}
.dash-storage-breakdown{padding:14px;background:#f5f8f2;border:1px solid #e1ebdc;
 border-radius:12px;margin:10px 0}
.dash-storage-breakdown h4{font-size:12px;margin:0 0 7px;color:#244c31}
.dash-storage-breakdown p{font-size:11px;line-height:1.5;margin:6px 0;color:#586e5d}
.dash-storage-breakdown small{display:block;font-size:10px;color:#879685;line-height:1.5}
@media(max-width:1180px){.dash-insights{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.dash-insights{gap:8px}.dash-insight{padding:10px;gap:8px}
 .dash-insight>span{width:28px;height:28px;font-size:15px}
 .dash-insight strong{font-size:21px}}
