:root{--ink:#15231e;--forest:#163d31;--green:#2e6a52;--mint:#dfece4;--cream:#f4f0e7;--paper:#fbfaf6;--gold:#c9a461;--rust:#aa654d;--line:#d9d7ce;--muted:#66736d;--shadow:0 18px 50px rgba(23,44,35,.10)}
[hidden]{display:none!important}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:.7rem;font-weight:800;color:var(--green);margin:0 0 .65rem}.muted{color:var(--muted)}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 85% 10%,rgba(201,164,97,.28),transparent 32%),linear-gradient(135deg,#102a22 0%,#1d4b3c 58%,#e8dfcd 58%,#f4f0e7 100%)}.login-card{width:min(560px,100%);padding:52px;border-radius:28px;background:rgba(251,250,246,.97);box-shadow:0 32px 80px rgba(0,0,0,.28)}.monogram,.brand-mark{display:grid;place-items:center;background:var(--forest);color:white;font-weight:900;letter-spacing:-.06em}.monogram{width:72px;height:72px;border-radius:22px;margin-bottom:34px;font-size:1.25rem}.login-card h1{font-family:Georgia,serif;font-size:clamp(2.8rem,7vw,4.7rem);font-weight:500;line-height:.96;letter-spacing:-.04em;margin:0 0 24px}.lede{font-size:1.06rem;color:var(--muted);line-height:1.65;max-width:460px}.login-card form{margin-top:32px}.login-card label{display:block;font-size:.78rem;font-weight:800;margin-bottom:9px}.login-row{display:flex;gap:10px}.login-row input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;padding:14px;background:white}.login-row button{border:0;border-radius:12px;padding:0 20px;background:var(--forest);color:white;font-weight:800}.error{min-height:1.2em;color:#a33d2e;font-size:.85rem}.privacy{margin:24px 0 0;color:var(--muted);font-size:.78rem}
.app{min-height:100vh}.topbar{height:78px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;background:var(--paper);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:13px;font-size:.82rem}.brand strong,.brand span{display:block}.brand span{font-size:.75rem;color:var(--muted);margin-top:2px}.top-actions{display:flex;align-items:center;gap:18px}.status{padding:7px 11px;border-radius:999px;background:#fff3cf;color:#7a5d13;font-size:.69rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.text-button{border:0;background:none;color:var(--muted);font-size:.8rem}.hero{padding:48px 5vw 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}.hero h1{font:500 clamp(2.6rem,5vw,4.4rem)/1 Georgia,serif;letter-spacing:-.04em;margin:0}.hero .muted{margin:.75rem 0 0}.period-control{display:flex;gap:6px;align-items:center;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.period-control button,.period-control select{border:0;background:transparent;padding:9px 12px;border-radius:9px;color:var(--muted);font-size:.78rem;font-weight:700}.period-control button.active{background:var(--forest);color:white}.period-control select{border-left:1px solid var(--line);border-radius:0;outline:0}.notice{margin:0 5vw 20px;padding:15px 18px;border:1px solid #dfc985;background:#fff8df;border-radius:14px;display:flex;align-items:flex-start;gap:12px}.notice-dot{width:9px;height:9px;border-radius:50%;background:var(--gold);margin-top:6px;box-shadow:0 0 0 5px rgba(201,164,97,.16)}.notice strong{font-size:.82rem}.notice p{margin:4px 0 0;font-size:.78rem;color:#71664f}.metrics{padding:0 5vw 24px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.metric{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:22px;min-height:142px;display:flex;flex-direction:column;justify-content:space-between}.metric.primary{background:var(--forest);border-color:var(--forest);color:white}.metric span{font-size:.75rem;font-weight:750;color:var(--muted)}.metric.primary span,.metric.primary small{color:#cde0d5}.metric strong{font:500 clamp(1.8rem,3vw,2.75rem)/1 Georgia,serif}.metric small{color:var(--muted);font-size:.72rem}.grid{padding:0 5vw 60px;display:grid;grid-template-columns:1.45fr .8fr;gap:14px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:24px;min-height:260px}.panel-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.panel h2{font:500 1.35rem Georgia,serif;margin:0}.view-label{font-size:.68rem;font-weight:800;color:var(--green);background:var(--mint);padding:7px 9px;border-radius:8px}.bars{height:220px;display:flex;align-items:flex-end;gap:14px;padding:28px 6px 8px;border-bottom:1px solid var(--line)}.bar-group{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;position:relative}.bar{width:23%;min-width:8px;border-radius:6px 6px 0 0;transition:height .35s}.bar.sales{background:var(--forest)}.bar.payroll{background:var(--gold)}.bar.expenses{background:var(--rust)}.bar-label{position:absolute;bottom:-26px;font-size:.66rem;color:var(--muted)}.legend{display:flex;gap:18px;margin-top:36px;flex-wrap:wrap}.legend span{font-size:.7rem;color:var(--muted)}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px}.legend i.sales{background:var(--forest)}.legend i.payroll{background:var(--gold)}.legend i.expenses{background:var(--rust)}.health-score{display:flex;align-items:center;gap:18px;margin:24px 0}.ring{--progress:0deg;width:88px;height:88px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--green) var(--progress),#e5e5df 0);position:relative}.ring:after{content:"";position:absolute;inset:9px;background:var(--paper);border-radius:50%}.ring span{z-index:1;font-weight:900;font-size:.82rem}.health-score strong{font-size:.85rem}.health-score p{font-size:.73rem;color:var(--muted);line-height:1.4}.health-list{margin:0}.health-list div{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line)}.health-list dt{font-size:.76rem;color:var(--muted)}.health-list dd{margin:0;font-size:.8rem;font-weight:850}.payroll-total{margin:28px 0}.payroll-total span{display:block;font:500 3.2rem Georgia,serif}.payroll-total small{color:var(--muted)}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.split div{padding:14px;border-radius:12px;background:#f0eee6}.split span,.split strong{display:block}.split span{font-size:.7rem;color:var(--muted);margin-bottom:6px}.decisions ul{list-style:none;padding:0;margin:22px 0 0}.decisions li{position:relative;padding:12px 0 12px 28px;border-top:1px solid var(--line);font-size:.78rem;line-height:1.5}.decisions li:before{content:"✓";position:absolute;left:2px;color:var(--green);font-weight:900}footer{padding:24px 5vw;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:.7rem}
@media(max-width:900px){.metrics{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.hero{align-items:flex-start;flex-direction:column}.period-control{width:100%;overflow:auto}.period-control select{margin-left:auto}.topbar,.hero,.metrics,.grid{padding-left:22px;padding-right:22px}.notice{margin-left:22px;margin-right:22px}}
@media(max-width:560px){.login-card{padding:34px 24px}.login-row{flex-direction:column}.login-row button{padding:14px}.metrics{grid-template-columns:1fr}.topbar{height:68px}.brand span{display:none}.period-control button{padding:8px}.panel{padding:20px}.split{grid-template-columns:1fr}footer{flex-direction:column;gap:8px}}
.role-badge{padding:7px 11px;border-radius:999px;background:var(--mint);color:var(--green);font-size:.69rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.top-actions{gap:10px}.operations-view .owner-only{display:none}.operations-view .metrics{grid-template-columns:repeat(3,1fr)}
.review-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.review-toolbar label{display:grid;gap:6px;font-size:.8rem}.review-toolbar input,.review-toolbar select,.review-table select,dialog input,dialog select,dialog textarea{padding:10px;border:1px solid #bbc7be;border-radius:7px;background:white;color:#12231d;max-width:100%}.review-scroll{overflow:auto}.review-table{width:100%;border-collapse:collapse;font-size:.82rem}.review-table th,.review-table td{text-align:left;vertical-align:top;padding:12px 8px;border-bottom:1px solid #d5dcd5}.review-table th{background:#e9f0e9}.review-table small{display:block;margin-top:6px}.review-description{min-width:220px;max-width:340px;overflow-wrap:anywhere}.review-table select{min-width:150px;width:100%}.review-amount{white-space:nowrap;font-variant-numeric:tabular-nums}.review-table button{display:block;margin-top:8px;padding:8px 12px}.row-status{max-width:180px}dialog{width:min(720px,95vw);max-height:85vh;border:1px solid #bbc7be;border-radius:18px;padding:24px;color:#12231d}dialog::backdrop{background:#12231daa}dialog label{display:grid;margin:16px 0;gap:8px}.review-split{display:flex;gap:8px;margin:10px 0}.review-split select{flex:1}.review-split input{width:130px}#review-history{white-space:pre-wrap;font-size:.8rem;line-height:1.5}#review-message,#review-edit-error{font-size:.85rem;line-height:1.5}#review-edit-error{color:#a03b27}
@media(max-width:900px){.operations-view .metrics{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.operations-view .metrics{grid-template-columns:1fr}.role-badge{display:none}}
.login-statement{font:500 1.28rem Georgia,serif;color:var(--green);margin:-8px 0 16px}
.hero-meta{display:flex;align-items:center;gap:10px;margin:.75rem 0 0}.hero-meta .muted{margin:0}.pillar-context{display:inline-flex;padding:5px 9px;border-radius:999px;background:var(--mint);color:var(--green);font-size:.72rem;font-weight:850}.period-control select+select{min-width:150px}.pillar-note{margin:0 5vw 20px;padding:12px 16px;border:1px solid #bfd4c7;background:#edf5f0;border-radius:12px;color:var(--green);font-size:.76rem;line-height:1.45}.pillar-note strong{margin-right:8px}
@media(max-width:900px){.pillar-note{margin-left:22px;margin-right:22px}}
.drivers{margin:0 5vw 24px;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,#fbfaf6 0%,#edf5f0 100%)}.drivers-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.drivers h2{font:500 1.55rem Georgia,serif;margin:0}.drivers-head p:last-child{max-width:300px;margin:0;color:var(--muted);font-size:.76rem;line-height:1.5}.driver-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.driver-grid article{background:rgba(255,255,255,.72);border:1px solid var(--line);border-radius:14px;padding:16px}.driver-grid h3{margin:0 0 10px;font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--green)}.driver-grid ul{list-style:none;padding:0;margin:0}.driver-grid li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:.78rem;line-height:1.35}.driver-grid li:first-child{border-top:0;padding-top:0}.driver-grid li span{color:var(--muted)}.driver-grid li strong{white-space:nowrap;font-size:.8rem}.driver-grid .empty-factor{display:block;color:var(--muted);font-style:italic}
@media(max-width:900px){.drivers{margin-left:22px;margin-right:22px}.driver-grid{grid-template-columns:1fr}.drivers-head{align-items:flex-start;flex-direction:column}}
.composition-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:24px}.composition-grid div{padding:13px;border-radius:12px;background:#f0eee6}.composition-grid span,.composition-grid strong{display:block}.composition-grid span{font-size:.7rem;color:var(--muted);margin-bottom:6px}.composition-grid strong{font:500 1.2rem Georgia,serif}.composition-note{margin:16px 0 0;font-size:.74rem;line-height:1.45;color:var(--muted)}
@media(max-width:560px){.composition-grid{grid-template-columns:1fr}}
