*{box-sizing:border-box}body{margin:0;font-family:Tahoma,Arial,sans-serif;background:#f6f7fb;color:#111827}.app{max-width:560px;margin:auto;min-height:100vh;padding:18px 16px 95px}.top{display:flex;justify-content:space-between;align-items:center;margin:6px 0 18px}.top h1{font-size:22px;margin:0}.pill{background:#e8f8ee;color:#15803d;padding:7px 10px;border-radius:20px;font-size:12px}.card{background:#fff;border-radius:22px;padding:16px;margin-bottom:13px;box-shadow:0 4px 18px #0000000b}.hero{background:#111827;color:white}.hero small{color:#cbd5e1}.balance{font-size:31px;font-weight:800;margin:8px 0}.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#ffffff10;padding:11px;border-radius:14px}.stat b{display:block;margin-top:5px}.actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.btn{border:0;border-radius:14px;padding:13px 9px;font-weight:700;cursor:pointer}.primary{background:#111827;color:#fff}.green{background:#22c55e;color:#082f16}.soft{background:#eef2f7;color:#111827}.danger{background:#fee2e2;color:#991b1b}.mic{width:76px;height:76px;border-radius:50%;border:8px solid #dcfce7;background:#22c55e;font-size:30px;display:block;margin:12px auto}.mic.listening{animation:pulse 1s infinite}@keyframes pulse{50%{transform:scale(1.08)}}.hint{text-align:center;color:#6b7280;font-size:12px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f1f5f9}.row:last-child{border-bottom:0}.muted{color:#6b7280;font-size:12px}.amount{font-weight:800}.pos{color:#15803d}.neg{color:#dc2626}.nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e5e7eb;display:flex;justify-content:center;z-index:9}.navin{width:min(560px,100%);display:grid;grid-auto-flow:column;grid-auto-columns:1fr}.nav button{background:none;border:0;padding:13px 4px;color:#6b7280;font-size:12px}.nav button.active{color:#111827;font-weight:800}.modal{position:fixed;inset:0;background:#0007;z-index:20;display:flex;align-items:flex-end;justify-content:center}.sheet{background:#fff;width:min(560px,100%);max-height:90vh;overflow:auto;border-radius:24px 24px 0 0;padding:18px}.field{margin:12px 0}.field label{display:block;font-size:12px;color:#6b7280;margin-bottom:6px}.field input,.field select{width:100%;padding:13px;border:1px solid #dbe1e8;border-radius:12px;font:inherit}.chips{display:flex;flex-wrap:wrap;gap:7px}.chip{border:1px solid #dbe1e8;background:white;padding:8px 11px;border-radius:20px}.chip.on{background:#111827;color:white}.title{font-size:16px;font-weight:800;margin:4px 0 12px}.empty{text-align:center;padding:22px;color:#9ca3af}.voicebox{background:#f0fdf4;border:1px solid #bbf7d0;padding:12px;border-radius:14px;margin:10px 0}.fab{position:fixed;bottom:78px;left:calc(50% - 250px);width:54px;height:54px;border-radius:50%;border:0;background:#111827;color:#fff;font-size:24px}@media(max-width:560px){.fab{left:18px}}
.fxline{margin-top:12px;padding-top:10px;border-top:1px solid #ffffff22;font-size:12px;color:#e5e7eb;line-height:1.7}.fxline small{color:#94a3b8}.pill{border:0;cursor:pointer}.hint{line-height:1.7}.fund-balances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}.fund-balance-row{display:flex;flex-direction:column;align-items:flex-start;gap:3px;background:#ffffff12;border-radius:10px;padding:8px 10px}.fund-balance-row span{font-size:11px;color:#cbd5e1}.fund-balance-row b{font-size:16px}.dual-total{display:flex;flex-direction:column;gap:2px;margin-top:4px}.dual-total b{font-size:17px}.dual-total span{font-size:11px;color:#cbd5e1}

.receipt-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.filebtn{display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px}.filebtn input{display:none}.receipt-preview{width:100%;max-height:280px;object-fit:contain;margin-top:10px;border-radius:14px;background:#f3f4f6}.receipt-full{width:100%;max-height:70vh;object-fit:contain;border-radius:14px;background:#f3f4f6}.linkbtn,.receipt-link{border:0;background:none;color:#2563eb;padding:6px 0;cursor:pointer;font:inherit;font-size:12px}.receipt-link{margin-top:4px}@media(max-width:380px){.receipt-actions{grid-template-columns:1fr}}

.auth-gate{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px;background:#111827}.auth-card{width:min(430px,100%);background:white;color:#111827;border-radius:22px;padding:22px}.auth-logo{text-align:center;font-size:44px}.auth-card h1{text-align:center}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.password-wrap{display:flex;gap:6px}.password-wrap input{flex:1}.eye-btn{border:0;background:transparent;font-size:20px}

.trip-row{width:100%;border:0;border-radius:16px;padding:14px;margin:7px 0;display:flex;justify-content:space-between;align-items:center;text-align:right}.trip-row span:first-child{display:flex;flex-direction:column;gap:4px}.trip-row small{font-size:12px}.trip-row.treasurer{background:#dcfce7;border:1px solid #86efac}.trip-row.member{background:#f3f4f6;border:1px solid #d1d5db;color:#4b5563}.section-title{font-weight:800;margin:18px 0 8px}.member-line,.wallet-line,.invite-created{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px;border-bottom:1px solid #eee}.member-line span:first-child{display:flex;flex-direction:column}.member-line.pending{opacity:.55}.member-line.active{opacity:1}.member-actions{display:flex;gap:5px;align-items:center}.code-btn{border:1px dashed #64748b;background:#fff;border-radius:10px;padding:7px;font-family:monospace}.danger-mini{border:0;background:#fee2e2;color:#991b1b;border-radius:9px;padding:7px}.inline{display:flex;gap:8px}.inline>*{min-width:0}.tall{max-height:88dvh;overflow:auto}

.toast-host{position:fixed;left:50%;bottom:88px;transform:translateX(-50%);width:min(520px,calc(100% - 28px));z-index:100;pointer-events:none}.toast{background:#111827;color:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 10px 30px #0003;text-align:right;line-height:1.7}.toast.success{background:#166534}.toast.warn{background:#92400e}.toast.error{background:#991b1b}
.sync-card{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0;padding:11px 13px;border-radius:14px;border:1px solid #bfdbfe;background:#eff6ff}.sync-card.offline{border-color:#fde68a;background:#fffbeb}.sync-card.error{border-color:#fecaca;background:#fef2f2}.sync-card .btn{white-space:nowrap;padding:7px 10px}
.menu-btn,.icon-close{border:0;background:#eef2f7;border-radius:12px;width:42px;height:42px;font-size:22px;cursor:pointer}.drawer-modal{align-items:stretch;justify-content:flex-start}.drawer{width:min(330px,86vw);height:100%;background:#fff;padding:18px;box-shadow:8px 0 30px #0003;overflow:auto}.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.drawer>button{width:100%;border:0;background:#fff;padding:14px 8px;text-align:right;font:inherit;border-radius:12px}.drawer>button:hover{background:#f3f4f6}.drawer hr{border:0;border-top:1px solid #e5e7eb}
.nav button{display:flex;flex-direction:column;align-items:center;gap:3px}.nav-icon{font-size:19px;line-height:1}.nav-add .nav-icon{background:#111827;color:#fff;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:-18px;box-shadow:0 5px 15px #0002}.nav-add{color:#111827!important}.fxdetails{margin-top:10px}.fxdetails summary{cursor:pointer;color:#cbd5e1;font-size:12px}.finance-warning{margin-top:10px;background:#78350f;color:#fef3c7;padding:9px;border-radius:10px;font-size:12px;line-height:1.7}.fx-missing{color:#b45309;font-size:11px}.actions{grid-template-columns:1fr 1fr}

.sheet{position:relative}.sheet-close{position:sticky;top:0;float:left;z-index:3;border:0;background:#eef2f7;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer;margin-bottom:4px}.identity-card{display:flex;flex-direction:column;background:#eefbf3;border:1px solid #bbf7d0;border-radius:14px;padding:12px;margin:8px 0 14px}.identity-card span{font-size:12px;color:#64748b}.member-admin{display:flex;justify-content:space-between;gap:8px;align-items:center}.member-admin-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}.perm-row{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:1px solid #eee}.perm-row input{width:22px;height:22px}
.nav-add .nav-icon{background:none;color:inherit;width:auto;height:auto;border-radius:0;display:flex;align-items:center;justify-content:center;margin-top:0;box-shadow:none;font-size:19px}
.actions{grid-template-columns:repeat(3,minmax(0,1fr))}
.fund-balance-row{border:0;color:inherit;text-align:inherit;cursor:pointer}
.asset-total-button{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;margin:8px 0 10px;padding:10px 0;border:0;background:transparent;color:inherit;text-align:right;cursor:pointer}.asset-total-button b{font-size:30px;line-height:1.25}.asset-total-button span{font-size:13px;color:#cbd5e1}.asset-total-button small{font-size:10px;color:#94a3b8}.destination-first b{font-size:21px}.destination-first span{font-size:11px}
