:root{--background:#fff;--foreground:#352338;--card:#fff;--card-foreground:#352338;--popover:#fff;--popover-foreground:#352338;--primary:#702b82;--primary-foreground:#fff;--secondary:#f2e8ee;--secondary-foreground:#702b82;--muted:#f2e8ee;--muted-foreground:#755469;--accent:#f2e8ee;--accent-foreground:#702b82;--destructive:#b73542;--border:#f2e8ee;--input:#e6d8e1;--ring:#a54671;--radius:1rem}*{box-sizing:border-box;touch-action:pan-x pan-y}html{background:#eee6eb;color:#352338;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-size:16px;-webkit-text-size-adjust:100%}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #c19a51;outline-offset:3px}button{border:0;background:none}svg{flex-shrink:0}a{color:inherit;text-decoration:none}.phone{max-width:520px;min-height:100dvh;margin:auto;background:#fcf8f5;padding-bottom:115px;box-shadow:0 0 80px #53294f12}.header{padding:25px 24px 22px;display:flex;justify-content:space-between;align-items:center;background:#fcf8f5}.brand{display:flex;align-items:center;gap:10px;color:#702b82}.brand>svg{background:#702b82;color:#f4dca3;border-radius:11px;width:42px;height:42px;padding:10px}.brand b{font-size:21px;letter-spacing:2px}.brand span{display:block;font-size:12px;font-weight:400;color:#755469;letter-spacing:3px;margin-top:2px}.role{font-size:12px;background:#f2e8ee;color:#613650;padding:7px 10px;border-radius:20px;display:flex;align-items:center;gap:5px}.content{padding:8px 24px 24px}.heading{display:flex;align-items:center;justify-content:space-between;margin:14px 0 22px}.eyebrow{font-size:12px;letter-spacing:2px;color:#826879;margin:0 0 8px}h1{font-size:28px;font-weight:650;letter-spacing:-.8px;margin:0}h2{font-size:18px;font-weight:650;margin:0}h3{font-size:18px;font-weight:600}.hero{background:#702b82;color:#fff;border-radius:24px;padding:24px;position:relative;overflow:hidden}.hero>p{font-size:14px;color:#f1ddea;margin:0 0 10px}.hero>p>span{float:right;color:#f0c876;font-size:18px}.hero>strong{font-size:46px;font-weight:550;letter-spacing:-1.5px;line-height:1.2;display:block;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.hero>strong>span{font-size:30px;color:#ead1e7}.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #ffffff24;margin-top:23px;padding-top:18px;gap:8px}.hero-stats>div{font-size:12px;color:#e9d4e3}.hero-stats b{display:block;color:#fff;font-size:16px;margin-top:5px;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.period{display:flex;align-items:center;gap:7px;font-size:13px;color:#755469;padding:16px 1px}.section-title{display:flex;align-items:center;justify-content:space-between;margin:20px 0 14px}.section-title>span{font-size:12px;color:#826879}.empty{border:1px dashed #e6d8e1;border-radius:20px;padding:34px 16px;text-align:center;background:#fdfaf8;color:#826879}.empty>svg{margin:0 auto 14px;color:#755469}.empty h3{color:#613650;margin:12px 0}.empty p{font-size:14px;line-height:1.9;margin:0 0 20px}.primary{background:#702b82;color:#fff;border-radius:13px;padding:14px 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;font-size:16px;font-weight:550}.bottom{position:fixed;bottom:0;left:50%;transform:translate(-50%);width:min(100%,520px);background:#fffffff5;border-top:1px solid #f2e8ee;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);display:flex;align-items:center;justify-content:space-around;padding:12px 20px calc(12px + env(safe-area-inset-bottom));z-index:20}.bottom button{font-size:12px;color:#826879;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:60px;min-height:45px}.bottom button svg{width:21px}.bottom .add{flex-direction:row;gap:8px;color:#fff;background:#702b82;border-radius:17px;padding:15px 29px;font-size:16px;margin-top:-16px;border:5px solid #fcf8f5;min-height:62px;box-shadow:0 4px 12px #702b8220}@media(max-width:360px){.header{padding:20px 16px}.content{padding:8px 16px 24px}.hero{padding:21px}.hero>strong{font-size:38px}}@media(min-width:650px){.phone{border-left:1px solid #e6d8e1;border-right:1px solid #e6d8e1}}.icon-btn{width:44px;height:44px;border:1px solid #e6d8e1;border-radius:50%;display:grid;place-items:center;color:#755469;background:#fdfaf8}.section-title small{font-size:12px;background:#f2e8ee;border-radius:7px;padding:3px 7px;margin-left:5px;font-weight:500;color:#755469}.filters{display:flex;gap:10px;margin-bottom:16px;align-items:center}.search{display:flex;gap:8px;align-items:center;border:1px solid #e6d8e1;background:#fff;border-radius:12px;padding:10px 12px;flex:1;min-width:0;color:#826879}.search input{border:0;outline:0;min-width:0;width:100%;font-size:16px;background:none}.person-filter{min-width:108px!important;background:#fff;height:46px!important;border-radius:12px!important;font-size:14px!important}.entries{border:1px solid #e6d8e1;border-radius:18px;overflow:hidden;background:#fff}.entry{display:flex;gap:12px;width:100%;text-align:left;padding:19px 16px;border-bottom:1px solid #f2e8ee}.entry:last-child{border:0}.entry:active{background:#f2e8ee}.avatar{width:38px;height:38px;flex-shrink:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;color:#613650}.entry-main{flex:1;min-width:0}.entry-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.entry-top b{font-size:15px;font-weight:550;overflow-wrap:anywhere}.entry-top strong{font-size:20px;font-weight:550;letter-spacing:-.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:70%}.entry-meta{display:flex;justify-content:space-between;gap:5px;font-size:12px;color:#826879;margin-top:4px}.entry-note{font-size:14px;color:#755469;line-height:1.6;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.net-line{font-size:12px;color:#826879;margin:6px 0 0}.list-end{color:#826879;text-align:center;font-size:12px;margin:20px 0}.continue{width:100%;border:1px dashed #9b8093;border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:center;gap:8px;color:#755469;font-size:14px}.settle-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:22px 0 0;color:#613650;font-size:14px}.back{display:flex;align-items:center;font-size:13px;color:#755469;margin-bottom:14px;width:100%}.back span{margin-left:auto;font-size:12px;color:#826879}.ledger-dialog{border-radius:24px!important;max-height:92dvh!important;overflow-y:auto;padding:25px!important;gap:12px!important;max-width:480px!important;width:calc(100% - 24px)!important}.ledger-dialog [data-slot=dialog-title]{font-size:21px;line-height:1.4}.ledger-dialog [data-slot=dialog-description]{font-size:13px;line-height:1.7;padding-right:12px}.ledger-dialog [data-slot=dialog-close]{width:36px;height:36px;display:grid;place-items:center;top:12px;right:12px}.kind-tabs{width:100%!important;height:46px!important;background:#f2e8ee!important;margin:8px 0 22px}.kind-tabs button{font-size:16px!important}.kind-tabs [data-state=active]{background:#fff!important;color:#702b82!important}.amount-label{font-size:14px;color:#826879}.amount-input{display:flex;align-items:center;gap:12px;border-bottom:1px solid #e6d8e1;margin:4px 0 22px;padding-bottom:12px}.amount-input span{font-size:29px;color:#755469}.amount-input input{font-size:44px;width:100%;min-width:0;outline:0;border:0;color:#613650;letter-spacing:-1px;font-weight:550;background:none}.field-label{display:block;font-size:14px;font-weight:550;margin:18px 0 8px;color:#613650}.field-label>span{font-size:12px;font-weight:400;color:#826879;margin-left:8px}.field-label input,.field-label textarea,.inline-form input{width:100%;border:1px solid #e6d8e1;background:#fdfaf8;border-radius:11px;padding:12px 13px;margin-top:9px;font-size:16px;min-width:0;outline-color:#826879;min-height:46px;color:#613650;line-height:1.5}.field-label textarea{resize:vertical}.people-options{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.people-options button,.people-options>span{background:#f2e8ee;border:1px solid #e6d8e1;border-radius:10px;padding:11px 16px;font-size:14px;min-height:44px}.people-options .chosen{background:#f2e8ee;color:#613650;border-color:#826879;box-shadow:0 0 0 1px #826879}.date-field{display:flex;align-items:center;gap:12px}.date-field button{font-size:13px;white-space:nowrap;color:#755469;padding-top:9px}.full{width:100%;margin-top:10px}.secondary{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 15px;min-height:47px;background:#f2e8ee;border:1px solid #e6d8e1;border-radius:13px;color:#613650}.form-actions{margin-top:20px}.summary-list{display:grid;gap:12px}.person-summary{background:#fff;border:1px solid #e6d8e1;border-radius:18px;padding:18px}.person-heading{display:flex;align-items:center;gap:10px}.person-heading>div{flex:1;min-width:0}.person-heading b{font-size:15px}.person-heading>div>span{font-size:12px;color:#826879;display:block;margin-top:3px}.person-heading strong{font-size:20px;font-weight:550;overflow-wrap:anywhere;max-width:60%;font-variant-numeric:tabular-nums}.person-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}.person-stats span{color:#826879;font-size:12px}.person-stats b{display:block;color:#613650;font-size:14px;margin-top:4px;overflow-wrap:anywhere}.text-button{margin:14px 0 -5px auto;display:flex;align-items:center;gap:3px;font-size:12px;color:#755469;padding:6px}.hint{font-size:13px;line-height:1.8;color:#826879;margin:16px 0}.history-intro{font-size:14px;color:#826879;margin-bottom:22px}.history-card{width:100%;padding:20px;border:1px solid #e6d8e1;background:#fff;border-radius:18px;text-align:left;margin-bottom:14px}.history-date{display:flex;align-items:center;gap:10px}.history-date>svg{margin-left:auto}.closed-badge{display:flex;align-items:center;gap:3px;font-size:12px;color:#755469;background:#f2e8ee;padding:5px 7px;border-radius:7px}.history-card p{font-size:13px;color:#826879;margin:15px 0}.history-card>div:last-child{display:flex;justify-content:space-between;align-items:center}.history-card>div:last-child>span{font-size:12px;color:#826879}.history-card strong{font-size:22px;font-weight:550;letter-spacing:-.5px}.readonly{display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:#826879;margin-top:22px}.account{display:flex;gap:12px;align-items:center;padding:17px;background:#f2e8ee;border-radius:14px;margin-top:8px;color:#613650}.account p{font-size:13px;color:#755469;word-break:break-all;margin:5px 0 0}.account b{font-size:14px}.inline-form{display:flex;gap:8px}.inline-form input{margin:0}.inline-form button{white-space:nowrap;padding:11px 16px}.reader-row{display:flex;align-items:center;gap:10px;font-size:13px;padding:10px 0;border-bottom:1px solid #e6d8e1}.reader-row span{word-break:break-all;flex:1}.reader-row button{font-size:13px;color:#755469;min-height:44px}.signout{text-align:center;display:block;padding:14px;font-size:14px;color:#826879}.detail-amount{font-size:38px;font-weight:550;color:#613650;padding:12px 0;overflow-wrap:anywhere}.detail-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:12px 0;border-top:1px solid #f2e8ee;color:#826879}.detail-row b{font-weight:500;color:#755469}.note-full{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;background:#f2e8ee;border-radius:13px;padding:18px;font-size:16px;margin:6px 0 12px;color:#755469;max-height:40vh;overflow:auto}.split-actions{display:flex;gap:10px}.split-actions>button{flex:1;padding:12px 5px;font-size:14px;border:1px solid #e6d8e1;border-radius:11px;color:#755469}.delete-button{font-size:14px;color:#755469;padding:12px}.confirm-total{background:#f2e8ee;padding:20px;border-radius:15px;display:flex;flex-direction:column;gap:8px}.confirm-total span{font-size:13px;color:#755469}.confirm-total strong{font-size:30px;font-weight:550}.spin{animation:spin 1.2s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:520px){.ledger-dialog{top:auto!important;bottom:0!important;left:0!important;transform:none!important;border-radius:24px 24px 0 0!important;width:100%!important;max-width:none!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;animation:none!important}.entry{padding:17px 13px;gap:10px}.entry-top strong{font-size:19px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.hero{background:linear-gradient(125deg,#59256e,#802d70 58%,#a5374d);box-shadow:0 10px 26px #702b8212;border:1px solid #ffffff18}.hero>strong{color:#fff9ed}.hero>p>span{color:#f0c876}.hero-stats{border-top-color:#edd6aa40}.brand>svg{background:linear-gradient(140deg,#702b82,#a5374d);color:#f4dca3}.primary,.bottom .add{background:linear-gradient(115deg,#762d83,#9b315f)}.primary:hover,.bottom .add:hover{filter:brightness(1.06)}.role{background:#f1e5ed;color:#783b71;border:1px solid #e5d1df}.role svg{color:#a8752b}.income{color:#783583}.expense{color:#b34737}.avatar{color:#683c66}.people-options .chosen{background:#f1e4f1;color:#702b82;border-color:#ac74b1;box-shadow:0 0 0 1px #ac74b1}.kind-tabs [data-state=active]{color:#702b82!important}.amount-input input,.detail-amount{color:#702b82}.closed-badge{background:#f7eedb;color:#85612a}.confirm-total{background:#f5eaf1}.bottom button.active{color:#702b82}.hero-stats>div{color:#e9d4e3}.hero-stats b{color:#fff9ed}@media(max-width:520px){.ledger-dialog{translate:none!important}}.entry-meta>span,.detail-row>b{overflow-wrap:anywhere;min-width:0}.entry-meta>span:first-child{flex:1}.detail-row>b{text-align:right}.receipt-scan{margin:10px 0 17px}.scan-button{display:flex;align-items:center;gap:8px;width:100%;padding:14px 12px;border:1px dashed #c392bc;border-radius:12px;background:#faf3f9;color:#702b82;font-size:15px;font-weight:550}.scan-button>span{font-size:12px;font-weight:400;margin-left:auto;color:#927187}.scan-hint{font-size:12px;line-height:1.6;color:#89677d;margin:7px 2px}.scan-result{display:flex;gap:12px;padding:12px;background:#faf6f9;border-radius:12px;align-items:flex-start;margin-top:10px}.scan-result img{width:46px;height:78px;object-fit:cover;object-position:top;border:1px solid #e4d6e0;border-radius:5px}.scan-result>a{flex-shrink:0}.scan-result>div{min-width:0;flex:1}.scan-result p{font-size:13px;line-height:1.6;margin:0 0 7px;color:#77576f}.scan-result b{display:block;font-size:20px;color:#702b82}.scan-result span{display:block;font-size:13px;overflow-wrap:anywhere;color:#684360;margin-top:4px}.scan-result small{display:block;font-size:12px;line-height:1.7;color:#977b8f;margin-top:6px}.scan-cancel{display:block;margin:5px auto 0;min-height:44px;font-size:14px;color:#8a506d}.chat-entry-button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;background:#f4e8f1;color:#783d72;border:1px solid #e6d2e1;border-radius:12px;font-size:14px;margin:4px 0 10px}.chat-draft{padding:16px;border:1px solid #e6d9e2;border-radius:14px;margin:12px 0;background:#fdfafc}.chat-draft-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:14px}.chat-draft-head span{color:#783d72}.chat-time{font-size:12px;color:#8c7584;margin:8px 0}.chat-note{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:12px 0;color:#644858}.chat-warning{font-size:13px;color:#975424;line-height:1.7;padding:10px;background:#faf0df;border-radius:8px;margin-bottom:12px}.image-intake{border:1px dashed #bd86b4;border-radius:13px;background:#faf3f9;transition:background .15s,border-color .15s}.image-intake.dragging{background:#eddaef;border:2px solid #8b3883}.image-intake .scan-button{border:0;background:transparent}.image-intake-tools{padding:0 12px 12px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}.image-intake-tools>span{font-size:12px;line-height:1.6;color:#8a667f}.image-intake-tools>button{display:inline-flex;align-items:center;gap:6px;color:#79336f;font-size:14px;border:1px solid #dfc8da;background:#fff;border-radius:9px;padding:9px 12px;min-height:44px}.export-images{display:grid;gap:20px}.export-images img{display:block;width:100%;height:auto;border:1px solid #eadde5;margin-top:12px;border-radius:8px;-webkit-touch-callout:default;-webkit-user-select:auto;user-select:auto}.export-images .primary{font-size:15px}:root{--background:#f7f9fb;--foreground:#243746;--card:#ffffff;--card-foreground:#243746;--popover:#ffffff;--popover-foreground:#243746;--primary:#183b56;--primary-foreground:#ffffff;--secondary:#e9f1f5;--secondary-foreground:#183b56;--muted:#eef3f6;--muted-foreground:#6d7d88;--accent:#fff0e6;--accent-foreground:#a85032;--destructive:#d95d39;--border:#dce7ed;--input:#d5e2e9;--ring:#4f9da6}html{background:#e9f0ef;color:#20333b}.phone,.header{background:#f8faf9}.phone{box-shadow:0 0 80px #0f4c5c18}.brand{color:#0f4c5c}.brand>svg{background:linear-gradient(140deg,#0f4c5c,#176d78);color:#f0c477}.brand span{color:#6d7f84}.role{background:#e8f0ef;color:#0f4c5c;border-color:#cbdedb}.role svg{color:#b4772f}.eyebrow,.section-title>span,.period,.entry-meta,.history-intro,.hint,.readonly{color:#6d7f84}.hero{background:linear-gradient(125deg,#0b3d4a,#0f5a6a 64%,#1c7880);box-shadow:0 10px 26px #0f4c5c18}.hero>p{color:#d7e8e6}.hero>p>span{color:#f0c477}.hero>strong{color:#fffaf0}.hero>strong>span{color:#dcecea}.hero-stats>div{color:#c8dddc}.hero-stats b{color:#fffaf0}.empty{border-color:#cbdedb;background:#fbfdfc;color:#6d7f84}.empty>svg{color:#2d7b85}.empty h3{color:#244b54}.primary,.bottom .add{background:linear-gradient(115deg,#0f4c5c,#176d78)}.bottom button.active,.amount-input input,.detail-amount{color:#0f4c5c}.bottom .add{border-color:#f8faf9;box-shadow:0 4px 12px #0f4c5c22}.icon-btn{border-color:#d5e2e0;color:#39707a;background:#fbfdfc}.section-title small{background:#e8f0ef;color:#39707a}.search,.entries,.person-summary,.history-card{border-color:#d9e4e2}.search{color:#6d7f84}.entry{border-bottom-color:#e8f0ef}.entry:active{background:#edf5f3}.avatar{color:#245965}.income{color:#176a5b}.expense{color:#b4533f}.entry-note{color:#506c73}.net-line{color:#6d8a84}.people-options button,.people-options>span{background:#e8f0ef;border-color:#d5e2e0}.people-options .chosen{background:#e0eeeb;color:#0f4c5c;border-color:#4c9394;box-shadow:0 0 0 1px #4c9394}.kind-tabs{background:#e8f0ef!important}.kind-tabs [data-state=active]{color:#0f4c5c!important}.field-label{color:#31545d}.field-label>span{color:#7b8d91}.field-label input,.field-label textarea,.inline-form input{border-color:#d5e2e0;background:#fbfdfc;color:#31545d;outline-color:#4c9394}.secondary{background:#e8f0ef;border-color:#d5e2e0;color:#0f4c5c}.person-heading strong,.history-card strong{color:#20333b}.person-stats span,.history-card p,.history-card>div:last-child>span{color:#6d7f84}.person-stats b{color:#31545d}.closed-badge{background:#f4ead8;color:#825625}.account{background:#e8f0ef;color:#31545d}.account p{color:#6d7f84}.reader-row{border-color:#d9e4e2}.reader-row button,.signout,.text-button,.delete-button{color:#a05e35}.detail-row{border-top-color:#e8f0ef;color:#6d7f84}.detail-row b{color:#31545d}.note-full,.confirm-total{background:#edf5f3;color:#506c73}.confirm-total span{color:#6d7f84}.chat-entry-button{background:#e8f0ef;color:#0f4c5c;border-color:#cbdedb}.chat-draft{border-color:#d5e2e0;background:#fbfdfc}.chat-draft-head span,.scan-result b{color:#0f4c5c}.chat-time,.scan-hint{color:#6d7f84}.chat-note{color:#31545d}.image-intake{border-color:#7caeb0;background:#eef6f5}.image-intake.dragging{background:#dcecea;border-color:#2d7b85}.scan-button{border-color:#7caeb0;background:transparent;color:#0f4c5c}.scan-button>span,.image-intake-tools>span{color:#6d7f84}.scan-result{background:#eef6f5}.scan-result img{border-color:#cbdedb}.scan-result p,.scan-result span{color:#506c73}.image-intake-tools>button{color:#0f4c5c;border-color:#cbdedb}.chat-warning{color:#825625;background:#f4ead8}.export-images .primary{background:linear-gradient(115deg,#0f4c5c,#176d78)}html{background:#eaf1f5;color:#243746}.phone,.header{background:#fbfcfd}.phone{box-shadow:0 0 80px #183b5618}.brand{color:#183b56}.brand>svg{background:linear-gradient(140deg,#183b56,#2d6474);color:#ffd6a8}.brand span,.eyebrow,.section-title>span,.period,.entry-meta,.history-intro,.hint,.readonly{color:#6d7d88}.role{background:#e9f1f5;color:#244f68;border-color:#cddfe8}.role svg{color:#d17a48}.hero{background:linear-gradient(125deg,#183b56,#245875 62%,#4f9da6);box-shadow:0 10px 26px #183b5618}.hero>p{color:#d8e8ee}.hero>p>span{color:#ffd08a}.hero>strong{color:#fffaf4}.hero>strong>span{color:#dcecf0}.hero-stats>div{color:#c6dce5}.hero-stats b{color:#fffaf4}.empty{border-color:#cddfe8;background:#fcfdfe;color:#6d7d88}.empty>svg{color:#4f9da6}.empty h3{color:#244f68}.primary,.bottom .add{background:linear-gradient(115deg,#183b56,#2d6474)}.bottom button.active,.amount-input input,.detail-amount{color:#183b56}.bottom .add{border-color:#fbfcfd;box-shadow:0 4px 12px #183b5622}.icon-btn{border-color:#d5e2e9;color:#397184;background:#fcfdfe}.section-title small{background:#e9f1f5;color:#397184}.search,.entries,.person-summary,.history-card{border-color:#dce7ed}.entry{border-bottom-color:#e9f1f5}.entry:active{background:#eef5f7}.avatar{color:#24566c}.income{color:#258a78}.expense{color:#d95d39}.entry-note{color:#536b77}.people-options button,.people-options>span{background:#e9f1f5;border-color:#d5e2e9}.people-options .chosen{background:#e0edf2;color:#183b56;border-color:#4f9da6;box-shadow:0 0 0 1px #4f9da6}.kind-tabs{background:#e9f1f5!important}.kind-tabs [data-state=active]{color:#183b56!important}.field-label{color:#31566b}.field-label>span{color:#7c8c95}.field-label input,.field-label textarea,.inline-form input{border-color:#d5e2e9;background:#fcfdfe;color:#31566b;outline-color:#4f9da6}.secondary{background:#e9f1f5;border-color:#d5e2e9;color:#183b56}.person-heading strong,.history-card strong{color:#243746}.person-stats span,.history-card p,.history-card>div:last-child>span{color:#6d7d88}.person-stats b{color:#31566b}.closed-badge{background:#fff0e6;color:#a85032}.account{background:#e9f1f5;color:#31566b}.account p{color:#6d7d88}.reader-row{border-color:#dce7ed}.reader-row button,.signout,.text-button,.delete-button{color:#b85f3b}.detail-row{border-top-color:#e9f1f5;color:#6d7d88}.detail-row b{color:#31566b}.note-full,.confirm-total{background:#eef5f7;color:#536b77}.confirm-total span{color:#6d7d88}.chat-entry-button{background:#e9f1f5;color:#183b56;border-color:#cddfe8}.chat-draft{border-color:#d5e2e9;background:#fcfdfe}.chat-draft-head span,.scan-result b{color:#183b56}.chat-time,.scan-hint{color:#6d7d88}.chat-note{color:#31566b}.image-intake{border-color:#7fb7be;background:#eef7f8}.image-intake.dragging{background:#dceef0;border-color:#4f9da6}.scan-button{border-color:#7fb7be;background:transparent;color:#183b56}.scan-button>span,.image-intake-tools>span{color:#6d7d88}.scan-result{background:#eef7f8}.scan-result img{border-color:#cddfe8}.scan-result p,.scan-result span{color:#536b77}.image-intake-tools>button{color:#183b56;border-color:#cddfe8}.chat-warning{color:#a85032;background:#fff0e6}.export-images .primary{background:linear-gradient(115deg,#183b56,#2d6474)}:root{--background:#f4f8ff;--foreground:#1e293b;--card:#ffffff;--card-foreground:#1e293b;--popover:#ffffff;--popover-foreground:#1e293b;--primary:#2563eb;--primary-foreground:#ffffff;--secondary:#e8f0ff;--secondary-foreground:#1d4ed8;--muted:#eef4ff;--muted-foreground:#64748b;--accent:#e0ecff;--accent-foreground:#1d4ed8;--destructive:#4f46e5;--border:#dbe7f7;--input:#ceddf2;--ring:#60a5fa}html{background:#e8f0fb;color:#1e293b}.phone,.header{background:#f8fbff}.phone{box-shadow:0 0 80px #1d4ed81a}.brand{color:#1d4ed8}.brand>svg{background:linear-gradient(140deg,#1d4ed8,#2563eb);color:#bfdbfe}.brand span,.eyebrow,.section-title>span,.period,.entry-meta,.history-intro,.hint,.readonly{color:#64748b}.role{background:#e8f0ff;color:#1d4ed8;border-color:#c8dbf5}.role svg{color:#60a5fa}.hero{background:linear-gradient(125deg,#172554,#1d4ed8 62%,#38bdf8);box-shadow:0 10px 26px #1d4ed81c}.hero>p{color:#dbeafe}.hero>p>span{color:#bfdbfe}.hero>strong{color:#fff}.hero>strong>span{color:#dbeafe}.hero-stats>div{color:#bfdbfe}.hero-stats b{color:#fff}.empty{border-color:#c8dbf5;background:#fbfdff;color:#64748b}.empty>svg{color:#60a5fa}.empty h3{color:#1e40af}.primary,.bottom .add{background:linear-gradient(115deg,#1d4ed8,#2563eb)}.bottom button.active,.amount-input input,.detail-amount{color:#1d4ed8}.bottom .add{border-color:#f8fbff;box-shadow:0 4px 12px #1d4ed82b}.icon-btn{border-color:#ceddf2;color:#3b82f6;background:#fbfdff}.section-title small{background:#e8f0ff;color:#3b82f6}.search,.entries,.person-summary,.history-card{border-color:#dbe7f7}.entry{border-bottom-color:#e8f0ff}.entry:active{background:#eef5ff}.avatar{color:#1e40af}.income{color:#0f766e}.expense{color:#b4233b}.entry-note{color:#475569}.people-options button,.people-options>span{background:#e8f0ff;border-color:#ceddf2}.people-options .chosen{background:#dbeafe;color:#1d4ed8;border-color:#60a5fa;box-shadow:0 0 0 1px #60a5fa}.kind-tabs{background:#e8f0ff!important}.kind-tabs [data-state=active]{color:#1d4ed8!important}.field-label{color:#1e40af}.field-label>span{color:#718096}.field-label input,.field-label textarea,.inline-form input{border-color:#ceddf2;background:#fbfdff;color:#1e40af;outline-color:#60a5fa}.secondary{background:#e8f0ff;border-color:#ceddf2;color:#1d4ed8}.person-heading strong,.history-card strong{color:#1e293b}.person-stats span,.history-card p,.history-card>div:last-child>span{color:#64748b}.person-stats b{color:#1e40af}.closed-badge{background:#e0ecff;color:#1d4ed8}.account{background:#e8f0ff;color:#1e40af}.account p{color:#64748b}.reader-row{border-color:#dbe7f7}.reader-row button,.signout,.text-button,.delete-button{color:#315fbb}.detail-row{border-top-color:#e8f0ff;color:#64748b}.detail-row b{color:#1e40af}.note-full,.confirm-total{background:#eef5ff;color:#475569}.confirm-total span{color:#64748b}.chat-entry-button{background:#e8f0ff;color:#1d4ed8;border-color:#c8dbf5}.chat-draft{border-color:#ceddf2;background:#fbfdff}.chat-draft-head span,.scan-result b{color:#1d4ed8}.chat-time,.scan-hint{color:#64748b}.chat-note{color:#1e40af}.image-intake{border-color:#7db7ed;background:#eef6ff}.image-intake.dragging{background:#dbeafe;border-color:#3b82f6}.scan-button{border-color:#7db7ed;background:transparent;color:#1d4ed8}.scan-button>span,.image-intake-tools>span{color:#64748b}.scan-result{background:#eef6ff}.scan-result img{border-color:#c8dbf5}.scan-result p,.scan-result span{color:#475569}.image-intake-tools>button{color:#1d4ed8;border-color:#c8dbf5}.chat-warning{color:#1d4ed8;background:#e0ecff}.export-images .primary{background:linear-gradient(115deg,#1d4ed8,#2563eb)}.avatar{color:#123b68!important;border:1px solid #93c5fd;box-shadow:inset 0 0 0 1px #ffffff80}.people-options button,.people-options>span{font-weight:550}.people-options button:nth-child(1),.people-options>span:nth-child(1){background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.people-options button:nth-child(2),.people-options>span:nth-child(2){background:#cffafe;border-color:#67e8f9;color:#0e7490}.people-options button:nth-child(3),.people-options>span:nth-child(3){background:#e0e7ff;border-color:#a5b4fc;color:#4338ca}.people-options button:nth-child(4),.people-options>span:nth-child(4){background:#e0f2fe;border-color:#7dd3fc;color:#0369a1}.person-summary:nth-child(1){background:linear-gradient(135deg,#fff,#eff6ff);border-left:4px solid #60a5fa}.person-summary:nth-child(2){background:linear-gradient(135deg,#fff,#ecfeff);border-left:4px solid #22d3ee}.person-summary:nth-child(3){background:linear-gradient(135deg,#fff,#eef2ff);border-left:4px solid #818cf8}.person-summary:nth-child(4){background:linear-gradient(135deg,#fff,#f0f9ff);border-left:4px solid #38bdf8}.person-summary:nth-child(5){background:linear-gradient(135deg,#fff,#f5f3ff);border-left:4px solid #a78bfa}.people-options button:nth-child(1),.people-options>span:nth-child(1){background:#fee2e2;border-color:#fca5a5;color:#b91c1c}.people-options button:nth-child(2),.people-options>span:nth-child(2){background:#ffedd5;border-color:#fdba74;color:#c2410c}.people-options button:nth-child(3),.people-options>span:nth-child(3){background:#fef9c3;border-color:#facc15;color:#a16207}.people-options button:nth-child(4),.people-options>span:nth-child(4){background:#dcfce7;border-color:#86efac;color:#15803d}.people-options button:nth-child(5),.people-options>span:nth-child(5){background:#ede9fe;border-color:#c4b5fd;color:#6d28d9}.person-summary:nth-child(1){background:linear-gradient(135deg,#fff,#fff1f2);border-left-color:#ef4444}.person-summary:nth-child(2){background:linear-gradient(135deg,#fff,#fff7ed);border-left-color:#f97316}.person-summary:nth-child(3){background:linear-gradient(135deg,#fff,#fefce8);border-left-color:#eab308}.person-summary:nth-child(4){background:linear-gradient(135deg,#fff,#f0fdf4);border-left-color:#22c55e}.person-summary:nth-child(5){background:linear-gradient(135deg,#fff,#f5f3ff);border-left-color:#8b5cf6}.people-options button:nth-child(1),.people-options>span:nth-child(1){background:#e83b36;border-color:#c92d2a;color:#fff}.people-options button:nth-child(2),.people-options>span:nth-child(2){background:#43b56d;border-color:#2f9957;color:#fff}.people-options button:nth-child(3),.people-options>span:nth-child(3){background:#ffca05;border-color:#e0aa00;color:#fff}.people-options button:nth-child(4),.people-options>span:nth-child(4){background:#d9368b;border-color:#b92772;color:#fff}.people-options .chosen{box-shadow:0 0 0 2px #2563eb!important}.person-summary:nth-child(1){background:linear-gradient(135deg,#fff,#fff1f0);border-left-color:#e83b36}.person-summary:nth-child(2){background:linear-gradient(135deg,#fff,#effaf2);border-left-color:#43b56d}.person-summary:nth-child(3){background:linear-gradient(135deg,#fff,#fffbea);border-left-color:#ffca05}.person-summary:nth-child(4){background:linear-gradient(135deg,#fff,#fff0f8);border-left-color:#d9368b}.people-options button:nth-child(1),.people-options>span:nth-child(1),.people-options button:nth-child(2),.people-options>span:nth-child(2),.people-options button:nth-child(3),.people-options>span:nth-child(3),.people-options button:nth-child(4),.people-options>span:nth-child(4),.people-options button:nth-child(5),.people-options>span:nth-child(5){color:#fff!important;text-shadow:0 1px 1px #0002}.people-options .chosen,.avatar{color:#fff!important}.auth-card{background:#fff;border:1px solid #dbe7f7;border-radius:20px;padding:24px;margin-top:8px;box-shadow:0 12px 35px #1d4ed80d}.auth-icon{width:48px;height:48px;border-radius:15px;background:#dbeafe;color:#1d4ed8;display:grid;place-items:center}.auth-card h3{margin:16px 0 6px;color:#1e3a8a}.auth-card>p{margin:0 0 18px;color:#64748b;font-size:14px;line-height:1.7}.auth-card label{display:block;font-size:13px;font-weight:600;color:#334155;margin:13px 0}.auth-card input{display:block;width:100%;min-height:48px;border:1px solid #ceddf2;border-radius:12px;background:#fbfdff;padding:11px 13px;margin-top:7px;font-size:16px;outline-color:#60a5fa}.auth-message{padding:10px 12px;border-radius:10px;background:#eef5ff;color:#1d4ed8;font-size:13px;line-height:1.6;margin:12px 0}.auth-switch{display:block;width:100%;color:#2563eb;font-size:14px;padding:14px 5px 2px}.account-manager{margin-top:24px}.employee-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e8f0ff;padding:12px 0}.employee-row>div{min-width:0;flex:1}.employee-row b{display:block;font-size:14px}.employee-row span{display:block;color:#64748b;font-size:12px;margin-top:4px}.employee-row button{color:#1d4ed8;background:#e8f0ff;border-radius:9px;padding:9px 12px;font-size:13px}.signout{width:100%}.chat-head-amount{display:inline-flex;align-items:center;color:#1d4ed8;font-weight:600;padding:4px 2px;margin:-4px -2px;border-radius:6px}.chat-head-amount:active{background:#dbeafe}.chat-copy-amount{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;min-width:112px;min-height:44px;margin:2px 0 8px;padding:10px 13px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1d4ed8;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.chat-copy-amount:active{background:#dbeafe;transform:scale(.98)}.chat-copy-amount:focus-visible,.chat-head-amount:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}.chat-float-button{position:fixed;right:max(16px,calc((100vw - 520px)/2 + 16px));bottom:calc(92px + env(safe-area-inset-bottom));z-index:19;display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;padding:0 16px;border:1px solid #ffffff70;border-radius:25px;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;font-size:14px;font-weight:600;box-shadow:0 9px 25px #1d4ed842}.chat-float-button b{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:11px;background:#fff;color:#1d4ed8;font-size:11px;line-height:1}.chat-float-button:active{transform:scale(.96);box-shadow:0 5px 15px #1d4ed83d}.chat-float-button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}@media(max-width:360px){.chat-float-button{right:12px;padding:0 13px}.chat-float-button span{display:none}}.bottom{left:0;right:0;width:100%;max-width:520px;margin-left:auto;margin-right:auto;transform:none}body[data-scroll-locked] .bottom{right:var(--removed-body-scroll-bar-size,0px)}.chat-text-input{min-height:210px;white-space:pre-wrap;line-height:1.65;resize:vertical}.chat-text-actions{margin-top:10px}.chat-text-actions>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px}.chat-text-actions>button:last-child{border-color:#93c5fd;background:#e8f0ff;color:#1d4ed8;font-weight:600}.alias-manager{margin-top:26px;padding-top:4px;border-top:1px solid #e8f0ff}.alias-manager h3{margin-bottom:0}.alias-manager>.hint{margin:8px 0 12px}.alias-form{display:grid;grid-template-columns:1fr 120px;gap:8px}.alias-form input,.alias-form select{width:100%;min-width:0;min-height:46px;border:1px solid #ceddf2;border-radius:11px;background:#fbfdff;padding:10px 12px;color:#1e3a8a;font-size:14px}.alias-form .primary{grid-column:1/-1;width:100%;font-size:14px}.alias-list{margin-top:12px;border:1px solid #dbe7f7;border-radius:12px;overflow:hidden}.alias-row{display:flex;align-items:center;gap:10px;padding:11px 12px;border-bottom:1px solid #e8f0ff;background:#fff}.alias-row:last-child{border-bottom:0}.alias-row>span{min-width:0;flex:1}.alias-row b{display:block;font-size:13px;overflow-wrap:anywhere}.alias-row small{display:block;margin-top:4px;color:#64748b}.alias-row button{display:grid;place-items:center;width:42px;height:42px;color:#64748b;border-radius:9px}.alias-row button:active{background:#eef4ff}@media(max-width:380px){.alias-form{grid-template-columns:1fr}.alias-form .primary{grid-column:auto}}.audit-viewer{margin-top:24px;padding-top:12px;border-top:1px solid #e8f0ff}.audit-list{max-height:430px;overflow:auto;margin-top:12px;border:1px solid #dbe7f7;border-radius:13px;background:#fff}.audit-row{padding:12px;border-bottom:1px solid #e8f0ff}.audit-row:last-child{border-bottom:0}.audit-row>div{display:flex;align-items:center;justify-content:space-between;gap:8px}.audit-row b{font-size:13px;color:#1e3a8a}.audit-row span{font-size:11px;padding:3px 7px;border-radius:10px;background:#dcfce7;color:#15803d}.audit-row span.audit-failed{background:#fee2e2;color:#b91c1c}.audit-row p{margin:6px 0 4px;font-size:12px;color:#475569;overflow-wrap:anywhere}.audit-row small{display:block;color:#94a3b8;font-size:11px}.entries .expense-entry{background:#fff1f2}.entries .expense-entry:active{background:#ffe4e6}.rebate-badge,.rebate-net{display:inline-block;width:max-content;border-radius:7px;background:#ffe4e6!important;color:#b4233b!important;padding:4px 8px}.rebate-net{margin-top:9px}.entries .entry{-webkit-user-select:none;user-select:none}.reorder-selected{display:flex;align-items:center;gap:9px;padding:14px;border:1px solid #dbe7f7;border-radius:12px;background:#eef5ff;color:#1e40af}.reorder-selected span{font-weight:650}.reorder-selected b{margin-left:auto;font-size:14px}.reorder-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reorder-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:50px;padding:10px;border:1px solid #ceddf2;border-radius:12px;background:#fff;color:#1d4ed8;font-size:14px}.reorder-actions button:active{background:#dbeafe}.reorder-actions button:disabled{background:#f8fafc;color:#94a3b8}.reorder-actions svg{width:18px}.entries .located-entry{position:relative;z-index:1;animation:located-entry-pulse 2.6s ease both}@keyframes located-entry-pulse{0%,to{box-shadow:none}12%,72%{background:#dbeafe;box-shadow:inset 0 0 0 3px #3b82f6,0 8px 24px #2563eb22}}.profit-rule-note{margin-top:26px;padding:18px;border:1px solid #bfdbfe;border-radius:15px;background:#eff6ff;color:#334155}.profit-rule-note h3{margin:0 0 13px;color:#1e40af}.profit-rule-note p{margin:7px 0;font-size:13px;line-height:1.55}.profit-rule-note p b{color:#1d4ed8}.profit-rule-note>div{margin-top:14px;padding:12px;border-radius:10px;background:#dbeafe;color:#1e3a8a;font-size:13px;font-weight:600;line-height:1.7}.profit-rule-note>div span{color:#475569;font-weight:400}.entry-kind-filter{display:flex;gap:4px;padding:4px;margin-bottom:12px;border-radius:12px;background:#e8f0ff}.entry-kind-filter button{flex:1;min-width:0;min-height:44px;padding:8px 12px;border-radius:9px;font-size:14px;color:#64748b}.entry-kind-filter button[aria-pressed=true]{background:#fff;color:#1d4ed8;font-weight:600;box-shadow:0 1px 4px #1d4ed814}.entry-kind-filter button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.entry-summary{margin:0 0 20px;padding:18px;border:1px solid #dbe7f7;border-radius:20px;background:#fff;box-shadow:0 6px 24px #1d4ed80a}.entry-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.entry-summary-eyebrow{font-size:15px;font-weight:750;color:#1e293b}.entry-summary-heading p{margin:4px 0 0;font-size:12px;line-height:1.5;color:#64748b;overflow-wrap:anywhere}.entry-summary-total{flex-shrink:0;padding:6px 10px;border-radius:9px;background:#eff4ff;color:#536581;font-size:12px;white-space:nowrap}.entry-summary-total b{font-size:17px;color:#1d4ed8;font-variant-numeric:tabular-nums}.entry-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:12px}.entry-summary-card{min-width:0;padding:16px 14px 12px;border:1px solid #c6e9e1;border-radius:14px;background:linear-gradient(135deg,#e7f6ef,#f3fbf8);color:#0f766e}.entry-summary-card[data-kind=expense]{border-color:#dddafa;background:linear-gradient(135deg,#eeebff,#f7f6ff);color:#5145cd}.entry-summary-label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:650}.entry-summary-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:#d1eee3}.entry-summary-card[data-kind=expense] .entry-summary-icon{background:#e1dcff}.entry-summary-amount{display:flex;align-items:baseline;gap:4px;margin:15px 0 16px;font-size:clamp(22px,5.6vw,30px);font-weight:750;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:tabular-nums}.entry-summary-amount small{flex-shrink:0;font-size:14px;font-weight:600;letter-spacing:0}.entry-summary-amount>span{min-width:0;overflow-wrap:anywhere}.entry-summary-footer{display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding-top:10px;border-top:1px solid #0f766e20;font-size:11px;color:#52776f}.entry-summary-card[data-kind=expense] .entry-summary-footer{border-color:#5145cd20;color:#716991}.entry-summary-footer b{font-size:19px;font-weight:700;color:#0f766e;font-variant-numeric:tabular-nums}.entry-summary-card[data-kind=expense] .entry-summary-footer b{color:#5145cd}.entry-summary-card[data-kind=rebate]{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;border-color:#f1dfb7;background:linear-gradient(135deg,#fff7e7,#fffcf5);color:#9a5b0b}.entry-summary-card[data-kind=rebate] .entry-summary-icon{background:#f9e9c4}.entry-summary-card[data-kind=rebate] .entry-summary-amount{grid-column:1;margin:12px 0 0}.entry-summary-card[data-kind=rebate] .entry-summary-footer{grid-column:2;grid-row:1 / 3;display:flex;flex-direction:column;align-items:flex-end;gap:8px;border-top:0;border-left:1px solid #9a5b0b20;padding:4px 0 4px 16px;color:#8c744e}.entry-summary-card[data-kind=rebate] .entry-summary-footer b{color:#9a5b0b}.entry-summary-note{grid-column:1 / -1;margin:0;font-size:11px;line-height:1.7;color:#64748b}@media(max-width:380px){.entry-summary{padding:12px}.entry-summary-grid{gap:8px;grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr))}.entry-summary-card{padding:12px 10px}.entry-summary-amount{font-size:22px}}fieldset{border:0;padding:0;margin:0;min-width:0}input,textarea,select{color:inherit}h1,h2,h3,p{overflow-wrap:anywhere}.entry-body{flex:1;min-width:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.search-row{display:flex;gap:8px;margin:12px 0}.search-row input{min-width:0;flex:1}.search-row input,.search-row select{border:1px solid #e6d8e1;border-radius:12px;background:#fff;padding:12px}.kind-filters{display:flex;gap:8px;margin:12px 0}.kind-filters button{flex:1;border:1px solid #e6d8e1;border-radius:10px;padding:10px;color:#755469}.kind-filters .chosen{background:#702b82;color:#fff;border-color:#702b82}.entry-located{outline:3px solid #c19a51;outline-offset:2px}dialog.modal{position:fixed!important;inset:0!important;transform:none!important;translate:none!important;margin:auto!important;width:calc(100% - 32px)!important;max-width:470px!important;max-height:90dvh!important;height:fit-content;border:1px solid #e6d8e1!important;border-radius:24px!important;padding:24px!important;background:#fcf8f5;color:#352338;overflow-y:auto;box-shadow:0 24px 80px #35233844}dialog.modal::backdrop{background:#24152480;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.modal-head button{font-size:28px;min-width:44px;min-height:44px}.modal-head h2{font-size:21px}.toast{position:fixed;top:12px;left:50%;transform:translate(-50%);width:min(460px,calc(100% - 24px));z-index:10000;background:#352338;color:#fff;border-radius:14px;padding:14px;box-shadow:0 4px 20px #35233833;display:flex;gap:12px;align-items:center}.toast button{color:#f0c876;white-space:nowrap}.modal .toast{position:sticky;transform:none;left:auto;top:0;width:100%}.auth-message{overflow-wrap:anywhere}@media(max-width:520px){dialog.modal{inset:auto 0 0!important;width:100%!important;max-width:520px!important;border-radius:24px 24px 0 0!important;padding-bottom:calc(24px + env(safe-area-inset-bottom))!important}}.kind-filters .chosen{background:#1d4ed8;border-color:#1d4ed8}.kind-filters button{color:#475569}.kind-filters .chosen{color:#fff}.search-row input,.search-row select,.kind-filters button{border-color:#dbe5f4}dialog.modal{background:#f8fbff;color:#1e293b;border-color:#dbe5f4!important}.entry-located{outline-color:#3b82f6}.settle-link,.continue{color:#1d4ed8}.toast{background:#172554}.kind-filters .expense-option.chosen{background:#dc2626;border-color:#dc2626;color:#fff}.person-color-settings{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 18px}.person-color-setting{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #dbe5f4;border-radius:12px;background:#fff}.person-color-setting span{padding:10px 12px;border-radius:8px;font-size:14px;font-weight:600}.person-color-setting input[type=color]{width:44px;height:44px;padding:3px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;cursor:pointer}.person-color-setting input:disabled{cursor:wait;opacity:.6}.duplicate-notice,.duplicate-match{padding:12px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e40af;margin-bottom:10px}.duplicate-notice p,.duplicate-match p{margin:6px 0;overflow-wrap:anywhere}.duplicate-match b{font-size:14px}.duplicate-matches{max-height:35dvh;overflow:auto}.duplicate-strong{border:2px solid #e11d48;background:#fff1f2;color:#9f1239}
