*{box-sizing:border-box}
 :root{color-scheme:light;--bg:#f5f6f2;--paper:#fff;--ink:#1b2b27;--muted:#5e7068;--line:#dce3dc;--deep:#104a3b;--green:#167755;--mint:#dff3df;--lime:#c1f380;--radius:17px;font-family:"Inter","Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}
body{margin:0;font-size:16px}
button,input,textarea,select{font:inherit}
button,select{cursor:pointer}
a{color:var(--green)}
button{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #76a983;outline-offset:3px}
button{touch-action:manipulation}
.skip{position:absolute;top:-100px}
.skip:focus{top:0;left:0;background:white;z-index:30}
.icon{display:inline-flex;width:19px;height:19px;flex:none;align-items:center;justify-content:center}
.icon svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round}
.layout{min-height:100vh;display:grid;grid-template-columns:228px minmax(0,1fr)}
.side{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;padding:30px 16px 18px;background:#f9faf6;border-right:1px solid var(--line);z-index:6}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px 29px;font-size:24px;font-weight:710;letter-spacing:-1.4px}
.brand small{font-size:inherit;font-weight:400;color:#6c7b72}
.brandmark{width:38px;height:38px;flex:none;border-radius:12px;background:#184e39;color:var(--lime);display:grid;place-items:center}
.brandmark svg{width:26px;height:26px}
.nav-label{font-size:.72rem;text-transform:uppercase;font-weight:700;letter-spacing:.12em;color:#76857d;margin:20px 12px 9px}
.navbtn{width:100%;border:0;background:transparent;border-radius:8px;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;color:#45574d;font-size:.94rem;margin:2px 0}
.navbtn:hover{background:#ecf1e9}
.navbtn.active{background:#deecd9;color:#144d34;font-weight:650}
.side-foot{margin-top:auto;border-top:1px solid var(--line);padding:17px 5px 0;display:flex;gap:10px;align-items:center}
.avatar{width:31px;height:31px;border-radius:50%;background:#e9e5f5;color:#5f477f;display:inline-grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.side-foot small,.subtext,.muted{color:var(--muted)}
.side-foot strong,.side-foot small{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.side-foot strong{font-size:14px}
.side-foot small{font-size:12px;margin-top:3px}
.topbar{height:67px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 clamp(20px,3vw,48px);background:#fcfdf9}
.crumb,.topright,.hflex,.tools,.toolbar,.tabs,.actions,.legend{display:flex;align-items:center;gap:10px}
.crumb{color:var(--muted);font-size:14px}
.crumb b{color:var(--ink);font-weight:600}
.topright{font-size:.85rem}
.mode{padding:5px 10px;border-radius:100px;background:#ebf0e5;color:#486344;font-size:.78rem}
.avatar-group{display:flex;padding-left:5px}
.avatar-group .avatar{margin-left:-5px;border:2px solid #fff;width:28px;height:28px;font-size:10px}
.avatar:nth-child(3n+2){background:#f5dfc7;color:#87522b}
.avatar:nth-child(3n){background:#dbece2;color:#29664b}
.mobile-menu{display:none!important}
main{max-width:1650px;margin:auto;padding:28px clamp(20px,3vw,48px) 45px}
h1,h2,h3,p{margin-top:0}
h1{font-weight:670;letter-spacing:-.053em;font-size:clamp(1.8rem,2.8vw,2.65rem);line-height:1.14;margin:0 0 7px}
h2{font-size:1.15rem;letter-spacing:-.025em}
h3{font-size:1rem}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.page-head p{margin:0;color:var(--muted);font-size:.93rem}
.btn,button.secondary,.tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:1px solid var(--line);padding:9px 13px;border-radius:8px;font-size:.88rem;font-weight:600;line-height:1.3}
.btn:hover,.tabs button:hover{background:#f0f4ed}
.btn.primary,.primary.btn,.tabs button.active{background:var(--deep);border-color:var(--deep);color:#fff}
.btn.primary:hover{background:#14604a}
.textbtn{padding:5px;border:0;background:none;color:#296b52;font-size:.84rem;font-weight:650}
.iconbtn{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:#fff;display:inline-grid;place-items:center}
.hero{position:relative;isolation:isolate;overflow:hidden;border-radius:var(--radius);background:#103e32;color:white;padding:26px 30px;margin-bottom:18px;min-height:150px}
.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 95% 64%,#356b49,transparent 65%),linear-gradient(95deg,#103d32,#175138)}
.contour{position:absolute;right:0;top:0;width:58%;height:100%;z-index:-1;pointer-events:none}
.hero h2{font-size:clamp(1.5rem,2.2vw,2.25rem);letter-spacing:-.045em;margin:10px 0 7px;line-height:1.18;font-weight:590}
.hero h2 b{color:#d2f6a3;font-weight:650}
.hero p{margin:0;color:#d0e5d6;font-size:.9rem}
.hero-label{display:flex;align-items:center;gap:7px;font-size:.76rem;color:#daf0d5;font-weight:600}
.hero-label .icon{width:15px;height:15px}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}
.metric,.panel,.board-col{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}
.metric{padding:16px 18px}
.meter-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.metric .num{font-size:2rem;font-weight:640;letter-spacing:-.055em;line-height:1.3;margin:5px 0 2px;display:block}
.num small{font-size:.95rem;letter-spacing:0;font-weight:500;margin-left:4px}
.metric small,.small,.subtext{font-size:.81rem;color:var(--muted)}
.metric .meter-top{font-size:.88rem;color:#475b50;font-weight:550}
.tint{width:31px;height:31px;border-radius:9px;display:inline-grid;place-items:center}
.green{background:#e4f0dd;color:#457444}
.lav{background:#eee7fa;color:#7058a1}
.gold{background:#fff0d6;color:#8c682b}
.blue{background:#e1edf5;color:#416f8d}
.workspace-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:16px;margin-bottom:18px}
.panel{min-width:0;padding:20px;margin-bottom:16px}
.workspace-grid>.panel{margin:0}
.panel h2,.panel h3{margin-bottom:9px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:14px}
.panel-head h2,.panel-head h3{margin:0}
.panel-head p{margin:4px 0 0}
.graph{display:grid;grid-template-columns:33px 1fr;grid-template-rows:136px 23px;gap:0 7px;margin:16px 0 0}
.yaxis{grid-row:1;display:flex;flex-direction:column;justify-content:space-between;text-align:right;font-size:.72rem;color:var(--muted)}
.bars{display:flex;align-items:end;justify-content:space-around;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent calc(33.33% - 1px),#e7ebe6 calc(33.33% - 1px),#e7ebe6 33.33%)}
.barpair{height:100%;width:9%;display:flex;gap:3px;align-items:end}
.barpair i{width:50%;background:#267956;border-radius:4px 4px 0 0;min-height:0}
.barpair i+i{background:#b7db8b}
.xaxis{grid-column:2;display:flex;justify-content:space-around;padding-top:5px;font-size:.72rem;color:var(--muted)}
.legend{gap:14px;font-size:.8rem;color:var(--muted)}
.dot{display:inline-block;width:9px;height:9px;background:#267956;border-radius:3px;margin-right:5px}
.dot.light{background:#b7db8b}
.deadline{display:flex;width:100%;align-items:center;text-align:left;gap:10px;background:transparent;border:0;border-top:1px solid #eef0eb;padding:10px 0}
.deadline strong{font-size:.91rem;font-weight:610}
.deadline small{display:block;margin-top:3px;color:var(--muted);font-size:.78rem}
.deadline time{margin-left:auto;font-size:.78rem;background:#f2f4ee;padding:4px 6px;border-radius:6px;white-space:nowrap}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;font-size:.89rem}
th{font-size:.77rem;color:#5f7064;font-weight:600;background:#f5f7f2;white-space:nowrap}
th,td{padding:10px 12px;border-bottom:1px solid #ebeee8;vertical-align:middle}
td:last-child{white-space:normal}
tr:last-child td{border-bottom:0}
.pill,.tag{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:20px;font-size:.77rem;white-space:nowrap;background:#eaf1e6;color:#3e6844;font-weight:550}
.pill[data-tone="lav"]{background:#ede9f6;color:#70548c}
.pill[data-tone="gold"]{background:#fcf1d8;color:#906928}
.pill[data-tone="blue"]{background:#e7eff6;color:#456986}
.empty{padding:20px 8px;color:var(--muted);font-size:.93rem}
.toolbar,.tabs{flex-wrap:wrap;margin-bottom:14px}
.toolbar select,.tools select,select,input,textarea{max-width:100%;padding:9px 10px;border:1px solid #cfd8cf;color:var(--ink);background:#fff;border-radius:8px;line-height:1.3}
.tools select{font-size:.85rem}
.tabs button{font-weight:550}
.taskboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.board-col{background:#edf1ea;border:none;padding:12px;min-height:240px}
.col-head{display:flex;align-items:center;justify-content:space-between;font-size:.92rem;font-weight:650;margin-bottom:13px}
.col-head small{font-weight:500}
.taskcard{display:block;width:100%;padding:13px;border:1px solid var(--line);background:white;border-radius:11px;text-align:left;margin-bottom:9px}
.taskcard:hover,.deadline:hover{background:#fafcf8}
.taskcard strong{display:block;font-weight:600;margin:8px 0 12px;overflow-wrap:anywhere}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:4px}
.card-foot small{font-size:.75rem;color:var(--muted)}
dialog{padding:0;width:min(610px,calc(100% - 24px));border:1px solid var(--line);border-radius:17px;box-shadow:0 22px 100px #102c3545;max-height:89dvh;color:var(--ink)}
dialog::backdrop{background:#15271fb3}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:0;z-index:2;padding:16px 20px;background:white;border-bottom:1px solid var(--line)}
.modal-head h2{margin:0}
.modal-body{padding:19px 20px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:.86rem;font-weight:550}
.form-grid label.full{grid-column:1/-1}
.form-grid textarea{min-height:78px;resize:vertical}
.form-foot{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}
.form-error{color:#923520;padding:6px 0;font-size:.88rem}
.detail-list{display:grid;gap:9px}
.history{padding-left:20px}
.history li{padding:5px 0;font-size:.85rem}
.loading{margin:12vh auto;max-width:550px;padding:30px}
.hidden,[hidden]{display:none!important}
#toast{position:fixed;z-index:20;bottom:17px;left:50%;transform:translateX(-50%);color:white;background:#173e30;border-radius:9px;padding:10px 16px;display:none}
#toast.show{display:block}
button:disabled{cursor:wait;opacity:.6}
p{line-height:1.55}

@media(min-width:1680px){main{padding:35px 50px}
.hero{min-height:180px}
.graph{grid-template-rows:170px 24px}
}

@media(max-width:1120px){.layout{grid-template-columns:190px minmax(0,1fr)}
.side{padding-left:9px;padding-right:9px}
main{padding:22px 18px}
.metric{padding:13px}
.workspace-grid{grid-template-columns:1.15fr 1fr}
.taskboard{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:860px){.layout{display:block}
.side{position:fixed;left:0;top:0;width:230px;transform:translateX(-101%);transition:transform .15s}
.layout.open .side{transform:none}
.layout.open .shade{position:fixed;inset:0;border:0;background:#102d23aa;z-index:5}
.mobile-menu{display:inline-grid!important}
.topbar{height:57px}
.workspace-grid{grid-template-columns:1fr 1fr}
.crumb span.hide-sm{display:none}
.side-foot{padding-bottom:12px}
}

@media(max-width:650px){main{padding:17px 13px}
.topbar{padding:0 13px}
.workspace-grid{grid-template-columns:1fr}
.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hero{padding:20px;min-height:135px}
.hero h2{max-width:76%}
.contour{width:42%;opacity:.7}
.hero p{max-width:76%;font-size:.8rem}
.taskboard{grid-template-columns:1fr}
.page-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:13px}
.tools,.toolbar{gap:6px}
.panel{padding:14px}
.form-grid{grid-template-columns:1fr}
.board-col{min-height:70px}
.graph{grid-template-rows:118px 22px}
.avatar-group{display:none}
.topright{gap:5px}
.topbar .crumb{gap:6px}
.panel-head{flex-wrap:wrap}
.metric .num{font-size:1.65rem}
}

@media(prefers-reduced-motion:reduce){*{transition:none!important}
}


/* Layout details */
.panel-head .toolbar{margin-bottom:0}
.panel-head h2{overflow-wrap:anywhere}
.panel td .btn{margin:2px}
.side{overflow-y:auto}
.side-foot{flex-shrink:0}
.modal-body,.deadline,.side-foot{overflow-wrap:anywhere}
.modal-body .panel{padding:12px}
.form-grid input,.form-grid select,.form-grid textarea{min-width:0;width:100%}
.hero h2,.hero p{position:relative}
@media(min-width:861px){.shade{display:none}}
@media(max-width:650px){.topright .textbtn{font-size:.77rem;padding:3px}.topright:has(a) .mode{display:none}.panel-head .toolbar{max-width:100%}.panel-head .toolbar input{min-width:0}.hero h2{font-size:1.4rem}}
