@font-face {
  font-family: Manrope;
  src: url('/manrope.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111111;
  --paper: #202020;
  --sidebar-surface: #181818;
  --control: #252525;
  --line: #363636;
  --ink: #f5f5f3;
  --muted: #b8b8b2;
  --wine: #586c29;
  --gold: #bbd747;
  --active-text: #11160a;
  --active-surface: #bad298;
  --track: #393a36;
  --progress-low: #d29577;
  --progress-mid: #d9bb56;
  --progress-high: #b5cd60;
  --progress-complete: #86ba58;
  --sage: #263721;
  --danger: #f5a89f;
  --warning-bg: #35321f;
  --progress-done-bg: #284223;
  --progress-red-bg: #472f2b;
  --sidebar-width: clamp(169px, 14vw, 225px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6f3;
  --paper: #fff;
  --sidebar-surface: #f0f0ed;
  --control: #fff;
  --line: #d9dad3;
  --ink: #20221f;
  --muted: #555850;
  --wine: #4d642e;
  --gold: #4d642e;
  --active-text: #203218;
  --active-surface: #dce7cf;
  --track: #e4e6df;
  --progress-low: #a65f42;
  --progress-mid: #927329;
  --progress-high: #70832c;
  --progress-complete: #4f7c3d;
  --sage: #e6efdc;
  --danger: #9b3930;
  --warning-bg: #f3ecd5;
  --progress-done-bg: #e4efdc;
  --progress-red-bg: #f5e7e3;
}
@media (prefers-color-scheme: light) {
  :root[data-theme="system"] {
    color-scheme: light;
    --bg: #f6f6f3;
    --paper: #fff;
    --sidebar-surface: #f0f0ed;
    --control: #fff;
    --line: #d9dad3;
    --ink: #20221f;
    --muted: #555850;
    --wine: #4d642e;
    --gold: #4d642e;
    --active-text: #203218;
    --active-surface: #dce7cf;
    --track: #e4e6df;
    --progress-low: #a65f42;
    --progress-mid: #927329;
    --progress-high: #70832c;
    --progress-complete: #4f7c3d;
    --sage: #e6efdc;
    --danger: #9b3930;
    --warning-bg: #f3ecd5;
    --progress-done-bg: #e4efdc;
    --progress-red-bg: #f5e7e3;
  }
}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 Manrope,Arial,sans-serif}button,input,select,textarea{font:inherit;color:var(--ink)}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;border:1px solid var(--line);background:var(--control);border-radius:8px;padding:9px 14px;min-height:38px;line-height:1.4}button:hover{border-color:var(--gold)}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--wine);border-color:var(--wine);color:#fff}button.small{font-size:13px;padding:6px 10px;min-height:32px}button svg{flex:none;width:18px;height:18px}:focus-visible{outline:2px solid var(--gold);outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,2.5vw,36px);line-height:1.2;font-weight:800;letter-spacing:-.04em;margin:30px 0 8px}h2{font-size:18px;line-height:1.4;font-weight:750;letter-spacing:-.02em;margin:0 0 18px}p{line-height:1.6;color:var(--muted)}small,.muted{color:var(--muted)}.eyebrow{font-size:12px;line-height:1.5;letter-spacing:.12em;font-weight:650}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);display:flex;flex-direction:column;background:var(--sidebar-surface);border-right:1px solid var(--line);padding:24px 12px 18px;overflow-y:auto;z-index:10}.brand{padding:0 11px;line-height:1.2;margin-bottom:32px}.pb-wordmark{display:block;width:min(132px,100%);height:auto;filter:invert(1)}:root[data-theme=light] .pb-wordmark{filter:none}.brand small{display:block;font-size:10px;line-height:1.5;letter-spacing:.13em;margin-top:10px;font-weight:450}nav{display:flex;flex-direction:column;gap:4px}nav .eyebrow{padding:0 10px;margin:6px 0 12px;color:var(--muted)}nav button{justify-content:flex-start;width:100%;min-height:42px;border:0;border-radius:9px;padding:9px 10px;background:transparent;font-size:14px;text-align:left;gap:10px;font-weight:450}nav button svg{width:20px;height:20px}nav button.active{background:var(--active-surface);color:var(--active-text);font-weight:600}.account{margin-top:auto;padding:18px 8px 0;border-top:1px solid var(--line)}.account-identity{display:flex;align-items:center;gap:9px}.account-identity>svg{width:30px;height:30px;flex:none}.account-identity strong{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}.account-identity small{display:block;font-size:12px}.account-actions{display:flex;flex-direction:column;align-items:flex-start;margin-top:14px;gap:4px}.account-actions button{padding:5px 0;border:0;background:transparent;color:var(--muted);font-size:12px;min-height:30px}.account-actions #logout{font-size:14px;color:var(--ink)}.account-actions svg{width:17px;height:17px}main{margin-left:var(--sidebar-width);padding:18px clamp(20px,3vw,40px) 28px;min-width:0;max-width:1800px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:26px;min-height:52px}.topbar>span{font-size:11px;letter-spacing:.08em;color:var(--muted)}.topbar-controls{display:flex;align-items:center;gap:10px}.topbar-controls label{margin:0;font-size:13px;color:var(--muted)}.topbar-controls select{width:90px;font-size:12px;border-radius:24px;min-height:32px;padding:5px 10px}.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.row>div{min-width:0}.row h1{margin-top:6px}.row .primary{flex:none}.row>div>p{font-size:13px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px;min-width:0}.stat{display:flex;flex-direction:column;gap:10px;font-size:13px;color:var(--muted)}.stat strong{color:var(--ink);font-size:30px;font-weight:750;line-height:1.2;letter-spacing:-.03em}.grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px}.item{padding:14px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px}.item>div,.item>span{min-width:0;overflow-wrap:anywhere}.item strong{font-size:14px;font-weight:650}.item>button{font-size:12px;padding:6px 10px;min-height:32px;flex:none}.small{font-size:12px;color:var(--muted);margin-top:4px}.pill{display:inline-block;font-size:12px;background:var(--sage);color:var(--ink);border-radius:20px;padding:5px 10px}.target{font-size:25px;letter-spacing:-.035em;line-height:1.35;font-weight:700;margin:15px 0}.target small{font-size:13px;font-weight:400;letter-spacing:0}.empty{padding:24px 0;font-size:13px;color:var(--muted)}progress{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;background:var(--track);accent-color:var(--progress-high)}progress::-webkit-progress-bar{background:var(--track)}progress::-webkit-progress-value{background:var(--progress-high);border-radius:8px}.filters{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.filters input{max-width:360px}.filters select{max-width:200px}.filters input[type=month]{max-width:180px}input,select,textarea{width:100%;background:var(--control);border:1px solid var(--line);border-radius:8px;min-height:40px;padding:9px 11px;max-width:100%;min-width:0}select{padding-right:24px}textarea{min-height:90px;resize:vertical}label{display:block;font-size:13px;margin:14px 0 6px}input::placeholder{color:var(--muted)}.error{color:var(--danger);font-size:13px}.error:empty{display:none}.review-footer{border-top:1px solid var(--line);margin-top:28px;padding-top:14px;font-size:12px;color:var(--muted)}dialog{width:min(780px,94vw);max-height:90vh;overflow:auto;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:26px}dialog::backdrop{background:#0008}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-field:has(textarea){grid-column:1/-1}.form-field input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:var(--wine)}.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:24px}.section-space{margin-top:20px}.section-space p{font-size:13px;margin:10px 0}.login{max-width:430px;margin:12vh auto;padding:32px}.login .brand{padding:0;margin-bottom:24px}.login h1{font-size:28px}.login>.eyebrow{font-size:12px}.login form>.primary{width:100%;margin-top:20px}.login .error{margin-top:12px}
@media(prefers-color-scheme:light){:root[data-theme=system] .pb-wordmark{filter:none}}
@media(min-width:681px) and (max-width:1000px){.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar>span{display:none}.topbar-controls{margin-left:auto}nav button{font-size:13px}.card{padding:17px}.sidebar .brand{padding:0 8px}}
@media(max-width:680px){.sidebar{position:relative;inset:auto;width:100%;padding:17px 14px 10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{padding:0;margin-bottom:16px}.pb-wordmark{width:128px}.brand small{font-size:9px;margin-top:7px}.sidebar nav{display:flex;flex-direction:row;gap:6px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}.sidebar nav .eyebrow{display:none}nav button{width:auto;white-space:nowrap;font-size:13px;min-height:44px;padding:8px 11px;flex:none}nav button svg{width:18px;height:18px}.account{display:flex;justify-content:space-between;gap:12px;padding:10px 0 0}.account-identity>svg{width:25px;height:25px}.account-actions{flex-direction:row;margin:0;gap:14px}.account-actions button{font-size:12px}.account-actions #logout{font-size:12px}.account-actions #logout svg{display:none}main{margin:0;padding:14px}.topbar{padding-bottom:12px;margin-bottom:18px;justify-content:flex-end}.topbar>span{display:none}.topbar-controls{gap:8px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.stat strong{font-size:28px}.card{padding:15px;border-radius:13px}.grid{grid-template-columns:1fr;gap:12px}h1{font-size:28px}.row{align-items:flex-start;gap:10px}.row>.primary{font-size:13px;padding:9px 12px}.filters{gap:9px}.filters input,.filters select{max-width:none;flex:1 1 140px}.item{align-items:flex-start;padding:13px 0}.item strong{font-size:13px}.item>button{font-size:11px;max-width:120px}.form-grid{grid-template-columns:1fr}dialog{padding:20px}.target{font-size:24px}.login{margin:8vh 14px;max-width:none;padding:26px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .15s,border-color .15s}}
