:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#223128;background:#e9eeeb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait;opacity:.65}.app-frame{position:relative;width:100%;min-height:100vh;margin:0 auto;background:#f5f7f5}.app-main{min-height:100vh;padding-bottom:calc(98px + env(safe-area-inset-bottom))}.global-error{position:sticky;z-index:35;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;color:#8f3732;background:#fae4e1;font-size:14px}.global-error button{flex:0 0 auto;padding:6px 10px;border:0;border-radius:8px;color:#fff;background:#a9423c;cursor:pointer}.sync-indicator{position:fixed;z-index:40;top:10px;left:50%;padding:8px 13px;border-radius:999px;color:#fff;background:#2f6b4feb;font-size:13px;transform:translate(-50%);box-shadow:0 5px 18px #1e46302e}.login-page,.status-page{display:grid;min-height:100vh;padding:24px;place-items:center;background:radial-gradient(circle at 20% 10%,rgba(73,139,104,.15),transparent 34%),#f1f5f2}.login-card,.status-card{width:min(100%,420px);padding:30px 24px;border:1px solid #e0e8e3;border-radius:24px;background:#fff;box-shadow:0 18px 50px #20442f1a}.login-mark{display:grid;width:56px;height:56px;margin-bottom:24px;border-radius:17px;place-items:center;color:#fff;background:#2f6b4f;font-size:23px;font-weight:900}.login-card h1,.status-card h1{font-size:28px}.login-description,.status-card p,.status-page>p{color:#6f7c74;line-height:1.6}.login-field{display:block;margin:24px 0 18px}.login-field span{display:block;margin-bottom:8px;font-weight:800}.login-field input{width:100%;min-height:52px;padding:12px 14px;border:1px solid #ccd8d1;border-radius:13px;font-size:17px}.status-page{align-content:center;gap:16px}.status-spinner{width:38px;height:38px;border:4px solid #dbe8e0;border-top-color:#2f6b4f;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.page-content{padding:28px 20px 32px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:22px}.page-actions{display:flex;gap:7px}.text-button,.small-button{flex:0 0 auto;min-height:38px;padding:8px 12px;border:0;border-radius:10px;color:#2f6b4f;background:#e5f0e9;font-weight:800;cursor:pointer}.text-button.logout-text{color:#8d4a45;background:#f7eae8}.eyebrow{margin:0 0 6px;color:#2f6b4f;font-size:13px;font-weight:800;letter-spacing:.12em}h1,h2,p{margin-top:0}h1{margin-bottom:8px;font-size:clamp(28px,8vw,36px);line-height:1.15}h2{margin-bottom:0;font-size:19px}.page-heading p:last-child{margin-bottom:0;color:#6f7c74;font-size:16px;line-height:1.6}.summary-grid,.statistics-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.statistics-summary{grid-template-columns:1fr}.summary-card,.content-card{border:1px solid #e6ebe8;border-radius:18px;background:#fff;box-shadow:0 8px 24px #2244310f}.summary-card{min-width:0;padding:18px}.summary-card span{display:block;margin-bottom:8px;color:#758078;font-size:14px}.summary-card strong{display:block;font-size:clamp(18px,5vw,27px);line-height:1.15;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.statistics-summary .summary-card strong{font-size:clamp(24px,8vw,34px)}.summary-card--positive strong,.amount-positive{color:#27734e}.summary-card--negative strong,.amount-negative{color:#bd4f47}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:22px}.price-setting-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:15px 17px;border:1px solid #dbe7df;border-radius:16px;background:#eef5f1}.price-setting-card span,.price-setting-card strong{display:block}.price-setting-card span{margin-bottom:4px;color:#6f7c74;font-size:13px}.price-setting-card strong{color:#2f6b4f}.primary-button,.secondary-button{min-height:50px;padding:12px 18px;border:0;border-radius:14px;font-weight:800;cursor:pointer}.primary-button{color:#fff;background:#2f6b4f}.secondary-button{color:#2f6b4f;background:#e5f0e9}.content-card{margin-bottom:16px;padding:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading span{color:#89928c;font-size:13px}.record-list,.category-list,.compact-records{display:grid}.record-filters{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:9px;margin-bottom:8px}.record-filters input,.record-filters select,.period-picker input,.period-picker select{min-width:0;min-height:44px;padding:9px 11px;border:1px solid #d4ddd8;border-radius:11px;color:#28372e;background:#fff}.record-item{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #edf0ee}.record-item:last-child{border-bottom:0}.record-main{min-width:0}.record-item strong,.record-item span,.record-item small{display:block}.record-item span,.record-item small{margin-top:5px;color:#7a857e;font-size:13px}.record-item b{flex:0 0 auto;font-size:16px;white-space:nowrap}.record-side{display:grid;flex:0 0 auto;justify-items:end;gap:10px}.record-actions{display:flex;gap:6px}.record-actions button{padding:5px 7px;border:0;color:#50645a;background:transparent;font-size:13px;cursor:pointer}.record-actions button.danger-text{color:#b54740}.empty-state{padding:34px 12px;color:#818c85;line-height:1.6;text-align:center}.bottom-navigation{position:fixed;z-index:30;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(3,1fr);padding:9px 10px calc(9px + env(safe-area-inset-bottom));border-top:1px solid #e1e7e3;background:#fffffff5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.bottom-navigation button{display:grid;justify-items:center;gap:3px;padding:6px;border:0;color:#7d8781;background:transparent;font-size:12px;cursor:pointer}.bottom-navigation button.is-active{color:#2f6b4f;font-weight:800}.nav-icon{display:grid;width:30px;height:30px;place-items:center;border-radius:10px;background:#edf2ef;font-size:14px;font-weight:900}.bottom-navigation button.is-active .nav-icon{color:#fff;background:#2f6b4f}.calendar-card{padding:16px 12px}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin:0 4px 8px}.calendar-month-title{display:flex;align-items:center;gap:9px}.current-month-button{min-height:30px;padding:4px 9px;border:0;border-radius:8px;color:#2f6b4f;background:#e5f0e9;font-size:12px;font-weight:800;cursor:pointer}.month-button{display:grid;width:38px;height:38px;border:0;border-radius:11px;place-items:center;color:#2f6b4f;background:#e8f1eb;font-size:28px;cursor:pointer}.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-weekdays span{padding:8px 0;color:#7e8982;font-size:12px;text-align:center}.calendar-cell{display:grid;min-width:0;min-height:55px;padding:6px 2px;border:2px solid transparent;border-radius:10px;place-content:start center;gap:5px;color:#35433a;background:transparent;cursor:pointer}.calendar-cell strong{font-size:11px}.profit-pill{max-width:100%;padding:2px 3px;border-radius:5px;overflow:hidden;text-overflow:ellipsis}.profit-pill.positive{color:#27734e;background:#e5f3eb}.profit-pill.negative{color:#b54740;background:#fae9e7}.profit-pill.zero{color:#69766e;background:#edf0ee}.calendar-cell.is-selected{border-color:#86b49b;background:#eef6f1}.calendar-cell.is-empty{pointer-events:none}.day-summary>div,.compact-records>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #edf0ee}.category-statistic{padding:13px 0;border-bottom:1px solid #edf0ee}.category-statistic:last-child{border-bottom:0}.category-statistic-main,.category-statistic-main>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.category-statistic-main>div{flex:0 1 auto;justify-content:flex-end;min-width:0}.category-statistic-main strong{overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}.category-statistic-main small{flex:0 0 48px;color:#758078;text-align:right}.category-progress{height:5px;margin-top:9px;overflow:hidden;border-radius:999px;background:#edf1ee}.category-progress span{display:block;height:100%;border-radius:inherit;background:#5b9b78}.day-summary .is-emphasized{margin-top:4px;border-bottom:0;color:#2f6b4f;font-size:18px}.compact-records{margin-top:10px;padding-top:6px;border-top:1px dashed #dbe2de}.period-tabs,.segmented-control{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-bottom:12px;padding:5px;border-radius:14px;background:#e6ebe8}.period-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.period-picker label>span{display:block;margin-bottom:6px;color:#6f7c74;font-size:13px;font-weight:700}.period-picker input,.period-picker select{width:100%}.period-result-label{margin-bottom:16px;color:#66746c;font-size:14px;font-weight:700}.period-tabs button,.segmented-control button{min-height:42px;border:0;border-radius:10px;color:#68756d;background:transparent;cursor:pointer}.period-tabs button.is-active,.segmented-control button.is-active{color:#2f6b4f;background:#fff;box-shadow:0 4px 12px #22443114;font-weight:800}.segmented-control{grid-template-columns:1fr 1fr}.segmented-control button.expense-active{color:#a7433d}.demo-note{margin-bottom:16px;color:#758078;font-size:13px;line-height:1.5}.sheet-backdrop{position:fixed;z-index:50;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-top:24px;background:#151f197a}.record-sheet{width:100%;max-height:94vh;overflow-y:auto;padding:10px 20px calc(24px + env(safe-area-inset-bottom));border-radius:24px 24px 0 0;background:#f8faf8}.sheet-handle{width:42px;height:5px;margin:0 auto 16px;border-radius:999px;background:#c7cfca}.sheet-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:16px}.sheet-header h2{font-size:24px}.sheet-description{margin-bottom:18px;color:#6f7c74;line-height:1.6}.icon-button{width:42px;height:42px;border:0;border-radius:50%;color:#5f6c64;background:#e6ebe8;font-size:26px;cursor:pointer}.form-grid{display:grid;gap:16px;margin-bottom:20px}.form-grid label>span{display:block;margin-bottom:7px;font-weight:800}.form-grid input,.form-grid select,.form-grid textarea{width:100%;min-height:48px;padding:11px 12px;border:1px solid #ced8d2;border-radius:12px;color:#26342b;background:#fff;font-size:16px}.form-grid textarea{resize:vertical}.form-grid small{display:block;margin-top:6px;color:#758078;line-height:1.5}.calculated-field{display:flex;justify-content:space-between;gap:16px;padding:14px;border-radius:12px;color:#2f6b4f;background:#e7f1eb}.form-error{margin:-6px 0 14px;padding:10px 12px;border-radius:10px;color:#a43c36;background:#fae9e7;font-size:14px}.full-width-button{width:100%}.compact-sheet{max-height:70vh}@media(min-width:700px){.app-frame{max-width:520px;box-shadow:0 0 44px #1a2e221f}.bottom-navigation{right:50%;left:auto;width:520px;transform:translate(50%)}.record-sheet{max-width:520px;margin-bottom:20px;border-radius:24px}}@media(min-width:720px){.statistics-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-summary .summary-card strong{font-size:clamp(20px,3vw,30px)}}@media(max-width:380px){.record-filters,.period-picker{grid-template-columns:1fr}.record-item{display:grid}.record-side{grid-template-columns:1fr auto;justify-items:start}}
