:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233c;background:#f6f8fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:#0b172d;color:#f5f8ff;display:flex;flex-direction:column;padding:31px 16px 23px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;font-size:22px;letter-spacing:-.9px;font-weight:800;gap:11px;margin:0 14px 67px}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;background:#62e8bd;border-radius:11px;color:#10253a;font-size:29px;font-weight:700}.brand-accent,.auth-logo span:last-child{color:#63e8bd}.sidebar-label{font-size:10px;letter-spacing:2.4px;font-weight:700;color:#71809a;margin:0 19px 16px}.side-nav{display:flex;flex-direction:column;gap:7px}.nav-item{background:transparent;border:0;text-align:left;padding:13px 17px;border-radius:11px;color:#aebad0;font-size:14px;display:flex;align-items:center;gap:15px;font-weight:600}.nav-item span{font-size:23px;line-height:1}.nav-item.active,.nav-item:hover{background:#21314c;color:#fff}.sidebar-bottom{margin-top:auto}.sync-tip{border:1px solid #2b405a;border-radius:12px;padding:14px;font-weight:650;color:#d9f6ed;font-size:13px;line-height:1.4;margin-bottom:22px}.sync-tip small{display:block;color:#94a6bf;font-weight:400;margin-top:5px}.sync-orb{background:#63e4bb;width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:5px}.account{width:100%;border:none;border-top:1px solid #2a374c;padding:20px 3px 0;background:none;color:white;display:flex;align-items:center;gap:12px;text-align:left}.avatar,.account-dot{background:#c4e4fd;color:#184064;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;flex-shrink:0}.account-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:135px;font-size:13px;font-weight:600}.main-wrap{min-width:0}.topbar{height:97px;background:#fff;border-bottom:1px solid #e7ebf1;display:flex;align-items:center;justify-content:space-between;padding:14px clamp(20px,4vw,60px)}.topbar-trip{max-width:55%}.eyebrow{font-size:10px;font-weight:800;color:#8390a5;letter-spacing:2px;margin-bottom:8px}.trip-select-row{display:flex;align-items:center;gap:9px}.trip-select-row select{max-width:min(360px,45vw);appearance:none;background:transparent;border:0;color:#17233c;font-size:19px;font-weight:800;padding:0 24px 0 0;outline:0;cursor:pointer}.trip-select-row:after{content:'⌄';font-weight:800;position:relative;left:-23px;pointer-events:none}.trip-select-row .icon-btn{margin-left:-14px}.icon-btn{border:1px solid #e2e8f0;border-radius:10px;background:white;display:grid;place-items:center;width:34px;height:34px;color:#52617a;font-size:20px}.icon-btn:hover{background:#edf4fa}.header-actions{display:flex;align-items:center;gap:13px}.network-pill{font-size:12px;font-weight:750;color:#15936f;background:#e6fbf3;padding:9px 12px;border-radius:999px}.network-pill.offline{color:#b15e00;background:#fff3e5}.sync-btn{background:white;border:1px solid #e2e8f0;border-radius:11px;padding:10px 15px;font-size:13px;font-weight:750;color:#52617a}.account-dot{border:0;width:37px;height:37px}.main-content{padding:37px clamp(20px,4vw,60px) 60px;max-width:1450px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:29px}.page-head h1{font-size:clamp(26px,3vw,34px);letter-spacing:-1.3px;margin:2px 0 7px;color:#182944}.page-head p{color:#8490a4;font-size:14px;margin:0}.page-actions{display:flex;gap:9px;flex-shrink:0}.btn{border-radius:11px;border:1px solid transparent;padding:12px 19px;font-weight:750;font-size:13px;display:inline-flex;gap:8px;align-items:center;justify-content:center;min-height:43px}.btn-primary{background:#176558;color:white;box-shadow:0 6px 15px #17655822}.btn-primary:hover{background:#124c43}.btn-outline{background:white;border-color:#e1e7ef;color:#42536e}.btn-outline:hover{background:#f0f4f8}.btn-full{width:100%;margin-top:9px}.bottom-nav{display:none}.grid-stat{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card{background:white;border:1px solid #e8ecf2;border-radius:16px;padding:20px;min-height:145px}.stat-label{font-size:12px;color:#8693a8;font-weight:700;margin-bottom:15px}.stat-number{font-size:clamp(20px,2vw,27px);color:#172942;font-weight:850;letter-spacing:-1px;white-space:nowrap}.stat-number.positive{color:#108c68}.stat-number.negative{color:#d26c4b}.stat-meta{font-size:11px;color:#98a3b5;margin-top:12px}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:20px}.panel{background:#fff;border:1px solid #e6eaf1;border-radius:17px;padding:22px;margin-bottom:20px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.panel h2{font-size:16px;color:#1d304c;margin:0;letter-spacing:-.25px}.text-btn{border:0;background:transparent;color:#156c60;font-weight:750;font-size:12px;padding:4px}.text-btn:hover{text-decoration:underline}.expense-row{display:flex;align-items:center;gap:13px;border-bottom:1px solid #edf0f4;padding:14px 0}.expense-row:last-child{border-bottom:0;padding-bottom:2px}.cat-icon{background:#eff5f5;border:1px solid #e5efed;color:#326f6c;border-radius:13px;width:43px;height:43px;flex-shrink:0;display:grid;place-items:center;font-size:22px}.expense-main{flex:1;min-width:0}.expense-title{font-size:13px;font-weight:760;color:#293a54;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expense-desc{font-size:11px;color:#9aa5b6;margin-top:4px}.expense-money{font-size:14px;font-weight:800;white-space:nowrap}.pending-pill,.error-pill{display:inline-block;border-radius:6px;padding:3px 6px;background:#fff2d8;color:#936008;font-size:10px;font-weight:800;margin-left:6px}.error-pill{background:#ffebed;color:#bc4356}.delete-btn{border:0;background:transparent;color:#a2acbc;font-size:16px;padding:5px}.delete-btn:hover{color:#e95f5f}.quick-add{background:#0d263b;color:#fff;border-radius:15px;padding:24px;min-height:170px;display:flex;flex-direction:column;justify-content:space-between}.quick-add h3{font-size:19px;line-height:1.3;margin:0 0 9px}.quick-add p{font-size:12px;color:#aabfc9;line-height:1.65;margin:0}.quick-add button{align-self:flex-start;background:#63e4bb;color:#14352e;border:0;border-radius:9px;font-weight:800;font-size:12px;padding:12px 15px}.pills-row{display:flex;flex-wrap:wrap;gap:8px}.soft-pill{background:#eef4f8;color:#567088;font-weight:700;padding:6px 9px;border-radius:999px;font-size:11px}.member-row{display:flex;gap:11px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f5}.member-row:last-child{border:0}.member-avatar{background:#edf0ff;border-radius:11px;color:#6370a8;display:grid;place-items:center;width:37px;height:37px;font-weight:800;font-size:12px}.member-row .member-name{flex:1;min-width:0}.member-name strong{font-size:13px;color:#263750}.member-name small{display:block;color:#9ba6b9;font-size:11px;margin-top:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.member-net{font-size:13px;font-weight:850;white-space:nowrap}.member-net.good{color:#148f6a}.member-net.bad{color:#d46754}.member-net.neutral{color:#8a97aa}.empty-state{padding:55px 30px;text-align:center;background:#fff;border:1px dashed #d7e2eb;border-radius:18px}.empty-illustration{width:70px;height:70px;display:grid;place-items:center;margin:0 auto 20px;background:#eaf8f3;color:#126a57;border-radius:20px;font-size:36px}.empty-state h2{font-size:23px;letter-spacing:-.8px;margin:0 0 8px}.empty-state p{max-width:390px;margin:0 auto 20px;color:#8c9aad;line-height:1.6;font-size:14px}.alert{padding:12px 15px;border-radius:11px;background:#fff8e9;color:#93670a;font-size:12px;font-weight:600;margin:0 0 20px;border:1px solid #fae8bb}.alert.error{background:#fff0f0;color:#b84249;border-color:#ffd3d3}.balance-suggestion{display:flex;align-items:center;gap:10px;border-bottom:1px solid #edf0f4;padding:16px 0}.balance-suggestion:last-child{border-bottom:0}.balance-suggestion .flow-text{flex:1;font-size:13px;line-height:1.6}.balance-suggestion .flow-text b{color:#21354c}.flow-amount{font-weight:850;font-size:15px}.tag-owner{font-size:10px;background:#e1f8ee;color:#157a5e;padding:4px 7px;border-radius:7px;font-weight:800}.section-footer{font-size:11px;color:#91a0b4;margin-top:14px}.table-tools{display:flex;gap:9px;justify-content:flex-end;margin-bottom:14px}.loading-state{font-weight:650;color:#8a9aad;padding:40px}.log-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f4}.log-row:last-child{border:0}.log-row strong{font-size:13px}.log-row small{display:block;color:#8698a9;margin-top:4px}.log-row .amount{font-weight:850;font-size:13px}.muted{color:#8b98ab}.small-note{font-size:12px;color:#8a9aad;line-height:1.6}.action-stack{display:flex;gap:9px;flex-wrap:wrap}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:30px 16px;background:radial-gradient(circle at top left,#1e4f51 0%,transparent 40%),#0a1425}.auth-card{background:white;border-radius:25px;width:min(440px,100%);padding:32px;box-shadow:0 35px 100px #0004}.auth-logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:24px;letter-spacing:-1px;color:#182841}.auth-logo span:last-child{margin-left:-8px}.auth-visual{height:210px;border-radius:19px;background:linear-gradient(145deg,#143b4b,#0b1528);margin:23px 0 26px;padding:22px;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.floating-card{background:#ffffff12;border:1px solid #ffffff30;border-radius:10px;font-size:12px;color:#e3f5f1;padding:11px 14px}.floating-card.first{align-self:flex-start;transform:rotate(-4deg);font-weight:700}.floating-card.first span{margin-left:22px;color:#a7d4c9;font-size:10px}.floating-card.last{align-self:flex-end;transform:rotate(4deg)}.green-dot{background:#65e5c0;width:8px;height:8px;display:inline-block;border-radius:50%;margin-right:5px}.big-money{color:#fff;font-size:37px;font-weight:850;letter-spacing:-1.4px;text-align:center;padding:12px}.big-money span{display:block;font-size:12px;font-weight:400;color:#afc4d3;letter-spacing:0;margin-top:6px}.auth-card h1{font-size:28px;line-height:1.2;color:#15243c;letter-spacing:-1.1px}.auth-card p{color:#8692a5;line-height:1.7;font-size:14px}.google-signin{display:flex;justify-content:center;min-height:46px;margin-top:23px}.auth-note{text-align:center!important;font-size:11px!important}.modal{border:0;padding:0;width:min(525px,calc(100% - 22px));max-height:min(88vh,850px);border-radius:21px;box-shadow:0 24px 100px #06152d55}.modal::backdrop{background:#071a2d99;backdrop-filter:blur(3px)}.modal-form{display:flex;flex-direction:column;padding:25px;gap:17px;overflow:auto;max-height:min(88vh,850px)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:2px;gap:12px}.modal-head h2{font-size:23px;letter-spacing:-.8px;margin:0}.modal-form>label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;color:#40526d}.modal-form input,.modal-form select{border:1px solid #e0e7ef;background:#fafcfd;padding:12px 13px;border-radius:10px;font-size:14px;color:#23354d;min-width:0;width:100%;outline:none}.modal-form input:focus,.modal-form select:focus{border-color:#37a98d;box-shadow:0 0 0 3px #37a98d22}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-grid label{font-size:12px;font-weight:750;color:#40526d;display:flex;flex-direction:column;gap:7px}.amount-field{display:flex;align-items:center;gap:8px;border:1px solid #dce6ec;border-radius:12px;padding-left:14px;background:#f8fcfa}.amount-field span{font-size:23px;color:#1a8c70;font-weight:800}.amount-field input{font-size:23px;background:transparent;border:0;box-shadow:none!important}.split-header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#3b4d65;font-size:12px}.split-header select{max-width:175px;font-size:12px}.participants{display:grid;grid-template-columns:1fr 1fr;gap:8px}.participants label{background:#f5f8fb;border:1px solid #e8eef3;border-radius:9px;padding:11px 9px;font-size:12px;color:#476077;display:flex;align-items:center;gap:7px;overflow:hidden}.participants input{width:15px;height:15px;accent-color:#17745f}.custom-splits{display:grid;gap:8px}.custom-row{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:#435570}.custom-row input{max-width:125px}.split-summary{padding:13px 14px;background:#eaf9f4;color:#176d59;font-size:12px;border-radius:10px;font-weight:700}.split-summary.error{background:#fff1ee;color:#bf5341}.form-note{border-radius:10px;background:#f4f7f9;color:#7d8ba0;padding:11px 13px;font-size:12px;font-weight:500;line-height:1.55}.form-note.center{text-align:center;margin:0;background:transparent}.modal-form>p{margin:0;font-size:13px;color:#708097;line-height:1.6}.invite-link{overflow-wrap:anywhere;background:#f2f7fb;border:1px dashed #d4e3ec;padding:13px;border-radius:9px;font-size:12px;color:#24445a;margin-bottom:12px}.toast{position:fixed;bottom:27px;right:28px;padding:13px 18px;background:#203851;color:white;border-radius:11px;font-size:13px;font-weight:700;box-shadow:0 12px 40px #0e223633;z-index:100;opacity:0;pointer-events:none;transform:translateY(10px);transition:.2s}.toast.visible{opacity:1;transform:translateY(0)}.toast.error{background:#b83c47}
@media(max-width:1150px){.grid-stat{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.sidebar{width:210px}.app-shell{grid-template-columns:210px minmax(0,1fr)}}
@media(max-width:720px){body{background:#f5f8fb}.app-shell{display:block;padding-bottom:74px}.sidebar{display:none}.topbar{height:79px;padding:11px 17px}.topbar-trip{max-width:65%}.trip-select-row select{font-size:17px;max-width:calc(100vw - 195px)}.header-actions{gap:8px}.network-pill{padding:8px;font-size:10px}.sync-btn{padding:8px;font-size:18px;min-width:37px}.sync-btn span{display:none}.account-dot{display:none}.main-content{padding:25px 16px 45px}.page-head{align-items:flex-start;flex-wrap:wrap;gap:15px;margin-bottom:21px}.page-head h1{font-size:27px}.page-head p{font-size:12px;line-height:1.5}.page-actions{width:100%;justify-content:flex-end}.page-actions .btn{padding:10px 14px}.grid-stat{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stat-card{padding:15px;min-height:121px}.stat-label{font-size:11px;margin-bottom:11px}.stat-number{font-size:21px;white-space:normal}.stat-meta{font-size:10px;margin-top:10px}.panel{padding:17px;margin-bottom:13px}.dashboard-grid{display:block}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:#fff;box-shadow:0 -6px 25px #273d5514;border-top:1px solid #e5ebef;justify-content:space-around;padding:7px 7px max(8px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;color:#91a1b4;font-size:10px;font-weight:750;min-width:66px}.bottom-nav button b{font-size:23px;font-weight:400;line-height:1.2}.bottom-nav button.active{color:#166b59}.toast{bottom:83px;right:12px;left:12px;text-align:center}.auth-card{padding:25px}.auth-screen{align-items:flex-start}.field-grid{gap:8px}.modal-form{padding:19px;gap:14px}.participants{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:370px){.network-pill{display:none}.page-actions{justify-content:stretch}.page-actions .btn{flex:1}.grid-stat{gap:7px}.stat-number{font-size:18px}}
