:root{color:#171a15;font-synthesis:none;--bg:#f3f5ef;--surface:#fff;--surface-2:#e9ece4;--text:#171a15;--muted:#778072;--line:#dfe4d9;--accent:#b9ed52;--accent-dark:#19240d;--positive:#2c8a55;--negative:#d9594c;--shadow:0 18px 55px #19240d1a;--app-height:var(--app-height-px,min(var(--tg-viewport-stable-height,100dvh),100dvh));--safe-left:calc(max(env(safe-area-inset-left,0px),var(--tg-safe-area-inset-left,0px)) + var(--tg-content-safe-area-inset-left,0px));--safe-right:calc(max(env(safe-area-inset-right,0px),var(--tg-safe-area-inset-right,0px)) + var(--tg-content-safe-area-inset-right,0px));--safe-top:calc(max(env(safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px)) + var(--tg-content-safe-area-inset-top,0px));--safe-bottom:calc(max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px));background:#f3f5ef;font-family:Manrope,system-ui,sans-serif}:root[data-theme=dark]{color:#f5f7f1;--bg:#10120f;--surface:#191c17;--surface-2:#242920;--text:#f5f7f1;--muted:#9ea797;--line:#30372c;--accent:#b9ed52;--accent-dark:#16200c;--positive:#72d49a;--negative:#ff897d;--shadow:0 18px 55px #00000059;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#10120f}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;overflow:hidden}body{min-width:320px;height:var(--app-height);background:var(--bg);color:var(--text);margin:0}button,input,select,textarea{font:inherit}button{color:inherit}svg{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.app-shell{background:var(--bg);flex-direction:column;width:min(100%,760px);height:100%;min-height:0;margin:auto;display:flex;overflow:hidden}.topbar{flex:0 0 calc(64px + var(--safe-top));height:calc(64px + var(--safe-top));padding:var(--safe-top) calc(20px + var(--safe-right)) 0 calc(20px + var(--safe-left));z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);justify-content:space-between;align-items:center;display:flex;position:relative}.brand,.top-actions{align-items:center;gap:10px;display:flex}.brand-logo{object-fit:cover;border-radius:11px;width:34px;height:34px;display:block}.brand b{letter-spacing:-.03em;font-size:14px}.top-actions button,.round{background:var(--surface);cursor:pointer;border:0;border-radius:13px;place-items:center;width:38px;height:38px;display:grid}.profile{color:#3c286d;background:#d5c5ff;border-radius:50%;place-items:center;width:36px;height:36px;font-weight:800;display:grid}.page{overscroll-behavior-y:contain;scrollbar-gutter:stable;flex:auto;min-height:0;padding:22px 18px 36px;animation:.22s appear;overflow:hidden auto}@keyframes appear{0%{opacity:0;transform:translateY(5px)}}.page-title{justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;display:flex}.header-actions{gap:8px;display:flex}.secondary-round{color:var(--muted)}.secondary-round svg{width:18px}.page-title h1{letter-spacing:-.055em;margin:1px 0 0;font-size:32px;line-height:1.1}.eyebrow{color:var(--muted);text-transform:uppercase;letter-spacing:.09em;font-size:11px;font-weight:700}.month,.period-row input{background:var(--surface);color:var(--text);border:0;border-radius:12px;padding:10px 12px}.project-picker,.debtor-picker{scrollbar-width:none;gap:8px;margin:0 -18px 18px;padding:0 18px;display:flex;overflow-x:auto}.project-picker button{white-space:nowrap;border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:999px;padding:11px 17px;font-weight:600}.project-picker button.active{border-color:var(--accent);background:var(--accent);color:#18210f}.period-row{color:var(--muted);justify-content:space-between;align-items:center;margin-bottom:12px;font-size:12px;display:flex}.period-row>div{align-items:center;gap:10px;display:flex}.project-delete{font-size:10px}.hero-card{color:#fff;box-shadow:var(--shadow);background:#171d13;border-radius:24px;grid-template-columns:1fr 1fr;gap:14px;padding:22px;display:grid}.hero-card>div{flex-direction:column;gap:6px;display:flex}.hero-card>div+div{border-left:1px solid #ffffff26;padding-left:18px}.hero-card span{color:#b8c1b2;font-size:12px}.hero-card strong{letter-spacing:-.045em;font-size:22px}.hero-card .positive strong{color:var(--accent)}.hero-card .negative strong{color:#ff9287}.subtabs{border-bottom:1px solid var(--line);grid-template-columns:repeat(3,1fr);margin:22px 0;display:grid}.subtabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:12px 2px;font-size:13px;font-weight:600;position:relative}.subtabs button.active{color:var(--text)}.subtabs button.active:after{content:"";background:var(--accent);border-radius:2px;height:2px;position:absolute;bottom:-1px;left:12%;right:12%}.section-head,.people-head{justify-content:space-between;align-items:center;gap:12px;margin:26px 0 12px;display:flex}.section-head h2,.people-head h2{letter-spacing:-.035em;margin:0;font-size:18px}.section-head p,.people-head p{color:var(--muted);margin:3px 0 0;font-size:11px}.button{cursor:pointer;border:0;border-radius:13px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:0 17px;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex}.button.primary{background:var(--accent);color:#19240d}.button.secondary{background:var(--surface-2);color:var(--text)}.button.ghost{background:0 0}.button:disabled{opacity:.45;cursor:default}.button svg{width:18px}.list{flex-direction:column;gap:8px;display:flex}.list-row,.reminder{background:var(--surface);border:1px solid var(--line);border-radius:17px;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;min-height:68px;padding:12px 14px;display:grid}.list-row>div:nth-child(2),.reminder>div:nth-child(2){flex-direction:column;gap:3px;min-width:0;display:flex}.list-row strong,.reminder strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.list-row span,.reminder span{color:var(--muted);font-size:11px}.list-row>b,.reminder>b{font-size:13px}.row-tail{flex-direction:column;align-items:flex-end;gap:4px!important;display:flex!important}.text-action{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:0;font-size:9px}.danger{color:var(--negative)!important}.avatar{color:#493673;background:#ddcdfd;border-radius:13px;place-items:center;width:39px;height:39px;font-weight:800;display:grid}.avatar svg{width:18px}.people-head button{color:var(--positive);cursor:pointer;background:0 0;border:0;font-size:12px;font-weight:700}.people{flex-wrap:wrap;gap:7px;display:flex}.people>span{background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:8px 11px;font-size:12px;font-weight:600}.people i{color:#fff;background:#48a6dc;border-radius:5px;margin-left:6px;padding:2px 4px;font-size:8px;font-style:normal}.minor-title{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:24px 0 10px;font-size:11px}.switch{color:var(--muted);cursor:pointer;align-items:center;gap:6px;font-size:10px;display:flex}.switch input{display:none}.switch>span{background:var(--surface-2);border-radius:10px;width:31px;height:18px;position:relative}.switch>span:after{content:"";background:var(--muted);border-radius:50%;width:14px;height:14px;transition:all .2s;position:absolute;top:2px;left:2px}.switch input:checked+span{background:var(--accent)}.switch input:checked+span:after{background:#19240d;transform:translate(13px)}.balance-grid{gap:6px;margin-top:22px;display:grid}.balance-grid>div{border-bottom:1px solid var(--line);justify-content:space-between;padding:10px 2px;font-size:12px;display:flex}.positive-text{color:var(--positive)!important}.negative-text{color:var(--negative)!important}.date-block{background:var(--surface-2);border-radius:12px;align-content:center;place-items:center;width:42px;height:43px;display:grid}.date-block b{font-size:16px;line-height:1}.date-block span{text-transform:uppercase;font-size:8px}.finance-summary{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:23px}.finance-summary>div:first-child{flex-direction:column;gap:5px;display:flex}.finance-summary span{color:var(--muted);font-size:11px}.finance-summary strong{letter-spacing:-.05em;font-size:30px}.finance-summary .mini{border-top:1px solid var(--line);gap:20px;margin-top:17px;padding-top:14px;display:flex}.finance-summary .mini span{flex-direction:column;gap:3px;display:flex}.finance-summary .mini b{color:var(--text);font-size:13px}.quick-actions{grid-template-columns:repeat(2,1fr);gap:9px;margin:15px 0 4px;display:grid}.quick-actions button{border:1px solid var(--line);background:var(--surface);cursor:pointer;border-radius:17px;flex-direction:column;align-items:center;gap:7px;padding:12px 5px;font-size:11px;display:flex}.action-icon{border-radius:11px;place-items:center;width:34px;height:34px;font-size:21px;display:grid}.action-icon.income{color:#237b45;background:#d9f4df}.action-icon.expense{color:#b94238;background:#ffe0dc}.action-icon svg{width:18px}.sign{border-radius:50%;place-items:center;width:37px;height:37px;font-size:19px;display:grid}.sign.income{color:#237b45;background:#d9f4df}.sign.expense{background:var(--surface-2);color:var(--muted)}.subscription-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.subscription-grid article{background:var(--surface);border:1px solid var(--line);border-radius:18px;flex-direction:column;justify-content:space-between;min-height:112px;padding:14px;display:flex}.subscription-grid article>div{align-items:center;gap:9px;display:flex}.subscription-grid article>div>div{flex-direction:column;min-width:0;display:flex}.subscription-grid strong{font-size:12px}.subscription-grid span{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;font-size:9px;overflow:hidden}.subscription-grid b{font-size:16px}.sub-logo{background:#dce6fc;border-radius:10px;flex:0 0 34px;place-items:center;height:34px;font-weight:800;color:#304b81!important;font-size:10px!important;display:grid!important}.debt-summary{grid-template-columns:1fr 1fr;gap:9px;display:grid}.debt-summary>div{background:var(--surface);border:1px solid var(--line);border-radius:19px;flex-direction:column;gap:5px;padding:17px;display:flex}.debt-summary span{color:var(--muted);font-size:11px}.debt-summary strong{font-size:18px}.new-settlement-row{border:1px dashed var(--line);background:var(--surface);text-align:left;cursor:pointer;border-radius:17px;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:100%;margin-top:14px;padding:13px 14px;display:grid}.new-settlement-row>span{background:var(--accent);color:#18210f;border-radius:13px;place-items:center;width:39px;height:39px;display:grid}.new-settlement-row>div,.debtor-row>div{flex-direction:column;gap:3px;display:flex}.new-settlement-row strong,.debtor-row strong{font-size:13px}.new-settlement-row small,.debtor-row small{color:var(--muted);font-size:10px}.new-settlement-row>svg,.debtor-row>svg{width:16px;color:var(--muted)}.debtor-list{flex-direction:column;gap:7px;margin-top:9px;display:flex}.debtor-row{border:1px solid var(--line);background:var(--surface);text-align:left;cursor:pointer;border-radius:17px;grid-template-columns:auto 1fr auto auto;align-items:center;gap:11px;width:100%;padding:11px 14px;display:grid}.debtor-row.active{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}.debtor-row>b{font-size:12px}.person-ledger h3{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin:25px 0 12px;font-size:11px}.timeline{margin-left:8px}.timeline article{grid-template-columns:13px 1fr auto;gap:10px;min-height:62px;display:grid;position:relative}.timeline article:before{content:"";background:var(--line);width:1px;position:absolute;top:16px;bottom:-4px;left:5px}.timeline article:last-child:before{display:none}.timeline i{z-index:1;border:3px solid var(--bg);width:11px;height:11px;box-shadow:0 0 0 2px var(--positive);border-radius:50%;margin-top:4px}.timeline i.minus{box-shadow:0 0 0 2px var(--negative)}.timeline article>div{flex-direction:column;gap:4px;display:flex}.timeline strong{font-size:12px}.timeline span{color:var(--muted);font-size:10px}.timeline b{font-size:12px}.empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:190px;padding:26px;display:flex}.empty-mark{background:var(--surface-2);width:42px;height:42px;color:var(--muted);border-radius:14px;place-items:center;font-size:23px;display:grid}.empty h3{margin:12px 0 4px;font-size:15px}.empty p{color:var(--muted);max-width:290px;margin:0 0 15px;font-size:11px;line-height:1.5}.bottom-nav{flex:0 0 calc(68px + var(--safe-bottom));width:100%;height:calc(68px + var(--safe-bottom));padding:5px 18px var(--safe-bottom);background:color-mix(in srgb,var(--surface) 92%,transparent);border-top:1px solid var(--line);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);z-index:30;grid-template-columns:repeat(3,1fr);display:grid}.bottom-nav button{color:var(--muted);cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:9px;font-weight:600;display:flex}.bottom-nav button.active{color:var(--text)}.bottom-nav button.active svg{stroke-width:2.4px;color:var(--positive)}.sheet-backdrop{height:var(--app-height);z-index:50;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#05070488;justify-content:center;align-items:flex-end;display:flex;position:fixed;top:0;left:0;right:0}.sheet{width:min(100%,760px);max-height:calc(var(--app-height) - 16px);background:var(--surface);padding:9px 20px calc(24px + var(--safe-bottom));border-radius:26px 26px 0 0;animation:.25s sheet;overflow:auto;box-shadow:0 -20px 70px #0003}.sheet-handle{background:var(--line);border-radius:3px;width:38px;height:4px;margin:0 auto 11px}.sheet header{justify-content:space-between;align-items:center;display:flex}.sheet h2{letter-spacing:-.045em;margin:7px 0 18px;font-size:22px}.close{background:var(--surface-2);width:32px;height:32px;color:var(--muted);cursor:pointer;border:0;border-radius:50%;font-size:22px}@keyframes sheet{0%{opacity:0;transform:translateY(20px)}}.form{flex-direction:column;gap:15px;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field>span{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:700}.field input,.field select,.field textarea,.with-suffix{border:1px solid var(--line);background:var(--bg);width:100%;color:var(--text);border-radius:13px;outline:none;min-height:47px;padding:0 13px}.field textarea{resize:vertical;min-height:74px;padding-top:12px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent)}.two{grid-template-columns:1fr 1fr;gap:9px;display:grid}.with-suffix{align-items:center;display:flex}.with-suffix input{background:0 0;border:0;padding:0}.with-suffix span{color:var(--muted)}.invite-field{border:1px solid var(--line);background:var(--bg);border-radius:13px;grid-template-columns:1fr 45px;width:100%;display:grid;overflow:hidden}.invite-field input{border:0;border-radius:0;min-width:0}.invite-field button{border:0;border-left:1px solid var(--line);background:var(--surface-2);cursor:pointer;place-items:center;display:grid}.invite-field svg{width:18px}.invite-actions{grid-template-columns:1fr 1fr;gap:9px;display:grid}.trash-list .button{min-height:38px;padding:0 12px}.trash-list .list-row{grid-template-columns:auto 1fr auto}.invite-project{background:var(--bg);border:1px solid var(--line);border-radius:16px;flex-direction:column;gap:4px;padding:16px;display:flex}.invite-project span{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:10px}.invite-project strong{font-size:18px}.invite-loading{min-height:150px;color:var(--muted);align-content:center;place-items:center;gap:10px;font-size:11px;display:grid}.invite-loading .loader{margin:0}.amount-input{border-bottom:1px solid var(--line);grid-template-columns:1fr auto auto;align-items:center;margin-bottom:5px;display:grid}.amount-input input{min-width:0;color:var(--text);letter-spacing:-.06em;background:0 0;border:0;outline:0;padding:9px 0;font-size:40px;font-weight:800}.amount-input>span{color:var(--muted);font-size:25px}.voice{background:var(--surface-2);cursor:pointer;border:0;border-radius:12px;place-items:center;width:38px;height:38px;margin-left:10px;display:grid}.voice.active{background:var(--accent);animation:1s infinite pulse}@keyframes pulse{50%{transform:scale(.92)}}.checks{flex-wrap:wrap;gap:7px;display:flex}.checks label{border:1px solid var(--line);color:var(--muted);cursor:pointer;border-radius:999px;padding:8px 11px;font-size:11px;position:relative}.checks label.checked{background:var(--accent);border-color:var(--accent);color:#18210f}.checks input{opacity:0;width:1px;height:1px;position:absolute}.checks label:focus-within{outline:2px solid var(--positive);outline-offset:3px}.hint{color:var(--muted);margin:0;font-size:11px;line-height:1.5}.segmented{background:var(--bg);border-radius:13px;grid-template-columns:1fr 1fr 1fr;padding:4px;display:grid}.segmented button{min-height:38px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:10px;padding:4px;font-size:10px}.segmented button.active{background:var(--surface);color:var(--text);font-weight:700;box-shadow:0 3px 10px #0001}.participant-choice{border:0;min-width:0;margin:0;padding:0}.participant-choice legend{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:7px;font-size:10px;font-weight:700}.participant-choice .hint{margin-top:7px}.participant-choice .checks label{align-items:center;min-height:36px;display:flex}.project-expenses .section-head{margin-bottom:8px}.project-expenses .section-head .button{min-height:38px;padding:0 14px}.compact-empty{min-height:100px;padding:14px}.compact-empty h3{margin:0 0 4px}.compact-empty p{margin:0}.expense-list{border-top:1px solid var(--line)}.expense-row{border:0;border-bottom:1px solid var(--line);width:100%;min-height:56px;color:var(--text);text-align:left;cursor:pointer;background:0 0;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:9px;padding:9px 2px;display:grid}.expense-row:hover{background:var(--surface)}.expense-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.expense-row.readonly{cursor:default;grid-template-columns:minmax(0,1fr) auto}.expense-copy{flex-direction:column;gap:3px;min-width:0;display:flex}.expense-copy strong{white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.expense-copy span{color:var(--muted);font-size:11px}.expense-row>b{white-space:nowrap;font-size:13px}.expense-row>svg{width:14px;color:var(--muted)}.balance-hint{margin:-4px 0 14px}.hero-card small{margin-top:3px;font-size:10px;font-weight:400;display:block}.month-nav{align-items:center;gap:4px;display:flex}.month-nav button{border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;border-radius:10px;width:30px;min-height:38px;font-size:24px}.period-row>.month-nav{flex-shrink:0}.month-nav input{max-width:145px}.matrix-record{justify-content:flex-end;margin:20px 0 12px;display:flex}.matrix-scroll{border:2px solid color-mix(in srgb, var(--line) 70%, var(--muted));border-radius:12px;margin:12px 0 8px;overflow-x:auto}.matrix-scroll table{border-collapse:separate;border-spacing:0;white-space:nowrap;width:100%;font-size:11px}.matrix-scroll th,.matrix-scroll td{border-bottom:2px solid color-mix(in srgb, var(--line) 70%, var(--muted));border-right:2px solid color-mix(in srgb, var(--line) 70%, var(--muted));text-align:right;background:var(--bg);min-width:95px;padding:10px}.matrix-scroll th{background:var(--surface);text-align:left;font-weight:700}.matrix-scroll tr>:first-child{z-index:1;white-space:normal;max-width:125px;position:sticky;left:0}.matrix-scroll thead th{white-space:normal;max-width:140px}.matrix-scroll thead .matrix-group{text-align:center;max-width:none;position:static}.matrix-scroll thead tr:nth-child(2)>:first-child{position:static}.matrix-scroll .matrix-name{color:inherit;font:inherit;text-align:left;border:0;border-bottom:1px dashed var(--muted);cursor:pointer;background:0 0;padding:2px 0;font-weight:700}.matrix-scroll .matrix-name:disabled{opacity:.5;cursor:wait}.matrix-scroll td.matrix-self{background:var(--surface-2)}.matrix-scroll .matrix-debt{color:var(--negative);font-weight:700}.matrix-scroll td button{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:1px dashed;padding:3px 0;font-weight:700}.matrix-scroll td button:disabled{opacity:.4;cursor:wait}.matrix-zero{color:var(--muted)}.matrix-scroll tfoot td{font-weight:700}.matrix-scroll tfoot tr:last-child>*{border-bottom:0}.matrix-scroll:focus-visible{outline:2px solid var(--accent)}.settlement-matrix .section-head{margin-top:10px}.expense-empty{margin:16px 0}.hero-card.project-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:20px 14px;display:grid}.project-summary>div{min-width:0}.project-summary>div+div{padding-left:10px}.project-summary strong{white-space:nowrap;font-size:clamp(14px,3.1vw,24px)}.project-summary span{font-size:11px}.project-summary .positive strong{color:var(--positive)}.project-summary .negative strong{color:var(--negative)}.expense-tabs{background:var(--surface);border-radius:14px;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:26px 0 16px;padding:4px;display:grid}.expense-tabs button{color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:11px;padding:12px 4px;font-size:12px;font-weight:700}.expense-tabs button[aria-selected=true]{background:var(--accent);color:var(--accent-dark)}.expense-total{justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;display:flex}.expense-total.separated{border-bottom:1px solid var(--line)}.expense-total b{font-size:14px}.expense-total b small,.expense-total>div>span{display:block}.expense-total small{font-size:12px}.expense-total>div>span{color:var(--muted);margin-top:4px;font-size:11px}.expense-total>strong{white-space:nowrap;font-size:24px}.expense-total+.expense-list{border-top:0}.expense-counterparties{line-height:1.6}.expense-counterparties b{color:var(--positive)}.expense-counterparties>span{display:inline}.expense-amount{text-align:right;white-space:nowrap;flex-direction:column;gap:3px;display:flex}.expense-amount b{font-size:13px}.expense-amount small{color:var(--muted);font-size:10px}.matrix-scroll .matrix-my-name{color:var(--positive)}.matrix-my-name small{margin-left:5px;font-size:9px}@media (width<=420px){.period-row{gap:5px}.month-nav input{max-width:125px;padding:8px}.period-row>div:not(.month-nav){font-size:10px}.month-nav button{width:26px}}.return-choice{flex-direction:column;gap:6px;display:flex}.return-choice>span{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:10px;font-weight:700}.segmented.two-options{grid-template-columns:1fr 1fr}.toast{z-index:70;left:50%;bottom:calc(82px + var(--safe-bottom));color:#fff;box-shadow:var(--shadow);background:#171d13;border-radius:12px;padding:11px 16px;font-size:11px;position:fixed;transform:translate(-50%)}.auth-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:30px;display:flex}.auth-screen .brand-logo{border-radius:19px;width:60px;height:60px}.auth-screen h1{letter-spacing:-.05em;margin:20px 0 4px;font-size:26px}.auth-screen p{color:var(--muted);margin-bottom:20px;font-size:12px}.loader{border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:24px;height:24px;margin-top:20px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width>=700px){body{padding:24px 0}.app-shell{box-shadow:var(--shadow);border-radius:28px}.bottom-nav{border-radius:0 0 28px 28px}.sheet{max-height:calc(var(--app-height) - 48px);border-radius:26px;margin-bottom:24px}.page{padding-left:28px;padding-right:28px}.project-picker,.debtor-picker{margin-left:-28px;margin-right:-28px;padding-left:28px}}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.subscription-card{border:1px solid var(--line);background:var(--surface);min-width:0;color:var(--text);text-align:left;cursor:pointer;border-radius:18px;flex-direction:column;gap:12px;padding:14px;display:flex}.subscription-card .subscription-heading{white-space:normal;color:var(--text);align-items:center;gap:9px;display:flex}.subscription-heading>span:last-child{flex-direction:column;gap:4px;min-width:0;display:flex}.subscription-heading strong{overflow-wrap:anywhere}.subscription-card small{color:var(--muted);font-size:10px;line-height:1.4}.subscription-card .subscription-footer{color:var(--text);justify-content:space-between;align-items:center;font-size:16px;display:flex}.subscription-footer svg{width:16px;height:16px}.debtor-table-wrap{margin-top:18px}.debtor-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px}.debtor-table thead th{color:var(--muted);text-align:left;border-bottom:1px solid var(--line);padding:8px 4px;font-size:10px;font-weight:500}.debtor-table th:last-child{width:46px}.debtor-table tbody th,.debtor-table tbody td{border-bottom:1px solid var(--line);vertical-align:middle;padding:12px 4px}.debtor-table tbody td:nth-child(2){text-align:right}.debtor-table td b{white-space:nowrap}.debtor-table td small{color:var(--muted);margin-top:4px;font-size:9px;display:block}.debtor-name{width:100%;min-height:40px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;gap:4px;padding:0;display:flex}.debtor-name>span{overflow-wrap:anywhere;font-weight:700}.debtor-name small{color:var(--muted);font-size:9px;font-weight:400}.debtor-add{background:var(--accent);color:#18210f;cursor:pointer;border:0;border-radius:11px;place-items:center;width:36px;height:36px;margin-left:6px;display:grid}.debtor-add svg{width:18px;height:18px}.debtor-table td.debtor-expanded{background:var(--surface);padding:0 4px 12px}.debt-records{margin:0;padding:0;list-style:none}.debt-records li{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto 32px;align-items:center;gap:8px;padding:11px 4px;display:grid}.debt-records li:last-child{border-bottom:0}.debt-records li>div{flex-direction:column;gap:4px;display:flex}.debt-records strong{overflow-wrap:anywhere;font-size:11px}.debt-records span{color:var(--muted);font-size:9px;line-height:1.4}.debt-records b{font-size:11px}.debt-remove{width:32px;height:36px;color:var(--negative);cursor:pointer;background:0 0;border:0;padding:7px}.debt-remove svg{width:16px;height:16px}.debtor-table-wrap>.hint{margin-top:10px}.personal-reminder-toggle{cursor:pointer;align-items:center;gap:9px;min-height:40px;font-size:12px;display:flex}.personal-reminder-toggle input{width:18px;height:18px;accent-color:var(--accent)}.debtor-table th:last-child{text-align:right;width:42%}.debtor-table thead th:nth-child(2){text-align:left}.debtor-table .drag-column{width:32px;padding-left:0}.debtor-table tbody tr{cursor:pointer}.debtor-table tbody tr.dragging{background:var(--surface-2);opacity:.7}.debtor-table tbody td,.debtor-table tbody th{vertical-align:middle;height:64px}.debtor-table .debtor-name{min-height:40px;font-weight:700}.drag-grip{width:28px;height:44px;color:var(--muted);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;background:0 0;border:0;place-items:center;padding:4px;display:grid}.drag-grip:active{cursor:grabbing}.drag-grip svg{fill:currentColor;stroke:none;width:20px;height:20px}.debtor-balance{justify-content:flex-end;align-items:center;gap:10px;display:flex}.debtor-balance svg{width:14px;height:14px;color:var(--muted)}.personal-ledger{flex-direction:column;gap:20px;display:flex}.personal-ledger-total{justify-content:space-between;align-items:center;gap:16px;display:flex}.personal-ledger-total>div{flex-direction:column;gap:5px;display:flex}.personal-ledger-total span{color:var(--muted);font-size:12px}.personal-ledger-total strong{font-size:25px}.personal-ledger .debt-records li{align-items:center;min-height:78px;padding:14px 0}.personal-ledger .debt-records li>div{justify-content:center}.personal-ledger .debt-records small{color:var(--muted);font-size:10px}.personal-ledger .debt-records strong{font-size:12px}.personal-ledger .debt-records b{align-self:center;font-size:12px}.personal-reminder-fields{flex-direction:column;gap:10px;display:flex}.reminder-presets{grid-template-columns:1fr 1fr;gap:7px;display:grid}.reminder-presets button{text-align:left;border:1px solid var(--line);background:var(--surface);color:var(--text);cursor:pointer;border-radius:13px;flex-direction:column;gap:4px;padding:10px 12px;font-size:11px;display:flex}.reminder-presets button[aria-pressed=true]{background:var(--accent);color:var(--accent-dark);border-color:var(--accent)}.reminder-presets small{opacity:.7;font-size:10px}.confirm-backdrop{z-index:1000;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0008;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.confirm-dialog{background:var(--surface);width:min(100%,360px);color:var(--text);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;padding:24px}.confirm-dialog h2{margin:0 0 18px;font-size:20px}.confirm-dialog p{overflow-wrap:anywhere;margin:0 0 12px;font-size:13px;line-height:1.5}.confirm-dialog .hint{font-size:12px}.confirm-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:22px;display:grid}.project-subtabs{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0 18px}.settlement-controls{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.settlement-view{background:var(--surface);border-radius:14px;gap:4px;padding:4px;display:flex}.settlement-view button{color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:10px;padding:10px 14px;font-size:13px}.settlement-view button[aria-pressed=true]{background:var(--accent);color:var(--accent-dark);font-weight:700}.settlement-controls .switch{font-size:12px;position:relative}.settlement-controls .switch input{opacity:0;width:1px;height:1px;display:block;position:absolute}.settlement-controls .switch:focus-within{outline:2px solid var(--accent);outline-offset:5px;border-radius:6px}.settlement-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.settlement-column{background:var(--surface);border-radius:18px;min-width:0;padding:14px 12px}.settlement-column h2{margin:0 0 12px;font-size:14px}.settlement-column ul{margin:0;padding:0;list-style:none}.settlement-column li{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 0;font-size:12px;display:grid}.settlement-column li>span{overflow-wrap:anywhere}.settlement-column li>b{white-space:nowrap;font-size:12px}.settlement-column.incoming li>b{color:var(--positive)}.settlement-column.outgoing li>b{color:var(--negative)}.settlement-column .hint{margin:0;font-size:12px}.project-expenses{margin-top:20px}.expense-controls{flex-direction:column;gap:12px;display:flex}.expense-controls>.button{align-self:flex-end}.expense-controls .expense-tabs{width:100%;margin:0}.project-expenses .project-summary{margin:12px 0 16px;padding:14px 12px}@media (width<=360px){.settlement-column{padding:12px 8px}.settlement-column li{grid-template-columns:minmax(0,1fr);gap:4px}.settlement-column li>b,.settlement-column li>button{justify-self:start}}.calculator-controls{gap:8px;margin-top:6px;display:flex}.calculator-controls button,.calculator-operators button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);cursor:pointer;border-radius:10px;padding:9px 12px}.calculator-controls button[aria-pressed=true]{border-color:var(--accent)}.calculator-operators{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:8px;display:grid}.calculator-operators button{min-height:42px;padding:8px;font-size:20px}.amount-editor .hint{margin:8px 0 0;font-size:11px}.amount-editor .amount-input input{letter-spacing:-.03em;font-size:clamp(24px,7vw,40px)}
