:root{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#163a32;background:#f5f8f5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border-bottom:1px solid #e0eae4;padding:12px clamp(15px,4vw,44px);position:sticky;top:0;z-index:3}
.brand{display:flex;align-items:center;gap:11px;font-weight:760;font-size:20px;letter-spacing:-.4px}.brand small{font-size:11px;color:#6b8175;display:block;font-weight:500;letter-spacing:0}
.om{color:#145d46;font-size:37px;line-height:1.1;font-weight:400}.account{display:flex;align-items:center;gap:12px;color:#527064;font-size:13px}.account button{border:0;background:#eef5f0;color:#255e4a;padding:7px 12px;border-radius:9px}
.nav{display:flex;gap:7px;padding:12px clamp(15px,4vw,44px);overflow-x:auto;border-bottom:1px solid #e7ede8;background:white}
.nav button{white-space:nowrap;background:transparent;border:0;border-radius:10px;padding:11px 15px;color:#51665d}
.nav button.active{background:#e0efe6;color:#165c49;font-weight:700}
.main{width:min(1120px,100%);margin:0 auto;padding:24px 20px 70px}.loading{text-align:center;margin:15vh auto;color:#63796e}
h1{font-size:clamp(24px,3.2vw,32px);margin:0 0 9px;letter-spacing:-.7px}h2{font-size:19px;margin:0 0 16px}h3{font-size:16px;margin:0 0 9px}.subtitle{color:#6a8074;margin:0 0 26px;line-height:1.5}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:21px;flex-wrap:wrap}
.btn{background:#165c49;border:1px solid #165c49;color:#fff;border-radius:12px;padding:11px 17px;font-weight:650;transition:background .12s}
.btn:hover{background:#0e4939}.btn.secondary{background:#fff;color:#165c49;border-color:#cbded2}.btn.secondary:hover{background:#f2f8f4}
.btn.small{font-size:13px;padding:7px 11px;border-radius:9px}.btn:disabled{opacity:.5;cursor:not-allowed}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:#fff;border:1px solid #e3ece5;border-radius:17px;padding:20px;box-shadow:0 3px 15px #194e3108;min-width:0}
.card p{line-height:1.55;color:#5e7268}.card-title{font-weight:720;font-size:17px;margin:0 0 7px}.list{display:grid;gap:12px}
.item{background:#fff;border:1px solid #e0e9e3;border-radius:14px;padding:17px}.item-head{display:flex;justify-content:space-between;gap:9px;align-items:start;flex-wrap:wrap}
.item h3{margin:0 0 8px}.item p{margin:6px 0 10px;color:#587063;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
.item small,.meta{font-size:12px;color:#789085}.item-actions{display:flex;gap:9px;margin-top:12px;align-items:center;flex-wrap:wrap}
.pill{display:inline-block;padding:5px 9px;font-size:12px;background:#e8f2eb;border-radius:30px;color:#215d46}
.pill.closed{background:#eee;color:#6f7570}.pill.in_progress{background:#fcf2d9;color:#8a681e}
.metric{font-size:25px;letter-spacing:-.6px;font-weight:770;color:#154d3b;font-variant-numeric:tabular-nums}.metric-label{color:#697f74;font-size:13px}
.banner{padding:22px;border-radius:17px;background:#e6f3e9;border:1px solid #d5e7d9;margin-bottom:22px}
.banner h2{margin:0 0 8px}.banner p{margin:0 0 15px;color:#466e5a}.quick{display:flex;gap:9px;flex-wrap:wrap}
.empty{color:#708277;padding:25px;text-align:center;background:#fff;border:1px dashed #c9dcd0;border-radius:14px}
.fields{display:grid;gap:13px}.field{display:grid;gap:6px;font-size:13px;color:#405d4f;font-weight:630}
.field input,.field select,.field textarea{border:1px solid #bfd3c6;border-radius:10px;background:#fff;padding:12px;min-width:0;width:100%;color:#193b30}
.field textarea{resize:vertical;min-height:92px}.field input:focus,.field textarea:focus,.field select:focus{outline:2px solid #77bda0;outline-offset:1px}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:15px;flex-wrap:wrap}
.login{max-width:430px;margin:7vh auto}.login .card{padding:30px}.login h1{margin-bottom:5px}.login p{color:#708277;line-height:1.6}
.dialog{border:0;border-radius:18px;padding:24px;max-width:min(560px,calc(100vw - 24px));width:100%;box-shadow:0 20px 80px #001a1340;max-height:90dvh;overflow:auto}
.dialog::backdrop{background:#10392e8c}.dialog h2{margin-bottom:20px}
.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.barrow{margin:12px 0}.barhead{display:flex;justify-content:space-between;gap:12px;font-size:13px;flex-wrap:wrap}
.bartrack{background:#e7f0e9;height:9px;border-radius:8px;overflow:hidden;margin-top:6px}
.barfill{background:#358b6b;height:100%;border-radius:8px}
.tablewrap{overflow-x:auto}.fin-table{width:100%;border-collapse:collapse;font-size:13px}.fin-table th{text-align:left;color:#637c6d;font-weight:600;border-bottom:1px solid #e1e9e1;padding:10px}.fin-table td{border-bottom:1px solid #edf1ed;padding:12px 10px;vertical-align:top}
.tabstrip{display:flex;gap:8px;margin:0 0 20px;flex-wrap:wrap}.tabstrip button{border:1px solid #d3e3d7;background:white;color:#386652;border-radius:10px;padding:10px 14px}.tabstrip button.active{background:#dceee3;border-color:#8abca1}
.toast{position:fixed;right:18px;bottom:18px;z-index:9;background:#184f3e;color:#fff;padding:12px 18px;border-radius:10px;box-shadow:0 10px 30px #0018;max-width:370px;display:none}.toast.visible{display:block}
.muted{color:#6c8176}.spaced{margin-top:22px}.headerline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.headerline h2{margin:0}
@media(max-width:680px){
.topbar{padding:10px 15px}.brand{font-size:17px}.om{font-size:32px}.account{gap:5px;font-size:11px}.account .who{max-width:95px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account button{padding:6px 8px}
.nav{position:fixed;bottom:0;left:0;right:0;top:auto;z-index:4;padding:6px 4px max(7px,env(safe-area-inset-bottom));gap:0;justify-content:space-around;border:0;border-top:1px solid #dce9df;box-shadow:0 -3px 15px #20553310}
.nav button{font-size:10px;padding:10px 2px;white-space:normal;flex:1;line-height:1.3;border-radius:8px}
.nav button.active{font-weight:750}.main{padding:22px 14px calc(100px + env(safe-area-inset-bottom))}
.grid,.grid.three,.cols{grid-template-columns:1fr}.card{padding:17px}.metric{font-size:25px}
.section-head{align-items:start}.btn{padding:10px 12px}.toast{left:12px;right:12px;bottom:85px}
}
.nav[hidden]{display:none!important}
