@import "https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap";@import "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0";:root{--bg:#f7f3ee;--surface:#fff;--text:#2c2419;--muted:#7a6f63;--primary:#3d6b4f;--primary-dark:#2f543d;--accent:#d97706;--accent-dark:#b45309;--expense:#b45309;--sale:#0d9488;--profit-positive:#15803d;--profit-negative:#b91c1c;--border:#e8dfd4;--shadow:0 2px 8px #2c24190f;--radius-lg:20px;--radius-md:14px;--radius-sm:10px;--nav-height:64px;--fab-size:56px;--shell-max:100%;--page-inline:1rem;--page-block:1rem;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);color:var(--text);background:var(--bg);font-family:Noto Sans Thai,system-ui,sans-serif}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;margin:0}body{-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:#3d6b4f1f;line-height:1.5;overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.material-symbols-outlined{letter-spacing:normal;text-transform:none;white-space:nowrap;word-wrap:normal;-webkit-font-smoothing:antialiased;font-variation-settings:"FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;direction:ltr;font-family:Material Symbols Outlined;font-size:24px;font-style:normal;font-weight:400;line-height:1;display:inline-block}.icon-sm{font-size:20px}.icon-lg{font-size:28px}.icon-filled{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.app-shell{width:100%;max-width:var(--shell-max);background:var(--bg);min-height:100dvh;margin:0 auto;position:relative}.page{padding-top:calc(var(--safe-top) + var(--page-block));padding-right:max(var(--page-inline), var(--safe-right));padding-bottom:calc(var(--nav-height) + var(--fab-size) / 2 + var(--safe-bottom) + var(--page-block));padding-left:max(var(--page-inline), var(--safe-left))}.page-no-nav{padding-top:calc(var(--safe-top) + 1.25rem);padding-right:max(var(--page-inline), var(--safe-right));padding-bottom:calc(var(--safe-bottom) + 1.25rem);padding-left:max(var(--page-inline), var(--safe-left));flex-direction:column;min-height:100dvh;display:flex}.page-header{justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem;display:flex}.page-header__main{min-width:0}.restaurant-name{margin:0;font-size:1.125rem;font-weight:700;line-height:1.3}.page-title{margin:0 0 .25rem;font-size:1.5rem;font-weight:700}.page-subtitle{color:var(--muted);margin:0 0 1rem;font-size:.95rem}.chip-group{background:var(--surface);border:1px solid var(--border);border-radius:999px;gap:2px;padding:3px;display:inline-flex}.chip{min-height:32px;color:var(--muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:999px;justify-content:center;align-items:center;padding:0 .85rem;font-size:.8rem;font-weight:600;display:inline-flex}.chip.active{background:var(--primary);color:#fff}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:1rem}.hero-profit{border-radius:var(--radius-lg);color:#fff;box-shadow:var(--shadow);background:linear-gradient(135deg,#3d6b4f 0%,#2f543d 100%);margin-bottom:1rem;padding:1.25rem 1.25rem 1.1rem}.hero-profit__label{opacity:.85;margin-bottom:.25rem;font-size:.875rem}.hero-profit__value{letter-spacing:-.02em;font-size:2.25rem;font-weight:700;line-height:1.15}.hero-profit__value.negative{color:#fecaca}.hero-profit__change{background:#ffffff26;border-radius:999px;align-items:center;gap:.35rem;margin-top:.5rem;padding:.25rem .65rem;font-size:.85rem;font-weight:600;display:inline-flex}.hero-profit__change.positive:before{content:"↑"}.hero-profit__change.negative:before{content:"↓"}.metric-row{grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem;display:grid}.metric-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.9rem 1rem}.metric-card__label{color:var(--muted);margin-bottom:.2rem;font-size:.8rem}.metric-card__value{font-size:1.35rem;font-weight:700;line-height:1.2}.metric-card--expense .metric-card__value{color:var(--expense)}.metric-card--sale .metric-card__value{color:var(--sale)}.segmented{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);grid-template-columns:repeat(4,1fr);gap:.35rem;margin-bottom:.75rem;padding:4px;display:grid}.segmented__item{min-height:36px;color:var(--muted);border-radius:8px;justify-content:center;align-items:center;font-size:.82rem;font-weight:600;text-decoration:none;display:flex}.segmented__item.active{background:var(--primary);color:#fff}.period-nav{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.period-nav-btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);min-width:44px;min-height:44px;color:var(--primary);cursor:pointer;justify-content:center;align-items:center;display:flex}.period-nav-btn .material-symbols-outlined{color:var(--primary);font-size:22px}.period-nav-label{text-align:center;flex:1;font-size:.95rem;font-weight:700;line-height:1.3}.chart-bars{align-items:flex-end;gap:.35rem;height:120px;margin-top:.5rem;display:flex}.chart-bar-group{flex-direction:column;flex:1;align-items:center;gap:.25rem;min-width:0;height:100%;display:flex}.chart-bars-dense{-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;padding-bottom:.25rem;overflow:auto hidden}.chart-bars-dense .chart-bar-group{scroll-snap-align:start;flex:0 0 26px}.chart-bars-dense .chart-label{font-size:.6rem}.chart-bars-inner{align-items:flex-end;gap:2px;width:100%;height:100%;display:flex}.chart-bar{border-radius:4px 4px 0 0;width:50%;min-height:4px}.chart-label{color:var(--muted);font-size:.65rem}.category-list{margin:0;padding:0;list-style:none}.category-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem 0;display:flex}.category-list li:last-child{border-bottom:none}.category-list__name{font-size:.9rem;font-weight:500}.category-list__amount{color:var(--expense);font-size:.9rem;font-weight:700}.btn{border-radius:var(--radius-sm);cursor:pointer;border:none;justify-content:center;align-items:center;gap:.5rem;width:100%;min-height:48px;padding:.75rem 1rem;font-weight:600;text-decoration:none;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-secondary{background:var(--surface);color:var(--text);border:1px solid var(--border)}.btn-ghost{color:var(--muted);border:1px solid var(--border);background:0 0}.btn-danger{color:var(--profit-negative);background:#fef2f2;border:1px solid #fecaca}.btn-sm{width:auto;min-height:36px;padding:.45rem .75rem;font-size:.875rem}.btn-row{gap:.5rem;display:flex}.btn-row .btn{flex:1}.form-field{flex-direction:column;gap:.35rem;margin-bottom:.9rem;display:flex}.form-field label{font-size:.9rem;font-weight:600}.form-field input,.form-field select,.form-field textarea{border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff;min-height:48px;padding:.65rem .75rem}.form-field textarea{resize:vertical;min-height:80px}.form-field--warning input,.form-field--warning select{border-color:var(--accent);background:#fffbeb}.hint{color:var(--muted);font-size:.8rem}.error-box{color:var(--profit-negative);border-radius:var(--radius-sm);background:#fef2f2;border:1px solid #fecaca;margin-bottom:1rem;padding:.75rem 1rem}.choice-card{border-radius:var(--radius-lg);border:2px solid var(--border);background:var(--surface);color:inherit;flex-direction:column;align-items:flex-start;gap:.35rem;margin-bottom:.85rem;padding:1.25rem 1.1rem;text-decoration:none;display:flex}.choice-card--expense{background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);border-color:#fbbf24}.choice-card--sale{background:linear-gradient(135deg,#ecfdf5 0%,#ccfbf1 100%);border-color:#5eead4}.choice-card__icon{border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:.25rem;display:flex}.choice-card--expense .choice-card__icon{color:var(--expense);background:#b453091f}.choice-card--sale .choice-card__icon{color:var(--sale);background:#0d94881f}.choice-card__icon .material-symbols-outlined{font-size:28px}.choice-card__title{font-size:1.15rem;font-weight:700}.choice-card__desc{color:var(--muted);font-size:.9rem}.capture-box{border:2px dashed var(--border);border-radius:var(--radius-lg);text-align:center;background:var(--surface);padding:2rem 1rem}.capture-box__icon{width:64px;height:64px;color:var(--accent);background:#d977061f;border-radius:50%;justify-content:center;align-items:center;margin:0 auto .75rem;display:flex}.capture-box__icon .material-symbols-outlined{font-size:32px}.capture-actions{flex-wrap:wrap;justify-content:center;gap:.5rem;margin-top:1rem;display:flex}.capture-actions .btn{flex:8.5rem;min-height:44px}.review-preview{border-radius:var(--radius-md);border:1px solid var(--border);object-fit:contain;background:#e8dfd4;width:100%;max-height:min(36dvh,240px);margin-bottom:1rem}.page--review{padding-bottom:calc(var(--review-actions-height,9.5rem) + var(--safe-bottom) + var(--page-block))}.review-actions{width:min(var(--shell-max), 100%);padding:.75rem max(var(--page-inline), var(--safe-right)) calc(var(--safe-bottom) + .75rem) max(var(--page-inline), var(--safe-left));background:linear-gradient(to top, var(--bg) 80%, #f7f3ee00);border-top:1px solid var(--border);z-index:40;flex-direction:column;gap:.5rem;display:flex;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -4px 16px #2c24190f}.review-actions form{margin:0}.review-steps{gap:.5rem;margin-bottom:1rem;display:flex}.review-step{text-align:center;color:var(--muted);flex:1;font-size:.75rem}.review-step__num{background:var(--border);width:28px;height:28px;color:var(--muted);border-radius:50%;justify-content:center;align-items:center;margin:0 auto .25rem;font-size:.8rem;font-weight:700;display:flex}.review-step.active .review-step__num{background:var(--primary);color:#fff}.review-step.done .review-step__num{background:var(--profit-positive);color:#fff}.type-badge{border-radius:999px;margin-bottom:1rem;padding:.35rem .75rem;font-size:.85rem;font-weight:700;display:inline-block}.type-badge--expense{color:var(--expense);background:#fef3c7}.type-badge--sale{color:var(--sale);background:#ccfbf1}.timeline{margin:0;padding:0;list-style:none}.timeline-date{color:var(--muted);text-transform:none;padding:.75rem 0 .35rem;font-size:.8rem;font-weight:700}.timeline-date:first-child{padding-top:0}.timeline-item{border-bottom:1px solid var(--border);color:inherit;align-items:center;gap:.75rem;padding:.85rem 0;text-decoration:none;display:flex}.timeline-item:last-child{border-bottom:none}.timeline-item__icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.timeline-item__icon--expense{color:var(--expense);background:#b453091a}.timeline-item__icon--sale{color:var(--sale);background:#0d94881a}.timeline-item__icon .material-symbols-outlined{font-size:20px}.timeline-item__body{flex:1;min-width:0}.timeline-item__title{white-space:nowrap;text-overflow:ellipsis;margin-bottom:.1rem;font-size:.95rem;font-weight:600;overflow:hidden}.timeline-item__meta{color:var(--muted);font-size:.8rem}.timeline-item__amount{text-align:right;flex-shrink:0;font-size:.95rem;font-weight:700}.timeline-item__amount--expense{color:var(--expense)}.timeline-item__amount--sale{color:var(--sale)}.swipe-hint{text-align:center;color:var(--muted);opacity:.7;padding:.5rem 0;font-size:.75rem}.detail-amount{margin:.5rem 0 1rem;font-size:2rem;font-weight:700}.detail-amount--expense{color:var(--expense)}.detail-amount--sale{color:var(--sale)}.detail-meta{gap:.75rem;display:grid}.detail-row{border-bottom:1px solid var(--border);justify-content:space-between;gap:1rem;padding:.65rem 0;display:flex}.detail-row__label{color:var(--muted);font-size:.9rem}.detail-row__value{text-align:right;font-size:.9rem;font-weight:600}.member-list{margin:0;padding:0;list-style:none}.member-item{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.5rem;padding:.65rem 0;display:flex}.member-item:last-child{border-bottom:none}.member-item__name{font-size:.95rem;font-weight:600}.member-item__meta{color:var(--muted);font-size:.8rem}.bottom-nav{width:min(var(--shell-max), 100%);height:calc(var(--nav-height) + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:var(--surface);border-top:1px solid var(--border);grid-template-columns:1fr 1fr var(--fab-size) 1fr 1fr;z-index:50;align-items:flex-end;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -4px 16px #2c24190f}.bottom-nav a{color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:.15rem;padding:.35rem .25rem .5rem;font-size:.68rem;text-decoration:none;display:flex}.bottom-nav a.active{color:var(--primary);font-weight:700}.bottom-nav a .material-symbols-outlined{font-size:22px}.bottom-nav a.active .material-symbols-outlined{font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24}.bottom-nav-fab{padding-bottom:calc(var(--safe-bottom) + 8px);z-index:2;flex-direction:column;justify-content:flex-end;align-items:center;display:flex;position:relative}.bottom-nav-fab a{width:var(--fab-size);height:var(--fab-size);background:linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);color:#fff;margin-top:calc(var(--fab-size) / -2);border-radius:50%;flex-direction:column;justify-content:center;align-items:center;gap:.1rem;padding:0;font-size:.68rem;font-weight:700;display:flex;box-shadow:0 4px 14px #d9770666}.bottom-nav-fab a .material-symbols-outlined{color:#fff;font-variation-settings:"FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;font-size:26px}.bottom-nav-fab a.active{color:#fff}.auth-shell{min-height:100dvh;padding:calc(var(--safe-top) + 1.5rem) max(1.5rem, var(--safe-right)) calc(var(--safe-bottom) + 1.5rem) max(1.5rem, var(--safe-left));flex-direction:column;justify-content:center;width:100%;max-width:420px;margin:0 auto;display:flex}.auth-logo{text-align:center;margin-bottom:2rem}.auth-logo__icon{background:var(--primary);color:#fff;border-radius:16px;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto .75rem;display:flex}.auth-logo__icon .material-symbols-outlined{font-size:32px}.auth-logo__title{margin:0;font-size:1.5rem;font-weight:700}.auth-logo__tagline{color:var(--muted);margin:.25rem 0 0;font-size:.95rem}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:1.25rem}.auth-divider{color:var(--muted);align-items:center;gap:.75rem;margin:1rem 0;font-size:.8rem;display:flex}.auth-divider:before,.auth-divider:after{content:"";background:var(--border);flex:1;height:1px}.auth-google-btn{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;width:100%;min-height:48px;color:var(--text);justify-content:center;align-items:center;gap:.65rem;padding:.75rem 1rem;font-weight:600;text-decoration:none;display:flex}.auth-google-btn svg{flex-shrink:0}.total-display{background:var(--bg);border-radius:var(--radius-sm);text-align:center;margin:1rem 0;padding:1rem}.total-display__label{color:var(--muted);font-size:.85rem}.total-display__value{color:var(--sale);font-size:1.75rem;font-weight:700}.tab-row{gap:.5rem;margin-bottom:.75rem;display:flex}.tab-row .btn{flex:1;min-height:40px;font-size:.85rem}.filter-row{gap:.5rem;margin-bottom:1rem;display:flex}.filter-row .btn{flex:1;width:auto;min-height:40px;font-size:.85rem}.section-title{margin:0 0 .5rem;font-size:1rem;font-weight:700}.spacer{flex:1}.badge-fixed{color:var(--primary);white-space:nowrap;background:#3d6b4f1f;border-radius:999px;align-items:center;gap:.25rem;padding:.2rem .55rem;font-size:.7rem;font-weight:700;display:inline-flex}.badge-estimate{color:var(--accent-dark);background:#d977061f}.info-callout{border-radius:var(--radius-md);background:#3d6b4f14;border:1px solid #3d6b4f33;margin-bottom:1rem;padding:.85rem 1rem}.info-callout p{color:var(--text);margin:0;font-size:.85rem;line-height:1.45}.info-callout strong{color:var(--primary)}.expense-breakdown{flex-direction:column;gap:.65rem;display:flex}.expense-breakdown__row{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.expense-breakdown__label{align-items:center;gap:.5rem;font-size:.9rem;display:flex}.expense-breakdown__dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.expense-breakdown__dot--receipt{background:var(--expense)}.expense-breakdown__dot--fixed{background:var(--primary);opacity:.7}.expense-breakdown__amount{font-size:.95rem;font-weight:700}.expense-breakdown__total{border-top:1px dashed var(--border);justify-content:space-between;margin-top:.25rem;padding-top:.65rem;font-weight:700;display:flex}.fixed-list{margin:0;padding:0;list-style:none}.fixed-item{border-bottom:1px solid var(--border);color:inherit;align-items:center;gap:.75rem;padding:.85rem 0;text-decoration:none;display:flex}.fixed-item:last-child{border-bottom:none}.fixed-item__body{flex:1;min-width:0}.fixed-item__title{margin-bottom:.15rem;font-size:.95rem;font-weight:600}.fixed-item__meta{color:var(--muted);font-size:.8rem}.fixed-item__amount{text-align:right;flex-shrink:0}.fixed-item__amount-value{color:var(--primary);font-size:.95rem;font-weight:700}.fixed-item__amount-unit{color:var(--muted);font-size:.72rem}.fixed-total-bar{border-radius:var(--radius-md);background:#3d6b4f14;border:1px solid #3d6b4f2e;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:.85rem 1rem;display:flex}.fixed-total-bar__label{color:var(--muted);font-size:.85rem}.fixed-total-bar__value{color:var(--primary);font-size:1.25rem;font-weight:700}.toggle-row{justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 0;display:flex}.toggle{background:var(--border);border-radius:999px;flex-shrink:0;width:48px;height:28px;position:relative}.toggle.on{background:var(--primary)}.toggle:after{content:"";background:#fff;border-radius:50%;width:22px;height:22px;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #00000026}.toggle.on:after{left:23px}.preset-chips{flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem;display:flex}.preset-chip{border:1px solid var(--border);background:var(--surface);color:var(--muted);cursor:pointer;border-radius:999px;padding:.35rem .75rem;font-size:.8rem;font-weight:600}.preset-chip.selected{border-color:var(--primary);color:var(--primary);background:#3d6b4f1a}.settings-link-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);color:inherit;box-shadow:var(--shadow);justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem;padding:1rem;text-decoration:none;display:flex}.settings-link-card:hover{border-color:var(--primary)}.fixed-item__icon{width:44px;height:44px;color:var(--primary);background:#3d6b4f1a;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.settings-link-card__icon .material-symbols-outlined{font-size:24px}.settings-link-card__body{flex:1;min-width:0}.settings-link-card__title{margin-bottom:.15rem;font-weight:700}.settings-link-card__desc{color:var(--muted);font-size:.82rem}.settings-link-card__icon{width:44px;height:44px;color:var(--primary);background:#3d6b4f1a;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.settings-link-card__arrow{color:var(--muted)}.settings-link-card__arrow .material-symbols-outlined{font-size:20px}.category-list__icon{vertical-align:middle;color:var(--muted);margin-right:.35rem;font-size:18px}.preset-chip .material-symbols-outlined{vertical-align:middle;margin-right:.2rem;font-size:16px}.fixed-item__icon .material-symbols-outlined{font-size:24px}:root{--success:var(--sale);--danger:var(--expense)}.period-tabs{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);grid-template-columns:repeat(4,minmax(0,1fr));gap:.35rem;margin-bottom:.75rem;padding:4px;display:grid}.period-tab{min-width:0;min-height:36px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;border-radius:8px;justify-content:center;align-items:center;padding:0 .25rem;font-size:.82rem;font-weight:600;text-decoration:none;display:flex;overflow:hidden}.period-tab.active{background:var(--primary);color:#fff}.stat-grid{grid-template-columns:1fr;gap:.75rem;margin-bottom:1rem;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:.9rem 1rem}.stat-label{color:var(--muted);margin-bottom:.2rem;font-size:.8rem}.stat-value{font-size:1.35rem;font-weight:700;line-height:1.2}.stat-value.positive{color:var(--profit-positive)}.stat-value.negative{color:var(--profit-negative)}.field{flex-direction:column;gap:.35rem;margin-bottom:.9rem;display:flex}.field label{font-size:.9rem;font-weight:600}.field input,.field select,.field textarea,.input{border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff;width:100%;min-height:48px;padding:.65rem .75rem}.field textarea{resize:vertical;min-height:80px}.field-warning input,.field-warning select{border-color:var(--accent);background:#fffbeb}.list-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);color:inherit;margin-bottom:.65rem;padding:.9rem 1rem;text-decoration:none;display:block}a.list-item:active{background:var(--bg)}.list-item-title{margin-bottom:.15rem;font-weight:600}.list-item-meta{color:var(--muted);font-size:.85rem}.list-item-amount{margin-top:.35rem;font-weight:700}.entry-actions{flex-direction:column;gap:.65rem;margin-top:1rem;display:flex}.receipt-preview{border-radius:var(--radius-md);border:1px solid var(--border);width:100%;margin-bottom:1rem}.loading-overlay{padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);z-index:100;background:#ffffffd9;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;display:flex;position:fixed;inset:0}.spinner{border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.hidden-input{display:none}.capture-icon{margin-bottom:.5rem;font-size:3rem}.choice-card.expense{background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);border-color:#fbbf24}.choice-card.sale{background:linear-gradient(135deg,#ecfdf5 0%,#ccfbf1 100%);border-color:#5eead4}.type-badge.expense{color:var(--expense);background:#fef3c7}.type-badge.sale{color:var(--sale);background:#ccfbf1}.chart-bar.sales{background:var(--sale)}.chart-bar.expense{background:var(--expense);opacity:.75}.install-banner{z-index:20;padding:calc(var(--safe-top) + .75rem) max(1rem, var(--safe-right)) .75rem max(1rem, var(--safe-left));background:#3d6b4f14;border-bottom:1px solid #3d6b4f33;justify-content:space-between;align-items:center;gap:.75rem;display:flex;position:sticky;top:0}.install-banner--ios{background:var(--bg);border-bottom-color:var(--border)}.install-banner__text{flex-direction:column;gap:.15rem;min-width:0;display:flex}.install-banner__text strong{font-size:.9rem}.install-banner__text span{color:var(--muted);font-size:.8rem}.install-banner__actions{flex-shrink:0;gap:.35rem;display:flex}.preview-grid{grid-template-columns:repeat(3,1fr);gap:.5rem;margin-bottom:1rem;display:grid}.preview-header{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.5rem;display:flex}.preview-clear-all{color:var(--profit-negative);font:inherit;cursor:pointer;text-underline-offset:2px;background:0 0;border:none;min-height:44px;padding:.35rem .25rem;font-size:.875rem;text-decoration:underline}.preview-item{position:relative}.preview-remove{color:#fff;cursor:pointer;background:#000000a6;border:none;border-radius:999px;justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;font-size:1.25rem;line-height:1;display:flex;position:absolute;top:.35rem;right:.35rem}.preview-thumb{aspect-ratio:3/4;object-fit:cover;border:1px solid var(--border);border-radius:10px;width:100%}.pin-display{letter-spacing:.5rem;text-align:center;min-height:2.5rem;margin:1rem 0;font-size:2rem}.pin-pad{grid-template-columns:repeat(3,1fr);gap:.65rem;display:grid}.pin-key{border:1px solid var(--border);border-radius:var(--radius-sm);background:#fff;min-height:56px;font-size:1.25rem;font-weight:600}.btn-accent{background:var(--accent);color:#fff}@media (width<=767px){.form-field input,.form-field select,.form-field textarea,.field input,.field select,.field textarea,.input{font-size:16px}.app-shell.page-no-nav{max-width:100%;min-height:100dvh}.auth-shell{max-width:none;min-height:100dvh;padding:calc(var(--safe-top) + .5rem) max(var(--page-inline), var(--safe-right)) calc(var(--safe-bottom) + .75rem) max(var(--page-inline), var(--safe-left));justify-content:flex-start;gap:.65rem}.auth-logo{flex-shrink:0;margin-bottom:.75rem}.auth-logo__icon{width:56px;height:56px}.auth-logo__title{font-size:1.35rem}.auth-card{border-radius:var(--radius-md);width:100%;box-shadow:var(--shadow);flex:auto;padding:1.15rem 1.1rem}.auth-google-btn,.auth-shell .btn-primary{min-height:52px}.bottom-nav-fab{padding-bottom:calc(var(--safe-bottom) + 2px);align-self:end}.bottom-nav-fab a{margin-top:calc(var(--fab-size) * -.32)}.bottom-nav{align-items:end}}@media (width<=380px){:root{--page-block:.85rem;--fab-size:52px;--nav-height:58px}.hero-profit__value{font-size:1.9rem}.bottom-nav a{padding-bottom:.35rem;font-size:.62rem}.bottom-nav a .material-symbols-outlined{font-size:20px}.bottom-nav-fab a{margin-top:calc(var(--fab-size) * -.28)}.auth-logo{margin-bottom:.65rem}.auth-logo__icon{width:48px;height:48px}.auth-logo__title{font-size:1.2rem}}@media (width>=600px){:root{--shell-max:560px;--page-inline:1.5rem;--page-block:1.25rem;--nav-height:68px}.app-shell{box-shadow:0 0 0 1px var(--border), var(--shadow)}.hero-profit__value{font-size:2.5rem}.metric-card__value{font-size:1.5rem}.chart-bars{height:140px}.preview-grid{grid-template-columns:repeat(4,1fr)}.capture-actions .btn{flex:10rem}}@media (width>=768px){:root{--shell-max:680px;--page-inline:2rem;--fab-size:60px}.page-title{font-size:1.65rem}.bottom-nav a{gap:.2rem;font-size:.72rem}.bottom-nav a .material-symbols-outlined{font-size:24px}.choice-card{padding:1.5rem 1.35rem}.timeline-item{padding:1rem 1.1rem}.timeline-item__amount{font-size:1.05rem}.auth-shell{max-width:480px}.page:has(.hero-profit):has(.metric-row) .hero-profit{margin-bottom:0}.page:has(.hero-profit):has(.metric-row){grid-template-columns:1.15fr 1fr;align-items:stretch;gap:1rem;display:grid}:is(.page:has(.hero-profit):has(.metric-row)>.page-header,.page:has(.hero-profit):has(.metric-row)>.period-tabs,.page:has(.hero-profit):has(.metric-row)>.period-nav,.page:has(.hero-profit):has(.metric-row)>.card,.page:has(.hero-profit):has(.metric-row)>.btn,.page:has(.hero-profit):has(.metric-row)>.empty-state,.page:has(.hero-profit):has(.metric-row)>.section-title,.page:has(.hero-profit):has(.metric-row)>.category-list,.page:has(.hero-profit):has(.metric-row)>.list-item,.page:has(.hero-profit):has(.metric-row)>.hint,.page:has(.hero-profit):has(.metric-row)>.error-box){grid-column:1/-1}.page:has(.hero-profit):has(.metric-row)>.metric-row{grid-area:2/2;align-self:stretch;margin-bottom:0}.page:has(.hero-profit):has(.metric-row)>.hero-profit{grid-area:2/1}.page:has(.hero-profit):has(.metric-row)>.metric-row .metric-card{flex-direction:column;justify-content:center;height:100%;display:flex}.page:has(.choice-card--expense):has(.choice-card--sale){grid-template-columns:1fr 1fr;align-items:stretch;gap:.85rem;display:grid}:is(.page:has(.choice-card--expense):has(.choice-card--sale)>.page-header,.page:has(.choice-card--expense):has(.choice-card--sale)>.hint,.page:has(.choice-card--expense):has(.choice-card--sale)>.btn-ghost){grid-column:1/-1}.page:has(.choice-card--expense):has(.choice-card--sale) .choice-card{height:100%;margin-bottom:0}}@media (width>=1024px){:root{--shell-max:760px}.chart-bars{height:160px}.stat-grid{grid-template-columns:repeat(3,1fr)}.settings-link-card{padding:1.15rem 1.25rem}.fixed-list{gap:.65rem;display:grid}.preset-chips{flex-wrap:wrap}}@media (height<=500px) and (orientation:landscape){.page{padding-bottom:calc(var(--nav-height) + var(--safe-bottom) + .5rem)}.auth-shell{padding-top:calc(var(--safe-top) + 1rem);justify-content:flex-start}}
