:root{font-family:Tahoma,Arial,sans-serif;color:#233047;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;--ink:#233047;--muted:#8b95a7;--line:#edf0f5;--purple:#7064e8;--purple-dark:#5d51d5;--green:#2eaa7a;--red:#d65f68}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 87% 2%,#dfdbff47,transparent 28rem),#f5f7fb}button,input,select{font:inherit}button{cursor:pointer}.page-shell{width:min(1120px,calc(100% - 40px));margin:0 auto}.topbar{height:76px;display:flex;justify-content:space-between}.brand,.topbar{align-items:center}.brand{display:inline-flex;gap:10px;color:var(--ink);text-decoration:none;font-size:19px;font-weight:800}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;color:#fff;background:var(--purple);box-shadow:0 6px 15px #7064e83b;font-size:19px}.local-badge{display:inline-flex;align-items:center;gap:8px;color:#738098;font-size:12px}.push-status-note,.push-toggle{white-space:nowrap}.push-status-note{color:#a1434b;font-size:9px}.local-badge span{width:7px;height:7px;border-radius:50%;background:#57c99a;box-shadow:0 0 0 4px #57c99a20}.hero{min-height:190px;overflow:hidden;display:flex;align-items:center;padding:28px 42px;border:1px solid #eeedff;border-radius:22px;background:linear-gradient(110deg,#fff 20%,#f0efff)}.hero,.hero-copy{position:relative}.hero-copy{z-index:2;width:72%}.eyebrow{margin:0 0 7px;color:var(--purple);font-size:11px;font-weight:700}.hero h1{margin:0;color:#252e45;font-size:27px}.hero-description{margin:11px 0 0;color:#7d8799;font-size:12px}.hero-illustration{position:absolute;inset:0 61% 0 0;overflow:hidden;opacity:.9}.sun{width:54px;height:54px;top:26px;left:80px;border-radius:50%;background:#ffda9d;box-shadow:0 0 0 11px #ffda9d35}.hill,.sun{position:absolute}.hill{width:250px;height:150px;bottom:-96px;border-radius:50% 50% 0 0;transform:rotate(-12deg)}.hill-back{left:24px;background:#c9c4fb}.hill-front{left:120px;bottom:-110px;background:#a9a2f1;transform:rotate(12deg)}.road{width:30px;height:130px;left:138px;bottom:-71px;border-radius:50%;border:3px dashed #fff;transform:rotate(38deg)}.pin,.road{position:absolute}.pin{top:67px;left:150px;display:grid;place-items:center;width:33px;height:42px;color:#fff;border-radius:50% 50% 50% 8px;background:var(--purple);transform:rotate(-45deg);box-shadow:0 5px 12px #5045bd50}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0 22px}.stat-card{min-height:82px;display:flex;align-items:center;gap:13px;padding:16px 19px;border:1px solid #eff1f5;border-radius:16px;background:#fff;box-shadow:0 5px 18px #28365b05}.stat-icon{flex:0 0 39px;width:39px;height:39px;display:grid;place-items:center;border-radius:13px;font-size:19px;font-weight:700}.total-icon{color:#7165e7;background:#f0efff}.people-icon{color:#36a87c;background:#eaf8f1}.count-icon{color:#ed9e4e;background:#fff4e8}.stat-card p{margin:0 0 3px;color:var(--muted);font-size:11px}.stat-card strong{color:#2d3850;font-size:15px}.content-grid{grid-template-columns:minmax(0,1fr);align-items:start}.content-grid,.main-column,.side-column{display:grid;gap:17px}.bottom-tab-nav{position:fixed;z-index:15;right:50%;bottom:max(12px,env(safe-area-inset-bottom));width:min(560px,calc(100% - 24px));display:grid;grid-template-columns:repeat(5,1fr);padding:7px;border:1px solid #e9eaf2;border-radius:17px;background:#ffffffed;box-shadow:0 8px 30px #28365b20;transform:translate(50%);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.bottom-tab-nav button{min-width:0;min-height:53px;display:grid;align-content:center;justify-items:center;gap:2px;padding:4px 2px;border:0;border-radius:11px;color:#858da0;background:transparent;font-size:10px;transition:color .15s,background .15s}.bottom-tab-nav button>span:first-child{font-size:19px;line-height:1}.bottom-tab-nav button.is-active{color:var(--purple-dark);background:#f0efff;font-weight:700}.bottom-tab-nav button:focus-visible{outline:2px solid var(--purple);outline-offset:2px}.selected-trip-note{margin:15px 0 0;color:#929bad;font-size:11px}.selected-trip-note strong{color:#566178}.card{border:1px solid #eff1f5;border-radius:18px;background:#fff;box-shadow:0 7px 25px #28365b06}.balance-card,.expense-card,.expenses-card,.members-card{padding:21px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px}.section-heading h2{margin:0;color:#29344b;font-size:16px;font-weight:800}.section-heading .eyebrow{margin-bottom:3px}.heading-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:12px;color:var(--purple);background:#f2f1ff;font-size:21px}.people-heading-icon{color:#39a77d;background:#eaf8f1}.balance-heading-icon{color:#ec9c4d;background:#fff4e8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}.field{display:grid;gap:7px;color:#59657b;font-size:11px;font-weight:400}.field-wide{grid-column:1/-1}.auth-form input,.field input,.field select,.member-form input,.trip-form input{width:100%;min-width:0;height:43px;padding:0 12px;border:1px solid #e8ebf1;border-radius:10px;outline:none;color:#374258;background:#fff;font-size:16px;font-weight:400;transition:border-color .15s,box-shadow .15s}.auth-form input:focus,.field input:focus,.field select:focus,.member-form input:focus,.trip-form input:focus{border-color:#9c94f3;box-shadow:0 0 0 3px #7064e815}.auth-form input::-moz-placeholder,.field input::-moz-placeholder,.member-form input::-moz-placeholder,.trip-form input::-moz-placeholder{color:#b1b8c5}.auth-form input::placeholder,.field input::placeholder,.member-form input::placeholder,.trip-form input::placeholder{color:#b1b8c5}.field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20fill%3D%22none%22%20stroke%3D%22%238b95a7%22%20stroke-width%3D%222%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E);background-repeat:no-repeat;background-position:left 12px center}.participants-fieldset{min-width:0;margin:19px 0 15px;padding:0;border:0}.fieldset-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.fieldset-heading legend{float:right;padding:0;color:#59657b;font-size:11px;font-weight:600}.text-button{padding:2px 0;border:0;color:var(--purple);background:transparent;font-size:10px;font-weight:700}.participant-options{display:flex;flex-wrap:wrap;gap:8px}.participant-chip{display:inline-flex;align-items:center;gap:7px;min-height:33px;padding:5px 10px;border:1px solid #e9ebf2;border-radius:9px;color:#626d81;background:#fff;font-size:11px;cursor:pointer}.participant-chip:has(input:checked){border-color:#cbc6ff;color:#6157ca;background:#f6f5ff}.participant-chip input{width:14px;height:14px;margin:0;accent-color:var(--purple)}.field-hint{margin:8px 0 0;color:#9aa2b0;font-size:10px;line-height:1.8}.inline-empty{margin:3px 0;color:#a2aab8;font-size:11px}.primary-button{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:11px;color:#fff;background:var(--purple);box-shadow:0 6px 14px #7064e82b;font-size:12px;font-weight:700;transition:background .15s,transform .15s}.primary-button:hover{background:var(--purple-dark);transform:translateY(-1px)}.primary-button:disabled{cursor:not-allowed;opacity:.5;transform:none}.count-pill{padding:5px 10px;border-radius:20px;color:#7771cb;background:#f4f3ff;font-size:10px}.expense-list{display:grid;gap:9px}.expense-row{display:flex;align-items:center;gap:11px;min-width:0;padding:12px 0;border-top:1px solid #f1f2f6}.expense-symbol{flex:0 0 37px;width:37px;height:37px;display:grid;place-items:center;border-radius:12px;color:#e99b4c;background:#fff5e9}.expense-details{min-width:0;flex:1}.expense-details strong{display:block;overflow:hidden;color:#3a455b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.expense-details span{display:block;margin-top:4px;color:#99a1af;font-size:10px}.expense-side{display:flex;align-items:center;gap:9px;text-align:left}.expense-amount{white-space:nowrap;color:#303b51;font-size:12px}.delete-button{color:#d65f68;margin-left:1rem;height:27px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;font-size:15px}.delete-button:hover{color:#000;background:#d65f68}.edit-button{margin-left:1rem;height:27px;display:grid;place-items:center;border:0;border-radius:8px;color:#5d07e7;background:transparent;font-size:15px}.edit-button:hover{color:#000;background:#6ce707}.empty-state{display:grid;justify-items:center;padding:21px 10px 12px;color:#9ba3b1;text-align:center}.empty-icon{width:38px;height:38px;display:grid;place-items:center;margin-bottom:9px;border-radius:13px;color:#9189ee;background:#f4f3ff}.empty-state strong{color:#68748a;font-size:12px}.empty-state p{margin:5px 0 0;font-size:10px;line-height:1.8}.small-empty{padding:11px 8px}.member-form,.trip-form{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.member-form input,.trip-form input{height:40px;font-size:16px}.add-button{flex:0 0 40px;width:40px;height:40px;border:0;border-radius:10px;color:#fff;background:#38a87b;font-size:21px}.balance-list,.member-list{display:grid;gap:2px}.balance-row,.member-row{display:flex;align-items:center;gap:8px;min-height:41px;border-top:1px solid #f2f3f6}.avatar{flex:0 0 29px;width:29px;height:29px;display:grid;place-items:center;border-radius:10px;color:#6574b9;background:#eff1ff;font-size:12px;font-weight:700}.member-row:nth-child(3n) .avatar{color:#379572;background:#eaf8f1}.member-row:nth-child(3n+1) .avatar{color:#cb8a42;background:#fff4e8}.balance-name,.member-name{flex:1;overflow:hidden;color:#536076;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.member-delete{flex:0 0 26px}.balance-row .avatar{flex-basis:27px;width:27px;height:27px;border-radius:9px;font-size:11px}.balance-amount{white-space:nowrap;font-size:10px;font-weight:700}.balance-amount.credit{color:var(--green)}.balance-amount.debt{color:var(--red)}.balance-amount.settled{color:#a0a8b5}.settlement-section{margin-top:12px;padding:12px 11px;border-radius:12px;background:#f7f7ff}.settlement-title{margin-bottom:7px;color:#6b63ce;font-size:10px;font-weight:700}.settlement-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 0;color:#6c7484;font-size:10px}.settlement-row strong{color:#3d4960;white-space:nowrap;font-size:10px}.balance-note{margin:11px 0 0;color:#a2aab7;font-size:9px}.chat-card{padding:21px}.chat-status{padding:5px 9px;border-radius:20px;color:#26835d;background:#eaf8f1;font-size:10px}.chat-status-offline{color:#8c7893;background:#f3f0f5}.chat-messages{display:flex;flex-direction:column;gap:10px;min-height:220px;max-height:min(52vh,480px);overflow-y:auto;padding:12px;border:1px solid #f0f1f6;border-radius:13px;background:#fafaff}.chat-empty{margin:auto;color:#9ba3b1;font-size:11px}.chat-message{align-self:flex-start;width:-moz-fit-content;width:fit-content;max-width:min(82%,520px);padding:9px 12px;border:1px solid #edeef5;border-radius:12px 12px 12px 3px;background:#fff;overflow-wrap:anywhere}.chat-message-own{align-self:flex-end;border-color:#e4e1ff;border-radius:12px 12px 3px;background:#f4f3ff}.chat-message-heading{display:flex;align-items:baseline;gap:10px}.chat-message-heading strong{color:#6157ca;font-size:10px}.chat-message-heading time{color:#a2aab7;font-size:9px}.chat-message p{margin:5px 0 0;color:#4d596f;font-size:12px;line-height:1.8;white-space:pre-wrap}.chat-location-map{display:block;width:min(100%,360px);height:190px;margin-top:7px;border:1px solid #e8ebf1;border-radius:9px;background:#f3f5f8}.chat-location-link{display:inline-block;margin-top:7px;color:#6157ca;font-size:10px;text-decoration:none}.chat-location-link:hover{text-decoration:underline}.chat-error{margin:9px 0 0;color:#b94a54;font-size:10px}.chat-form{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px;gap:9px;margin-top:11px}.chat-form textarea{width:100%;min-width:0;resize:vertical;padding:10px 12px;border:1px solid #e8ebf1;border-radius:10px;outline:none;color:#374258;font:inherit;font-size:12px;line-height:1.8}.chat-form textarea:focus{border-color:#9c94f3;box-shadow:0 0 0 3px #7064e815}.chat-form textarea:disabled{background:#f7f8fa}.chat-form .primary-button{align-self:stretch;height:100%}.chat-location-button{min-height:44px;padding:6px;border:1px solid #dfece7;border-radius:11px;color:#26835d;background:#f1faf5;font-size:10px}.chat-location-button:disabled{cursor:not-allowed;opacity:.55}.notice{margin:0 0 14px;padding:11px 14px;border:1px solid #f3d9d9;border-radius:10px;color:#a1434b;background:#fff4f4;font-size:12px}.notice.success{border-color:#d5eee2;color:#237b58;background:#effaf4}.footer-note{padding:23px 0 105px;color:#a0a8b5;text-align:center;font-size:10px}.auth-wrap{min-height:calc(100vh - 120px);display:grid;place-items:center;padding:20px 0}.auth-card{width:min(430px,100%);padding:28px}.auth-card h1{margin:0 0 7px;font-size:22px}.auth-description{margin:0 0 20px;color:var(--muted);font-size:12px;line-height:1.9}.auth-form{display:grid;gap:12px}.auth-form label{display:grid;gap:7px;color:#59657b;font-size:11px;font-weight:600}.auth-switch{margin:17px 0 0;color:#788398;text-align:center;font-size:11px}.auth-switch button{padding:0;border:0;color:var(--purple);background:transparent;font-weight:700}.trip-list{display:grid;gap:10px}.trip-item{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #f0f1f6;border-radius:12px}.trip-item>div:nth-child(2){flex:1}.trip-item strong{display:block;color:#3a455b;font-size:12px}.trip-item span{display:block;margin-top:4px;color:#99a1af;font-size:10px}.trip-open{padding:8px 12px;border:1px solid #e4e1ff;border-radius:9px;color:#6157ca;background:#f7f6ff;font-size:10px}.subheading{margin:0 0 10px;color:#667187;font-size:11px;font-weight:700}.modal-backdrop{position:fixed;z-index:10;inset:0;display:grid;place-items:center;padding:20px;background:#20283a80}.modal{width:min(440px,100%);max-height:90vh;overflow:auto;padding:23px;border-radius:17px;background:#fff;box-shadow:0 18px 60px #17203a30}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.modal-heading h2{margin:0;font-size:16px}.modal-close{width:30px;height:30px;border:0;border-radius:8px;color:#7c8698;background:#f2f3f7;font-size:18px}.trip-form{margin:0}.small-text{color:#96a0ae;font-size:10px;line-height:1.8}.action-row{display:flex;gap:9px;margin-top:12px}.secondary-button{min-height:38px;padding:0 13px;border:1px solid #e7e9ef;border-radius:9px;color:#677287;background:#fff;font-size:10px}.notice-global{position:fixed;z-index:20;top:16px;left:50%;width:min(460px,calc(100% - 30px));transform:translate(-50%)}.visually-hidden{font-size:11px}@media(max-width:760px){.page-shell{width:min(100% - 28px,560px)}.hero{min-height:175px;padding:24px}.hero-copy{width:77%}.hero-illustration{inset-inline-start:-8%;opacity:.47}.content-grid{grid-template-columns:1fr}.side-column{grid-template-columns:1fr 1fr;align-items:start}.balance-card,.members-card{padding:17px}}@media(max-width:520px){.page-shell{width:calc(100% - 24px)}.local-badge{font-size:10px}.push-status-note{max-width:90px;white-space:normal}.hero{min-height:165px;padding:20px;border-radius:17px}.hero-copy{width:100%}.hero-illustration{inset-inline-start:-28%;opacity:.18}.hero-description{max-width:290px;line-height:1.8}.stats-grid{gap:7px;margin:12px 0 15px}.stat-card{min-height:77px;display:grid;gap:4px;padding:10px;border-radius:13px}.stat-icon{width:29px;height:29px;flex-basis:29px;border-radius:9px;font-size:15px}.stat-card p{font-size:9px}.stat-card strong{font-size:11px}.content-grid,.main-column,.side-column{gap:12px}.side-column{grid-template-columns:1fr}.chat-card,.expense-card,.expenses-card{padding:17px}.form-grid{gap:11px 8px}.field input,.field select{padding:0 9px;font-size:11px}.section-heading{margin-bottom:15px}.chat-form{grid-template-columns:minmax(0,1fr) 90px 78px;gap:7px}.chat-form .primary-button{font-size:10px}}
