: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}.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-changes{display:grid;grid-template-columns:repeat(2,1fr);gap:0 18px;margin-top:12px}.change-row{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #eceeeb;font-size:12px}.change-row.increase strong{color:var(--red)}.change-row.decrease strong{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}.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 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}.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}.history-list,.review-list{display:grid}.history-row{min-height:76px;display:grid;grid-template-columns:40px 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-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-side{display:grid;justify-items:end;gap:4px}.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}.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}.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}@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}.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-changes{grid-template-columns:1fr}.pending-strip{grid-template-columns:auto 1fr}.pending-total{grid-column:2}.form-row{grid-template-columns:1fr}.attachment-option{padding:10px}}
