
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#1b2c36;background:#f3f6f8;font-size:16px;--green:#14785e;--line:#dfe6e9}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #5ec9b1;outline-offset:2px}button{border:1px solid var(--line);background:white;border-radius:7px;padding:10px 16px;color:#334650;font-weight:600}button:hover{background:#eef6f3}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#0d624b}aside{position:fixed;inset:0 auto 0 0;width:225px;background:#112e2c;color:#d8e6e3;padding:30px 18px;display:flex;flex-direction:column}.brand{font-size:25px;font-weight:750;letter-spacing:-1px;color:white;padding:0 13px}.brand span{color:#6ed5b5}.brand small{display:block;font-size:12px;font-weight:500;letter-spacing:2px;color:#a2bcb5;margin-top:9px}nav{margin-top:48px}nav button{display:block;width:100%;text-align:left;background:transparent;color:#b8cdc7;border:0;padding:14px;margin-bottom:7px}nav button.active{background:#245046;color:white}.navicon{margin-right:13px;font-size:19px}.asidefoot{margin-top:auto;padding:16px 12px;border-top:1px solid #35504a;font-size:13px;line-height:1.7;color:#abc3bd}main{margin-left:225px}header{height:75px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;font-size:14px;color:#72828a}.user{display:flex;align-items:center;gap:10px}.avatar{border-radius:50%;padding:9px;background:#edf4f1;color:#226550;font-weight:700}.page{padding:30px 34px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px}h1{font-size:29px;letter-spacing:-.8px;margin:0 0 8px}p{margin:0;color:#74828b;line-height:1.6;font-size:14px}.actions{display:flex;gap:10px}.notice{margin-top:24px;padding:11px 16px;border:1px solid #d6e5df;background:#edf5f1;border-radius:7px;font-size:13px;color:#47665c}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin:24px 0}.stat{border:1px solid var(--line);border-radius:10px;background:white;padding:20px}.stat label{font-size:14px;color:#647780}.stat strong{display:block;font-size:28px;letter-spacing:-.5px;margin:13px 0 8px}.stat small{font-size:12px;color:#89959b}.stat:first-child{border-top:3px solid var(--green);padding-top:18px}.panel{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.filters{padding:20px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;border-bottom:1px solid var(--line)}label.field{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#53656d}input,select{background:white;border:1px solid #d9e1e4;border-radius:6px;padding:10px 11px;color:#34464f;min-width:0;width:100%;font-size:14px}input::placeholder{color:#9aa4a9}.tabletop{padding:21px;display:flex;align-items:center;justify-content:space-between;gap:12px}.tabletop h2{font-size:17px;margin:0}.count{font-size:12px;color:#588172;background:#edf5f1;padding:4px 8px;border-radius:5px;margin-left:8px}.subtabs{overflow:auto;white-space:nowrap;display:flex;gap:22px;border-bottom:1px solid var(--line);padding:0 20px}.subtabs button{border:0;border-radius:0;padding:12px 0;color:#78868d;font-size:14px}.subtabs button.active{color:var(--green);border-bottom:2px solid var(--green)}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:14px}th{background:#f8fafb;color:#6a7c85;text-align:left;font-size:12px;font-weight:600;padding:15px;border-bottom:1px solid var(--line)}td{padding:16px 15px;border-bottom:1px solid #edf0f2}td:first-child,th:first-child{padding-left:22px}tbody tr:hover{background:#fafdfb}.number{text-align:right;font-variant-numeric:tabular-nums}.muted{color:#99a3a9}.park{font-weight:600}.source{display:block;font-size:11px;color:#94a0a6;margin-top:5px}.badge{display:inline-block;padding:5px 9px;background:#f0f2f4;border-radius:5px;font-size:12px;color:#68757e}.badge.Active{background:#e6f4ed;color:#267a54}.badge.Under{background:#fff2df;color:#a06c13}.badge.Vacant{background:#e9effb;color:#5375a6}.link{border:0;background:transparent;padding:4px 6px;color:var(--green);font-size:13px}.tablefoot{display:flex;justify-content:space-between;padding:15px 20px;font-size:12px;color:#819099}.key{display:inline-block;width:7px;height:7px;background:#b1daca;border-radius:2px;margin-right:7px}.empty{text-align:center;padding:65px;color:#71838b}.bottomnote{margin-top:17px;font-size:12px;color:#86969d}dialog{border:0;border-radius:14px;padding:0;width:min(840px,94vw);max-height:90vh;box-shadow:0 24px 100px #142d3d40}dialog::backdrop{background:#152e3d66}.modalhead{padding:24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modalhead h2{font-size:21px;margin:0}.modalbody{padding:24px}.formgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.formgrid h3{grid-column:1/-1;font-size:14px;margin:12px 0 0;border-bottom:1px solid var(--line);padding-bottom:10px}.modalfoot{padding:18px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#f9fbfa}.calc{padding:16px;background:#edf6f2;margin-top:20px;border-radius:8px;font-size:14px;line-height:1.9}.financial{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:15px}.financial div{padding:14px;border:1px solid var(--line);border-radius:6px}.financial small{display:block;color:#7a8b92;margin-bottom:7px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#193e33;color:white;padding:13px 23px;border-radius:8px;box-shadow:0 8px 30px #0002;z-index:10}.hide{display:none!important}#grid input{min-width:100px;padding:7px}#grid select{min-width:125px}.editor td{padding:9px 12px}.editor th{min-width:110px}footer{margin-top:24px;color:#96a2a7;font-size:12px;display:flex;justify-content:space-between}@media(min-width:1600px){.page{max-width:1600px;margin:auto}}@media(max-width:1100px){aside{width:185px}main{margin-left:185px}.page{padding:24px}.filters{grid-template-columns:repeat(3,1fr)}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:23px}.heading{align-items:flex-start}}@media(max-width:760px){aside{position:static;width:100%;padding:17px}.brand{font-size:22px}.brand small,.asidefoot{display:none}nav{display:flex;margin:16px 0 0;gap:8px}nav button{margin:0;padding:10px;text-align:center;font-size:13px}main{margin:0}header{height:52px;padding:0 20px}.page{padding:20px 14px}.heading{flex-direction:column}h1{font-size:26px}.stats{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(2,1fr)}.filters label:first-child{grid-column:1/-1}.formgrid,.financial{grid-template-columns:repeat(2,1fr)}.actions{width:100%}.actions button{flex:1}.tablefoot{gap:20px}.user span:last-child{display:none}}

.analysis-summary{margin:24px 0}.analysis-scope{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.analysis-scope h2{font-size:18px;margin:0 0 5px}.scope-chip{background:#e3eee9;color:#246b52;border-radius:5px;padding:7px 10px;font-size:12px;white-space:nowrap}.overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.overview-kpi{background:#fff;border:1px solid var(--line);border-radius:9px;padding:21px}.overview-kpi:first-child{background:#163e35;color:white;border-color:#163e35}.overview-kpi label{font-size:14px;opacity:.75}.overview-kpi strong{font-size:29px;display:block;margin:17px 0 8px;letter-spacing:-.7px}.overview-kpi small{font-size:12px;opacity:.7}.overview-strip{display:flex;flex-wrap:wrap;gap:24px;background:white;border:1px solid var(--line);border-radius:8px;padding:17px 21px;margin-top:16px;color:#71818a;font-size:13px}.overview-strip b{font-size:17px;color:#263f45;margin-right:7px}.analysis-charts{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;margin-top:20px}.chart-card{background:white;border:1px solid var(--line);border-radius:9px;padding:23px}.chart-card h3{font-size:17px;margin:0 0 7px}.stack{display:flex;height:19px;border-radius:5px;overflow:hidden;margin:25px 0}.stage-row{display:grid;grid-template-columns:1fr auto auto;gap:20px;padding:12px 0;border-bottom:1px solid #edf0f2;font-size:14px}.stage-row small{color:#85949a;width:50px;text-align:right}.swatch{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:9px}.rent-row{margin-top:21px}.rent-label{display:flex;justify-content:space-between;font-size:14px;margin-bottom:9px}.track{height:8px;background:#eef2f4;border-radius:4px;overflow:hidden}.track span{display:block;height:100%;border-radius:4px}.analysis-note{font-size:12px;color:#7b8e96;line-height:1.7;margin-top:16px}.analysis-mode #stats,.analysis-mode #tabs,.analysis-mode .tabletop,.analysis-mode .scroll,.analysis-mode .tablefoot,.analysis-mode .bottomnote{display:none}.analysis-mode.show-records #tabs,.analysis-mode.show-records .tabletop,.analysis-mode.show-records .tablefoot{display:flex}.analysis-mode.show-records .scroll{display:block}.analysis-mode .panel{overflow:visible}.analysis-mode .filters{border-bottom:0}.analysis-mode .notice{font-size:12px;background:transparent;border:0;padding:0;margin:16px 0;color:#8a969b}.analysis-mode .actions #addfield,.analysis-mode .actions #add{display:none}.analysis-mode .page{display:flex;flex-direction:column}.analysis-mode .heading{order:0}.analysis-mode .notice{order:1}.analysis-mode .panel{order:2}.analysis-mode .analysis-summary{order:3}.analysis-mode footer{order:4}.analysis-mode.show-records .panel{order:3}.analysis-mode.show-records .analysis-summary{order:2}.entry-mode #analysisSummary,.entry-mode #detailsToggle{display:none}@media(max-width:1000px){.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-charts{grid-template-columns:1fr}}@media(max-width:760px){.overview-kpi{padding:16px}.overview-kpi strong{font-size:23px}.analysis-scope{align-items:flex-start;flex-direction:column}.chart-card{padding:17px}.stage-row{gap:8px}.overview-strip{gap:16px}.analysis-mode .actions{width:auto}}

#overviewSummary{display:none}.overview-mode #overviewSummary{display:block}.overview-mode #analysisSummary,.overview-mode #stats,.overview-mode .panel,.overview-mode .bottomnote,.overview-mode #detailsToggle,.overview-mode #add,.overview-mode #addfield{display:none}.overview-mode #overviewSummary .overview-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-mode .notice{border:0;background:transparent;padding:0;font-size:12px;color:#8a969b}.overview-development{margin-top:20px}.development-numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin-top:24px}.development-numbers label{font-size:14px;color:#637880}.development-numbers strong{display:block;font-size:27px;margin:12px 0 0 18px}.analysis-mode #exploreAnalysis,.entry-mode #exploreAnalysis{display:none}@media(max-width:760px){.overview-mode #overviewSummary .overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.development-numbers{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}nav{gap:2px}nav button{padding:10px 5px}.navicon{margin-right:6px}}

#filterBar{background:white;border:1px solid var(--line);border-radius:8px;min-width:0}#filterBar .filters{border-bottom:0}.overview-mode #filterBar{display:none}.entry-mode #filterBar{margin-bottom:18px}.analysis-mode #filterBar{order:2;margin:0;position:sticky;top:12px;z-index:3;box-shadow:0 3px 12px #203b3210}.analysis-mode #filterBar .filters{padding:12px;gap:10px;grid-template-columns:minmax(145px,1.3fr) repeat(6,minmax(0,1fr)) auto;align-items:end}.analysis-mode #filterBar label.field{gap:5px;font-size:12px;font-weight:500}.analysis-mode #filterBar input,.analysis-mode #filterBar select{height:36px;padding:7px 8px;font-size:14px;background:#fbfcfc}.analysis-mode #clear{height:36px;font-size:12px;padding:6px;white-space:nowrap}.analysis-mode #analysisSummary,.analysis-mode.show-records #analysisSummary{order:3}.analysis-mode .panel,.analysis-mode.show-records .panel{order:4;display:none}.analysis-mode.show-records .panel{display:block;overflow:hidden}.analysis-mode footer{order:5}.analysis-mode .notice{order:5;margin:18px 0 0}.analysis-mode .heading{margin-bottom:20px}.analysis-mode .analysis-summary{margin-top:20px}.analysis-mode #filterBar .filters label:first-child{grid-column:auto}@media(max-width:1200px){.analysis-mode #filterBar .filters{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.analysis-mode #filterBar{position:static}.analysis-mode #filterBar .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}.analysis-mode #filterBar input,.analysis-mode #filterBar select{height:40px}.analysis-mode .heading{margin-bottom:16px}}

#formulaPage{display:none;margin-top:24px}.formulas-mode #formulaPage{display:block}.formulas-mode #overviewSummary,.formulas-mode #analysisSummary,.formulas-mode #stats,.formulas-mode #filterBar,.formulas-mode .panel,.formulas-mode .actions{display:none}.rule-intro{display:flex;align-items:center;gap:16px;margin-bottom:20px}.rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rule-card{position:relative;background:white;border:1px solid var(--line);border-radius:9px;padding:22px}.rule-card h2,.rule-card h3{font-size:16px;margin:0 0 10px}.rule-unit{font-size:12px;color:#71838c}.rule-card code{display:block;padding:14px;background:#eff6f3;color:#235d4b;border-radius:5px;font-size:14px;line-height:1.6;white-space:normal;margin:12px 0}.rule-section{margin-top:28px}.rule-section>h2{font-size:20px;margin-bottom:12px}.rule-section>.rule-list{margin-top:18px}.rule-section ul{background:white;border:1px solid var(--line);border-radius:9px;padding:20px 24px 20px 40px;line-height:1.7;font-size:14px;color:#536b76}.rule-section li+li{margin-top:12px}#customRuleList p{margin-top:10px}@media(max-width:760px){.rule-list{grid-template-columns:1fr}.rule-intro{align-items:flex-start;flex-direction:column}nav{flex-wrap:wrap}nav button{width:calc(50% - 2px)}}

#loginPage{display:none}.login-mode #loginPage{display:grid}.login-mode>aside,.login-mode>main{display:none}#loginPage{min-height:100vh;grid-template-columns:1.05fr 1fr;background:#fff}.login-story{background:#103e35;color:white;display:flex;flex-direction:column;padding:52px 64px;position:relative;overflow:hidden}.login-brand{font-size:29px;letter-spacing:-1px;font-weight:750;display:flex;align-items:center;gap:11px}.login-brand span{color:#8cddbe}.login-mark{display:inline-flex;align-items:center;gap:3px;width:29px;height:29px}.login-mark i{display:block;width:6px;background:#99e4c4;height:24px;border-radius:2px}.login-mark i:nth-child(2){height:16px}.login-message{margin:auto 0;padding:72px 0}.login-eyebrow{font-size:12px;letter-spacing:2px;color:#a2d2be;font-weight:600}.login-message h2{font-size:clamp(38px,4.3vw,64px);font-weight:550;letter-spacing:-2px;line-height:1.12;margin:23px 0}.login-message h2 span{color:#99dfc0}.login-message p{color:#b9d2c8;font-size:16px;max-width:350px;line-height:1.8}.login-metrics{display:flex;gap:38px;border-top:1px solid #477164;padding-top:28px;margin-top:48px}.login-metrics strong{display:block;font-size:28px;font-weight:550;margin-bottom:7px}.login-metrics small{font-size:13px;color:#b2cfc1}.login-story-footer{font-size:12px;color:#9ebcb0;display:flex;justify-content:space-between;gap:15px}.login-main{display:flex;flex-direction:column;padding:40px 50px;background:#fcfdfc}.login-top{display:flex;justify-content:flex-end}.login-tag{font-size:12px;color:#526e63;background:#edf4ef;border:1px solid #dfe9e2;padding:7px 12px;border-radius:30px}.login-form-wrap{width:100%;max-width:390px;margin:auto; padding:65px 0}.login-form-wrap h1{font-size:34px;letter-spacing:-1px;margin:0 0 12px}.login-form-wrap>p{font-size:15px;margin-bottom:34px;color:#798680}.login-form-wrap label.field{font-size:14px;color:#344b40;gap:9px;margin-top:22px}.login-form-wrap input{height:50px;padding:13px 15px;font-size:15px;border-radius:8px;background:white}.password-wrap{position:relative}.password-wrap input{padding-right:69px}.password-wrap button{position:absolute;right:6px;top:8px;font-size:12px;height:34px;padding:7px 9px;border:0;color:#62796c;background:transparent}.login-submit{width:100%;height:50px;margin-top:28px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:15px;border-radius:8px}.login-demo-note{font-size:12px!important;text-align:center;line-height:1.7!important;margin-top:17px!important;color:#839087!important}.login-divider{display:flex;align-items:center;gap:14px;margin:27px 0 20px;font-size:12px;color:#9aa59f}.login-divider:before,.login-divider:after{content:'';flex:1;height:1px;background:#e2e8e4}.preview-link{display:block;width:100%;border:0;background:transparent;color:#276a51;font-size:14px;padding:10px}.login-footer{text-align:center;color:#93a097;font-size:12px}.session-exit{border:0;background:transparent;color:#647a70;padding:6px;font-size:12px}@media(max-width:1000px){.login-story{padding:40px 35px}.login-main{padding:30px}.login-metrics{gap:25px}.login-message h2{font-size:43px}}@media(max-width:760px){#loginPage{grid-template-columns:1fr}.login-story{padding:25px}.login-message,.login-story-footer{display:none}.login-brand{font-size:25px}.login-main{padding:25px;min-height:calc(100vh - 79px)}.login-form-wrap{padding:40px 0;max-width:420px}.login-form-wrap h1{font-size:30px}.login-top{position:absolute;right:22px;top:28px}.login-tag{background:#245749;color:#d1e9dd;border:0}.login-footer{margin-top:20px}}
.animated-login .login-story{background:linear-gradient(130deg,#0a302b,#155849,#103c45);background-size:220% 220%;animation:ambient 16s ease-in-out infinite}.animated-login .login-story:before,.animated-login .login-story:after{content:'';position:absolute;width:380px;height:380px;border:1px solid #a8e8d01f;border-radius:50%;right:-190px;top:10%;pointer-events:none;animation:orbit 14s ease-in-out infinite}.animated-login .login-story:after{width:520px;height:520px;right:-260px;top:5%;animation-delay:-7s}.animated-login .login-brand,.animated-login .login-message,.animated-login .login-story-footer{position:relative;z-index:1}.animated-login .login-form-wrap{animation:arrive .7s ease-out both}.animated-login .login-message{animation:arrive .9s ease-out both}.animated-login .login-mark i{animation:bars 3s ease-in-out infinite}.animated-login .login-mark i:nth-child(2){animation-delay:.25s}.animated-login .login-mark i:nth-child(3){animation-delay:.5s}.animated-login .login-submit{transition:transform .2s,box-shadow .2s}.animated-login .login-submit:hover{transform:translateY(-2px);box-shadow:0 8px 20px #145c3926}.animated-login .login-form-wrap input{transition:border-color .2s,box-shadow .2s}.animated-login .login-form-wrap input:focus{border-color:#56a483;box-shadow:0 0 0 3px #dcefe5;outline:0}@keyframes ambient{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}@keyframes orbit{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(45px) scale(1.08)}}@keyframes arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes bars{0%,75%,100%{transform:scaleY(1)}35%{transform:scaleY(.65)}}@media(prefers-reduced-motion:reduce){.animated-login *,.animated-login *:before,.animated-login *:after{animation:none!important;transition:none!important}}

.network-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px}.portfolio-story{padding:15px 3px}.network-eyebrow{font-size:11px;letter-spacing:1.7px;color:#638375;font-weight:650}.portfolio-story h2{font-size:34px;letter-spacing:-1.1px;line-height:1.2;margin:18px 0 13px}.portfolio-story h2 span{color:#217358}.network-intro{font-size:14px;line-height:1.7}.hero-metric{margin-top:28px;padding:0 0 24px;border-bottom:1px solid #dbe5df}.hero-metric>div:first-child{display:flex;align-items:baseline;gap:12px}.hero-metric strong{font-size:50px;font-weight:650;letter-spacing:-2px;color:#183d32}.hero-metric>div>span{font-size:15px;color:#4b6d5d}.hero-metric>p{margin:3px 0 19px}.mini-stage-bar{height:7px;display:flex;border-radius:8px;overflow:hidden}.stage-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:16px}.stage-grid span{font-size:12px;color:#60776c}.stage-grid i{display:inline-block;width:6px;height:6px;border-radius:2px;margin-right:5px}.stage-grid b{color:#2d4b3e;margin-left:4px}.hero-rent{padding-top:22px}.hero-rent>span{font-size:14px;color:#597565}.hero-rent strong{display:block;font-size:38px;letter-spacing:-1px;color:#183d32;margin:5px 0}.hero-rent small{font-size:21px;font-weight:500}.hero-rent p{font-size:13px}.network-counts{display:grid;grid-template-columns:repeat(3,1fr);margin-top:26px;background:#e9f1ec;border:1px solid #dce7df;border-radius:9px;padding:17px 0}.network-counts>div{text-align:center;border-right:1px solid #d0dfd5}.network-counts>div:last-child{border:0}.network-counts strong{display:block;font-size:28px;color:#234f3e}.network-counts span{display:block;font-size:12px;color:#63796b;margin-top:4px}.map-card{background:#fcfefc;border:1px solid #dce6df;border-radius:13px;overflow:hidden}.map-heading{padding:21px 23px 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.map-heading h3{margin:0 0 4px;font-size:17px}.map-heading p{font-size:12px}.map-heading button{font-size:12px}.map-surface{position:relative;max-width:620px;margin:auto}.india-map{display:block;width:100%;height:auto;max-height:490px}.map-label{font:12px 'Segoe UI',sans-serif;fill:#5b7468;pointer-events:none}.sea-label{font:10px 'Segoe UI',sans-serif;letter-spacing:2px;fill:#a9bab0}.map-hit{fill:transparent}.map-dot{fill:#19775d;stroke:white;stroke-width:1.6}.map-ring{fill:none;stroke:#19775d;stroke-opacity:.2;stroke-width:1}.map-point{cursor:pointer;outline:none}.map-point:hover .map-dot,.map-point:focus .map-dot,.map-point.selected .map-dot{fill:#dc9950;stroke:#fff;stroke-width:2}.map-point:focus .map-hit{stroke:#143e2d;stroke-width:1}.map-point.selected .map-ring{stroke:#cd8736;animation:mapPulse 2.8s ease-out infinite;transform-box:fill-box;transform-origin:center}.map-caption{position:absolute;bottom:10px;left:21px;font-size:11px;color:#8b9f93}.map-location{display:flex;align-items:center;gap:15px;padding:16px 20px;border-top:1px solid #e3ece6;background:white}.map-location label{flex:1}.map-location select{min-width:120px}.location-detail{flex:1}.location-detail strong{display:block;font-size:14px}.location-detail span{display:block;font-size:11px;color:#84998d;margin-top:5px}.map-location button{font-size:12px;padding:10px}.map-credit{background:white;font-size:10px;padding:0 20px 10px;text-align:right;color:#96a79e}.map-credit a{color:inherit}.overview-finance{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:24px}.overview-finance>div{padding:20px;background:#fff;border:1px solid var(--line);border-radius:9px}.overview-finance label{font-size:13px;color:#6f8377}.overview-finance strong{display:block;margin:13px 0 9px;font-size:23px;letter-spacing:-.5px}.overview-finance small{font-size:11px;color:#8a9d90}.map-paused .map-ring{animation:none!important}@keyframes mapPulse{0%{transform:scale(1);opacity:.8}90%,100%{transform:scale(2.6);opacity:0}}@media(prefers-reduced-motion:reduce){.map-point.selected .map-ring{animation:none}}@media(max-width:1150px){.network-layout{grid-template-columns:1fr}.portfolio-story{display:block}.map-surface{max-width:590px}.overview-finance{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.portfolio-story h2{font-size:29px}.network-layout{gap:20px}.map-location{flex-wrap:wrap;padding:15px}.map-location button{width:100%}.overview-finance{gap:10px}.overview-finance>div{padding:14px}.overview-finance strong{font-size:19px}.map-heading{padding:17px 15px 0}.stage-grid{gap:12px}.hero-metric strong{font-size:44px}}
.overview-mode .page>.heading{display:none}.overview-mode #overviewSummary{margin-top:0}
.analysis-mode #detailsToggle,.analysis-mode .panel,.analysis-mode.show-records .panel{display:none!important}.analysis-mode #analysisSummary{display:block;order:3;margin:16px 0}.analysis-mode .heading{margin-bottom:16px}.analysis-mode .heading h1{font-size:24px}.analysis-mode #filterBar{position:relative;top:auto;z-index:4}.analysis-totals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px}.total-tile{padding:14px;background:white;border:1px solid var(--line);border-radius:7px;min-width:0}.total-tile label{font-size:12px;color:#6f7f86;display:block;margin-bottom:12px}.total-tile>strong,.total-tile>.value-link{font-size:21px;font-weight:650;letter-spacing:-.35px;color:#214735;display:block}.total-tile small{display:block;color:#85938e;font-size:11px;margin-top:7px;line-height:1.5}.value-link{border:0;border-radius:3px;background:transparent;padding:0;font-size:14px;font-weight:500;white-space:nowrap;color:#1b6250}.value-link span{font-size:10px;color:#98b1a5}.value-link:hover{text-decoration:underline;background:transparent}.financial-panel{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;min-width:0}.financial-table-title{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;gap:12px}.financial-table-title h2{font-size:17px;margin:0}.financial-table-title>span{font-size:12px;color:#7f8c91}.financial-scroll{overflow:auto;max-height:65vh;position:relative}.financial-scroll table{font-size:13px;border-collapse:separate;border-spacing:0;min-width:2100px}.financial-scroll th{position:sticky;top:0;z-index:2;padding:12px;text-align:right;background:#f1f5f3;font-size:12px;border-right:1px solid #e6ece8}.financial-scroll th small{font-size:10px;font-weight:400;color:#86928c}.financial-scroll td{padding:12px;border-right:1px solid #edf1ee}.financial-scroll th:first-child,.financial-scroll td:first-child{position:sticky;left:0;min-width:175px;max-width:260px;background:white;text-align:left;z-index:1;box-shadow:1px 0 #dce4df}.financial-scroll th:first-child{z-index:3;background:#f1f5f3}.financial-scroll th:nth-child(2),.financial-scroll td:nth-child(2){text-align:left}.financial-scroll .subtotal td{background:#eff5f1;font-weight:600;border-bottom:1px solid #cfddd4}.financial-scroll .subtotal td:first-child{background:#eff5f1}.financial-scroll tfoot td{background:#dfece4;font-weight:700;border-top:2px solid #bdd0c3;position:sticky;bottom:0;z-index:2}.financial-scroll tfoot td:first-child{background:#dfece4;z-index:3}.partial{display:block;font-size:10px;color:#99753d;margin-top:4px}.box-link{border:0;background:transparent;padding:0;font-size:13px;color:#253d33;text-align:left}.box-link:hover{text-decoration:underline}.status-filter{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#53656d}.status-filter summary{list-style:none;cursor:pointer;height:36px;border:1px solid #d9e1e4;border-radius:6px;padding:8px;background:#fbfcfc;font-size:14px;color:#34464f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-filter summary:after{content:'⌄';float:right;margin-left:5px}#statusPicker{position:relative}.status-popover{position:absolute;top:42px;right:0;min-width:220px;background:white;padding:10px;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 35px #173b2820;z-index:15}.status-popover label{display:flex;align-items:center;gap:9px;padding:8px;font-size:14px;cursor:pointer}.status-popover input{width:16px;height:16px;margin:0;accent-color:#14785e}.date-filters{display:flex;align-items:center;gap:18px;padding:0 12px 12px;border-top:0;flex-wrap:wrap}.date-filters label{display:flex;align-items:center;gap:8px;font-size:12px;color:#687c70}.date-filters input,.date-filters select{height:32px;padding:5px 8px;width:auto;font-size:12px}.break-table{white-space:normal}.break-table td{padding:14px 0}.break-table tr:last-child td{border-bottom:0}.break-table td:first-child{padding-right:20px}.break-note{font-size:13px;margin-top:16px}.date-error{padding:0 20px 15px;color:#ad4d28}#breakDialog{max-width:610px}.analysis-mode .status-filter>span{font-size:12px}.entry-mode .status-filter>span{font-size:13px}.entry-mode .status-filter summary{height:39px}.entry-mode .date-filters{padding:0 20px 20px}.badge.Completed{background:#e6f4ed;color:#267a54}.overview-mode #overviewSummary{margin-top:0}@media(max-width:1300px){.analysis-totals{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.analysis-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.total-tile{padding:12px}.total-tile>.value-link,.total-tile>strong{font-size:19px}.date-filters{gap:10px}.date-filters label{flex:1;min-width:130px;flex-direction:column;align-items:stretch}.date-filters select,.date-filters input{width:100%;height:36px}.financial-table-title{align-items:flex-start;flex-direction:column}.status-popover{right:0;min-width:200px}.financial-scroll{max-height:70vh}}

#viewToolbar{display:none;align-items:center;gap:8px}.analysis-mode #viewToolbar{display:flex}#viewToolbar>label{font-size:12px;color:#74877e}#savedView{width:175px;height:36px;font-size:13px}#viewToolbar button{font-size:13px;height:36px;padding:7px 12px}#viewChanged{font-size:11px;color:#99753d}.view-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.view-choices label{display:flex;align-items:center;gap:9px;font-size:14px;color:#3e5549;padding:8px;background:#f6f9f7;border-radius:5px}.view-choices input{width:16px;height:16px;accent-color:#14785e;flex-shrink:0}.view-choices small{font-size:10px;color:#8c9e93}.view-section-title{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.view-section-title h3{font-size:16px;margin:0}.view-name{margin-top:24px}.view-hint{font-size:12px;margin-top:10px}#viewError{color:#a6422a;font-size:13px;margin-top:8px}#viewDialog .modalfoot{flex-wrap:wrap}#deleteView{margin-right:auto;color:#9c4b38}[hidden]{display:none!important}.analysis-totals:has(>.total-tile:nth-child(6)[hidden]){grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}@media(max-width:1100px){.analysis-mode .heading{flex-wrap:wrap}#viewToolbar{flex-wrap:wrap}}@media(max-width:760px){.view-choices{grid-template-columns:repeat(2,minmax(0,1fr))}#viewToolbar{width:100%;gap:6px}#savedView{width:145px}#viewToolbar button{flex:initial}.analysis-totals:has(>.total-tile:nth-child(6)[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}.view-choices label{font-size:13px}}

#hiddenFilterTags{display:flex;flex-wrap:wrap;gap:6px;padding:10px 12px 0}.hidden-filter-tag{padding:5px 9px;background:#eaf3ee;color:#376b52;border:1px solid #cfe1d6;font-size:12px;font-weight:400}.hidden-filter-tag span{margin-left:8px}.analysis-mode #filterBar .filters.compact-selected{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.analysis-mode #filterBar .filters.compact-selected>div:last-child{justify-self:end}@media(max-width:760px){.analysis-mode #filterBar .filters.compact-selected{grid-template-columns:repeat(2,minmax(0,1fr))}}
.entry-mode .heading>div:first-child,.entry-mode #addfield{display:none}.entry-mode .heading{justify-content:flex-end}.entry-mode .heading .actions{width:auto}.entry-mode .heading #add{flex:none}
.error{color:#a23928;background:#fff1ed;padding:12px;border-radius:6px;margin:14px 0;font-size:14px}.success{background:#e8f4ee;color:#216947;padding:12px;border-radius:6px;margin:14px 0}.auth-page{display:grid;place-items:center;min-height:100vh;padding:25px}.auth-card{width:min(560px,100%);padding:32px;background:white;border:1px solid var(--line);border-radius:12px}.auth-card label.field{margin:17px 0}.auth-card .primary{margin-top:16px}.checkline{display:flex;align-items:center;gap:12px;margin-top:18px;font-size:14px}.checkline input{width:auto}.button{text-decoration:none;display:inline-block;padding:12px 18px;border-radius:6px}.nav-link{display:block;text-decoration:none;color:#b8cdc7;font-size:15px;font-weight:600;padding:14px;border-radius:7px;margin-bottom:7px}.nav-link.active{background:#245046;color:white}.logout-form{display:inline;margin:0}.app-loading{padding:30px;text-align:center}.entry-mode .heading{margin-bottom:20px}.entry-mode .heading .actions{display:flex}.record-list{overflow:auto}.record-list table{min-width:900px}.record-list td input{min-width:90px}.overview-mode .heading{display:none}.formulas-mode .actions{display:none}.import-page .heading{margin-bottom:24px}.import-panel{padding:24px;background:white;border:1px solid var(--line);border-radius:10px;max-width:950px}.import-panel form{margin:20px 0}.import-panel input[type=file]{margin:16px 0}.import-panel .scroll{margin-top:15px}.view-name{display:flex!important}#recordError:empty{display:none}.loading-state{opacity:.6;pointer-events:none}.analysis-mode #viewToolbar{display:flex}.page>.heading>.actions{margin-left:auto}#dateBasis,#dateFrom,#dateTo{max-width:100%}.record-actions{display:flex;gap:8px}.app-dialog{width:min(850px,95vw)}@media(max-width:760px){nav .nav-link{width:calc(50% - 2px);font-size:13px;padding:10px}.user{gap:5px}.entry-mode .heading .actions{flex-wrap:wrap}}

.history-page .heading p{color:#6b7c84;margin:0 0 20px}
.history-focus{background:#edf5f1;border:1px solid #d3e6dc;border-radius:8px;padding:10px 14px;margin-bottom:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}
.history-focus .primary{padding:7px 12px;font-size:13px}
.history-filters{background:white;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end}
.history-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#52646c}
.history-filter-actions{display:flex;gap:8px;align-items:center}
.history-filter-actions .primary{padding:9px 16px}
a.link{text-decoration:none;display:inline-block}
.history-entry{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:18px;padding:16px 21px;border-top:1px solid #edf0f2}
.history-when{display:flex;flex-direction:column;font-size:13px;color:#6b7c84}.history-when b{color:#24363f;font-weight:600}
.history-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.history-title a{color:#1b2c36;font-weight:600;text-decoration:none}.history-title a:hover{color:var(--green)}
.history-meta{font-size:13px;color:#6b7c84}
.history-action{font-size:12px;padding:3px 8px;border-radius:5px;background:#f0f2f4;color:#5c6a72;font-weight:600}
.history-action.created,.history-action.imported{background:#e6f4ed;color:#267a54}.history-action.updated{background:#e9effb;color:#43689c}.history-action.deleted{background:#fdecea;color:#a23928}.history-action.reverted{background:#fff2df;color:#96620c}
.history-note{font-size:13px;color:#6b7c84;margin-top:6px}
.history-changes{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.history-changes span{display:inline-block;min-width:190px;color:#6b7c84}.history-changes s{color:#a0adb3}.history-changes b{font-weight:600}
.history-more summary{cursor:pointer;color:var(--green);font-size:13px;margin-top:6px}
.history-side{align-self:center;text-align:right}
.history-revert{padding:7px 12px;font-size:13px;white-space:nowrap}.history-revert:hover{border-color:var(--green);color:var(--green)}
.history-reverted{font-size:12px;color:#96620c}
.history-list .empty{margin:0;border-top:1px solid #edf0f2}
.history-pager{display:flex;justify-content:center;align-items:center;gap:16px;padding:14px;border-top:1px solid #edf0f2;font-size:13px;color:#6b7c84}
@media(max-width:760px){.history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.history-entry{grid-template-columns:1fr;gap:8px}.history-side{text-align:left}.history-changes span{min-width:0;margin-right:6px}}

/* Shared tags */
.muted{color:#6b7c84;font-size:13px}.negative{color:#b23b2a}
.status-tag{display:inline-block;font-size:12px;font-weight:600;padding:3px 8px;border-radius:5px;background:#f0f2f4;color:#5c6a72;white-space:nowrap}
.status-tag.completed{background:#e6f4ed;color:#267a54}.status-tag.under-construction{background:#fff2df;color:#96620c}.status-tag.under-finalization{background:#e9effb;color:#43689c}.status-tag.estimate{background:#f4eefc;color:#6b4ba1}
.months{font-size:12px;color:#52646c}.months.warn{color:#96620c;font-weight:600}.months.warn::before{content:"● "}.months.bad{color:#b23b2a;font-weight:600}.months.bad::before{content:"▲ "}
.ok{color:#267a54;font-size:13px}

/* Dashboard */
.dashboard-page .heading p,.box-heading p{color:#6b7c84;margin:0 0 18px}
.dash-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end;background:white;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:16px}
.dash-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#52646c}
.dash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.dash-kpi,.box-kpis>div{background:white;border:1px solid var(--line);border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.dash-kpi label,.box-kpis label{font-size:13px;color:#6b7c84}.dash-kpi b,.box-kpis b{font-size:24px;color:#1b2c36;letter-spacing:-.4px}.dash-kpi small,.box-kpis small{font-size:12px;color:#6b7c84}
.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
.dash-card{background:white;border:1px solid var(--line);border-radius:10px;padding:16px 18px;min-width:0}
.dash-card h2{font-size:16px;margin:0}.dash-sub{font-size:12px;color:#6b7c84;margin:3px 0 10px}
.dash-chart{position:relative;height:280px}.dash-chart-sm{height:260px}
.dash-section{margin-bottom:16px}.dash-section h2 select{width:auto;display:inline-block;padding:4px 8px;font-size:15px;font-weight:600}
.dash-table th{font-size:12px;color:#6b7c84;font-weight:600;text-align:left;padding:10px 15px;border-bottom:1px solid var(--line);background:#f8fafb}
.dash-table td{padding:11px 15px;vertical-align:top}.dash-table .number{text-align:right}
.dash-table tr.total td{font-weight:700;background:#f8fafb}
.dash-boxes tbody tr{cursor:pointer}.dash-boxes tbody tr:hover td{background:#f5faf8}
.sort{border:0;background:none;padding:0;font:inherit;color:inherit;cursor:pointer;white-space:nowrap}

/* Box detail */
.crumb{margin:0 0 6px}.box-heading{flex-direction:row!important;align-items:flex-start;justify-content:space-between}.box-heading .actions{display:flex;gap:8px}
.box-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.box-kpis b{font-size:20px}
.box-section{margin-bottom:16px}
.calc-details>summary{cursor:pointer;list-style:none;user-select:none}.calc-details>summary::-webkit-details-marker{display:none}
.calc-details>summary h2::before{content:'▸';display:inline-block;width:18px;color:var(--green);transition:transform .15s}.calc-details[open]>summary h2::before{transform:rotate(90deg)}
.calc-table th{font-size:12px;color:#6b7c84;font-weight:600;text-align:left;padding:10px 15px;border-bottom:1px solid var(--line);background:#f8fafb;white-space:nowrap}
.calc-table td{padding:10px 15px;vertical-align:top;white-space:normal}.calc-table .number{text-align:right;white-space:nowrap}
.calc-table .formula{color:#52646c;font-size:13px;font-family:ui-monospace,Consolas,monospace;min-width:220px}
.calc-table td.diff{color:#96620c}.calc-table.ratios{border-top:1px solid var(--line)}
.calc-table tr.current-year td{background:#eef7f2;font-weight:600}
.input-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#edf0f2;border-top:1px solid #edf0f2}
.input-grid>div{background:white;padding:10px 15px;display:flex;flex-direction:column;gap:3px}.input-grid label{font-size:12px;color:#6b7c84}.input-grid span{font-size:14px;color:#1b2c36}

/* Import review */
.import-wide{max-width:none;margin-bottom:16px}
.import-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}
.import-summary>div{border:1px solid var(--line);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column}.import-summary b{font-size:22px}.import-summary span{font-size:12px;color:#6b7c84}
.import-summary .warn{background:#fff8ec;border-color:#f1dfb9}.import-summary .bad{background:#fdf0ee;border-color:#f2cfc8}
.import-skipped{background:#fdf0ee;border:1px solid #f2cfc8;border-radius:8px;padding:10px 14px;margin-bottom:12px}.import-skipped h3{font-size:14px;margin:0 0 6px;color:#a23928}.import-skipped ul{margin:0;padding-left:18px;font-size:13px}
.import-hint{font-size:13px;color:#6b7c84}
.import-table td{vertical-align:top;white-space:normal}.import-table .number{text-align:right;white-space:nowrap}
.import-checks{min-width:280px;font-size:12px}.import-checks .mismatch{color:#96620c;margin-bottom:3px}.import-checks .warning{color:#52646c;margin-bottom:3px}.import-checks .warning::before{content:"• "}
.import-action{font-size:12px;font-weight:600;padding:3px 8px;border-radius:5px;background:#e6f4ed;color:#267a54}.import-action.update,.import-action.restore{background:#e9effb;color:#43689c}
.import-confirm{display:flex;flex-direction:column;gap:12px}.import-replace{display:flex;gap:8px;align-items:center;font-size:14px}.import-replace input{width:auto}
.import-rules{font-size:13px;color:#52646c;line-height:1.7}
.import-log table td,.import-log table th{padding:9px 12px}.import-log .number{text-align:right}
.settings-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;background:white;border:1px solid var(--line);border-radius:8px;padding:14px;margin:0 0 20px}
.settings-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#52646c}
@media(max-width:1100px){.dash-grid{grid-template-columns:1fr}.import-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.dash-filters,.dash-kpis,.box-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.box-heading{flex-direction:column!important}.settings-form{grid-template-columns:1fr}}
a.box-link{text-decoration:none;color:inherit;font-weight:600}a.box-link:hover{color:var(--green)}
.import-table td:nth-child(2){min-width:210px}.import-table td:nth-child(3){min-width:120px}
.settings-form label.import-replace{flex-direction:row;align-items:center;align-self:center}.formulas-mode .heading p{margin-bottom:16px}
/* Record form: variable-length escalation steps. */
.esc-editor{grid-column:1/-1;display:flex;flex-direction:column;gap:10px}.esc-hint{margin:0;font-size:12px;color:#6b7c84}
#escList{display:flex;flex-direction:column;gap:10px}
.esc-row{display:grid;grid-template-columns:44px 1fr 1fr 40px;gap:12px;align-items:end;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fbfcfc}
.esc-num{align-self:center;font-weight:700;color:var(--green);font-size:14px}
.esc-remove{height:40px;width:40px;padding:0;font-size:20px;line-height:1;color:#a23928;border-color:#f2cfc8;background:#fff}
.esc-add{align-self:flex-start;font-weight:600;padding:6px 0}
@media(max-width:760px){.esc-row{grid-template-columns:34px 1fr 1fr 36px;gap:8px;padding:10px}.esc-remove{width:36px;height:44px}}
/* Header brand + nav icons only appear in the mobile app layout below. */
.header-brand,.nav-icon,.nav-short,.view-toggle,.filter-toggle{display:none}.header-brand i{font-style:normal;color:#6ed5b5}
/* Mobile app layout: sticky top bar, bottom tab bar, card-style records, bottom-sheet dialogs. */
@media(max-width:760px){
html{-webkit-text-size-adjust:100%}body{-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
header{position:sticky;top:0;z-index:30;height:auto;min-height:56px;padding:calc(8px + env(safe-area-inset-top)) 16px 8px;background:#112e2c;color:#a2bcb5;border:0;box-shadow:0 2px 10px #0b1f1d30}
.header-title{display:flex;flex-direction:column;min-width:0;line-height:1.2}.header-crumb{display:none}.header-brand{display:block;font-size:11px;font-weight:700;letter-spacing:.3px;color:#fff}
.header-title b{color:#fff;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header .user>span:not(.avatar){display:none}header .avatar{background:#245046;color:#fff}header .session-exit{color:#d8e6e3;border-color:#35504a;background:transparent;padding:6px 10px;font-size:12px}
aside{position:fixed;inset:auto 0 0 0;width:auto;height:auto;padding:0 0 env(safe-area-inset-bottom);z-index:40;background:#112e2c;border-top:1px solid #245046;box-shadow:0 -4px 16px #0b1f1d33}
aside .brand,.asidefoot{display:none}
nav{display:flex;flex-wrap:nowrap;margin:0;gap:0}
nav .nav-link{flex:1 1 0;width:auto;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;margin:0;padding:8px 2px 7px;border-radius:0;font-size:10.5px;font-weight:600;color:#8fb0a8;text-align:center;position:relative}
nav .nav-label{display:none}nav .nav-short{display:block}nav .nav-link span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
nav .nav-link.active{background:transparent;color:#fff}nav .nav-link.active:before{content:'';position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:#6ed5b5}
nav .nav-import,nav .nav-formulas{display:none}.nav-icon{display:block;width:23px;height:23px}nav .nav-link.active .nav-icon{color:#6ed5b5}
main{margin:0;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
.page{padding:16px 14px 24px}
h1{font-size:23px;line-height:1.2}
button.primary,.heading .actions button,.heading .actions .button,.modalfoot button{min-height:44px}input,select,textarea{font-size:16px!important}
.modalfoot{position:sticky;bottom:0}
.heading .actions{display:flex;gap:8px;width:100%;margin-bottom:6px}.heading .actions a.button:not(.primary){border:1px solid var(--line);background:#fff;color:var(--green);font-weight:600}.heading .actions .button{border-radius:10px}.heading .actions>*{flex:1;justify-content:center;text-align:center}
.panel,.box-kpis>div{border-radius:12px}
.scroll,.record-list,.subtabs{-webkit-overflow-scrolling:touch}
.tabletop{padding:14px 16px;flex-wrap:wrap}.tabletop h2{font-size:16px}
/* Records become cards */
.record-list table{min-width:0}#grid,#grid tbody,#grid tr,#grid td{display:block;width:100%}#grid thead{display:none}
#grid tbody{padding:12px;background:#f3f6f8}
#grid tr{background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;padding:12px 14px;display:grid;grid-template-columns:1fr 1fr;column-gap:14px;box-shadow:0 1px 3px #1b2c360d}
#grid td{border:0;padding:5px 0;white-space:normal;text-align:left;font-size:14px;min-width:0}
#grid td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:#6b7c84;font-weight:500}
#grid td.rc-park,#grid td.rc-box{font-size:16px;font-weight:700}#grid td.rc-park:before,#grid td.rc-box:before{display:none}
#grid td.rc-park{order:-4}#grid td.rc-box{order:-3;text-align:right}#grid td.rc-company{order:-2}#grid td.rc-status{order:-1}#grid td.rc-actions,#grid td.empty{grid-column:1/-1}
#grid .record-actions{display:flex;gap:6px;border-top:1px solid #edf0f2;margin-top:8px;padding-top:10px}
#grid .record-actions>*{flex:1;text-align:center;padding:9px 4px;border:1px solid var(--line);border-radius:8px;font-size:13px;min-height:0;background:#fff}
/* Dialogs slide up as bottom sheets */
dialog{width:100vw;max-width:100vw;max-height:92vh;margin:auto 0 0;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
dialog[open]{animation:sheet-up .22s ease-out}
.formgrid,.financial{grid-template-columns:1fr}
.box-kpis{gap:10px}.box-kpis b{font-size:18px}.box-kpis>div{padding:12px}
.input-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Analysis: saved-view controls fold behind a small "View" button on phones. */
@media(max-width:760px){
.analysis-mode .heading{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}.analysis-mode .heading>div:first-child{flex:1;min-width:0}.analysis-mode .heading p{display:none}
.analysis-mode .heading .actions{width:auto;margin:0}.analysis-mode .heading .actions>*{flex:initial}
.view-toggle{display:inline-flex;align-items:center;gap:4px;min-height:38px;padding:7px 12px;border-radius:20px;font-size:13px;font-weight:600;color:var(--green);position:relative}
.views-open .view-toggle{background:#e3eee9;border-color:#cfe1d6}
.heading:has(#viewChanged:not([hidden])) .view-toggle:after{content:'';position:absolute;top:4px;right:6px;width:8px;height:8px;border-radius:50%;background:#d49a2a}
.analysis-mode #viewToolbar{display:none}
.analysis-mode .heading{position:relative}
.analysis-mode .heading.views-open #viewToolbar{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:absolute;right:0;top:calc(100% + 6px);z-index:20;width:min(340px,calc(100vw - 28px));background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:0 12px 32px #1b2c3626}
.analysis-mode #viewToolbar>label{display:none}
.analysis-mode #viewToolbar #savedView,.analysis-mode #viewToolbar #viewChanged{grid-column:1/-1;width:100%}
.analysis-mode #viewToolbar #savedView{height:auto;min-height:44px;padding:8px 10px}
.analysis-mode #viewToolbar button{height:auto;min-height:44px;width:100%}
}
/* Box page: rent schedule rows become compact cards on phones. */
@media(max-width:760px){
.schedule-table,.schedule-table tbody{display:block}.schedule-table thead{display:none}
.schedule-table tbody{padding:0 12px 4px}
.schedule-table tr{display:grid;grid-template-columns:1fr 1fr;column-gap:12px;row-gap:6px;padding:12px 4px;border-bottom:1px solid #edf0f2}
.schedule-table tr:last-child{border-bottom:0}
.schedule-table td{display:block;border:0;padding:0;white-space:normal;background:transparent;text-align:left;min-width:0}
.schedule-table td.sch-year{font-weight:700;font-size:15px}.schedule-table td.sch-period{text-align:right;font-size:13px;color:#6b7c84;white-space:nowrap;align-self:center}
.schedule-table td[data-label]:before{content:attr(data-label);display:block;font-size:11px;color:#6b7c84}
.schedule-table td.number{font-weight:600;text-align:left}.schedule-table td.sch-esc{grid-column:1/-1;font-size:13px;color:var(--green)}.schedule-table td.sch-esc.none{display:none}
.schedule-table tr.current-year{background:#eef7f2;border-radius:10px;padding:12px 10px;margin:4px -6px;border-bottom:0}.schedule-table tr.current-year td{background:transparent}
}
/* Filters: search stays visible, the rest folds behind a "Filters" toggle on phones. */
@media(max-width:760px){
#filterBar{display:flex;flex-direction:column}
.filter-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:46px;padding:10px 14px;border:0;border-bottom:1px solid #edf0f2;border-radius:0;background:transparent;font-size:14px;font-weight:600;color:#1b2c36;text-align:left}
.filter-toggle span{flex:1}.filter-toggle b{background:var(--green);color:#fff;border-radius:10px;min-width:20px;padding:1px 7px;font-size:12px;text-align:center}
.filter-toggle i{font-style:normal;color:var(--green);transition:transform .15s}.filters-open .filter-toggle i{transform:rotate(180deg)}
#filterBar:not(.filters-open) .filters>*:not(:has(#search)),#filterBar:not(.filters-open) .date-filters{display:none!important}
#filterBar:not(.filters-open) .filters{grid-template-columns:1fr!important}#filterBar:not(.filters-open) .filters label:has(#search){font-size:0;gap:0}
.status-filter summary{height:auto;min-height:44px;padding:11px 10px;font-size:16px;border-radius:8px}
}
@keyframes sheet-up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@media(max-width:380px){nav .nav-link{font-size:9.5px}.nav-icon{width:21px;height:21px}.box-kpis b{font-size:16px}}
@media(max-width:760px) and (prefers-reduced-motion:reduce){dialog[open]{animation:none}}
