:root{color:#1f2937;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;line-height:1.6}body{min-width:320px;min-height:100vh;margin:0}#root{min-height:100vh}.camera-capture{text-align:center;padding:2rem;animation:.5s ease-out slideInUp}.upload-options{flex-direction:column;gap:1rem;max-width:320px;margin:0 auto;animation:.6s ease-out .2s both fadeIn;display:flex}.upload-options .btn{width:100%;animation:.4s cubic-bezier(.34,1.56,.64,1) both slideInUp}.queue-info{background:linear-gradient(120deg,#ecfdf3 0%,#e0f7ed 100%);border:1px solid #bbf7d0;border-radius:12px;grid-template-columns:1fr auto;align-items:center;gap:.75rem;margin-top:1.25rem;padding:1rem;display:grid;box-shadow:0 6px 18px #0000000a}.queue-meta{align-items:center;gap:.75rem;display:flex}.queue-label{color:#047857;letter-spacing:.02em;font-weight:600}.queue-count{color:#fff;background:#10b981;border-radius:999px;justify-content:center;align-items:center;min-width:2.5rem;height:2.5rem;font-size:1rem;font-weight:700;display:inline-flex;box-shadow:0 4px 12px #10b98140}.queue-actions{flex-wrap:wrap;justify-content:flex-end;gap:.6rem;display:flex}.pill-btn{cursor:pointer;border:1px solid #0000;border-radius:999px;align-items:center;gap:.35rem;padding:.65rem 1rem;font-size:.95rem;font-weight:600;transition:transform .12s,box-shadow .12s,background-color .12s,border-color .12s;display:inline-flex}.pill-btn.primary{color:#fff;background:linear-gradient(135deg,#10b981,#059669);box-shadow:0 8px 16px #05966933}.pill-btn.primary:hover{transform:translateY(-1px);box-shadow:0 10px 20px #05966947}.pill-btn.primary:active{transform:translateY(0);box-shadow:0 6px 12px #0596692e}.pill-btn.ghost{color:#047857;background:#fff;border-color:#bbf7d0}.pill-btn.ghost:hover{background:#ecfdf3;border-color:#10b981}.pill-btn.ghost:active{background:#d1fae5}.ocr-tips{color:#155e75;background:#ecfeff;border:1px solid #a5f3fc;border-radius:8px;padding:.75rem 1rem}.ocr-tips ul{margin:0;padding-left:1rem}.camera-error{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:8px;margin-top:.5rem;padding:.5rem .75rem;font-size:.9rem}.upload-options .btn:first-child{animation-delay:.1s}.upload-options .btn:nth-child(2){animation-delay:.2s}.camera-container{flex-direction:column;align-items:center;gap:1rem;animation:.5s ease-out scaleIn;display:flex}.camera-container video{border:3px solid #10b981;border-radius:12px;width:100%;max-width:500px;animation:.5s ease-out fadeIn;box-shadow:0 8px 24px #10b9814d}.camera-controls{gap:1rem;animation:.4s ease-out slideInUp;display:flex}@media (max-width:768px){.camera-capture{padding:1rem .5rem}.camera-capture h2{margin-bottom:1rem;font-size:1.5rem}.upload-options{max-width:100%;padding:0 1rem}.camera-container video{border-width:2px;max-width:100%}.camera-controls{flex-direction:column;width:100%;max-width:300px}.camera-controls .btn{width:100%}}@media (max-width:640px){.queue-info{grid-template-columns:1fr}.queue-actions{justify-content:stretch}.pill-btn{justify-content:center;width:100%}}.participant-manager{padding:2rem;animation:.5s ease-out slideInUp}.participant-manager h2{color:#059669;text-align:center;margin-bottom:1.5rem;animation:.6s ease-out slideInDown}.add-participant{gap:.5rem;max-width:400px;margin:0 auto 1.5rem;animation:.6s ease-out .2s both fadeIn;display:flex}.add-participant input{border:2px solid #d1fae5;border-radius:8px;flex:1;padding:.75rem;font-size:1rem;transition:all .3s}.add-participant input:focus{border-color:#10b981;outline:none;transform:translateY(-2px);box-shadow:0 0 12px #10b9814d}.participants-list{flex-wrap:wrap;justify-content:center;gap:.75rem;max-width:600px;margin:0 auto;animation:.6s ease-out .3s both fadeIn;display:flex}.empty-state{text-align:center;color:#6b7280;font-style:italic;animation:.5s ease-out fadeIn}.participant-chip{background:#fff;border:2px solid;border-radius:20px;align-items:center;gap:.5rem;padding:.5rem 1rem;transition:all .3s cubic-bezier(.34,1.56,.64,1);animation:.4s ease-out scaleIn;display:flex}.participant-chip:hover{transform:scale(1.1)translateY(-2px);box-shadow:0 4px 12px #10b9814d}.participant-name{color:#1f2937;font-weight:500}.remove-btn{color:#ef4444;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:20px;height:20px;padding:0;font-size:1.2rem;transition:all .2s;display:flex}.remove-btn:hover{color:#dc2626;transform:rotate(90deg)scale(1.2)}.saved-names{text-align:center;max-width:600px;margin:1rem auto 0;animation:.5s ease-out .3s both slideInUp}.saved-label{color:#374151;margin-bottom:.5rem;font-size:.9rem;animation:.5s ease-out .4s both fadeIn}.saved-chips{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.saved-chip{cursor:pointer;color:#059669;background:#fff;border:1px solid #d1fae5;border-radius:16px;padding:.35rem .75rem;font-weight:500;transition:all .3s;animation:.4s ease-out scaleIn}.saved-chip:first-child{animation-delay:.4s}.saved-chip:nth-child(2){animation-delay:.45s}.saved-chip:nth-child(3){animation-delay:.5s}.saved-chip:hover{background:#ecfdf3;border-color:#10b981;transform:scale(1.08)translateY(-2px);box-shadow:0 2px 8px #10b98133}.item-assignment{padding:2rem;animation:.5s ease-out slideInUp}.item-assignment h2{color:#059669;text-align:center;margin-bottom:1.5rem;animation:.6s ease-out slideInDown}.add-item{flex-wrap:wrap;gap:.5rem;max-width:600px;margin:0 auto 2rem;animation:.6s ease-out .2s both fadeIn;display:flex}.items-summary{color:#065f46;background:#ecfdf3;border:1px solid #d1fae5;border-radius:10px;justify-content:space-between;align-items:center;max-width:800px;margin:0 auto 1.25rem;padding:.75rem 1rem;font-weight:600;animation:.5s ease-out .2s both slideInUp;display:flex;box-shadow:0 2px 8px #10b9811a}.unassigned-warning{color:#9a3412;text-align:center;background:#fff7ed;border:2px solid #fdba74;border-radius:10px;max-width:800px;margin:0 auto 1.25rem;padding:.875rem 1rem;font-weight:600;animation:.4s ease-out slideInUp;box-shadow:0 2px 8px #fb923c33}.add-item input[type=text]{border:2px solid #d1fae5;border-radius:8px;flex:2;min-width:200px;padding:.75rem;font-size:1rem;transition:all .3s}.add-item input[type=number]{border:2px solid #d1fae5;border-radius:8px;flex:1;min-width:100px;padding:.75rem;font-size:1rem;transition:all .3s}.add-item .qty-input{text-align:center;flex:.6;min-width:80px}.add-item input:focus{border-color:#10b981;outline:none;box-shadow:0 0 12px #10b9814d}.items-list{grid-template-columns:repeat(auto-fit,minmax(300px,340px));grid-auto-rows:1fr;justify-content:center;gap:1rem;max-width:1080px;margin:0 auto;animation:.6s ease-out .3s both fadeIn;display:grid}.item-card{background:#fff;border:2px solid #d1fae5;border-radius:12px;flex-direction:column;min-height:180px;padding:1rem;transition:all .3s cubic-bezier(.34,1.56,.64,1);animation:.4s ease-out scaleIn;display:flex;box-shadow:0 2px 8px #0000000d}.item-card:hover{border-color:#10b981;transform:translateY(-4px);box-shadow:0 8px 20px #10b98133}.item-header{grid-template-columns:1fr 80px 110px 36px;align-items:center;gap:.5rem;margin-bottom:1rem;animation:.4s ease-out slideInUp;display:grid}.item-description-input{border:1px solid #e5e7eb;border-radius:6px;width:100%;padding:.5rem;font-size:1rem;font-weight:500;transition:all .2s}.item-description-input:focus{border-color:#10b981;outline:none;box-shadow:0 0 8px #10b98133}.item-price-input{color:#059669;text-align:right;border:1px solid #e5e7eb;border-radius:6px;width:100%;padding:.5rem;font-size:1rem;font-weight:600;transition:all .2s}.item-price-input:focus{border-color:#10b981;outline:none;box-shadow:0 0 8px #10b98133}.item-qty-input{color:#111827;text-align:center;border:1px solid #e5e7eb;border-radius:6px;width:100%;padding:.5rem;font-size:1rem;font-weight:600;transition:all .2s}.item-qty-input:focus{border-color:#10b981;outline:none;box-shadow:0 0 8px #10b98133}.item-line-total{color:#065f46;align-items:center;gap:.35rem;margin:.25rem 0 .75rem;font-weight:600;display:flex}.line-qty-note{color:#059669;font-weight:600}.item-card .remove-btn{cursor:pointer;color:#6b7280;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;transition:all .2s;animation:.3s ease-out fadeIn;display:inline-flex}.item-card .remove-btn:hover{color:#ef4444;background:#f3f4f6;transform:scale(1.2)rotate(90deg)}.item-participants{flex-direction:column;gap:.5rem;animation:.4s ease-out .1s both slideInUp;display:flex}.assign-label{color:#6b7280;font-size:.875rem;font-weight:500}.participant-buttons{flex-wrap:wrap;gap:.5rem;display:flex}.participant-btn{cursor:pointer;background:#fff;border:2px solid;border-radius:20px;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .3s cubic-bezier(.34,1.56,.64,1);animation:.3s ease-out scaleIn}.participant-btn:hover{transform:scale(1.1)translateY(-2px);box-shadow:0 4px 12px #00000026}.participant-btn.assigned{font-weight:600;box-shadow:0 4px 12px #10b9814d}.shared-badge{color:#10b981;align-self:flex-start;font-size:.75rem;font-weight:600;animation:.3s ease-out slideInUp}@media (max-width:768px){.items-list{grid-template-columns:1fr}.item-header{grid-template-columns:1fr 80px 110px 36px}}.results{background:#f0fdf4;border-radius:12px;padding:2rem;animation:.5s ease-out slideInUp}.results h2{color:#059669;text-align:center;margin-bottom:1.5rem;animation:.6s ease-out slideInDown}.additional-charges{flex-wrap:wrap;justify-content:center;gap:1rem;max-width:400px;margin:0 auto 2rem;animation:.6s ease-out .2s both fadeIn;display:flex}.charge-input{flex-direction:column;gap:.25rem;animation:.4s ease-out slideInUp;display:flex}.charge-input input{border:2px solid #d1fae5;border-radius:8px;width:120px;padding:.5rem;font-size:1rem;transition:all .3s}.charge-input input:focus{border-color:#10b981;outline:none;transform:translateY(-2px);box-shadow:0 0 12px #10b9814d}.charge-hint{color:#6b7280;font-size:.8rem}.charge-actions{align-items:flex-end;animation:.5s ease-out .2s both slideInUp;display:flex}.totals-list{flex-direction:column;gap:1rem;max-width:600px;margin:0 auto;display:flex}.total-card{background:#fff;border:2px solid #10b981;border-radius:12px;padding:1.5rem;transition:all .3s;animation:.4s ease-out scaleIn;box-shadow:0 4px 12px #10b9811a}.total-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #10b98133}.items-breakdown{border-bottom:2px solid #d1fae5;margin-bottom:1.5rem;padding-bottom:1rem}.items-breakdown .section-label{color:#6b7280;text-transform:uppercase;margin:0 0 .75rem;font-size:.875rem;font-weight:600}.items-list{flex-direction:column;gap:.5rem;display:flex}.item-row{background:#f9fafb;border-left:3px solid #10b981;border-radius:6px;justify-content:space-between;align-items:center;padding:.65rem;font-size:.9rem;animation:.3s ease-out slideInUp;display:flex}.item-info{flex:1;align-items:center;gap:.5rem;display:flex}.item-description{color:#374151;font-weight:500}.item-quantity{color:#047857;background:#ecfdf3;border-radius:6px;padding:.15rem .5rem;font-size:.8rem;font-weight:700}.item-prices{align-items:center;gap:.4rem;font-weight:600;display:flex}.item-total{color:#059669;font-size:.95rem}.item-divider{color:#d1fae5;margin:0 .2rem}.item-share{color:#10b981;font-size:.9rem}.total-card h3{color:#059669;margin-bottom:1rem;font-size:1.25rem;animation:.4s ease-out slideInDown}.total-breakdown{flex-direction:column;gap:.5rem;display:flex}.breakdown-row{justify-content:space-between;font-size:1rem;display:flex}.breakdown-row.minor{color:#6b7280;font-size:.875rem}.breakdown-row.total{color:#059669;border-top:2px solid #d1fae5;margin-top:.5rem;padding-top:.75rem;font-size:1.25rem;font-weight:700}.grand-total{color:#fff;background:#10b981;border-radius:12px;justify-content:space-between;margin-top:1rem;padding:1.5rem;font-size:1.5rem;font-weight:700;display:flex}.grand-total .grand-total-values{flex-direction:column;align-items:flex-end;gap:.2rem;display:flex}.grand-total .expected{opacity:.9;font-size:.9rem}.grand-total.error{color:#b91c1c;background:#fef2f2;border:2px solid #fecdd3}.mismatch-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecdd3;border-radius:10px;margin-top:.75rem;padding:.75rem 1rem;font-weight:600}.edit-total{flex-direction:column;gap:.35rem;margin-top:.5rem;display:flex}.edit-total input{border:2px solid #d1fae5;border-radius:8px;padding:.5rem}.edit-total input:focus{border-color:#10b981;outline:none}.finish-row{justify-content:flex-end;margin-top:1rem;display:flex}@media (max-width:768px){.results{padding:1rem .5rem}.results h2{font-size:1.5rem}.results-grid{grid-template-columns:1fr;gap:1rem;padding:0 .5rem}.total-card{padding:1rem}.total-card h3{font-size:1.1rem}.item-row{flex-direction:column;align-items:flex-start;gap:.5rem}.split-item-prices{text-align:right;width:100%}.total-breakdown{font-size:.875rem}.finish-row{justify-content:stretch}.finish-row .btn{width:100%}}.auth-container{background:linear-gradient(135deg,#d1fae5 0%,#f0fdf4 100%);justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.auth-card{background:#fff;border-radius:12px;width:100%;max-width:400px;padding:2rem;box-shadow:0 20px 60px #10b98126}.auth-header{text-align:center;margin-bottom:2rem}.auth-header h1{color:#10b981;margin:0 0 .5rem;font-size:2rem}.auth-header p{color:#6b7280;margin:0;font-size:.9rem}.auth-tabs{border-bottom:2px solid #f3f4f6;gap:1rem;margin-bottom:1.5rem;display:flex}.tab{color:#9ca3af;cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;flex:1;margin-bottom:-2px;padding:.75rem;font-weight:600;transition:all .3s}.tab.active{color:#10b981;border-bottom-color:#10b981}.auth-form{flex-direction:column;gap:1rem;margin-bottom:1.5rem;display:flex}.form-group{flex-direction:column;gap:.5rem;display:flex}.form-group input:focus{border-color:#10b981;outline:none;box-shadow:0 0 0 3px #10b9811a}.auth-error{color:#991b1b;background:#fee2e2;border-left:4px solid #dc2626;border-radius:8px;padding:.75rem 1rem;font-size:.9rem}.auth-info{color:#065f46;background:#ecfdf3;border-left:4px solid #10b981;border-radius:8px;margin-bottom:.75rem;padding:.75rem 1rem;font-size:.9rem}.auth-inline{flex-wrap:wrap;align-items:center;gap:1rem;margin:.5rem 0 1rem;display:flex}.link-btn{color:#10b981;cursor:pointer;background:0 0;border:none;padding:0;font-weight:600;text-decoration:underline}.link-btn:disabled{color:#9ca3af;cursor:not-allowed;text-decoration:none}.btn{cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;min-height:48px;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;transition:all .3s cubic-bezier(.34,1.56,.64,1);display:inline-flex}.btn-primary{color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%);width:100%;box-shadow:0 4px 12px #10b9814d}.auth-divider{text-align:center;color:#9ca3af;margin:1.5rem 0;position:relative}.auth-divider:before,.auth-divider:after{content:"";background:#e5e7eb;width:45%;height:1px;position:absolute;top:50%}.auth-divider:before{left:0}.auth-divider:after{right:0}.social-login{gap:1rem;margin-bottom:1.5rem;display:flex}.social-btn{color:#374151;cursor:pointer;background:#fff;border:2px solid #e5e7eb;border-radius:8px;flex:1;padding:.75rem;font-weight:600;transition:all .3s}.social-btn:hover:not(:disabled){background:#f0fdf4;border-color:#10b981}.social-btn:disabled{opacity:.5;cursor:not-allowed}.auth-note{text-align:center;color:#9ca3af;margin:0;font-size:.9rem}@media (max-width:600px){.auth-card{padding:1.5rem}.auth-header h1{font-size:1.5rem}}.pricing-container{background:linear-gradient(135deg,#d1fae5 0%,#f0fdf4 100%);flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:2rem 1rem;display:flex}.pricing-header{text-align:center;margin-bottom:3rem}.pricing-header h2{color:#059669;margin:0 0 .5rem;font-size:2.5rem;font-weight:700}.pricing-header p{color:#6b7280;margin:0;font-size:1.1rem}.pricing-grid{grid-template-columns:1fr 1fr;gap:2rem;width:100%;max-width:900px;margin-bottom:2rem;display:grid}.pricing-card{background:#fff;border-radius:1rem;flex-direction:column;padding:2rem;transition:transform .3s,box-shadow .3s;display:flex;position:relative;box-shadow:0 10px 30px #10b9811a}.pricing-card:hover{transform:translateY(-4px);box-shadow:0 20px 40px #10b98126}.pricing-card.pro{border:2px solid #10b981;transform:scale(1.05)}.pricing-card.pro.active{background:linear-gradient(135deg,#f0fdf4 0%,#d1fae5 100%)}.pricing-badge{color:#fff;letter-spacing:.05em;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border-radius:2rem;padding:.5rem 1.5rem;font-size:.85rem;font-weight:700;position:absolute;top:-12px;left:50%;transform:translate(-50%)}.pricing-tier{color:#059669;margin-bottom:.5rem;font-size:1.5rem;font-weight:700}.pricing-price{align-items:baseline;margin-bottom:2rem;display:flex}.pricing-price .currency{color:#6b7280;font-size:1rem}.pricing-price .amount{color:#10b981;margin:0 .25rem;font-size:3rem;font-weight:700}.pricing-price .period{color:#6b7280;margin-left:.5rem;font-size:1rem}.pricing-features{flex:1;margin:0 0 2rem;padding:0;list-style:none}.pricing-features li{color:#374151;align-items:center;padding:.75rem 0;font-size:.95rem;display:flex}.pricing-features .check{color:#10b981;justify-content:center;align-items:center;width:1.5rem;margin-right:.75rem;font-weight:700;display:inline-flex}.pricing-features .x{color:#d1d5db;justify-content:center;align-items:center;width:1.5rem;margin-right:.75rem;font-weight:700;display:inline-flex}.pricing-features .included{color:#374151}.pricing-features .excluded{color:#9ca3af;text-decoration:line-through}.btn{cursor:pointer;border:none;border-radius:.5rem;justify-content:center;align-items:center;min-height:48px;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;transition:all .3s;display:flex}.btn-secondary{color:#6b7280;cursor:not-allowed;background:#e5e7eb}.btn-secondary:disabled{opacity:.7}.pricing-error{color:#991b1b;background:#fee2e2;border-left:4px solid #dc2626;border-radius:.5rem;width:100%;max-width:900px;margin-bottom:1rem;padding:1rem}.pricing-footer{text-align:center;color:#6b7280;width:100%;max-width:900px;font-size:.95rem}.pricing-footer p{margin:.5rem 0}.pricing-footer .text-muted{color:#9ca3af;font-size:.85rem}.pricing-footer a{color:#10b981;border-bottom:1px solid #d1fae5;text-decoration:none;transition:color .3s}.pricing-footer a:hover{color:#059669;border-bottom-color:#a7f3d0}@media (max-width:768px){.pricing-header h2{font-size:2rem}.pricing-grid{grid-template-columns:1fr;gap:1.5rem}.pricing-card.pro{transform:scale(1)}.pricing-price .amount{font-size:2rem}.pricing-features li{padding:.5rem 0;font-size:.9rem}}@media (max-width:600px){.pricing-container{padding:1rem}.pricing-header{margin-bottom:2rem}.pricing-header h2{font-size:1.75rem}.pricing-header p{font-size:1rem}.pricing-card{padding:1.5rem}.pricing-price .amount{font-size:1.75rem}.pricing-tier{font-size:1.25rem}.btn{width:100%}}.split-history-overlay{z-index:2000;background:#00000080;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.split-history-modal{background:#fff;border-radius:16px;flex-direction:column;width:100%;max-width:700px;max-height:80vh;display:flex;box-shadow:0 20px 25px #00000026}.history-header{border-bottom:2px solid #d1fae5;justify-content:space-between;align-items:center;padding:1.5rem;display:flex}.history-header h2{color:#059669;margin:0}.close-btn{cursor:pointer;color:#6b7280;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:36px;height:36px;padding:.25rem;font-size:1.5rem;transition:background .2s,color .2s;display:flex}.close-btn:hover{color:#111827;background:#f3f4f6}.empty-history{text-align:center;color:#6b7280;flex:1;justify-content:center;align-items:center;padding:3rem 1.5rem;display:flex}.empty-details{text-align:center;color:#374151;background:#fafafa;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:1rem;min-height:300px;padding:3rem 1.5rem;display:flex}.empty-details p{margin:0;font-size:1.1rem;font-weight:600}.empty-details .hint{color:#6b7280;max-width:450px;font-size:.95rem;line-height:1.5}.history-summary{color:#059669;background:#f0fdf4;border-bottom:1px solid #d1fae5;justify-content:space-between;padding:1rem 1.5rem;font-weight:600;display:flex}.view-toggle{background:#fafafa;border-bottom:1px solid #d1fae5;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem 1.5rem;display:flex}.toggle-btn{cursor:pointer;color:#6b7280;background:#fff;border:1px solid #d1fae5;border-radius:8px;padding:.5rem 1rem;font-weight:500;transition:all .2s}.toggle-btn.active{color:#fff;background:#10b981;border-color:#10b981}.toggle-btn:hover:not(.active){color:#059669;border-color:#10b981}.history-list{flex:1;padding:1rem;overflow-y:auto}.history-date-group{margin-bottom:1.5rem}.date-group-header{color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin:0 0 .75rem;font-size:.875rem;font-weight:600}.records-in-group{flex-direction:column;gap:.5rem;display:flex}.history-record{background:#fff;border:1px solid #e5e7eb;border-radius:8px;justify-content:space-between;align-items:center;padding:.75rem 1rem;transition:background .2s;display:flex}.history-record:hover{background:#f9fafb}.record-info{flex-direction:column;flex:1;gap:.2rem;display:flex}.record-name{color:#1f2937;font-size:.95rem;font-weight:600}.record-time{color:#9ca3af;font-size:.8rem}.record-amount{color:#10b981;text-align:right;min-width:100px;font-size:1rem;font-weight:700}.history-table-container{flex:1;padding:1rem;overflow:auto}.history-table{border-collapse:collapse;background:#fff;border:1px solid #d1fae5;border-radius:8px;width:100%;min-width:500px;overflow:hidden}.history-table thead{z-index:10;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border-bottom:2px solid #059669;position:sticky;top:0}.history-table th{text-align:left;color:#fff;letter-spacing:.02em;padding:.875rem;font-size:.875rem;font-weight:600}.history-table th.date-header{min-width:100px}.history-table th.person-header{text-align:center;min-width:110px}.history-table th.total-header{text-align:right;background:linear-gradient(135deg,#059669 0%,#047857 100%);min-width:120px}.history-table tbody tr{border-bottom:1px solid #e5e7eb;transition:background .2s}.history-table tbody tr:hover:not(.total-row){background:#f0fdf4}.history-table td{color:#374151;padding:.875rem;font-size:.9rem}.history-table td.date-cell{color:#059669;min-width:100px;font-weight:600}.history-table td.amount-cell{text-align:center;color:#10b981;min-width:110px;font-weight:500}.history-table td.row-total-cell{text-align:right;color:#10b981;background:#f0fdf4;min-width:120px;font-weight:700}.history-table tr.total-row{background:linear-gradient(135deg,#ecfdf3 0%,#d1fae5 100%);border-top:2px solid #d1fae5;border-bottom:none}.history-table tr.total-row td{color:#059669;border-bottom:none;font-weight:700}.history-table tr.total-row td.date-cell{color:#047857}.history-table tr.total-row td.amount-cell{color:#10b981}.history-table tr.total-row td.row-total-cell{color:#047857;background:linear-gradient(135deg,#d1fae5 0%,#a7f3d0 100%)}@media (max-width:640px){.split-history-overlay{padding:0}.split-history-modal{border-radius:16px 16px 0 0;max-width:100%;max-height:90vh}.history-header{padding:1rem}.history-header h2{font-size:1.5rem}.view-toggle{gap:.25rem;padding:.5rem}.toggle-btn{flex:1;min-width:70px;padding:.4rem .5rem;font-size:.8rem}.history-table-container{overflow-x:auto}.history-table th,.history-table td{padding:.5rem;font-size:.8rem}.history-table th.date-column,.history-table th.total-column{min-width:90px}}.detailed-split-container{flex-direction:column;flex:1;max-height:calc(80vh - 160px);display:flex;overflow:hidden}.detailed-split-header{background:#fff;border-bottom:1px solid #d1fae5;flex-shrink:0;padding:1rem 1.5rem}.detailed-split-view{flex:1;padding:1.5rem;overflow-y:auto}.detailed-split-view h3{color:#059669;text-align:center;margin:0 0 1rem;font-size:1.3rem}.split-params{color:#10b981;background:#f0fdf4;border-radius:8px;justify-content:center;gap:2rem;margin-bottom:1.5rem;padding:1rem;font-weight:600;display:flex}.split-details-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;margin-top:1.5rem;display:grid}.person-detail-card{background:linear-gradient(135deg,#f0fdf4 0%,#fff 100%);border:2px solid #10b981;border-radius:12px;padding:1.25rem;transition:all .3s;box-shadow:0 4px 12px #10b9811a}.person-detail-card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #10b98133}.person-detail-card h4{color:#059669;margin:0 0 1rem;font-size:1.1rem}.items-list{margin-bottom:1.25rem}.section-label{color:#6b7280;text-transform:uppercase;margin:0 0 .5rem;font-size:.875rem;font-weight:600}.no-items{color:#9ca3af;margin:0;padding:.5rem;font-style:italic}.items-list ul{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.split-item{background:#fff;border-left:3px solid #10b981;border-radius:6px;justify-content:space-between;align-items:center;gap:.75rem;padding:.65rem;font-size:.9rem;display:flex}.split-item-content{flex-direction:column;flex:1;display:flex}.item-desc{align-items:center;gap:.5rem;display:flex}.shared-badge{color:#0369a1;text-transform:uppercase;background:#dbeafe;border-radius:4px;padding:.15rem .5rem;font-size:.7rem;font-weight:600;display:inline-block}.split-item-prices{white-space:nowrap;align-items:center;gap:.3rem;font-weight:600;display:flex}.split-item-total{color:#059669;font-size:.9rem}.split-item-divider{color:#d1fae5;margin:0 .2rem}.split-item-share{color:#10b981;font-size:.85rem}.item-price{color:#059669;font-weight:700}.person-breakdown{border-top:2px solid #e5e7eb;flex-direction:column;gap:.5rem;padding-top:1rem;display:flex}.breakdown-line{color:#374151;justify-content:space-between;font-size:.95rem;display:flex}.breakdown-line span:last-child{color:#059669;font-weight:600}.breakdown-line.total{color:#10b981;border-top:2px solid #d1fae5;margin-top:.5rem;padding-top:.5rem;font-size:1.1rem}.breakdown-line.total span:last-child{font-size:1.2rem;font-weight:700}.detailed-splits-list{flex-direction:column;gap:1rem;max-height:calc(80vh - 200px);padding:1rem;display:flex;overflow-y:auto}.detailed-split-summary{background:#fff;border:2px solid #d1fae5;border-radius:12px;padding:1.25rem;transition:all .3s}.detailed-split-summary:hover{border-color:#10b981;box-shadow:0 4px 12px #10b9811a}.split-summary-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.split-date{color:#059669;font-size:1rem;font-weight:600}.split-people-tags{flex-wrap:wrap;gap:.75rem;display:flex}.person-tag{background:#f0fdf4;border:1px solid #10b981;border-radius:8px;flex-direction:column;flex:1;gap:.25rem;min-width:140px;padding:.6rem .9rem;display:flex}.person-name{color:#059669;font-size:.95rem;font-weight:600}.person-amount{color:#10b981;font-size:1rem;font-weight:700}.user-menu{position:relative}.user-button{color:#fff;cursor:pointer;background:linear-gradient(135deg,#10b981 0%,#059669 100%);border:none;border-radius:8px;align-items:center;gap:8px;padding:.5rem 1rem;font-size:.95rem;font-weight:600;transition:all .3s;display:inline-flex}.user-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #10b98166}.chevron{transition:transform .2s;display:inline-block}.chevron.open{transform:rotate(180deg)}.dropdown-menu{z-index:100;background:#fff;border:1px solid #e5e7eb;border-radius:8px;min-width:200px;margin-top:.5rem;position:absolute;top:100%;right:0;overflow:hidden;box-shadow:0 10px 25px #0000001a}@media (max-width:640px){.dropdown-menu{min-width:100%;padding-bottom:env(safe-area-inset-bottom);border-radius:16px 16px 0 0;margin:0;position:fixed;inset:auto 0 0;box-shadow:0 -10px 30px #00000026}}.menu-item{text-align:left;color:#374151;cursor:pointer;background:0 0;border:none;align-items:center;gap:10px;width:100%;padding:.75rem 1rem;font-size:.95rem;transition:background-color .2s;display:flex}.menu-item:hover{background-color:#f3f4f6}.menu-item.active{background-color:#f0fdf4}.menu-item.logout{color:#dc2626}.menu-item.logout:hover{background-color:#fee2e2}.menu-divider{border:none;border-top:1px solid #e5e7eb;margin:.5rem 0}.mi-icon{text-align:center;width:20px}.plan-badge{color:#374151;background:#e5e7eb;border-radius:999px;margin-left:auto;padding:2px 8px;font-size:.75rem}.plan-badge.pro{color:#065f46;background:#dcfce7}.plan-badge.free{color:#7f1d1d;background:#fee2e2}.modal{background:#fff;border-radius:12px;width:90%;max-width:400px;padding:2rem;position:relative;box-shadow:0 20px 60px #0000004d}.modal-close{cursor:pointer;color:#9ca3af;background:0 0;border:none;font-size:1.5rem;position:absolute;top:1rem;right:1rem}.modal h2{color:#10b981;margin:0 0 1.5rem;font-size:1.5rem}.form-group{flex-direction:column;gap:.5rem;margin-bottom:1rem;display:flex}.form-group label{color:#374151;font-size:.9rem;font-weight:600}.form-group input{border:2px solid #e5e7eb;border-radius:8px;padding:.75rem;font-size:1rem;transition:border-color .3s}.form-group input:focus{border-color:#10b981;outline:none}.form-group input:disabled{cursor:not-allowed;background:#f9fafb}.subscription-info{background:#f9fafb;border-radius:8px;margin-bottom:1.5rem;padding:1.5rem}.info-row{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:.75rem 0;display:flex}.info-row:last-child{border-bottom:none}.info-row span{color:#6b7280}.info-row strong{color:#10b981;font-weight:600}.modal-actions{justify-content:flex-end;gap:1rem;margin-top:1.5rem;display:flex}.btn{cursor:pointer;border:none;border-radius:8px;padding:.75rem 1.5rem;font-size:.95rem;font-weight:600;transition:all .3s}.btn-primary{color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%)}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #10b9814d}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{color:#374151;background:#f3f4f6}.btn-secondary:hover:not(:disabled){background:#e5e7eb}.features-overlay{z-index:2000;background:#000000b3;justify-content:center;align-items:center;padding:1rem;animation:.3s ease-out fadeIn;display:flex;position:fixed;inset:0}.features-modal{background:#fff;border-radius:16px;flex-direction:column;width:100%;max-width:900px;max-height:90vh;animation:.4s ease-out slideInUp;display:flex;box-shadow:0 20px 60px #0000004d}.features-header{background:linear-gradient(135deg,#ecfdf3 0%,#f0fdf4 100%);border-bottom:2px solid #d1fae5;justify-content:space-between;align-items:center;padding:1.5rem 2rem;display:flex}.features-header h2{color:#059669;margin:0;font-size:1.75rem}.features-content{flex:1;padding:2rem;overflow-y:auto}.features-grid{grid-template-columns:2fr 1fr 1fr;gap:.5rem 1rem;margin-bottom:2rem;display:grid}.feature-header{text-align:center;padding:1rem;font-weight:600}.tier-header{background:#f9fafb;border-radius:12px;padding:1.5rem 1rem}.tier-header h3{margin:0 0 .5rem;font-size:1.25rem}.tier-price{color:#10b981;margin:0;font-size:1.5rem;font-weight:700}.free-tier{color:#6b7280;background:#f3f4f6}.free-tier .tier-price{color:#6b7280}.pro-tier{background:linear-gradient(135deg,#d1fae5 0%,#ecfdf3 100%);border:2px solid #10b981}.feature-row-group{display:contents}.feature-name{border-bottom:1px solid #e5e7eb;align-items:center;padding:1rem;font-weight:500;display:flex}.feature-value{text-align:center;border-bottom:1px solid #e5e7eb;justify-content:center;align-items:center;padding:1rem;font-weight:600;display:flex}.feature-value.unavailable{color:#9ca3af;font-size:1.5rem}.pro-value{color:#10b981;background:#f0fdf4;border-radius:8px}.upgrade-section{text-align:center;background:linear-gradient(135deg,#ecfdf3 0%,#f0fdf4 100%);border:2px solid #d1fae5;border-radius:12px;padding:2rem}.upgrade-pitch{color:#065f46;margin:0 0 1.5rem;font-size:1.125rem;font-weight:600}.upgrade-btn{padding:1rem 2rem;font-size:1.125rem}@media (max-width:768px){.features-grid{grid-template-columns:1fr;gap:.5rem}.feature-header.tier-header{grid-column:1}.feature-row-group{grid-template-columns:1fr 1fr 1fr;gap:.5rem;margin-bottom:.5rem;display:grid}.feature-name{background:#f9fafb;border-bottom:none;border-radius:8px 8px 0 0;grid-column:1/-1;padding:.75rem}.feature-value{border-bottom:none;padding:.75rem}.feature-value:first-of-type{border-radius:0 0 0 8px}.feature-value:last-of-type{border-radius:0 0 8px}}.scan-counter{border:2px solid #0000;border-radius:20px;align-items:center;gap:8px;padding:8px 14px;font-size:14px;font-weight:600;transition:all .3s;display:flex}.scan-counter.free{color:#059669;background-color:#d1fae5;border-color:#10b981}.scan-counter.free:hover{background-color:#a7f3d0;box-shadow:0 2px 8px #10b98133}.scan-counter.free.at-limit{color:#dc2626;background-color:#fee2e2;border-color:#ef4444}.scan-counter.pro{color:#78350f;background:linear-gradient(135deg,#fbbf24 0%,#f59e0b 100%);border-color:#d97706;box-shadow:0 2px 8px #d9770633}.scan-counter.pro:hover{transform:translateY(-1px);box-shadow:0 4px 12px #d977064d}.scan-icon{font-size:16px;display:inline-block}.scan-text{letter-spacing:.5px}.pro-badge{text-transform:uppercase;letter-spacing:.8px;background-color:#ffffff4d;border-radius:4px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-block}.scan-counter.free .pro-badge{display:none}@media (max-width:640px){.scan-counter{gap:6px;padding:6px 12px;font-size:13px}.scan-icon{font-size:14px}.pro-badge{display:none}}.ad-wrapper{background:#f9fafb;border-top:1px solid #e5e7eb;width:100%;padding:1rem}.ad-wrapper.ad-top{border-top:none;border-bottom:1px solid #e5e7eb}.ad-wrapper.ad-bottom{border-top:1px solid #e5e7eb}.ad-container{justify-content:center;align-items:center;max-width:100%;min-height:50px;margin:0 auto;display:flex}.ad-placeholder{text-align:center;background:linear-gradient(135deg,#f0fdf4 0%,#dbeafe 100%);border:2px dashed #d1fae5;border-radius:.5rem;width:100%;max-width:320px;padding:1rem}.ad-text{color:#059669;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.25rem;font-size:.85rem;font-weight:600;display:block}.ad-subtext{color:#6b7280;margin:.5rem 0 0;font-size:.8rem}@media (max-width:600px){.ad-wrapper,.ad-placeholder{padding:.75rem}.ad-text{font-size:.75rem}.ad-subtext{font-size:.7rem}}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:translate(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-30px)}to{opacity:1;transform:translate(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes bounceIn{0%{opacity:0;transform:scale(.3)}50%{opacity:1;transform:scale(1.05)}to{opacity:1;transform:scale(1)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes glow{0%,to{box-shadow:0 0 5px #10b98180}50%{box-shadow:0 0 20px #10b981cc}}@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes pop{0%{transform:scale(.8)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes wiggle{0%,to{transform:translate(0)}25%{transform:translate(-2px)}75%{transform:translate(2px)}}@keyframes gradientShift{0%,to{background-position:0%}50%{background-position:100%}}*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#d1fae5 0%,#f0fdf4 100%);min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.app{flex-direction:column;min-height:100vh;display:flex}.app-header{color:#fff;text-align:center;background:linear-gradient(135deg,#10b981 0%,#059669 100%);padding:2rem 1rem;animation:.6s ease-out slideInDown;box-shadow:0 4px 6px #0000001a}@keyframes slideInDown{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.header-content{justify-content:space-between;align-items:center;width:100%;max-width:1200px;margin:0 auto;display:flex}.header-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:1rem;display:flex}.scan-badge{color:#fff;white-space:nowrap;background:#fff3;border-radius:20px;padding:.5rem 1rem;font-size:.9rem;font-weight:600;animation:.7s ease-out slideInRight}.app-header h1{margin-bottom:.5rem;font-size:2.5rem;font-weight:700;animation:.7s ease-out slideInLeft}.app-header p{opacity:.95;font-size:1.125rem;animation:.8s ease-out slideInLeft}.history-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#fff3;border:2px solid #ffffff80;border-radius:8px;padding:.75rem 1.25rem;font-weight:600;transition:all .3s;animation:.7s ease-out slideInRight}.history-btn:hover{background:#ffffff4d;border-color:#fff;transform:scale(1.08)translateY(-2px);box-shadow:0 4px 12px #0003}.features-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#fff3;border:2px solid #ffffff80;border-radius:8px;padding:.75rem 1.25rem;font-weight:600;transition:all .3s;animation:.7s ease-out slideInRight}.features-btn:hover{background:#ffffff4d;border-color:#fff;transform:scale(1.08)translateY(-2px);box-shadow:0 4px 12px #0003}@media (max-width:768px){.header-content{text-align:center;flex-direction:column;gap:1rem}.app-header h1{font-size:2rem}.history-btn,.features-btn{padding:.5rem 1rem;font-size:.875rem}}.step-indicator{background:#fff;flex-wrap:wrap;justify-content:center;gap:1rem;padding:1.5rem 1rem;animation:.6s ease-out .1s both slideInUp;display:flex}.step{color:#6b7280;background:#f3f4f6;border-radius:25px;padding:.75rem 1.5rem;font-weight:600;transition:all .3s cubic-bezier(.34,1.56,.64,1);animation:.5s ease-out scaleIn}.step.active{color:#fff;background:#10b981;animation:.6s ease-out bounceIn;transform:scale(1.15);box-shadow:0 4px 15px #10b98166}.app-content{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:2rem 1rem}.step-content{animation:.5s cubic-bezier(.34,1.56,.64,1) slideInUp}.scan-secondary-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:1rem;margin-top:1rem;display:flex}.scan-secondary-actions .btn{width:320px}.step-navigation{flex-direction:column;align-items:center;gap:.75rem;margin-top:2rem;display:flex}.step-navigation .btn-primary{width:min(100%,720px)}.step-navigation .btn-secondary{width:min(100%,280px)}.btn{cursor:pointer;text-align:center;border:none;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;min-width:140px;height:48px;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;transition:all .3s cubic-bezier(.34,1.56,.64,1);display:inline-flex;position:relative;overflow:hidden}.btn:before{content:"";background:#ffffff80;border-radius:50%;width:0;height:0;transition:width .6s,height .6s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.btn:not(:disabled):hover:before{width:300px;height:300px}.btn:disabled{opacity:.5;cursor:not-allowed}.btn:not(:disabled):hover{transform:translateY(-3px);box-shadow:0 8px 16px #00000026}.btn:not(:disabled):active{transform:translateY(-1px)}.btn-primary{color:#fff;background:linear-gradient(135deg,#10b981 0%,#059669 100%);box-shadow:0 4px 12px #10b9814d}.btn-primary:not(:disabled):hover{box-shadow:0 8px 20px #10b98166}.btn-secondary{color:#10b981;background:#fff;border:2px solid #10b981;box-shadow:0 2px 8px #10b98126}.btn-secondary:not(:disabled):hover{background:#f0fdf4;box-shadow:0 4px 12px #10b98140}.processing-overlay{z-index:1000;background:#fffffff2;flex-direction:column;justify-content:center;align-items:center;animation:.3s ease-in fadeIn;display:flex;position:fixed;inset:0}.processing-overlay.modern{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#ffffffe6;gap:12px}.progress-shell{background:#e5e7eb;border-radius:999px;width:min(480px,90vw);height:10px;overflow:hidden;box-shadow:inset 0 1px 3px #00000014}.progress-bar{background:linear-gradient(90deg,#10b981,#059669);height:100%;transition:width .2s}.processing-overlay p{color:#065f46;font-size:1.05rem;font-weight:600}.skeleton-blocks{flex-direction:column;gap:8px;width:min(480px,90vw);display:flex}.skeleton-line{background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 50%,#f3f4f6 75%) 0 0/200% 100%;border-radius:6px;height:12px;animation:1.2s infinite shimmer}.skeleton-line.short{width:60%}.toast{display:none}.toast.info{background:#0f172a}.toast.error{background:#b91c1c}.toast-close{display:none}.modal-overlay{z-index:1100;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:12px;width:min(520px,92vw);overflow:hidden;box-shadow:0 20px 60px #0003}.modal-header{border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;padding:14px 16px;display:flex}.modal-header h3{color:#065f46;margin:0;font-size:1.1rem}.modal.error .modal-header h3{color:#7f1d1d}.modal.info .modal-header h3{color:#065f46}.modal-close{color:#6b7280;cursor:pointer;background:0 0;border:none;font-size:20px}.modal-body{color:#111827;padding:16px}.modal-footer{border-top:1px solid #e5e7eb;justify-content:flex-end;padding:12px 16px;display:flex}.app-footer{text-align:center;color:#6b7280;background:#fff;border-top:2px solid #d1fae5;padding:1.5rem;animation:.6s ease-out .3s both slideInUp}.empty-state{text-align:center;color:#6b7280;padding:2rem;font-style:italic}@media (max-width:768px){.app-header h1{font-size:2rem}.step{align-items:center;min-height:44px;padding:.5rem 1rem;font-size:.875rem;display:flex}.app-content{padding:1rem .5rem}button{min-width:44px;min-height:44px}.step-indicator{gap:.75rem;padding:1rem .5rem}}
