:root{color-scheme:light;--bg:#f7f7f2;--paper:#fffefa;--ink:#1c302a;--muted:#5c6a61;--line:#dcdfd4;--forest:#183e35;--deep:#15362f;--gold:#bc945d;--tint:#edf1e8;--bar0:#365d4d;--bar1:#678570;--bar2:#91a695;--bar3:#b29568;--bar4:#9da89c;--sans:"DM Sans","Instrument Sans","Segoe UI",Arial,sans-serif;--serif:"Baskervville","Baskerville","Iowan Old Style",Georgia,serif;--nav-width:232px;font-family:var(--sans);font-size:16px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,select,input,textarea{font:inherit;color:inherit}button,a,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #bd8640;outline-offset:3px}button{background:none;border:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:500}.icon{flex:none;vertical-align:middle}.amount,.stat-value,dd,.route-stats strong,.node-sum{font-variant-numeric:tabular-nums}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.skip:focus{position:fixed;top:8px;left:12px;padding:12px;background:white;z-index:22}.loading{padding:64px;font:24px var(--serif)}.muted{color:#848e85}
.layout{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--nav-width);z-index:10;display:flex;flex-direction:column;color:#e8eee4;background:var(--deep);border-right:1px solid #203c32}.brand{display:flex;align-items:center;gap:10px;margin:0 18px;padding:28px 0 25px;border-bottom:1px solid #ffffff23}.brand img{width:42px;height:42px}.wordmark{font-family:var(--serif);font-size:40px;line-height:.95;letter-spacing:-.06em;color:#faf7e8;font-style:italic}.brand span{position:relative;top:3px;color:#bfcdc0;font-size:12px;letter-spacing:.015em}.nav-scroll{overflow-y:auto;scrollbar-width:thin;padding:25px 14px 18px}.nav-title,.eyebrow,.hero-kicker{font-size:11px;letter-spacing:.14em;font-weight:700;text-transform:uppercase}.nav-title{margin:0 9px 9px;color:#afc1b3}.project-select{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px;width:100%;background:#27483e;border:1px solid #516656;border-radius:5px;color:#fcfaf0;text-align:left;font-size:14px;font-weight:600;margin-bottom:18px}.project-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-select:hover{background:#345345}.navitem{display:flex;gap:12px;align-items:center;min-height:39px;border-radius:5px;padding:9px 11px;color:#d1ded3;font-size:14px;line-height:1.3;position:relative}.navitem+.navitem{margin-top:3px}.navitem .icon{color:#afc3b4}.navitem:hover{background:#24483c}.navitem.active{background:#345648;color:#fffdf2;font-weight:600}.navitem.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:#d5b77b}.navitem.active .icon{color:#e7ce96}.company-label{border-top:1px solid #ffffff22;margin:20px 0 10px;padding:19px 9px 0}.side-foot{margin:auto 18px 0;padding:15px 6px 20px;border-top:1px solid #ffffff25;display:flex;align-items:center;gap:9px;font-size:13px;color:#b8c7bb}
.canvas{margin-left:var(--nav-width)}.topbar{height:62px;padding:0 clamp(20px,3.1vw,48px);display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);background:var(--paper)}.crumb,.top-actions{display:flex;align-items:center;gap:12px}.crumb{font-size:14px;color:var(--muted)}.crumb>.icon{color:#718376}.crumb b{color:#a4aea4;font-weight:400}.crumb strong{font-weight:600;color:#384c40}.top-actions{gap:17px}.save-status{display:flex;align-items:center;color:#607467;font-size:13px;padding:6px 0}.save-status span{display:flex;align-items:center;gap:7px}.save-status.warning{color:#8c5c19}.menu-parent{position:relative}.dropdown{position:absolute;top:calc(100% + 7px);right:0;z-index:8;min-width:247px;border-radius:8px;background:var(--paper);border:1px solid var(--line);padding:5px;box-shadow:0 9px 30px #162e2420}.menu-item{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:10px 12px;border-radius:4px;font-size:14px}.menu-item:hover{background:var(--tint)}.mb-menu,.scrim{display:none!important}
main#main{max-width:1590px;margin:0 auto;padding:25px clamp(20px,3.1vw,48px) 46px;outline:none}main>section, main>.two-col,main>.dashboard-grid{margin-bottom:19px}main>.stats{margin-bottom:21px}main>.subtoolbar{margin:22px 0 13px}.hero{isolation:isolate;position:relative;min-height:201px;overflow:hidden;display:flex;align-items:center;border:1px solid #dcd9c8;border-radius:10px;background:#efeddf}.hero-art{position:absolute;z-index:-3;right:0;top:0;width:62%;height:100%;object-fit:cover;object-position:50% 52%;mix-blend-mode:multiply;filter:saturate(.70) contrast(1.05)}.hero.forest:after{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,#efeddf 0%,#efeddf 33%,#efeddfec 41%,#efeddf22 60%,transparent 78%)}.hero-copy{padding:25px 33px 22px;max-width:70%}.hero-kicker{color:#5d6d55;display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.17em}.hero-kicker i{height:1px;width:23px;background:#a88854}.hero h1{font-size:clamp(39px,4.6vw,72px);letter-spacing:-.052em;line-height:1.04;margin:10px 0 6px;font-style:italic;overflow-wrap:anywhere}.hero-copy>p{font-size:16px;color:#53604f}.hero-bottom{display:flex;align-items:center;gap:13px;color:#455744;font-size:13px;margin-top:20px}.hero-bottom>span,.hero-bottom button{display:inline-flex;align-items:center;gap:6px}.hero-bottom button{font-size:13px;color:#485c4e;border-left:1px solid #b6beaa;border-radius:0;padding:0 0 0 13px}.hero-bottom button:hover{text-decoration:underline}.hero-decoration{position:absolute;inset:-70% -5% -80% 55%;background:repeating-radial-gradient(ellipse at 90% 100%,transparent 0 23px,#8d9e86 24px 25px,transparent 26px 31px);opacity:.32;transform:rotate(-15deg);z-index:-1}
.section-heading,.page-head,.subtoolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.section-heading{margin:22px 0 13px}.section-heading h2,.page-head h1{font-size:clamp(30px,3vw,45px);letter-spacing:-.045em;line-height:1.13}.section-heading h2{font-size:clamp(27px,2.5vw,40px)}.eyebrow{color:#65745e;font-size:11px;margin-bottom:7px}.scenario-control{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}.seg{display:inline-flex;align-items:stretch;padding:3px;border:1px solid #d8ded2;background:#edf0e8;border-radius:6px;flex-shrink:0}.seg button{border:1px solid transparent;border-radius:4px;white-space:nowrap;padding:5px 10px;color:#586a5b;font-size:13px;line-height:1.3;font-weight:600}.seg .sel{border-color:#d8ded2;color:#254b3b;background:#fffefa;box-shadow:0 1px 3px #24372b12}.seg button:not(.sel):hover{color:var(--ink);background:#e1e7db}.mini button{padding:3px 9px}.stats{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:14px}.stat{min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:17px 19px 15px;position:relative}.stat-main{background:var(--forest);border-color:var(--forest);color:#fcfaf1}.stat-label{display:flex;align-items:center;gap:8px;color:#56675a;font-size:14px;font-weight:550}.stat-label>.icon{color:#65806a}.stat-main .stat-label{color:#e0e9da}.stat-main .stat-label>.icon{color:#dcbe7e}.stat-value{font-family:var(--serif);font-size:clamp(27px,2.45vw,44px);letter-spacing:-.045em;line-height:1.15;margin:13px 0 7px;white-space:nowrap}.stat-detail{color:var(--muted);font-size:13px;line-height:1.4}.stat-main .stat-detail{color:#c7d5c5}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:17px;align-items:start}.panel,.node{background:var(--paper);border:1px solid var(--line);border-radius:8px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px 15px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:clamp(21px,1.45vw,26px);line-height:1.15;letter-spacing:-.026em}.panel-head p,.page-head p,.project-line p,.node-head p,.empty p,.call p,.dialog-intro,.foot-hint{color:var(--muted);font-size:14px;line-height:1.5}.panel-head p{margin-top:5px}.panel-title{display:flex;gap:8px;align-items:center}.panel-title>.icon{color:#72826a}.bars{padding:18px 20px 22px;display:grid;gap:15px}.bar-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:7px}.bar-row b{font-weight:600;white-space:nowrap}.track{height:5px;border-radius:4px;background:#ecefe6;overflow:hidden}.track i{display:block;height:100%;min-width:1px;border-radius:4px;background:var(--bar)}.route-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 19px 7px;background:#f2f3eb;border:1px solid #e3e6d9;border-radius:6px;padding:11px 2px}.route-stats div{text-align:center;border-right:1px solid #dbdfcf}.route-stats div:last-child{border:0}.route-stats strong{font:500 27px/1 var(--serif);display:block;color:#35523c}.route-stats span{display:block;color:#5a6c5d;font-size:12px;margin-top:4px}.route-mini{padding:5px 20px 14px;margin:0;list-style:none}.route-mini li{position:relative;display:flex;align-items:center;gap:12px;padding:10px 0;min-height:54px}.route-mini li:not(:last-child):before{content:"";position:absolute;left:4px;top:50%;height:100%;border-left:1px dashed #97a58d}.route-mini i{width:9px;height:9px;border:2px solid #6e866d;border-radius:50%;background:var(--paper);flex:none;z-index:1}.route-mini li:first-child i{background:#6e866d}.route-mini li strong{font-size:14px;font-weight:650}.route-mini small{display:block;color:var(--muted);font-size:13px;margin-top:2px}.route-mini li>span{margin-left:auto;color:#50614f;font-size:13px;white-space:nowrap}
.btn,.text-btn,.icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.2}.btn{border:1px solid #cbd2c5;background:var(--paper);border-radius:5px;padding:9px 13px;font-size:14px;font-weight:600;color:#354c3d}.btn:hover,.icon-btn:hover{background:#edf1e7;border-color:#a8b7a6}.btn.primary{background:var(--forest);color:#fffdf3;border-color:var(--forest)}.btn.primary:hover{background:#285543}.btn.small{padding:7px 10px;font-size:13px}.text-btn{color:#3c6148;font-size:13px;font-weight:650;white-space:nowrap}.text-btn:hover,.inline-link:hover,.project-name:hover{text-decoration:underline}.icon-btn{border:1px solid transparent;color:#57715b;border-radius:4px;padding:6px}.inline-link{font-weight:600;color:#345c41}.page-head{padding:12px 0 21px;align-items:center}.page-head p{font-size:16px;margin-top:9px;max-width:70ch}.page-head .btn{flex-shrink:0}.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;align-items:start}.ledger{margin:0;padding:4px 19px 8px}.ledger>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #ebede5}.ledger>div:last-child{border-bottom:none}.ledger dt,.ledger dd{font-size:14px;line-height:1.4}.ledger dt{color:#506050}.ledger dd{margin:0;white-space:nowrap;font-weight:600}.ledger .sum{border-top:1px solid #ced6c9}.ledger .sum dt,.ledger .sum dd{color:var(--forest);font-weight:700}.ledger .sum dd{font-size:17px}.note{display:flex;align-items:flex-start;gap:10px;padding:12px 15px;border:1px solid #dbe2d2;border-radius:6px;background:#eff3e9;color:#465a47;font-size:14px;line-height:1.5;margin:15px 0}.note .icon{margin-top:2px}.note.warn{background:#fbf2df;color:#78561f;border-color:#e7d4ab}.note .text-btn{font-size:inherit}.table-wrap{width:100%;overflow-x:auto;border-radius:0 0 7px 7px}.table-wrap:focus:not(:focus-visible){outline:0}table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}th,td{padding:11px 12px;border-bottom:1px solid #e6e9df;text-align:left}thead th{background:#f3f5ed;font-size:13px;font-weight:600;color:#566655;white-space:nowrap}td .amount,th .amount{white-space:nowrap}tr td:first-child,tr th:first-child{padding-left:20px}tr td:last-child,tr th:last-child{padding-right:18px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f9faf4}tfoot{background:#f0f4ea}tfoot th,tfoot td{border-top:1px solid var(--line);border-bottom:0;font-weight:650}.row-name{font-weight:600}.row-sub{display:block;font-size:12px;line-height:1.4;color:var(--muted);margin-top:3px}.chip{font-size:12px;border-radius:4px;border:1px solid #d9dfd1;background:#f3f5ef;color:#576953;padding:3px 7px;display:inline-block}.chip.green{background:#e3eddd;color:#30583b}.empty{padding:24px 20px}.empty strong{font-weight:600}.empty p{margin-top:5px}.inline-pick{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}select{appearance:none;background-color:var(--paper);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23576756' stroke-width='1.6'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:18px;background-position:right 8px center}select,.field input:not([type=checkbox]),.field textarea{border:1px solid #bdc9b9;border-radius:5px;padding:8px 10px;background-color:#fffefa}.inline-pick select,.field select{padding-right:32px}.role-tags{display:flex;flex-wrap:wrap;gap:5px}.call{padding:16px 20px;border-bottom:1px solid var(--line)}.call:last-child{border:0}.call-top,.node-head,.project-line{display:flex;align-items:center;justify-content:space-between;gap:12px}.call-top .row-name{font-size:16px}.call-top small{font-size:14px}.call-meta{display:flex;align-items:center;gap:6px;margin:9px 0;color:var(--muted);font-size:13px}.node{margin:14px 17px;background:#fffefa}.node-head{padding:12px 15px}.node-icon,.project-monogram{display:grid;place-items:center;width:35px;height:35px;background:#eaf0e4;border-radius:6px;color:#486a50;flex:none}.node-head h3{font-size:21px}.node-head p{font-size:13px}.node-head>div:nth-child(2){flex:1}.node-sum{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.node-foot{border-top:1px solid var(--line);padding:8px 13px}.node-foot .btn{border-color:transparent}.project-line{padding:16px 20px;border-bottom:1px solid var(--line)}.project-line:last-child{border:0}.project-monogram{height:44px;width:44px}.project-name{font:500 23px var(--serif)}.project-cost{margin-left:auto;text-align:right}.project-cost small{display:block;font-size:12px;color:var(--muted)}.project-line p{font-size:13px}.subtoolbar{align-items:center}.btn.danger,.danger-link{color:#8d4535}.danger-link{margin-right:auto;font-size:14px;padding:7px 0}
dialog{position:fixed;border:1px solid #cbd6c6;border-radius:11px;padding:0;width:min(530px,calc(100vw - 30px));max-height:89dvh;color:var(--ink);background:var(--paper);box-shadow:0 22px 80px #14271f44}dialog::backdrop{background:#0c221dc2}dialog.wide{width:min(680px,calc(100vw - 30px))}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:19px 22px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:29px;letter-spacing:-.03em}.dialog-intro{margin-bottom:14px}.dialog-body{padding:19px 22px;max-height:calc(87dvh - 155px);overflow:auto}.dialog-foot{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:13px 22px;border-top:1px solid var(--line);background:#f5f6ef}.field{display:flex;flex-direction:column;gap:5px;font-size:14px;font-weight:550}.field input,.field textarea,.field select{width:100%;min-width:0;font-size:16px;font-weight:400}.field textarea{resize:vertical;min-height:65px}.field small{font-size:12px;color:var(--muted);font-weight:400}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid .full,.span-all{grid-column:1/-1}.check-row{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.4;cursor:pointer}.check-row input{width:17px;height:17px;accent-color:var(--forest)}.fieldset{border:1px solid var(--line);border-radius:6px;padding:10px 12px}.fieldset legend{font-size:13px;font-weight:650;color:#4a6050}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.modal-error{color:#8c4234;font-size:14px;margin-top:10px}.choose-list{display:grid;gap:6px}.choose-list a{padding:10px 12px;background:var(--tint);border-radius:5px;display:flex;justify-content:space-between;gap:12px}.choose-list a:hover{background:#e2eadd}.choose-list small{color:var(--muted)}#notice{position:fixed;bottom:24px;left:calc(50% + var(--nav-width)/2);transform:translateX(-50%);background:#21483c;color:#fff;border-radius:6px;font-size:14px;z-index:30;box-shadow:0 6px 18px #0002;max-width:min(520px,90vw)}#notice:not(:empty){padding:12px 18px}#print-view{display:none}
@media(min-width:1600px){:root{--nav-width:255px}.hero{min-height:238px}.hero-copy{padding-left:38px}.navitem{font-size:15px}.stat{padding:23px 26px}.bars{gap:18px}.bar-row>div:first-child,.ledger dd,.ledger dt{font-size:15px}}
@media(max-width:1200px){:root{--nav-width:209px}.brand{margin:0 14px}.nav-scroll{padding-left:10px;padding-right:10px}.scenario-control{gap:7px}.panel-head{padding:15px}.stat{padding:15px 13px}.hero-copy{padding-left:25px}.bars{padding:15px}.panel-title{gap:6px}}
@media(max-width:960px){:root{--nav-width:0px}.sidebar{width:247px;transform:translateX(-100%);transition:transform .18s ease-out}.layout.nav-open .sidebar{transform:none}.layout.nav-open .scrim{display:block!important;position:fixed;inset:0;background:#0a211978;z-index:9}.mb-menu{display:inline-flex!important}.crumb>.icon{display:none}.topbar{padding:0 22px}.canvas{margin:0}main#main{padding:20px 22px 38px}.stat-value{font-size:clamp(27px,3.8vw,40px)}}
@media(max-width:690px){.hero{min-height:177px}.hero-copy{max-width:82%;padding:17px}.hero-art{width:59%;opacity:.8}.hero.forest:after{background:linear-gradient(90deg,#efeddf 0%,#efeddf 30%,#efeddfdd 44%,#efeddf11 77%)}.hero h1{font-size:clamp(35px,7.4vw,54px)}.hero-kicker{font-size:10px}.hero-copy>p{font-size:14px}.hero-bottom{margin-top:16px}.section-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.scenario-control{gap:9px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stats>.stat:first-child:nth-last-child(3){grid-column:1/-1}.stat-value{margin:7px 0 5px;font-size:clamp(26px,5.4vw,37px)}.stat-main .stat-value{font-size:33px}.stat-label{font-size:13px}.stat-detail{font-size:12px}.dashboard-grid,.two-col{grid-template-columns:1fr}.topbar{height:53px;padding:0 12px}.top-actions{gap:8px}.crumb{gap:6px}.crumb>span,.crumb>b{display:none}.save-status{font-size:12px}.top-export{padding:7px 9px}.top-export .icon:last-child{display:none}main#main{padding:15px 13px 26px}.page-head{align-items:flex-start;flex-direction:column;gap:11px;padding:7px 0 16px}.page-head p{font-size:14px}.panel-head h2{font-size:21px}.panel-head{padding:13px;flex-wrap:wrap}.node{margin:11px 8px}.node-head{gap:7px;padding:10px;flex-wrap:wrap}.node-head p{font-size:12px}.node-sum{margin-left:auto}.node-icon{width:29px;height:29px}.project-line{flex-wrap:wrap;padding:14px}.project-cost{margin-left:0;text-align:left}.crumb strong{font-size:13px}.dialog-head,.dialog-body,.dialog-foot{padding:14px}.form-grid{gap:12px}.bars{gap:14px}}
@media(max-width:380px){.save-status{display:none}.stat{padding:12px 8px}.stat-value{font-size:24px}.form-grid{grid-template-columns:1fr}.hero-copy{max-width:95%}.seg button{padding:4px 7px}}
.node-common{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 15px;color:#536650;background:#f4f6ee;border-top:1px solid var(--line);font-size:13px}.node-common b{font-weight:650;color:var(--ink)}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A4;margin:16mm}body{background:white;font:10pt var(--sans);color:#17251a}#app,dialog,#notice,.skip{display:none!important}#print-view{display:block}#print-view header{border-bottom:2px solid #2a4938;padding-bottom:12px}#print-view h1{font-size:28pt;margin:5px 0}#print-view h2{font-size:16pt;break-after:avoid;margin:16px 0 5px}#print-view p{margin:6px 0}#print-view table{font-size:9pt}#print-view td,#print-view th{padding:5px 7px}#print-view th{font-size:9pt}#print-view tr{break-inside:avoid}#print-view .table-wrap{overflow:visible}#print-view thead{display:table-header-group}}
