:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f7fb;--panel:#fff;--panel-soft:#f9fbff;--text:#101828;--muted:#667085;--line:#d7deea;--line-strong:#b9c7db;--accent:#1478f2;--accent-strong:#075fd1;--danger:#c73737;--shadow:0 18px 48px #10182814;--ledger-row-height:40px;--ledger-head-height:34px}*{box-sizing:border-box}html,body{min-height:100%;margin:0;overflow-x:hidden}body{background:var(--bg);color:var(--text);letter-spacing:0;padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;line-height:1.45}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}input{min-width:0}button,.primary-button,.ghost-button,.nav a{border:1px solid var(--line);white-space:nowrap;border-radius:8px;align-items:center;gap:8px;min-height:40px;padding:0 16px;font-weight:700;display:inline-flex}button:not(:disabled),.primary-button,.ghost-button,.nav a{cursor:pointer}button:disabled{color:var(--muted);cursor:not-allowed}.primary-button{background:var(--accent);border-color:var(--accent);color:#fff}.primary-button:hover{background:var(--accent-strong)}.ghost-button,.nav a,button{background:var(--panel);color:var(--text)}.topbar{border:1px solid var(--line);box-shadow:var(--shadow);max-width:1180px;top:max(8px, env(safe-area-inset-top));z-index:10;background:#ffffffeb;border-radius:8px;justify-content:space-between;align-items:center;gap:20px;margin:0 auto 16px;padding:12px 14px;display:flex;position:sticky}.brand{align-items:center;gap:10px;min-width:0;display:inline-flex}.brand-mark{background:var(--accent);color:#fff;border-radius:8px;flex:0 0 36px;justify-content:center;align-items:center;height:36px;font-weight:800;display:inline-flex}.brand strong,.brand small{display:block}.brand small,.eyebrow,.panel p,.form-note{color:var(--muted)}.nav{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.page{width:100%;max-width:1180px;margin:0 auto}.compact-page{gap:16px;display:grid}.hero{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);align-items:stretch;gap:16px;min-height:calc(100dvh - 112px);display:grid}.hero>div:first-child{align-content:center;padding:24px 0;display:grid}.hero h1,.section-head h1{max-width:760px;margin:0 0 14px;font-size:clamp(28px,4vw,52px);line-height:1.05}.hero p{max-width:680px}.eyebrow{letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:12px;font-weight:800}.panel{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;min-width:0;padding:20px}.panel h2{margin:0 0 8px;font-size:22px;line-height:1.2}.auth-panel{align-self:center}.auth-form{gap:10px;display:grid}.auth-form label{color:var(--muted);font-size:13px;font-weight:700}.auth-row,.button-row{gap:8px;display:flex}.auth-code-block{gap:8px;padding-top:4px;display:grid}.auth-row input{border:1px solid var(--line);border-radius:8px;width:100%;min-width:0;min-height:44px;padding:0 12px}.primary-action{background:var(--accent);border-color:var(--accent);color:#fff}.form-note{margin:0;font-size:13px}.form-note.error{color:var(--danger)}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.section-head{justify-content:space-between;align-items:center;gap:16px;display:flex}.section-head p{color:var(--muted);margin:0}.warning-panel{justify-items:start;gap:10px;display:grid}.empty-state{justify-items:start;gap:10px;max-width:720px;display:grid}.workspace-card{justify-items:start;gap:10px;display:grid}.muted-card{background:var(--panel-soft)}.workspace-shell{grid-template-columns:160px minmax(0,1fr);gap:12px;display:grid}.mobile-section-menu{display:none}.side-tabs{align-content:start;gap:8px;display:grid}.side-tabs button,.side-tabs a,.side-tabs span{background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:8px;justify-content:flex-start;align-items:center;width:100%;min-height:40px;padding:0 12px;font-weight:700;display:inline-flex}.side-tabs .active{color:#086d61;background:#e8f7f4;border-color:#1b9587}.side-tabs .side-tabs-divider{background:0 0;border:0;min-height:4px;padding:0}.workspace-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.operational-workspace{min-width:0;display:grid}.ledger-panel{gap:8px;min-width:0;display:grid}.mobile-zone-switch{display:none}.workspace-mode-panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;gap:14px;min-width:0;min-height:min(560px,100dvh - 300px);padding:16px;display:grid}.notes-mode-panel{align-content:start;gap:0;padding:0}.notes-apple-workspace{grid-template-columns:minmax(260px,34%) minmax(0,1fr);gap:12px;min-width:0;min-height:min(720px,100dvh - 270px);display:grid}.notes-apple-list-panel,.notes-apple-editor-panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-width:0;min-height:0;display:grid}.notes-apple-list-panel{grid-template-rows:auto minmax(0,1fr);align-content:start;gap:12px;padding:14px}.notes-apple-editor-panel{grid-template-rows:auto minmax(0,1fr);gap:12px;padding:14px}.notes-apple-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.notes-apple-head h2{margin:0;font-size:22px;line-height:1.1}.notes-apple-head span{color:var(--muted);margin-top:3px;font-size:12px;font-weight:700;display:block}.notes-new-button{border:1px solid var(--line);color:var(--text);border-radius:8px;flex:none;align-items:center;min-height:36px;padding:0 12px;font-weight:800;display:inline-flex}.notes-apple-list{align-content:start;gap:8px;min-height:0;display:grid;overflow:auto}.notes-mobile-back{display:none}.mode-title{justify-content:space-between;align-items:end;gap:12px;display:flex}.mode-title h2,.report-card h3{margin:0;font-size:18px;line-height:1.15}.mode-title p,.note-card p,.report-card p{color:var(--muted);margin:4px 0 0}.mode-title small,.note-card small{color:var(--muted);flex:none;font-size:12px;font-weight:700}.quick-note-form{background:var(--panel);border:0;border-radius:0;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px;min-height:0;padding:0;display:grid}.quick-note-form label{gap:6px;display:grid}.quick-note-form label span{color:var(--muted);font-size:12px;font-weight:800}.quick-note-form textarea{border:1px solid var(--line);resize:vertical;border-radius:8px;width:100%;min-height:320px;padding:14px;font-size:17px;line-height:1.45}.quick-note-total{background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:38px;padding:8px 12px;display:flex}.quick-note-total span{color:var(--muted);font-size:12px;font-weight:800}.quick-note-total strong{font-size:16px;font-weight:900}.notes-intake-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.notes-intake-grid>div{background:var(--panel-soft);border:1px dashed var(--line);border-radius:8px;gap:3px;min-height:58px;padding:10px 12px;display:grid}.notes-intake-grid strong{font-size:14px}.notes-intake-grid span{color:var(--muted);font-size:12px;font-weight:700}.notes-current-notice{background:#eef8f6;border:1px solid #b9ddd7;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;display:flex}.notes-current-notice div{gap:3px;display:grid}.notes-current-notice span{color:var(--muted);font-size:12px;font-weight:700}.notes-current-notice a{background:var(--panel);color:#086d61;border:1px solid #1b9587;border-radius:8px;flex:none;align-items:center;min-height:36px;padding:0 12px;font-weight:800;display:inline-flex}.mode-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.mode-actions a{border:1px solid var(--line);color:var(--text);border-radius:8px;align-items:center;min-height:40px;padding:0 12px;font-weight:700;display:inline-flex}.note-history,.report-list{gap:8px;min-height:0;max-height:62dvh;display:grid;overflow:auto}.notes-history-window{background:var(--panel);border:1px solid var(--line);border-radius:8px;gap:12px;min-height:min(620px,100dvh - 310px);padding:14px;display:grid}.category-summary{gap:12px;display:grid}.category-summary-section{gap:8px;display:grid}.category-summary-table{border:1px solid var(--line);border-radius:8px;display:grid;overflow:hidden}.category-summary-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(220px,1fr) 92px 140px 64px 76px;align-items:center;gap:12px;min-height:40px;padding:0 12px;display:grid}.category-summary-row:last-child{border-bottom:0}.category-summary-row>*{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.category-summary-row>:nth-child(n+3){text-align:right}.category-summary-head{background:var(--panel-soft);color:var(--muted);min-height:34px;font-size:12px;font-weight:800}.note-history-head{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.note-history-head h3{margin:0;font-size:16px;line-height:1.2}.note-history-head small{color:var(--muted);font-size:12px;font-weight:700}.note-card-row{align-items:center;gap:6px;min-width:0;display:flex}.note-card-current-row{margin-bottom:2px}.note-month-separator{color:var(--muted);letter-spacing:0;padding:4px 4px 0;font-size:12px;font-weight:800;line-height:1.2}.note-card{border:1px solid var(--line);color:var(--text);border-radius:8px;flex:auto;justify-content:space-between;align-items:center;gap:8px;min-width:0;min-height:40px;padding:5px 6px 5px 10px;display:flex}.report-card{border:1px solid var(--line);color:var(--text);border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:12px;display:flex}.note-card.active{background:#e8f7f4;border-color:#1b9587}.note-card-current{border-style:solid}.note-card-current span{font-size:14px;font-weight:900}.note-card.is-sent{color:var(--muted);background:#f2f5f7}.note-card.is-sent.active{background:#edf6f4}.note-card time{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:800;display:block;overflow:hidden}.note-card strong{flex:none;font-size:13px;font-weight:900}.note-card p{color:var(--text);-webkit-line-clamp:3;white-space:pre-wrap;-webkit-box-orient:vertical;max-height:3.9em;margin:0;font-size:13px;line-height:1.35;display:-webkit-box;overflow:hidden}.note-delete-form{flex:none;margin:0;display:flex}.note-delete-form button{background:var(--panel);border:1px solid var(--line);color:var(--danger);border-radius:8px;justify-content:center;align-items:center;width:38px;height:40px;padding:0;display:inline-flex}.note-delete-form button:hover,.note-delete-form button:focus-visible{background:#fff5f5;border-color:#f2a9a9}.note-delete-form svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px;width:17px;height:17px}.notes-transfer-panel,.notes-readonly-panel{background:var(--panel);border:1px solid var(--line);border-radius:8px;gap:12px;padding:14px;display:grid}.notes-transfer-head{justify-content:space-between;align-items:start;gap:12px;display:flex}.notes-transfer-head h3{margin:0;font-size:18px}.notes-transfer-head p{color:var(--muted);margin:4px 0 0}.notes-transfer-head a,.note-history-head a{border:1px solid var(--line);color:var(--text);border-radius:8px;flex:none;align-items:center;min-height:36px;padding:0 12px;font-weight:800;display:inline-flex}.notes-source-card{background:var(--panel-soft);border:1px solid var(--line);border-radius:8px;gap:6px;padding:12px;display:grid}.notes-source-card p{white-space:pre-wrap;margin:0}.smith-review-panel{background:#fffdf7;border:1px solid #f3d9a4;border-radius:8px;gap:10px;padding:12px;display:grid}.smith-proposal-list{gap:6px;display:grid}.smith-proposal{border:1px solid var(--line);border-radius:8px;grid-template-columns:auto minmax(0,1fr) minmax(190px,240px) auto;align-items:center;gap:10px;min-height:44px;padding:8px 10px;display:grid}.smith-proposal input[type=checkbox]{width:18px;height:18px}.smith-proposal select{background:var(--surface);border:1px solid var(--line);color:var(--text);font:inherit;border-radius:6px;min-width:0;padding:8px 9px;font-size:13px}.smith-proposal strong,.smith-proposal small{text-overflow:ellipsis;white-space:nowrap;min-width:0;display:block;overflow:hidden}.smith-proposal small{color:var(--muted);margin-top:2px;font-size:12px;font-weight:700}.inline-empty{box-shadow:none;max-width:none;padding:16px}.table-title{justify-content:space-between;align-items:end;gap:12px;min-height:36px;padding:0 2px;display:flex}.table-title h2{margin:0;font-size:18px;line-height:1.15}.table-title small{color:var(--muted);font-size:12px;font-weight:700}.synced-table{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-height:0;max-height:calc(100dvh - 318px);position:relative;overflow:auto}.synced-table.is-empty{max-height:none}.synced-row{border-bottom:1px solid var(--line);height:var(--ledger-row-height);min-height:var(--ledger-row-height);align-items:center;gap:10px;padding:0 12px;transition:grid-template-columns .16s;display:grid}.synced-table.journal-active .synced-row{grid-template-columns:48px minmax(280px,1.7fr) 130px 44px 96px minmax(76px,.45fr)}.synced-table.structure-active .synced-row{grid-template-columns:42px minmax(140px,.6fr) 112px 48px 118px minmax(180px,1.45fr)}.synced-row:last-child{border-bottom:0}.synced-row strong{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.synced-head{background:var(--panel-soft);color:var(--muted);height:var(--ledger-head-height);min-height:var(--ledger-head-height);z-index:1;font-size:12px;font-weight:800;position:sticky;top:0}.zone-head{background:var(--panel);z-index:2;height:46px;min-height:46px;position:sticky;top:0}.zone-title{color:var(--text);text-align:left;background:0 0;border:0;border-radius:0;align-items:baseline;gap:12px;min-width:0;height:auto;min-height:0;margin:0;padding:0;font-size:18px;line-height:1.15;display:flex}.zone-title-main{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.zone-title:first-child{grid-column:1/4}.zone-title:last-child{grid-column:4/7;padding-left:12px}.zone-title:not([aria-pressed=true]){color:var(--muted)}.zone-title small{color:var(--muted);white-space:nowrap;flex:none;font-size:12px;font-weight:700}.synced-head{top:46px}.synced-row>*{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.synced-row>:nth-child(-n+3),.zone-title:first-child,.synced-row>:nth-child(n+4),.zone-title:last-child{cursor:pointer}.synced-row>:nth-child(3){text-align:right;padding-right:8px}.synced-row:not(.zone-head)>:nth-child(4){border-left:1px solid var(--line-strong);align-self:stretch;align-items:center;padding-left:12px;display:flex}.synced-row .status-pill{justify-self:start}.empty-synced-row{color:var(--muted)}.status-pill{color:#087469;background:#eef6f4;border:1px solid #c7e4dd;border-radius:4px;max-width:100%;height:22px;padding:0 8px;font-size:11px;font-weight:800;line-height:20px;display:inline-flex}.status-pill.attention{color:#9a5a00;background:#fff7e8;border-color:#ffd59e}.amount-income{color:#07883f;font-weight:800}.amount-expense{color:#dc2f35;font-weight:800}.ledger-empty{color:var(--muted);padding:0}.entry-bar{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:8px;grid-template-columns:180px minmax(0,1fr) auto;align-items:end;gap:10px;padding:12px;display:grid}.entry-bar label{gap:4px;display:grid}.entry-bar label span{color:var(--muted);font-size:12px;font-weight:700}.entry-bar input{border:1px solid var(--line);border-radius:8px;width:100%;min-height:42px;padding:0 12px}.form-note.success{color:#067647;font-weight:700}.workspace-metrics{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.workspace-metrics span{background:var(--panel);border:1px solid var(--line);border-radius:8px;min-width:112px;padding:10px 12px;display:grid}.workspace-metrics small{color:var(--muted);font-size:12px}.workspace-metrics strong{font-size:20px;line-height:1.1}@media (min-width:821px) and (max-width:1260px){.workspace-shell{grid-template-columns:160px minmax(0,1fr)}.synced-row{gap:8px;padding:0 10px}.synced-table.journal-active .synced-row{grid-template-columns:38px minmax(180px,1.8fr) 112px 36px 92px minmax(64px,.45fr)}.synced-table.structure-active .synced-row{grid-template-columns:36px minmax(120px,.55fr) 104px 40px 104px minmax(132px,1.35fr)}.zone-head{height:52px;min-height:52px}.synced-head{top:52px}.zone-title{align-items:center;gap:8px;font-size:16px}.zone-title small{display:none}.zone-title:last-child .zone-title-main{white-space:normal;line-height:1.1}.entry-bar{grid-template-columns:180px minmax(0,1fr) 128px}}@media (max-width:820px){body{padding:max(10px, env(safe-area-inset-top)) 10px max(24px, env(safe-area-inset-bottom));font-size:14px}.topbar,.section-head,.auth-row,.button-row{flex-direction:column;align-items:stretch}.topbar{position:static}.workspace-metrics{justify-content:stretch}.workspace-metrics span{width:100%;min-width:0}.nav,.auth-row button,.button-row a,.button-row button{width:100%}.nav a,.auth-row button,.button-row a,.button-row button{justify-content:center}.hero,.grid,.workspace-shell,.workspace-main,.notes-apple-workspace,.operational-workspace{grid-template-columns:1fr}.workspace-shell{gap:10px}.hero{min-height:auto}.hero h1,.section-head h1{font-size:30px}.mobile-section-menu{display:block}.mobile-section-menu summary{background:var(--panel);border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:8px 12px;display:flex}.mobile-section-menu summary:after{content:"☰";font-size:18px;font-weight:900;line-height:1}.mobile-section-menu[open] summary:after{content:"×"}.mobile-section-menu summary span{color:var(--muted);font-size:12px;font-weight:800}.mobile-section-menu summary strong{font-size:15px}.mobile-section-menu-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:8px;display:grid}.mobile-section-menu-panel a,.mobile-section-menu-panel span{background:var(--panel);border:1px solid var(--line);color:var(--text);text-align:center;border-radius:8px;justify-content:center;align-items:center;min-height:42px;padding:0 10px;font-weight:800;display:inline-flex}.mobile-section-menu-panel .active{color:#086d61;background:#e8f7f4;border-color:#1b9587}.workspace-shell>.side-tabs{display:none}.side-tabs{grid-template-columns:repeat(4,minmax(0,1fr));padding-bottom:2px;overflow-x:auto}.side-tabs .side-tabs-divider{display:none}.side-tabs button,.side-tabs a,.side-tabs span{justify-content:center}.operational-workspace{min-height:0}.ledger-panel{min-width:0}.mobile-zone-switch{background:var(--panel);border:1px solid var(--line);border-radius:8px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:center;gap:6px;min-width:0;padding:6px;display:grid}.mobile-zone-switch button{border-radius:6px;justify-content:center;min-height:36px;padding:0 10px}.mobile-zone-switch button[aria-pressed=true]{color:#086d61;background:#e8f7f4;border-color:#1b9587}.mobile-zone-switch span{color:var(--muted);text-align:right;white-space:nowrap;min-width:74px;font-size:12px;font-weight:800}.synced-table{max-height:calc(100dvh - 336px);overflow:hidden auto}.synced-row{gap:8px;min-width:0;padding:0 10px}.synced-table.journal-active .synced-row{grid-template-columns:40px minmax(0,1fr) 112px}.synced-table.structure-active .synced-row{grid-template-columns:40px 112px minmax(0,1fr)}.synced-table.journal-active .synced-row:not(.zone-head)>:nth-child(n+4),.synced-table.structure-active .synced-row:not(.zone-head)>:nth-child(-n+3){display:none}.synced-table.structure-active .synced-row:not(.zone-head)>:nth-child(4),.synced-table.structure-active .synced-row:not(.zone-head)>:nth-child(5),.synced-table.structure-active .synced-row:not(.zone-head)>:nth-child(6){display:flex}.synced-table.structure-active .synced-row:not(.zone-head)>:nth-child(4){border-left:0;padding-left:0}.synced-row>:nth-child(3){padding-right:0}.synced-row .status-pill{justify-self:end}.zone-head{display:none}.synced-head{top:0}.entry-bar{bottom:max(10px, env(safe-area-inset-bottom));z-index:5;grid-template-columns:1fr;position:sticky}.mode-title,.mode-actions,.notes-apple-head,.note-card>div,.note-card a>div,.notes-transfer-head,.notes-current-notice,.note-history-head,.smith-proposal,.report-card{flex-direction:column;align-items:stretch}.notes-intake-grid{grid-template-columns:1fr}.notes-apple-workspace{min-height:0}.notes-apple-workspace.is-note-list .notes-apple-editor-panel,.notes-apple-workspace.is-note-open .notes-apple-list-panel{display:none}.notes-mobile-back{border:1px solid var(--line);color:var(--text);border-radius:8px;justify-content:center;align-items:center;min-height:38px;padding:0 12px;font-weight:800;display:inline-flex}.notes-apple-list-panel,.notes-apple-editor-panel{min-height:auto}.notes-apple-list{max-height:calc(100dvh - 290px)}.quick-note-form textarea{min-height:min(42dvh,360px)}.quick-note-total{flex-direction:column;align-items:flex-start;gap:2px}.category-summary-table{overflow-x:auto}.category-summary-row{grid-template-columns:minmax(180px,1fr) 76px 118px 54px 64px;min-width:540px}.smith-proposal{grid-template-columns:auto minmax(0,1fr)}.smith-proposal select{grid-column:2;width:100%}.smith-proposal .status-pill{grid-column:2;justify-self:start}.mode-actions a,.mode-actions button,.notes-current-notice a,.notes-transfer-head a,.note-history-head a,.note-delete-form button{justify-content:center;width:100%}}@media (max-width:460px){.side-tabs,.mobile-zone-switch{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-zone-switch span{text-align:left;grid-column:1/-1;min-width:0}.panel{padding:16px}}
