:root{--text:#475569;--text-h:#0f172a;--bg:#f8fafc;--border:#e2e8f0;--code-bg:#f4f3ec;--accent:#2563eb;--accent-bg:#2563eb1a;--accent-border:#2563eb80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--brand-gold:#f59e0b;--brand-gold-deep:#d97706;--brand-red:#e11d48;--brand-red-deep:#be123c;--brand-gradient:linear-gradient(135deg, var(--brand-gold-deep), var(--brand-gold));--brand-red-soft:#e11d481f;--brand-gold-soft:#f59e0b24;--brand-glow:#f59e0b59;--ink:#451a03;--ink-soft:#92400e;--page-bg:linear-gradient(160deg, #fdf6ec 0%, #fbf0f0 50%, #fdf6ec 100%);--glass-bg:#ffffff80;--glass-border:#fffc;--glass-shadow:0 8px 32px 0 #1f268714, inset 0 1px 0 #ffffffb3;--glass-blur:blur(20px) saturate(200%);--kpi-green:#10b981;--kpi-green-bg:#10b9811f;--kpi-rose:#f43f5e;--kpi-rose-bg:#f43f5e1a;--sans:"Noto Sans Thai", system-ui, "Segoe UI", Roboto, sans-serif;--heading:"Noto Sans Thai", system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--text);background:var(--page-bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (width<=1024px){:root{font-size:16px}}*,:before,:after{box-sizing:border-box}button,input,select,textarea{font-family:inherit}#root{flex-direction:column;min-width:0;min-height:100svh;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}.pipeline-backdrop{z-index:200;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#050810b8;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.pipeline-panel{color:#e6e9f5;background:linear-gradient(160deg,#141826eb,#0a0c16f2);border:1px solid #94a3fd2e;border-radius:20px;width:100%;max-width:640px;max-height:90vh;padding:28px 24px;overflow-y:auto;box-shadow:inset 0 0 0 1px #ffffff0a,0 30px 80px #0000008c,0 0 60px #38bdf814}.pipeline-title{letter-spacing:.14em;text-transform:uppercase;color:#7dd3fc;text-shadow:0 0 12px #38bdf880;margin:0 0 24px;font-size:.8rem;font-weight:700}.pipeline-track{flex-direction:column;gap:0;display:flex}@media (width>=640px){.pipeline-track{flex-direction:row;align-items:flex-start}}.pipeline-node-wrap{flex-direction:column;flex:1;display:flex}@media (width>=640px){.pipeline-node-wrap{flex-direction:row;align-items:center}}.pipeline-node{text-align:center;background:#ffffff05;border:1px solid #94a3fd24;border-radius:14px;flex-direction:column;flex:1;align-items:center;gap:6px;padding:16px 10px;transition:border-color .3s,box-shadow .3s,background .3s;display:flex}.pipeline-node-icon{border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-size:1rem;display:flex}.pipeline-node-dot{background:#94a3fd66;border-radius:50%;width:8px;height:8px}.pipeline-node-label{color:#e6e9f5;margin:0;font-size:.82rem;font-weight:700}.pipeline-node-sublabel{color:#e6e9f580;margin:0;font-size:.68rem}.pipeline-quota-badge{color:#4ade80;background:#22c55e26;border:1px solid #22c55e59;border-radius:999px;margin-top:4px;padding:2px 8px;font-size:.68rem;font-weight:700}.pipeline-quota-badge-warn{color:#fb7185;background:#f43f5e26;border-color:#f43f5e66}.pipeline-node-pending{opacity:.55}.pipeline-node-active{background:#38bdf80f;border-color:#38bdf88c;animation:1.4s ease-in-out infinite pipeline-pulse;box-shadow:0 0 24px #38bdf840}.pipeline-node-active .pipeline-node-icon{color:#38bdf8}@keyframes pipeline-pulse{0%,to{box-shadow:0 0 18px #38bdf833}50%{box-shadow:0 0 30px #38bdf873}}.pipeline-spinner{border:2px solid #38bdf840;border-top-color:#38bdf8;border-radius:50%;width:18px;height:18px;animation:.7s linear infinite pipeline-spin;display:inline-block}@keyframes pipeline-spin{to{transform:rotate(360deg)}}.pipeline-node-success{background:#22c55e0f;border-color:#22c55e80;box-shadow:0 0 20px #22c55e33}.pipeline-node-success .pipeline-node-icon{color:#4ade80;text-shadow:0 0 10px #4ade8099}.pipeline-node-error{background:#f43f5e14;border-color:#f43f5e99;box-shadow:0 0 24px #f43f5e4d}.pipeline-node-error .pipeline-node-icon{color:#fb7185}.pipeline-connector{justify-content:center;align-items:center;width:100%;height:24px;display:flex;position:relative}@media (width>=640px){.pipeline-connector{width:32px;height:2px}}.pipeline-connector:before{content:"";background:#94a3fd2e;width:2px;height:100%;position:absolute}@media (width>=640px){.pipeline-connector:before{width:100%;height:2px}}.pipeline-connector-active:before{background:#38bdf880}.pipeline-beam{opacity:0;background:#7dd3fc;border-radius:50%;width:6px;height:6px;position:absolute;box-shadow:0 0 8px 2px #7dd3fccc}.pipeline-connector-active .pipeline-beam{opacity:1;animation:1.1s ease-in-out infinite pipeline-beam-vertical}@keyframes pipeline-beam-vertical{0%{top:0}to{top:100%}}@media (width>=640px){@keyframes pipeline-beam-vertical{0%{top:50%;left:0}to{top:50%;left:100%}}}.pipeline-error-box,.pipeline-success-box{text-align:center;border-top:1px solid #94a3fd24;margin-top:24px;padding-top:20px}.pipeline-error-badge{letter-spacing:.05em;color:#fb7185;background:#f43f5e26;border:1px solid #f43f5e66;border-radius:999px;margin:0 0 8px;padding:3px 12px;font-size:.72rem;font-weight:800;display:inline-block}.pipeline-error-text{color:#e6e9f5bf;margin:0 0 16px;font-size:.85rem}.pipeline-error-actions{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.tabs{z-index:1;background:var(--glass-bg,#ffffff8c);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border-bottom:1px solid var(--glass-border,#fff9);gap:.25rem;padding:0 1.25rem;display:flex;position:relative;overflow-x:auto}.tab-button{color:#64748b;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;flex-shrink:0;padding:.75rem .875rem;font-size:.875rem}.tab-button.active{color:#d97706;border-bottom-color:#d97706;font-weight:500}.page-content{width:100%;min-width:0;max-width:720px;margin:0 auto;padding:1rem 1.25rem 6rem}.fab-container{z-index:40;flex-direction:column;align-items:flex-end;gap:.5rem;display:flex;position:fixed;bottom:1.25rem;right:1.25rem}.fab-menu{flex-direction:column;align-items:flex-end;gap:.5rem;display:flex}.fab-option{cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:999px;align-items:center;gap:.5rem;padding:.5rem .875rem;font-size:.875rem;display:flex;box-shadow:0 2px 8px #0000001f}.fab-main{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:999px;width:56px;height:56px;font-size:1.75rem;line-height:1;transition:transform .15s;box-shadow:0 4px 12px #2563eb66}.fab-backdrop{z-index:30;background:#0f172a26;position:fixed;inset:0}.modal-backdrop{z-index:50;background:#0f172a66;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}@media (width>=640px){.modal-backdrop{align-items:center}}.modal-panel{scrollbar-width:thin;scrollbar-color:#64748b59 transparent;background:#fff;border-radius:16px 16px 0 0;width:100%;max-width:480px;max-height:90vh;padding:1.25rem;overflow-y:auto}.modal-panel::-webkit-scrollbar{width:6px}.modal-panel::-webkit-scrollbar-track{background:0 0}.modal-panel::-webkit-scrollbar-thumb{background:#64748b59;border-radius:999px}@media (width>=640px){.modal-panel{border-radius:16px}}.modal-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.modal-header h2{margin:0;font-size:1.125rem}.modal-close{cursor:pointer;color:#64748b;background:0 0;border:none;font-size:1.25rem}.field{flex-direction:column;gap:.25rem;margin-bottom:.75rem;display:flex}.field label{color:#334155;font-size:.8125rem;font-weight:500}.field input,.field select,.field textarea{border:1px solid #cbd5e1;border-radius:8px;padding:.5rem .625rem;font-size:.9375rem}.form-actions{background:linear-gradient(#fff0,#fff 40%);gap:.5rem;margin-top:1rem;margin-bottom:-1.25rem;padding:.75rem 0 1.25rem;display:flex;position:sticky;bottom:-1.25rem}.btn-primary{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;flex:1;padding:.625rem;font-weight:500}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:.625rem 1rem}.btn-danger-text{color:#e11d48;cursor:pointer;background:0 0;border:none;padding:0;font-size:.8125rem}.btn-danger{color:#fff;cursor:pointer;background:#e11d48;border:none;border-radius:8px;flex:1;padding:.625rem;font-weight:500}.btn-danger:disabled{opacity:.6;cursor:not-allowed}.confirm-backdrop{z-index:60;background:#0f172a66;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.confirm-panel{background:var(--glass-bg,#ffffffe6);width:100%;max-width:340px;-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);text-align:center;border-radius:16px;padding:1.5rem}.confirm-icon{color:#e11d48;background:#e11d481f;border-radius:999px;justify-content:center;align-items:center;width:44px;height:44px;margin-bottom:.875rem;display:inline-flex}.confirm-message{color:#1e293b;margin:0 0 1.25rem;font-size:.9375rem;line-height:1.5}.confirm-actions{gap:.625rem;display:flex}.empty-state{text-align:center;color:#94a3b8;padding:2rem 1rem;font-size:.875rem}.card-list{flex-direction:column;gap:.75rem;margin-bottom:1.5rem;display:flex}.card{background:var(--glass-bg,#ffffff8c);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);box-shadow:var(--glass-shadow,0 8px 32px 0 #1f268712, inset 0 0 0 1px #ffffff4d);border-left:4px solid #cbd5e1;border-radius:20px;padding:.875rem 1rem}.card-income{border-left-color:#16a34a}.card-expense{border-left-color:#e11d48}.card-receipt{border-left-color:#ea580c}.card-menu{border-left-color:#2563eb}.card-payable{border-left-color:#d97706}.card-paid{opacity:.6}.card-top{justify-content:space-between;align-items:center;margin-bottom:.375rem;font-size:.9375rem;font-weight:500;display:flex}.card-date{color:#94a3b8;font-size:.8125rem;font-weight:400}.card-channel,.card-store{font-weight:600}.card-items{flex-direction:column;gap:.25rem;margin:.5rem 0;padding:0;list-style:none;display:flex}.card-items li{color:#475569;justify-content:space-between;align-items:center;font-size:.875rem;display:flex}.item-excluded{opacity:.5;text-decoration:line-through}.item-toggle{cursor:pointer;align-items:center;gap:.375rem;display:flex}.card-note{color:#64748b;margin:.25rem 0;font-size:.8125rem}.card-bottom{border-top:1px dashed #e2e8f0;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.5rem;padding-top:.5rem;display:flex}.card-payer{color:#64748b;font-size:.8125rem}.card-bottom-actions{align-items:center;gap:.75rem;display:flex}.tag-category,.tag-personal,.tag-uncertain{vertical-align:middle;border-radius:999px;margin-left:.375rem;padding:.0625rem .375rem;font-size:.6875rem;display:inline-block}.tag-category{color:#64748b;background:#f1f5f9}.tag-personal{color:#92400e;background:#fef3c7}.tag-uncertain{color:#b91c1c;background:#fee2e2}.text-muted{color:#94a3b8}.section-heading{color:#475569;margin:1.25rem 0 .625rem;font-size:.9375rem}.page-hint{color:#94a3b8;margin:.25rem 0 1rem;font-size:.8125rem}.category-group{margin-bottom:1rem}.category-header{cursor:pointer;color:#1e293b;background:0 0;border:none;justify-content:space-between;align-items:center;width:100%;padding:.5rem 0;font-size:.9375rem;font-weight:600;display:flex}.category-count{color:#94a3b8;font-size:.75rem;font-weight:400}.row-list-card{padding:.25rem .875rem}.row-list{flex-direction:column;margin:.5rem 0;display:flex}.row-item{flex-wrap:wrap;align-items:center;gap:.75rem;padding:.75rem .25rem;display:flex}.row-item .row-main{min-width:120px}.row-item+.row-item{border-top:1px solid #f1f5f9}.row-item-muted{opacity:.55}.row-icon{color:#64748b;background:#f1f5f9;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:1.125rem;display:flex}.row-icon-income{color:#16a34a;background:#dcfce7}.row-icon-expense{color:#e11d48;background:#ffe4e6}.row-icon-receipt{color:#ea580c;background:#ffedd5}.row-icon-menu{background:var(--brand-gold-soft,#f59e0b24);color:var(--brand-gold-deep,#d97706)}.row-icon-payable{color:#d97706;background:#fef3c7}.row-icon input[type=checkbox]{cursor:pointer;accent-color:#d97706;width:20px;height:20px;transition:transform .15s cubic-bezier(.34,1.56,.64,1)}.row-icon input[type=checkbox]:active{transform:scale(.85)}@media (prefers-reduced-motion:reduce){.row-icon input[type=checkbox]{transition:none}}.row-main{flex-direction:column;flex:1;gap:.125rem;min-width:0;display:flex}.row-title{color:#1e293b;text-overflow:ellipsis;white-space:nowrap;align-items:center;min-width:0;font-size:.9375rem;font-weight:500;display:flex;overflow:hidden}.row-title:has(.tag-category,.tag-personal,.tag-uncertain){text-overflow:clip;white-space:normal;overflow:visible}.row-title:has(.tag-category,.tag-personal,.tag-uncertain)>:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.row-title .tag-category,.row-title .tag-personal,.row-title .tag-uncertain{flex-shrink:0}.row-subtitle{color:#94a3b8;font-size:.8125rem}.row-amount{color:#1e293b;white-space:nowrap;flex-shrink:0;font-size:.9375rem;font-weight:600}.row-amount-positive{color:#16a34a}.row-amount-negative{color:#e11d48}.row-trailing{flex-shrink:0;align-items:center;gap:.375rem;display:flex}.drag-handle{color:#64748b;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.125rem;display:flex}.drag-handle:active{cursor:grabbing}.drag-sort-row{transition:transform .15s,opacity .15s}.drag-sort-row.dragging{opacity:.5}.drag-sort-row.drag-over{transform:translateY(2px);box-shadow:inset 0 2px #d97706}.toggle-switch{width:40px;height:22px;display:inline-block;position:relative}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{cursor:pointer;background:#cbd5e1;border-radius:999px;transition:background .15s;position:absolute;inset:0}.toggle-slider:before{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;bottom:2px;left:2px}.toggle-switch input:checked+.toggle-slider{background:#16a34a}.toggle-switch input:checked+.toggle-slider:before{transform:translate(18px)}.summary-grid{grid-template-columns:repeat(3,1fr);gap:.625rem;margin-bottom:.5rem;display:grid}.summary-tile{background:var(--glass-bg,#ffffff8c);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);box-shadow:var(--glass-shadow,0 8px 32px 0 #1f268712, inset 0 0 0 1px #ffffff4d);border-radius:20px;flex-direction:column;gap:.25rem;padding:1rem .875rem;display:flex}.summary-label{color:#64748b;font-size:.75rem}.summary-value{color:#1e293b;font-size:1.375rem;font-weight:700}.summary-income .summary-value{color:var(--kpi-green,#10b981)}.summary-expense .summary-value{color:var(--kpi-rose,#f43f5e)}.summary-net-positive .summary-value{color:var(--kpi-green,#10b981)}.summary-net-negative .summary-value{color:var(--kpi-rose,#f43f5e)}.breakdown-list{flex-direction:column;gap:.5rem;margin-bottom:1rem;display:flex}.breakdown-row{background:#fff;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;padding:.625rem .875rem;font-size:.875rem;display:flex}.field-group-label{color:#334155;margin:.75rem 0 .375rem;font-size:.8125rem;font-weight:500}.item-row{grid-template-columns:1fr;gap:.375rem;margin-bottom:.5rem;display:grid}.item-row select,.item-row input{border:1px solid #cbd5e1;border-radius:8px;padding:.5rem .625rem;font-size:.875rem}.income-item-row{border-bottom:1px dashed #e2e8f0;margin-bottom:.875rem;padding-bottom:.875rem}.income-item-row:last-of-type{border-bottom:none;margin-bottom:0;padding-bottom:0}.item-row-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.item-row-qty-amount{grid-template-columns:1fr 1fr;gap:.375rem;display:grid}.item-row-mini-label{color:#94a3b8;flex-direction:column;gap:.125rem;font-size:.6875rem;display:flex}.item-row-mini-label input{color:#1e293b;font-size:.875rem}.item-row-number{color:#94a3b8;font-size:.75rem;font-weight:600}.receipt-item-row{border:1px solid #e2e8f0;border-radius:8px;margin-bottom:.5rem;padding:.625rem}.receipt-item-row-uncertain{background:#f59e0b0f;border-color:#f59e0b}.confidence-bar-track{background:#e2e8f0;border-radius:999px;width:100%;height:4px;margin-bottom:.5rem;overflow:hidden}.confidence-bar-fill{border-radius:999px;height:100%;transition:width .2s}@media (prefers-reduced-motion:reduce){.confidence-bar-fill{transition:none}}.receipt-total-mismatch{color:#92400e;background:#f59e0b14;border:1px solid #f59e0b;border-radius:8px;margin:.5rem 0;padding:.625rem .75rem;font-size:.8125rem;font-weight:500}.import-skipped-summary{margin:.5rem 0}.import-skipped-row{color:#92400e;background:#f59e0b14;border:1px solid #f59e0b;border-radius:8px;margin:.25rem 0;padding:.5rem .625rem;font-size:.8125rem}.import-preview-list{max-height:320px;margin:.5rem 0;overflow-y:auto}.import-preview-order{border:1px solid #e2e8f0;border-radius:8px;margin-bottom:.5rem;padding:.625rem}.import-uncertain-row{border-bottom:1px dashed #fecaca;padding:.5rem 0}.import-uncertain-select{background:#fff7f7;border:1px solid #fca5a5;border-radius:8px;width:100%;margin-top:.375rem;padding:.5rem;font-size:.8125rem}.import-uncertain-amount-field{margin-top:.5rem;margin-bottom:0}.import-uncertain-amount-field label{font-size:.75rem}.import-uncertain-actions{gap:.5rem;margin-top:.5rem;display:flex}.import-uncertain-actions button{flex:1}.item-row-sub{justify-content:space-between;align-items:center;gap:.5rem;margin-top:.375rem;display:flex}.item-row-sub select{border:1px solid #cbd5e1;border-radius:6px;padding:.375rem .5rem;font-size:.8125rem}.item-row-sub select.select-unselected{background:#fff7f7;border-color:#fca5a5}.btn-add-row{width:100%;margin-bottom:.5rem}.btn-sm{flex:none;min-height:44px;padding:.375rem .625rem;font-size:.8125rem}.payer-card{background:var(--glass-bg,#ffffff8c);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);box-shadow:var(--glass-shadow,0 8px 32px 0 #1f268712, inset 0 0 0 1px #ffffff4d);border-radius:20px;margin-bottom:1rem;padding:1rem}.payer-pending-total{color:#92400e;margin:.5rem 0 .75rem;font-size:.9375rem;font-weight:600}.btn-collapse{width:100%;margin-top:.25rem}.profile-summary{align-items:center;gap:.75rem;margin-bottom:1.25rem;display:flex}.shop-avatar{background:var(--brand-gradient,linear-gradient(135deg, #d97706, #f59e0b));color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.25rem;font-weight:600;display:flex}.shop-logo-img{object-fit:cover;background:#fff;border:1px solid #d9770626}.shop-logo-row{align-items:center;gap:.75rem;display:flex}.shop-logo-preview{object-fit:cover;background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:56px;height:56px;display:flex}.shop-logo-preview-empty{background:var(--brand-gradient,linear-gradient(135deg, #d97706, #f59e0b));color:#fff;font-size:1.5rem;font-weight:600}.profile-avatar-lg{background:var(--brand-gradient,linear-gradient(135deg, #d97706, #f59e0b));color:#fff;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.25rem;font-weight:600;display:flex}.profile-email{color:#334155;word-break:break-all;font-size:.9375rem}.profile-success{color:#16a34a;margin:.25rem 0;font-size:.875rem}.profile-logout{text-align:center;border-top:1px solid #e2e8f0;width:100%;margin-top:1rem;padding-top:.75rem}.settings-tabs{border-bottom:1px solid #e2e8f0;gap:.25rem;margin-bottom:1rem;display:flex}.settings-tab{color:#64748b;cursor:pointer;white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;padding:.5rem .75rem;font-size:.8125rem}.settings-tab.active{color:#d97706;border-bottom-color:#d97706;font-weight:500}.settings-list{margin-bottom:1rem}.settings-list-row{border-bottom:1px solid #f1f5f9;align-items:center;gap:.625rem;padding:.625rem 0;display:flex}.settings-list-row span{flex:1;font-size:.9375rem}.settings-add-row{margin-top:.5rem}.settings-add-inline{gap:.5rem;display:flex}.settings-add-inline input{border:1px solid #cbd5e1;border-radius:8px;flex:1;min-height:44px;padding:.5rem .625rem;font-size:.9375rem}.settings-list-row-editable{gap:.5rem}.settings-category-label-input{border:1px solid #cbd5e1;border-radius:8px;flex:1;min-width:0;min-height:40px;padding:.375rem .5rem;font-size:.9375rem}.settings-category-order-input{text-align:center;border:1px solid #cbd5e1;border-radius:8px;width:56px;min-height:40px;padding:.375rem;font-size:.9375rem}.overview-header-row{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.overview-header-row h2{margin:0}.quick-scan-wrapper{position:relative}.quick-scan-menu{z-index:20;background:var(--glass-bg,#ffffffe6);min-width:180px;-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);border-radius:12px;flex-direction:column;display:flex;position:absolute;top:calc(100% + .375rem);right:0;overflow:hidden;box-shadow:0 8px 24px #1f268726}.quick-scan-menu button{text-align:left;cursor:pointer;background:0 0;border:none;min-height:44px;padding:.625rem .875rem;font-size:.875rem}.quick-scan-menu button:hover{background:#d9770614}.quick-scan-menu button+button{border-top:1px solid #e2e8f099}.ai-limits-usage-card{background:var(--glass-bg,#ffffff8c);border:1px solid var(--glass-border,#fff9);border-radius:12px;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:.875rem 1rem;display:flex}.ai-limits-usage-label{color:#7c3a3a;font-size:.8125rem}.ai-limits-usage-value{color:#451a03;font-size:1.25rem;font-weight:700}.ambient-bg{z-index:-1;pointer-events:none;position:fixed;inset:0;overflow:hidden}.ambient-blob{filter:blur(60px);will-change:transform;opacity:.55;border-radius:50%;position:absolute}.ambient-blob-1{background:radial-gradient(circle, var(--brand-gold,#f59e0b) 0%, var(--brand-gold,#f59e0b) 40%, transparent 72%);width:60vw;min-width:460px;height:60vw;min-height:460px;animation:26s ease-in-out infinite ambient-drift-1;top:-18%;left:-16%}.ambient-blob-2{background:radial-gradient(circle, var(--brand-red,#e11d48) 0%, var(--brand-red,#e11d48) 40%, transparent 72%);opacity:.4;width:54vw;min-width:420px;height:54vw;min-height:420px;animation:32s ease-in-out infinite ambient-drift-2;bottom:-20%;right:-14%}.ambient-blob-3{opacity:.4;background:radial-gradient(circle,#fb923c 0% 40%,#0000 72%);width:46vw;min-width:360px;height:46vw;min-height:360px;animation:28s ease-in-out infinite ambient-drift-3;top:32%;left:55%}@keyframes ambient-drift-1{0%,to{transform:translate(0)scale(1)}50%{transform:translate(6%,8%)scale(1.08)}}@keyframes ambient-drift-2{0%,to{transform:translate(0)scale(1)}50%{transform:translate(-8%,-6%)scale(1.1)}}@keyframes ambient-drift-3{0%,to{transform:translate(-50%,-50%)scale(1)}50%{transform:translate(-56%,-44%)scale(.92)}}@media (prefers-reduced-motion:reduce){.ambient-blob{animation:none}}.gradient-heading{background:linear-gradient(135deg,#d97706,#f59e0b);color:#0000;-webkit-background-clip:text;background-clip:text}@keyframes stagger-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.stagger-in{animation:.42s cubic-bezier(.16,1,.3,1) both stagger-in}@media (prefers-reduced-motion:reduce){.stagger-in{animation:none}}.summary-tile{transition:transform .2s cubic-bezier(.16,1,.3,1),box-shadow .2s;position:relative;overflow:hidden}.summary-tile:before{content:"";pointer-events:none;background:linear-gradient(160deg,#ffffff2e,#fff0 60%);position:absolute;inset:0}.summary-tile:hover{transform:translateY(-2px);box-shadow:0 10px 24px #0f172a1a}.card,.payer-card{transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s,border-color .18s}.card:hover,.payer-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px #0f172a14}.breakdown-row{transition:transform .18s cubic-bezier(.16,1,.3,1),box-shadow .18s}.breakdown-row:hover{transform:translate(2px);box-shadow:0 4px 12px #0f172a0f}@media (prefers-reduced-motion:reduce){.summary-tile,.card,.payer-card,.breakdown-row{transition:none}}.app-header{position:relative;box-shadow:0 1px #0f172a0a}.app-header:after{content:"";background:linear-gradient(90deg,#d97706,#f59e0b,#0000 80%);height:2px;position:absolute;bottom:-1px;left:0;right:0}.tabs{position:relative}.tab-button{transition:color .18s;position:relative}.tab-button.active:after{content:"";background:linear-gradient(90deg,#d97706,#f59e0b);border-radius:2px;height:2px;animation:.22s cubic-bezier(.16,1,.3,1) tab-underline;position:absolute;bottom:-1px;left:.875rem;right:.875rem}@keyframes tab-underline{0%{opacity:0;transform:scaleX(.3)}to{opacity:1;transform:scaleX(1)}}.fab-main{background:linear-gradient(135deg,#d97706,#f59e0b);transition:transform .26s cubic-bezier(.34,1.56,.64,1),box-shadow .2s;position:relative}.fab-main:before{content:"";z-index:-1;opacity:0;background:linear-gradient(135deg,#d9770666,#f59e0b66);border-radius:999px;animation:2.4s ease-out infinite fab-pulse;position:absolute;inset:-6px}@keyframes fab-pulse{0%{opacity:.5;transform:scale(.85)}70%{opacity:0;transform:scale(1.35)}to{opacity:0;transform:scale(1.35)}}.fab-main:active{transform:scale(.92)}.fab-main.open{transform:rotate(45deg)}.fab-option{transition:transform .15s,box-shadow .15s;animation:.2s cubic-bezier(.16,1,.3,1) both fab-option-in}.fab-option:hover{transform:translate(-2px);box-shadow:0 4px 14px #0f172a2e}@keyframes fab-option-in{0%{opacity:0;transform:translateY(6px)scale(.95)}to{opacity:1;transform:translateY(0)scale(1)}}@media (prefers-reduced-motion:reduce){.fab-main:before,.fab-option{animation:none}}.hero-number-card{background:var(--glass-bg,#ffffff8c);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);box-shadow:var(--glass-shadow,0 8px 32px 0 #1f268712, inset 0 0 0 1px #ffffff4d);border-radius:24px;margin-bottom:1rem;padding:1.5rem 1.5rem 1.75rem;position:relative;overflow:hidden}.hero-number-label{color:var(--ink-soft,#92400e);align-items:center;gap:.375rem;margin-bottom:.25rem;font-size:.8125rem;display:flex}.hero-number-value{letter-spacing:-.02em;font-size:2.5rem;font-weight:700;line-height:1.1}.hero-number-positive{color:var(--kpi-green,#10b981)}.hero-number-negative{color:var(--kpi-rose,#f43f5e)}@media (width<=380px){.hero-number-value{font-size:2rem}}.bento-grid{grid-template-columns:repeat(2,1fr);gap:.625rem;margin-bottom:1rem;display:grid}.trend-chart{width:100%;margin:.75rem 0 .25rem}.bar-chart{width:100%}.chart-tooltip{background:var(--glass-bg,#ffffffd9);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border:1px solid var(--glass-border,#fff9);border-radius:12px;flex-direction:column;gap:.125rem;padding:.5rem .75rem;font-size:.8125rem;display:flex;box-shadow:0 8px 24px #1f26871f}.chart-tooltip-label{color:#94a3b8;font-size:.75rem}.chart-tooltip-value{color:#1e293b}.btn-primary,.btn-secondary,.logout-button{transition:transform .15s,box-shadow .15s,background-color .15s}.btn-primary:active:not(:disabled),.btn-secondary:active,.logout-button:active{transform:scale(.97)}.btn-primary{background:linear-gradient(135deg,#d97706,#f59e0b)}.btn-primary:hover:not(:disabled){box-shadow:0 4px 14px #d977064d}@media (prefers-reduced-motion:reduce){.btn-primary,.btn-secondary,.logout-button{transition:none}}.toggle-slider{transition:background .2s}.toggle-slider:before{transition:transform .22s cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion:reduce){.toggle-slider,.toggle-slider:before{transition:none}}@keyframes modal-in{0%{opacity:0;transform:translateY(16px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-panel{animation:.24s cubic-bezier(.16,1,.3,1) modal-in}@keyframes modal-backdrop-in{0%{opacity:0}to{opacity:1}}.modal-backdrop{animation:.18s modal-backdrop-in}.confirm-panel{animation:.15s cubic-bezier(.16,1,.3,1) modal-in}.confirm-backdrop{animation:.15s modal-backdrop-in}@media (prefers-reduced-motion:reduce){.modal-panel,.modal-backdrop,.confirm-panel,.confirm-backdrop{animation:none}}.app-loading{color:#64748b;justify-content:center;align-items:center;min-height:100vh;display:flex}.login-screen{background:linear-gradient(160deg,#fef2f2 0%,#fff7ed 45%,#fef2f2 100%);justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex;position:relative;overflow:hidden}.login-screen:before,.login-screen:after{content:"";filter:blur(60px);z-index:0;border-radius:50%;position:absolute}.login-screen:before{background:radial-gradient(circle,#f59e0b59,#f59e0b00 70%);width:420px;height:420px;top:-140px;left:-120px}.login-screen:after{background:radial-gradient(circle,#e11d4847,#e11d4800 70%);width:380px;height:380px;bottom:-160px;right:-100px}.login-form{z-index:1;-webkit-backdrop-filter:blur(24px)saturate(180%);background:#fff9;border:1px solid #ffffff80;border-radius:20px;flex-direction:column;gap:.5rem;width:100%;max-width:320px;padding:2rem;display:flex;position:relative;box-shadow:0 8px 32px #451a031f,inset 0 1px #fff9}.login-form h1{color:#451a03;margin:0;font-size:1.5rem}.login-subtitle{color:#92400e;margin:0 0 1rem;font-size:.875rem}.login-form label{color:#451a03;font-size:.875rem;font-weight:500}.login-form input{color:#1c1917;background:#ffffffb3;border:1px solid #d4d4d8;border-radius:10px;min-height:44px;margin-bottom:.5rem;padding:.625rem .75rem;font-size:1rem;transition:border-color .2s,box-shadow .2s}.login-form input:focus{border-color:#d97706;outline:none;box-shadow:0 0 0 3px #f59e0b2e}.login-form button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#d97706,#f59e0b);border:none;border-radius:10px;min-height:44px;margin-top:.75rem;padding:.625rem .75rem;font-size:1rem;font-weight:500;transition:transform .15s,box-shadow .15s}.login-form button:hover:not(:disabled){box-shadow:0 4px 14px #d9770659}.login-form button:disabled{opacity:.6;cursor:not-allowed}.login-error{color:#e11d48;margin:.25rem 0;font-size:.875rem}@media (prefers-reduced-motion:reduce){.login-form button{transition:none}}.auth-overlay{z-index:50;background:linear-gradient(160deg,#fef2f2 0%,#fff7ed 45%,#fef2f2 100%);justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.auth-overlay-panel{-webkit-backdrop-filter:blur(24px)saturate(180%);background:#fff9;border:1px solid #ffffff80;border-radius:20px;flex-direction:column;align-items:center;gap:.75rem;width:100%;max-width:320px;padding:2rem;display:flex;box-shadow:0 8px 32px #451a031f,inset 0 1px #fff9}.auth-overlay-label{color:#92400e;margin:0;font-size:.875rem}.auth-overlay-hash{font-family:var(--mono,ui-monospace, Consolas, monospace);letter-spacing:.15em;color:#451a03;margin:0;font-size:1.125rem}.auth-overlay-track{background:#451a031a;border-radius:999px;width:100%;height:8px;overflow:hidden}.auth-overlay-fill{background:linear-gradient(90deg,#22c55e,#4ade80);border-radius:999px;height:100%}.auth-overlay-success{flex-direction:column;align-items:center;gap:.5rem;animation:.22s cubic-bezier(.34,1.56,.64,1) auth-success-pop;display:flex}.auth-overlay-success-text{letter-spacing:.08em;color:#16a34a;margin:0;font-weight:600}.auth-overlay-check{stroke-dasharray:20;stroke-dashoffset:20px;animation:.22s forwards auth-check-draw}@keyframes auth-check-draw{to{stroke-dashoffset:0}}@keyframes auth-success-pop{0%{opacity:0;transform:scale(.85)}to{opacity:1;transform:scale(1)}}@media (prefers-reduced-motion:reduce){.auth-overlay-fill{transition:none}.auth-overlay-check,.auth-overlay-success{stroke-dashoffset:0;animation:none}}.app-shell{background:0 0;min-width:0;min-height:100vh;position:relative}.app-header{z-index:1;background:var(--glass-bg,#ffffff8c);-webkit-backdrop-filter:var(--glass-blur,blur(16px) saturate(180%));border-bottom:1px solid var(--glass-border,#fff9);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex;position:relative}.app-header h1{text-align:left;margin:0;font-size:1.125rem}.app-subtitle{color:#64748b;text-align:left;margin:0;font-size:.8125rem}.header-identity{text-align:left;align-items:center;gap:.625rem;min-width:0;display:flex}.header-identity span:last-child{min-width:0;overflow:hidden}.header-identity h1,.header-identity p{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header-avatar{flex-shrink:0}.header-actions{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.header-rpd-badge{color:#64748b;cursor:pointer;background:#64748b14;border:1px solid #64748b33;border-radius:999px;flex-shrink:0;align-items:center;height:40px;padding:0 .625rem;font-size:.75rem;font-weight:600;transition:box-shadow .15s,transform .15s;display:flex}.header-rpd-badge:hover{box-shadow:0 4px 12px #64748b2e}.header-rpd-badge:active{transform:scale(.94)}.header-rpd-badge-warn{color:#e11d48;background:#e11d4814;border-color:#e11d484d}.header-user-avatar{background:var(--brand-gradient,linear-gradient(135deg, #f59e0b, #d97706));color:#fff;cursor:pointer;border:1px solid #f59e0b33;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:.9375rem;font-weight:600;transition:box-shadow .15s,transform .15s;display:flex}.header-user-avatar:hover{box-shadow:0 4px 12px #f59e0b38}.header-user-avatar:active{transform:scale(.94)}@media (prefers-reduced-motion:reduce){.header-user-avatar,.header-rpd-badge{transition:none}}.header-icon-button{color:#92400e;cursor:pointer;background:#fff9;border:1px solid #f59e0b33;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;transition:transform .15s,box-shadow .15s,color .15s;display:flex}.header-icon-button:hover{color:#d97706;box-shadow:0 4px 12px #f59e0b38}.header-icon-button:active{transform:scale(.94)}@media (prefers-reduced-motion:reduce){.header-icon-button{transition:none}}.app-main{z-index:1;padding:1.25rem;position:relative}.app-footer{text-align:center;color:#94a3b8;margin-top:2rem;padding:1rem 0 5.5rem;font-size:.75rem}
