:root{color:#152033;font-synthesis:none;--blue:#1267d6;--blue2:#65a1ff;--card:#fff;--muted:#67748a;--line:#dce3ec;--danger:#bc2f3c;--shadow:0 14px 34px #17304d14;background:#f4f7fb;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;margin:0}button,input,select,textarea{font:inherit}button,.text-button,a{touch-action:manipulation}button{border:1px solid var(--line);background:var(--card);min-height:44px;color:inherit;cursor:pointer;border-radius:13px;padding:.65rem 1rem}button:hover{border-color:var(--blue)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #70a9ff}.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));color:#fff;border:0;font-weight:700}.danger{color:var(--danger);border-color:#eeb7bd}.subtle,small{color:var(--muted)}a{color:var(--blue);text-decoration:none}label{gap:.4rem;font-weight:600;display:grid}input,select,textarea{border:1px solid var(--line);background:var(--card);width:100%;min-height:46px;color:inherit;border-radius:12px;padding:.7rem .8rem}textarea{resize:vertical;min-height:90px}form{gap:1rem;display:grid}fieldset{border:1px solid var(--line);border-radius:14px;padding:1rem}legend{font-weight:700}.shell{grid-template-columns:240px 1fr;min-height:100dvh;display:grid}.shell aside{color:#eaf2ff;background:#08162c;height:100dvh;padding:2rem 1rem;position:sticky;top:0}.brand{color:#fff;align-items:center;gap:.7rem;margin:.2rem .5rem 2.5rem;font-size:1.45rem;font-weight:800;display:flex}.brand span,.logo{background:linear-gradient(145deg,var(--blue2),var(--blue));color:#fff;border-radius:14px;place-items:center;width:44px;height:44px;display:grid}.shell aside nav{gap:.5rem;display:grid}.shell aside nav a{color:#aebbd0;border-radius:12px;padding:.9rem 1rem;font-weight:650}.shell aside nav a.active{color:#fff;background:#ffffff18}.content{width:min(1120px,100%);margin:0 auto;padding:2.2rem 2.5rem 7rem}.bottom{display:none}.page-header{justify-content:space-between;align-items:center;margin-bottom:2rem;display:flex}.page-header h1,.group-header h1{margin:0;font-size:clamp(1.7rem,4vw,2.4rem)}.card-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;display:grid}.group-card,.panel,.expense-row{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px}.group-card{color:inherit;align-items:center;gap:1rem;padding:1.2rem;display:flex}.group-card h2{margin:0 0 .25rem}.avatar{object-fit:cover;border-radius:16px;flex:none;place-items:center;width:52px;height:52px;display:inline-grid}.fallback{color:#174c95;background:linear-gradient(145deg,#d9eaff,#b8d4ff);font-size:1.25rem;font-weight:800}.group-header{align-items:center;gap:1rem;display:flex}.group-header>a{font-size:1.5rem}.group-header span{color:var(--muted)}.group-header small{font-size:.6em}.tabs{border-bottom:1px solid var(--line);gap:.4rem;margin:1.5rem 0;display:flex}.tabs a{color:var(--muted);border-bottom:3px solid #0000;padding:.8rem 1rem;font-weight:700}.tabs a.active{color:var(--blue);border-color:var(--blue)}.toolbar{justify-content:space-between;align-items:start;margin-bottom:1rem;display:flex}.toolbar details{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:.75rem;position:relative}.toolbar details[open]{width:min(350px,80vw)}summary{cursor:pointer;font-weight:700}.list,.stack{gap:1rem;display:grid}.expense-row{overflow:hidden}.row-button{text-align:left;border:0;border-radius:0;justify-content:space-between;width:100%;padding:1.2rem;display:flex}.row-button>div{gap:.3rem;display:grid}.row-button p{margin:.15rem 0}.tag{color:#0a58b4;background:#e2efff;border-radius:999px;margin:.12rem;padding:.18rem .55rem;font-size:.85rem;font-weight:700;display:inline-block}.panel{padding:1.35rem}.panel h2{margin-top:0}.total{justify-content:flex-end;align-items:baseline;gap:1rem;font-size:1.15rem;display:flex}.total strong{font-size:1.8rem}.table{display:grid}.tr{border-bottom:1px solid var(--line);grid-template-columns:1fr auto;padding:.8rem 0;display:grid}.positive{color:#168052}.negative{color:#b43443}.settle,.banner{border-radius:14px;justify-content:space-between;align-items:center;gap:1rem;margin:.5rem 0;padding:1rem;display:flex}.settle{border:1px solid var(--line)}.banner{color:#174c95;background:#e8f2ff}.profile-head{align-items:center;gap:1rem;display:flex}.profile-head .avatar{width:80px;height:80px}.qr{text-align:center}.qr img{border-radius:16px;width:100%;max-width:280px}.columns{align-items:end;gap:.75rem;display:flex}.columns>*{flex:1}.segmented{margin-bottom:1rem;display:flex}.segmented button{border-radius:0;flex:1}.segmented button:first-child{border-radius:12px 0 0 12px}.segmented button:last-child{border-radius:0 12px 12px 0}.segmented .active{background:var(--blue);color:#fff}.check{align-items:center;gap:.5rem;margin:.35rem .8rem .35rem 0;display:inline-flex}.check input{width:22px;min-height:22px}.actions{justify-content:flex-end;gap:.7rem;display:flex}.notice{border-radius:10px;padding:.8rem}.notice.error{color:#941e2b;background:#ffe8eb}.notice.ok{color:#12663e;background:#e2f8ed}.auth-bg{background:radial-gradient(circle at 20% 20%,#3180ed,#06152c 60%);place-items:center;min-height:100dvh;padding:1.2rem;display:grid}.auth-card{color:#fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0e1d34e8;border:1px solid #ffffff30;border-radius:28px;width:min(440px,100%);padding:2rem;box-shadow:0 30px 80px #0005}.auth-card .logo{margin:auto}.auth-card h1{text-align:center}.auth-card input{color:#111;background:#fff}.auth-card>a,.auth-card>.subtle{text-align:center;color:#fff;margin-top:1rem;display:block}.auth-card .text-button{color:#fff;font-weight:750;text-decoration:underline}.backdrop{z-index:10;background:#071225aa;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.dialog{background:var(--card);border-radius:24px;width:min(460px,100%);max-height:92dvh;padding:1.4rem;overflow:auto;box-shadow:0 30px 80px #0006}.dialog.wide{width:min(780px,100%)}.dialog>header{justify-content:space-between;align-items:center;display:flex}.dialog>header h2{margin:0 0 1rem}.dialog>header button{border:0;font-size:1.5rem}.empty{text-align:center;color:var(--muted);padding:4rem}.skeleton{background:linear-gradient(100deg,#e5eaf0 20%,#f6f8fb 40%,#e5eaf0 60%) 0 0/200% 100%;border-radius:20px;height:140px;animation:1.2s infinite shimmer}.spinner{border:4px solid #ccc;border-top-color:var(--blue);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}.center{place-items:center;min-height:100dvh;display:grid}@keyframes shimmer{to{background-position:-200% 0}}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:759px){.shell{display:block}.shell aside{display:none}.content{padding:1.2rem 1rem 6.5rem}.bottom{z-index:5;bottom:calc(.7rem + env(safe-area-inset-bottom));background:#07162ff2;border:1px solid #ffffff2b;border-radius:22px;width:min(94%,520px);padding:.4rem;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 14px 34px #0005}.bottom a{text-align:center;color:#bac7da;border-radius:17px;flex:1;padding:.75rem .3rem;font-size:.86rem;font-weight:700}.bottom a.active{color:#fff;background:#2673dc}.page-header{margin-bottom:1.2rem}.page-header .primary{font-size:.85rem}.columns{display:grid}.toolbar{gap:.5rem}.toolbar details[open]{z-index:2;position:absolute;right:1rem}.row-button{padding:1rem}.row-button>strong{font-size:.9rem}.group-header .avatar{width:44px;height:44px}}@media (prefers-color-scheme:dark){:root{color:#eef3fb;--card:#111d30;--muted:#9aa8ba;--line:#29384e;--shadow:0 14px 34px #0004;background:#07101f}.fallback{color:#dcebff;background:#203c65}.tag{color:#cfe4ff;background:#153f70}.banner{color:#d2e8ff;background:#112f52}.skeleton{background:linear-gradient(100deg,#1a2738 20%,#26364b 40%,#1a2738 60%) 0 0/200% 100%}.auth-card input{color:#111;background:#fff}}.scanner{object-fit:cover;background:#000;border-radius:16px;width:100%;min-height:240px}.icon-button{width:46px;min-width:46px;height:46px;color:var(--blue);background:#fff;border-radius:50%;padding:0;font-size:1.7rem;line-height:1}.group-avatar svg{fill:currentColor;width:29px;height:29px}.page-segment{width:min(420px,100%);margin:0 auto 1.2rem}.people-panel{padding-block:.4rem}.people-list{display:grid}.person-row{border-bottom:1px solid var(--line);align-items:center;gap:.85rem;min-width:0;padding:.85rem .2rem;display:flex}.person-row:last-child{border-bottom:0}.person-row>div,.person-row>span{gap:.18rem;min-width:0;display:grid}.person-row strong,.person-row small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.person-row .avatar{border-radius:50%;width:48px;height:48px}.row-actions{flex-wrap:wrap;gap:.45rem;margin-left:auto;display:flex!important}.row-actions button{min-height:44px;padding:.4rem .75rem}.status-pill{color:#52657d;white-space:nowrap;background:#edf3fa;border-radius:999px;padding:.35rem .7rem;font-size:.82rem;font-weight:700;margin-left:auto!important;display:inline-block!important}.compact-stack{gap:.85rem}.dialog-tools{gap:.6rem;display:flex}.dialog-tools button{flex:1}.search-result{border:1px solid var(--line);border-radius:16px;padding-inline:.4rem}.qr>.avatar{border-radius:50%;width:72px;height:72px}.section-title{justify-content:space-between;align-items:center;gap:1rem;display:flex}.section-title h2{margin:0}.members-panel .person-row{padding-block:.65rem}.member-add-button{width:100%;margin-top:1rem}.invite-layout{grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);gap:1.3rem;display:grid}.invite-layout h3{margin-top:0}.invite-friends{border:1px solid var(--line);border-radius:16px;max-height:340px;padding:0 .7rem;overflow:auto}.select-person{text-align:left;background:0 0;border:0;border-radius:0;width:100%}.select-person:hover{background:#eff6ff}.select-person.selected{background:#e5f1ff}.select-person:disabled{opacity:.6;cursor:default}.selection-state{color:var(--blue);font-weight:700;margin-left:auto!important}.invite-selected{width:100%;margin-top:.8rem}.readonly-field{gap:.4rem;display:grid}.readonly-field>span{font-weight:600}.readonly-field>div,.readonly-field>strong{border:1px solid var(--line);background:#f5f8fc;border-radius:12px;justify-content:space-between;align-items:center;gap:.8rem;min-height:46px;padding:.3rem .35rem .3rem .8rem;display:flex}.readonly-field code{text-overflow:ellipsis;overflow:hidden}.readonly-field>strong{padding:.7rem .8rem;font-weight:500}.visually-hidden{clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;position:absolute!important;overflow:hidden!important}@media (max-width:759px){.invite-layout{grid-template-columns:1fr}.dialog.wide{width:100%;padding:1.1rem}.backdrop{align-items:end;padding:.55rem}.dialog{border-radius:24px 24px 12px 12px;max-height:88dvh}.request-row{flex-wrap:wrap;align-items:flex-start}.request-row .row-actions{width:100%;margin-left:3.8rem}.request-row .row-actions button{flex:1}.members-panel{padding:1rem}.members-panel .avatar{width:44px;height:44px}.dialog-tools{display:grid}.page-segment button{font-size:.95rem}.profile-head{justify-content:space-between}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important}}body{color:#10233f;background:linear-gradient(145deg,#f5faff 0%,#e6f2ff 52%,#dcecff 100%)}.brand img{object-fit:cover;border-radius:14px;width:44px;height:44px;box-shadow:0 4px 14px #0005}.logo{object-fit:cover;background:0 0;border-radius:20px;width:72px;height:72px;display:block;box-shadow:0 12px 26px #124ea433}.auth-bg{color:#10233f;background:radial-gradient(circle at 18% 14%,#fff 0%,#e5f3ff 42%,#c9e4ff 100%)}.auth-card{color:#10233f;background:#ffffffeb;border-color:#8bbcf066;box-shadow:0 30px 80px #174b8526}.auth-card>a,.auth-card>.subtle,.auth-card .text-button{color:#0b4589}.auth-card input{color:#10233f;background:#fff;border-color:#a9bfd9}@media (prefers-color-scheme:dark){:root{color:#10233f;--card:#fff;--muted:#52657d;--line:#cbd9e8;--shadow:0 14px 34px #17304d14;background:#eaf4ff}.fallback{color:#174c95;background:linear-gradient(145deg,#d9eaff,#b8d4ff)}.tag{color:#0a58b4;background:#e2efff}.banner{color:#174c95;background:#e8f2ff}.skeleton{background:linear-gradient(100deg,#e5eaf0 20%,#f6f8fb 40%,#e5eaf0 60%) 0 0/200% 100%}.auth-card input{color:#10233f;background:#fff}}
