:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Hiragino Sans,Yu Gothic UI,sans-serif;color:#202422;background:#f4f5f2;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0;--ink: #202422;--muted: #68706c;--line: #d9ddda;--surface: #ffffff;--green: #26745b;--green-soft: #e5f1eb;--red: #b94343;--red-soft: #f8e8e5;--amber: #a35c16}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit;letter-spacing:0}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}.app-shell{min-height:100vh;padding-bottom:86px}.app-header{height:72px;padding:12px max(20px,env(safe-area-inset-left));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#f4f5f2f5;position:sticky;top:0;z-index:20}.app-header p,.eyebrow{margin:0 0 2px;color:var(--green);font-size:11px;font-weight:800;text-transform:uppercase}.app-header h1,.login-panel h1{margin:0;font-size:22px;line-height:1.2}.header-actions{display:flex;align-items:center;gap:8px}.icon-button{width:40px;height:40px;padding:0;border:1px solid var(--line);background:var(--surface);border-radius:6px;display:grid;place-items:center;color:var(--ink)}.role-switch,.segmented{display:inline-grid;grid-auto-flow:column;background:#e4e7e3;padding:3px;border-radius:7px}.role-switch button{min-width:40px;min-height:34px;border:0;background:transparent;padding:7px 10px;border-radius:5px;color:var(--muted);font-size:12px;font-weight:700}.role-switch button.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px #00000014}.demo-banner{min-height:34px;padding:5px max(20px,calc((100vw - 920px)/2));display:flex;align-items:center;justify-content:space-between;color:#626a66;background:#eceeea;border-bottom:1px solid var(--line);font-size:12px}.demo-banner button{min-height:32px;border:0;background:transparent;color:var(--muted);display:inline-flex;align-items:center;gap:5px;font-size:12px}.app-main{width:min(920px,100%);margin:0 auto;padding:28px 20px 52px}.view-stack{display:grid;gap:18px}.period-panel{color:#f7faf8;background:#253a32;padding:24px;border-radius:8px;box-shadow:0 12px 30px #1d30281f}.period-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:20px}.section-kicker{margin:0 0 5px;font-size:12px;font-weight:800;color:var(--green)}.period-heading .section-kicker{color:#a7d5c0}.period-heading h2,.section-title-row h2{margin:0;font-size:20px;line-height:1.3}.period-heading>span{color:#b9c7c0;font-size:12px;white-space:nowrap}.period-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ffffff24}.period-item{background:#253a32;padding:18px 16px 14px}.period-item:first-child{padding-left:0}.period-item:last-child{padding-right:0}.period-item-head,.period-item-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.period-item-head strong{font-size:14px}.period-item-value{margin-top:7px;color:#9de5c5;font-size:23px;font-weight:850;line-height:1.2;white-space:nowrap}.period-item-value span{font-size:14px;font-weight:800}.period-item.over .period-item-value{color:#ffaaa1}.meter{height:5px;margin:13px 0 9px;overflow:hidden;background:#ffffff29;border-radius:3px}.meter span{display:block;height:100%;background:#69c59b;border-radius:inherit}.period-item.over .meter span{background:#ef887e}.period-item-foot{justify-content:flex-start;flex-wrap:wrap;font-size:11px;color:#afbeb7}.savings-alert{padding:17px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;color:#684817;background:#fff7e8;border:1px solid #e4c98f;border-radius:8px}.savings-alert strong{display:block;margin-bottom:4px;font-size:15px}.savings-alert p{margin:0;color:#765d34;font-size:12px;line-height:1.6}.savings-alert-target{min-width:210px;padding-left:18px;display:grid;justify-items:end;border-left:1px solid #e4c98f}.savings-alert-target span,.savings-alert-target small{color:#806943;font-size:10px}.savings-alert-target b{margin:2px 0;font-size:21px}.pending-strip{min-height:64px;padding:13px 16px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;background:#fff6e9;border:1px solid #edcfaa;border-radius:7px;color:#63451f}.pending-strip>div{display:grid;gap:2px}.pending-strip strong{font-size:14px}.pending-strip span{font-size:12px}.pending-total{font-size:15px!important;font-weight:800;white-space:nowrap}.summary-section,.compose-section,.history-section,.review-section,.report-detail-section{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:22px}.section-title-row{min-height:42px;margin-bottom:18px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.section-title-row>span{color:var(--muted);font-size:13px}.summary-grid{margin:0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}.summary-grid>div{padding:18px 16px 2px;border-right:1px solid var(--line)}.summary-grid>div:first-child{padding-left:0}.summary-grid>div:last-child{padding-right:0;border-right:0}.summary-grid dt{color:var(--muted);font-size:12px}.summary-grid dd{margin:7px 0 0;font-size:22px;font-weight:800}.summary-grid .positive dd{color:var(--green)}.summary-grid .negative dd{color:var(--red)}.category-progress-list{display:grid;grid-template-columns:1fr 1fr;column-gap:30px}.category-progress-row{padding:14px 0;border-top:1px solid var(--line)}.category-progress-head,.category-progress-foot{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.category-progress-head strong{font-size:13px}.category-progress-head>span{font-size:14px;font-weight:800;text-align:right}.category-progress-head small{color:var(--muted);font-size:10px;font-weight:600}.category-progress-track{height:5px;margin:10px 0 7px;overflow:hidden;border-radius:3px;background:#e8ebe8}.category-progress-track span{display:block;height:100%;border-radius:inherit}.category-progress-foot{color:var(--muted);font-size:10px}.category-progress-foot strong{color:var(--green)}.category-progress-row.over .category-progress-foot strong{color:var(--red)}.high-spend-list{border-top:1px solid var(--line)}.high-spend-row{min-height:62px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid var(--line)}.high-spend-rank{color:#89908c;font-size:12px;font-weight:800;text-align:center}.high-spend-row>div{min-width:0;display:grid;gap:3px}.high-spend-row strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.high-spend-row small{color:var(--muted);font-size:10px}.high-spend-row b{font-size:14px;white-space:nowrap}.comparison-totals{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.comparison-totals>div{padding:16px;display:grid;gap:5px;border-right:1px solid var(--line)}.comparison-totals>div:first-child{padding-left:0}.comparison-totals>div:last-child{padding-right:0;border-right:0}.comparison-totals span{color:var(--muted);font-size:11px}.comparison-totals strong{font-size:19px}.comparison-totals .worse strong{color:var(--red)}.comparison-totals .better strong{color:var(--green)}.comparison-breakdown{margin-top:20px}.comparison-breakdown h3{margin:0 0 10px;font-size:13px}.comparison-breakdown-head,.comparison-breakdown-row{display:grid;grid-template-columns:minmax(105px,1fr) repeat(3,minmax(78px,auto));align-items:center;gap:14px}.comparison-breakdown-head{padding:0 0 7px;color:var(--muted);font-size:10px;text-align:right}.comparison-breakdown-head span:first-child{text-align:left}.comparison-breakdown-row{min-height:42px;border-top:1px solid #eceeeb;font-size:12px}.comparison-breakdown-row strong{min-width:0}.comparison-breakdown-row span,.comparison-breakdown-row b{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.comparison-breakdown-row b{color:var(--muted)}.comparison-breakdown-row b.increase{color:var(--red)}.comparison-breakdown-row b.decrease{color:var(--green)}.segmented{width:100%;grid-template-columns:1fr 1fr;margin-bottom:22px}.segmented button{min-height:44px;border:0;background:transparent;color:var(--muted);border-radius:5px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}.segmented button.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #00000017}.compose-form{display:grid;gap:17px}.compose-form .advance-checkbox{min-height:40px;padding:0 10px;display:flex;align-items:center;gap:9px;color:var(--ink);border:1px solid #cbd0cc;border-radius:7px;background:#fafbf9;cursor:pointer}.advance-checkbox input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--green)}.advance-checkbox span{color:var(--ink);font-size:13px;font-weight:800}.advance-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px}.advance-methods button{min-height:68px;padding:11px 12px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;border:1px solid #cbd0cc;border-radius:7px;color:var(--muted);background:#fafbf9;text-align:left}.advance-methods button.active{border-color:var(--green);color:var(--green);background:var(--green-soft);box-shadow:0 0 0 1px var(--green)}.advance-methods button span{min-width:0;display:grid;gap:3px}.advance-methods button strong{color:var(--ink);font-size:13px}.advance-methods button small{color:var(--muted);font-size:10px;font-weight:600}.compose-form label,.login-form label{display:grid;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}input,select{width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid #cbd0cc;background:#fff;border-radius:6px;padding:10px 12px;color:var(--ink);outline:none;font-size:16px}input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #26745b1f}.form-row>label{min-width:0}input[type=date]{display:block;min-width:0;max-width:100%;-webkit-appearance:none;appearance:none}.attachment-options{display:grid;grid-template-columns:1fr;gap:10px}.attachment-option{min-height:72px;padding:12px;display:grid!important;grid-template-columns:auto 1fr;align-items:center;gap:10px!important;color:var(--ink)!important;border:1px solid #b9c0bb;border-radius:7px;background:#fafbf9;cursor:pointer}.attachment-option input{display:none}.attachment-option>svg{color:var(--green)}.attachment-option span{display:grid;gap:3px;min-width:0}.attachment-option strong{color:var(--ink);font-size:13px}.attachment-option small{color:var(--muted);font-size:10px;font-weight:500}.attachment-message{margin:-7px 0 0;padding:9px 11px;border:1px solid #dfd5b9;border-radius:6px;color:#6d5d3a;background:#fbf8f0;font-size:12px;line-height:1.5}.selected-attachments{display:grid;gap:8px}.selected-attachments-head{min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:10px}.selected-attachments-head strong{font-size:12px}.selected-attachments-head small{color:var(--muted);font-size:10px}.selected-attachment{min-height:52px;padding:8px 8px 8px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;color:var(--green);border:1px solid #98bcae;border-radius:7px;background:var(--green-soft)}.selected-attachment>span{min-width:0;display:grid;gap:2px}.selected-attachment strong{color:var(--ink);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-attachment small{color:var(--muted);font-size:10px}.selected-attachment button{width:36px;height:36px;padding:0;border:0;border-radius:5px;display:grid;place-items:center;color:var(--muted);background:transparent}.primary-button{min-height:48px;border:0;border-radius:6px;padding:0 18px;background:var(--green);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:800}.submit-button{margin-top:2px}.submit-progress{margin:-4px 0 0;color:var(--amber);font-size:12px;font-weight:750;line-height:1.6;text-align:center}.history-list,.review-list{display:grid}.history-row{min-height:76px;display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;border-top:1px solid var(--line)}.history-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;color:var(--green);background:var(--green-soft)}.history-icon.advance{color:var(--amber);background:#fff0dd}.history-thumbnail-button{position:relative;width:48px;height:58px;padding:0;overflow:hidden;border:1px solid #b8c9c0;border-radius:6px;background:#eef2ef;color:var(--green)}.history-thumbnail{width:100%;height:100%;display:grid;place-items:center}.history-thumbnail img{width:100%;height:100%;display:block;object-fit:cover}.history-thumbnail-button>b{position:absolute;right:3px;bottom:3px;min-width:18px;padding:2px 4px;border-radius:4px;color:#fff;background:#1f2925d1;font-size:9px;line-height:1.1}.history-main{min-width:0;display:grid;gap:4px}.history-main>div{display:flex;gap:8px;align-items:baseline}.history-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-main span,.history-main small{color:var(--muted);font-size:11px}.history-main small{display:flex;flex-wrap:wrap;gap:4px 8px}.history-submitted-at{white-space:nowrap}.advance-toggle{min-height:24px;padding:0 7px;display:inline-flex;align-items:center;gap:4px;border:1px solid #a9c5b6;border-radius:5px;color:var(--green);background:#f7fbf8;font-size:10px;font-weight:800}.advance-toggle.advance{border-color:#e6bd84;color:#8a5319;background:#fff8ec}.advance-toggle:disabled{opacity:.58}.history-receipt-names{min-width:0;display:flex;align-items:center;gap:5px;color:var(--muted);font-size:10px}.history-receipt-names span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-receipt-button{width:fit-content;min-height:28px;padding:0 8px;display:inline-flex;align-items:center;gap:5px;border:1px solid #b9cfc4;border-radius:5px;color:var(--green);background:#f7fbf8;font-size:10px;font-weight:800}.history-side{display:grid;justify-items:end;gap:4px}.history-amount{white-space:nowrap;font-size:14px}.status{padding:2px 6px;border-radius:4px;color:var(--muted);background:#eceeeb;font-size:10px;font-weight:800}.status.pending{color:#8a5319;background:#fff0dc}.status.confirmed{color:var(--green);background:var(--green-soft)}.status.rejected{color:#777}.status.receipt-queued{color:#8a5319;background:#fff0dc}.status.receipt-processing{color:#5d6b65;background:#eef1ef}.status.receipt-registered,.status.receipt-sent{color:var(--green);background:var(--green-soft)}.status.receipt-error{color:#a6403f;background:var(--red-soft)}.history-status-note{max-width:190px;color:var(--muted);font-size:9px;line-height:1.4;text-align:right}.restore-button{min-height:30px;padding:0 8px;border:1px solid #9ab9ac;border-radius:5px;display:inline-flex;align-items:center;gap:5px;color:var(--green);background:#fff;font-size:10px;font-weight:800}.restore-button:disabled{opacity:.55}.review-item{padding:18px 0;border-top:1px solid var(--line)}.review-head{display:flex;justify-content:space-between;gap:16px}.review-head>div{display:grid;gap:4px}.review-head span{color:var(--green);font-size:11px;font-weight:800}.review-head small{color:var(--muted)}.review-head b{font-size:20px;white-space:nowrap}.receipt-buttons{margin-top:10px;display:flex;flex-wrap:wrap;gap:7px}.receipt-attached{margin-top:10px;min-height:34px;padding:0 9px;border:1px solid var(--line);border-radius:5px;background:#f7f8f6;display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px}.receipt-buttons .receipt-attached{margin-top:0}.receipt-attached svg:last-child{margin-left:2px}.review-fields{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.review-fields label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:700}.review-fields .wide{grid-column:1 / -1}.review-fields input,.review-fields select{min-height:40px;padding:7px 10px}.review-actions{margin-top:12px;display:grid;grid-template-columns:1fr 2fr;gap:8px}.review-actions button{min-height:42px;border-radius:6px;display:flex;align-items:center;justify-content:center;gap:7px;font-weight:800}.reject-button{border:1px solid var(--line);background:#fff;color:var(--muted)}.confirm-button{border:0;color:#fff;background:var(--green)}.empty-state{min-height:160px;display:grid;place-content:center;justify-items:center;gap:10px;color:#89908c}.receipt-preview-backdrop{position:fixed;z-index:60;inset:0;padding:20px;display:grid;place-items:center;background:#141b179e}.receipt-preview-dialog{width:min(680px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;padding:20px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 18px 60px #00000047}.receipt-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.receipt-preview-header h2{margin:3px 0 0;font-size:20px}.receipt-preview-summary{margin-top:16px;padding:12px 0;display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.receipt-preview-summary span{color:var(--muted);font-size:12px}.receipt-preview-summary strong{font-size:18px}.receipt-preview-status-note{margin:8px 0 0;color:var(--muted);font-size:12px}.receipt-preview-names{margin:12px 0 0;display:flex;align-items:flex-start;gap:6px;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}.receipt-preview-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.receipt-preview-item{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#f7f8f6}.receipt-preview-image{min-height:190px;display:grid;place-items:center;color:var(--muted);background:#eef1ee}.receipt-preview-image img{width:100%;height:300px;display:block;object-fit:contain;background:#eef1ee}.receipt-preview-error{display:grid;justify-items:center;gap:7px;color:var(--muted);font-size:10px}.receipt-preview-item figcaption{padding:8px 9px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.receipt-preview-empty{min-height:180px;margin-top:16px;padding:24px;display:grid;place-content:center;justify-items:center;gap:9px;color:var(--muted);border:1px dashed #bfc9c2;border-radius:6px;background:#f7f8f6;text-align:center}.receipt-preview-empty strong{color:var(--ink);font-size:14px}.receipt-preview-empty span{max-width:400px;font-size:11px;line-height:1.6}.bottom-nav{position:fixed;z-index:30;left:50%;bottom:14px;transform:translate(-50%);width:min(520px,calc(100% - 24px));height:64px;padding:5px;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#1d2320f5;border:1px solid rgba(255,255,255,.12);border-radius:8px;box-shadow:0 10px 30px #00000038;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:transparent;border-radius:5px;color:#aeb7b2;display:grid;place-content:center;justify-items:center;gap:3px;font-size:10px;font-weight:700}.bottom-nav button.active{color:#fff;background:#ffffff1c}.nav-icon{position:relative;line-height:0}.nav-icon b{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;display:grid;place-items:center;background:#e45c50;color:#fff;font-size:9px}.toast{position:fixed;z-index:50;left:50%;bottom:92px;transform:translate(-50%);width:min(440px,calc(100% - 32px));min-height:48px;padding:10px 10px 10px 14px;display:flex;align-items:center;gap:9px;background:#1f2925;color:#fff;border-radius:7px;box-shadow:0 12px 30px #0000003d;font-size:13px}.toast button{margin-left:auto;width:30px;height:30px;border:0;background:transparent;color:#cbd2ce;display:grid;place-items:center}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-screen,.login-shell{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:12px;padding:24px}.loading-screen{color:var(--muted)}.login-panel{width:min(420px,calc(100vw - 32px));padding:30px;background:#fff;border:1px solid var(--line);border-radius:8px}.brand-mark{width:48px;height:48px;margin-bottom:18px;border-radius:7px;display:grid;place-items:center;color:#fff;background:var(--green)}.login-copy{margin:10px 0 22px;color:var(--muted);font-size:14px;line-height:1.7}.login-form{display:grid;gap:14px}.login-setup-button{min-height:40px;padding:0;border:0;color:var(--green);background:transparent;font-size:12px;font-weight:800}@media(max-width:680px){.app-main{padding:20px 14px 40px}.period-panel,.summary-section,.compose-section,.history-section,.review-section,.report-detail-section{padding:18px 16px}.period-heading{align-items:flex-start}.period-grid{grid-template-columns:1fr;background:transparent}.period-item{padding:14px 0;border-top:1px solid rgba(255,255,255,.14)}.period-item:first-child{padding-top:8px}.savings-alert{grid-template-columns:1fr;gap:12px}.savings-alert-target{min-width:0;padding:12px 0 0;justify-items:start;border-top:1px solid #e4c98f;border-left:0}.summary-grid{grid-template-columns:1fr 1fr}.summary-grid>div{padding:15px 12px;border-bottom:1px solid var(--line)}.summary-grid>div:nth-child(2){border-right:0}.summary-grid>div:last-child{grid-column:1 / -1;border-bottom:0;padding-left:0}.summary-grid dd{font-size:19px}.category-progress-list{grid-template-columns:1fr}.category-progress-head>span{font-size:13px}.comparison-totals>div{padding:14px 9px}.comparison-totals>div:first-child{padding-left:0}.comparison-totals>div:last-child{padding-right:0}.comparison-totals strong{font-size:15px}.comparison-breakdown-head,.comparison-breakdown-row{grid-template-columns:minmax(88px,1fr) repeat(3,minmax(62px,auto));gap:8px}.comparison-breakdown-row{font-size:11px}.pending-strip{grid-template-columns:auto 1fr}.pending-total{grid-column:2}.form-row{grid-template-columns:1fr}.attachment-option{padding:10px}.history-row{grid-template-columns:48px minmax(0,1fr);align-items:start;padding:14px 0}.history-icon{margin-top:2px}.history-side{grid-column:2;justify-items:start;grid-template-columns:auto auto;align-items:center;justify-content:space-between}.history-side .restore-button{grid-column:1 / -1}.receipt-preview-backdrop{padding:10px}.receipt-preview-dialog{max-height:calc(100vh - 20px);padding:16px}.receipt-preview-grid{grid-template-columns:1fr}.receipt-preview-image img{height:min(58vh,360px)}}
