body [hidden]{display:none!important}.negative{color:#f2a3a6!important}.kind-income{color:#91c9a8}.kind-expense{color:#eca0a4}.kind-transfer{color:#95c6e7}.kind-loan,.kind-loan_opening{color:#c9afe9}
.account-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:18px;align-items:start}.finance-card{--account-color:#555f68;border:1px solid var(--line);border-left:5px solid var(--account-color);border-radius:12px;padding:16px;background:var(--panel);background:color-mix(in srgb,var(--account-color) 13%,var(--panel))}.finance-card .section-head{margin:0 0 12px}.account-heading{display:flex;align-items:flex-start;gap:8px}.account-toggle{display:flex;gap:12px;flex:1;align-items:center;justify-content:space-between;min-width:0;padding:0;background:transparent;color:inherit;text-align:left;min-height:56px}.account-toggle>span:first-child{min-width:0}.account-toggle strong{display:block;overflow-wrap:anywhere}.account-toggle small{display:block;font-size:11px;color:var(--muted);margin-top:5px;font-weight:400}.account-toggle .balance{font-size:23px;white-space:nowrap}.balance small{font-size:12px;display:inline}.icon-button{padding:8px;min-width:42px}.card-order{display:flex;gap:7px;justify-content:flex-end;margin-top:10px}.card-order button{padding:2px 10px;min-height:30px;font-size:13px}.drag-handle{touch-action:none;cursor:grab}.child-card{margin-top:14px;padding:13px}.loan-badge{display:flex;gap:12px;justify-content:space-between;border:1px solid #4b465c;border-radius:7px;background:#302b3e;color:#dfd2f0;padding:9px 11px;font-size:12px;margin-top:9px;overflow-wrap:anywhere}.loan-badge.given{background:#23383c;color:#bddfe2;border-color:#3b5b60}.loan-badge strong{white-space:nowrap}.journal-section{margin-top:30px}.journal-list,.account-history{min-width:0}.account-history{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.journal-date{font-size:13px;margin:20px 0 8px;color:var(--muted)}.operation-row{display:flex;gap:12px;align-items:center;width:100%;background:var(--panel);color:inherit;text-align:left;border:1px solid var(--line);border-radius:9px;margin-top:8px;padding:13px 14px;font-size:13px}.operation-state{font-size:22px;flex:none}.operation-state.posted{color:#91c9a8}.operation-state.draft{color:#e8b26d}.operation-description{display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}.operation-description>span{color:#d0dce0}.operation-description small{color:var(--muted);font-weight:400}.operation-money{text-align:right;white-space:normal;max-width:42%;overflow-wrap:anywhere}.directory-list{display:grid;gap:9px}.directory-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}.directory-row small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.directory-row .actions{justify-content:flex-end}.directory-row .actions button{font-size:12px;padding:8px 11px}.folder-button{background:transparent;color:var(--accent);text-align:left;flex:1}.archive-list{margin-top:24px}.archive-list .directory-row{margin-top:10px}details{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin-bottom:14px}summary{cursor:pointer;font-weight:650;min-height:34px;line-height:34px}details>label,details>.rule-editor,details>p{margin-top:12px}.check-row{display:flex;gap:9px;align-items:center;min-height:44px;margin:10px 0}.check-row input{flex:none}.rule-editor{display:grid;grid-template-columns:minmax(0,1fr) 82px 14px 42px;gap:8px;align-items:center;margin-bottom:9px}.rule-editor button{padding:6px}.operation-total{padding:13px;border:1px solid var(--line);border-radius:8px;background:#182126;color:var(--accent);font-weight:650}.deduction-preview{display:grid;grid-template-columns:minmax(0,1fr) 85px minmax(70px,auto);gap:8px;align-items:center}.deduction-preview span{overflow-wrap:anywhere}.form-actions{flex-wrap:wrap}#fields label{margin-bottom:13px}#fields fieldset{border:1px solid #806c48;border-radius:8px;padding:12px;margin-bottom:14px}#fields fieldset button{margin:4px;font-size:12px}#fields :disabled{opacity:.75}#settings-form{max-width:600px;display:grid;gap:10px}.sync-notice{padding:12px;border:1px solid #627b86;border-radius:8px;color:#bddce9}.operation-fab{position:fixed;right:25px;bottom:22px;width:64px;height:64px;border-radius:50%;background:#7ebde8;color:#102636;box-shadow:0 4px 16px #0005;z-index:40;padding:17px}.operation-fab svg{display:block;width:100%;height:100%}.new-operation-menu{position:fixed;right:24px;bottom:96px;z-index:40;display:grid;gap:8px;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:12px;min-width:220px;box-shadow:0 4px 18px #0007}.new-operation-menu button{background:#29343b;text-align:left}.app-version{padding-bottom:70px}#invitation-result input{margin:12px 0}
@media(max-width:700px){main{padding:22px 16px}header{align-items:flex-start;gap:10px}header>button{font-size:12px;padding:9px 10px}h1{font-size:25px}.account-cards{grid-template-columns:1fr;gap:14px}.finance-card{padding:13px}.account-toggle .balance{font-size:21px}.account-heading{gap:4px}.directory-row{flex-wrap:wrap;padding:13px}.directory-row>.actions{width:100%;justify-content:flex-start}.operation-row{gap:8px;padding:12px 10px}.operation-money{font-size:12px}.journal-tabs{gap:7px}.journal-tabs button{font-size:12px;padding:10px}.operation-fab{right:17px;bottom:17px}.new-operation-menu{right:16px;bottom:90px}.filters label{min-width:120px}.loan-badge{font-size:11px}.deduction-preview{grid-template-columns:minmax(0,1fr) 70px 84px}dialog{padding:18px}.rule-editor{grid-template-columns:minmax(0,1fr) 64px 10px 38px;gap:5px}}

/* Account navigation: modal drawer keeps focus and ignores backdrop clicks. */
.user-shell{display:block}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 32px;background:#1a2126;border-bottom:1px solid var(--line)}
.brand-home{background:transparent;padding:0;min-height:44px;white-space:nowrap}.user-trigger{display:flex;align-items:center;gap:12px;max-width:55%;background:transparent;padding:4px 8px}.user-trigger>span:first-child{overflow-wrap:anywhere;min-width:0}.user-avatar{display:inline-flex;align-items:center;justify-content:center;flex:none;width:42px;height:42px;border:1px solid #52636a;border-radius:50%;background:#29363d;color:#c3d9d6;overflow:hidden}.user-avatar svg{width:29px;height:29px}.profile-avatar{width:64px;height:64px;margin-bottom:18px}.profile-avatar svg{width:44px;height:44px}
dialog.user-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:80vw;max-width:80vw;height:100dvh;max-height:100dvh;border:0;border-right:1px solid var(--line);border-radius:0;padding:24px;overflow-y:auto;overscroll-behavior:contain}.user-drawer::backdrop{background:#0009}.drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:28px}.user-drawer nav{display:grid;gap:9px}.user-drawer nav button{text-align:left;min-height:48px;padding:12px 16px}.user-drawer .drawer-logout{margin-top:16px;color:#eca0a4}.service-menu{margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}body:has(.user-drawer[open]){overflow:hidden}.profile-card{max-width:650px}
@media(prefers-reduced-motion:no-preference){.user-drawer[open]{animation:drawer-enter .16s ease-out}@keyframes drawer-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}}
@media(max-width:700px){.topbar{padding:12px 16px;gap:8px}.topbar .brand{font-size:22px}.user-trigger{font-size:14px;gap:8px}.user-avatar{width:38px;height:38px}dialog.user-drawer{padding:18px 14px}.drawer-heading h2{font-size:17px}}

.finance-title{color:var(--accent)}.finance-title>span{color:#fff}

.back-to-menu{margin-bottom:20px;text-align:left;min-height:44px}

#login-error:empty{display:none}

/* Include the password caption height when matching input-to-input spacing. */
#login>label{line-height:17px}
#login-error:empty+button{margin-top:17px}

.finance-card{display:flex;flex-direction:column;min-width:0}.account-heading{position:relative}.account-toggle{padding-right:26px;min-height:60px}.card-chevron{position:absolute;top:0;right:0;font-size:21px;line-height:24px}.card-order{justify-content:flex-start;margin-top:auto;padding-top:12px}.card-order .drag-handle{min-width:38px;min-height:36px}

.topbar .user-trigger{background:transparent;border-color:transparent;box-shadow:none;min-height:44px}
.topbar .brand{display:inline-flex;align-items:center;font-size:32.4px;flex-shrink:0}
.topbar .user-trigger{font-size:20.25px;min-width:0}
.topbar .user-trigger>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .user-avatar{width:56.7px;height:56.7px}
.topbar .user-avatar svg{width:39.15px;height:39.15px}
@media(max-width:700px){.topbar .brand{font-size:29.7px}.topbar .user-trigger{font-size:18.9px}.topbar .user-avatar{width:51.3px;height:51.3px}}
.card-order .drag-handle{display:flex;align-items:center;justify-content:flex-start;min-width:44px;min-height:44px;padding:6px 0;background:transparent;border-color:transparent;box-shadow:none;color:#fff;margin-left:-5px}
.drag-dots{width:20px;height:28px;fill:currentColor;pointer-events:none}

.account-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:12px}
.account-toggle>span:first-child>strong{font-size:23px;line-height:1.25}.account-toggle .balance{font-weight:400;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.account-toggle .balance small{font-weight:400}
.loan-badge.taken,.loan-badge.given{background:color-mix(in srgb,var(--loan-color,#555f68) 24%,var(--panel));border-color:color-mix(in srgb,var(--loan-color,#555f68) 60%,var(--line));color:#e7eeee}.loan-badge strong{font-weight:400}
@media(max-width:700px){.account-toggle>span:first-child>strong{font-size:21px}.account-toggle{column-gap:10px}}

.account-card>.account-heading .account-toggle>span:first-child>strong{font-weight:400}
.account-card>.account-heading .account-toggle{padding-right:0}
.card-order .expand-account{margin-left:auto;min-width:44px;min-height:44px;padding:6px;background:transparent;border-color:transparent;color:inherit;font-size:22px;font-weight:400}

/* First badge: 2 × the unchanged 9px gap between badges. */
.finance-card>.account-heading .account-toggle{min-height:0}
.finance-card>.account-heading+.loan-badge{margin-top:18px}
.finance-card>.card-order{margin-bottom:-14px}
@media(max-width:700px){.finance-card>.card-order{margin-bottom:-12.5px}}

.finance-card>.account-heading .account-toggle{border:0}

.finance-card:not(.account-card)>.card-order{margin-bottom:-13.75px}
@media(max-width:700px){.finance-card:not(.account-card)>.card-order{margin-bottom:-12.25px}}

.card-order .expand-account{display:flex;align-items:center;justify-content:center;line-height:1}
.expand-chevron{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}

/* Lighter text in all operation rows, including account/partner histories. */
.operation-row .operation-description>strong,.operation-row .operation-description>span,.operation-row .operation-money{font-weight:400}

/* Larger journal text without restoring bold weight. */
.operation-row{font-size:15px}.operation-description small{font-size:14px}.operation-money{font-size:15px}
@media(max-width:700px){.operation-row{font-size:15px}.operation-money{font-size:15px}.operation-description small{font-size:14px}}

.user-shell main.home-main{padding-top:22px}

/* Match first date's top gap to the existing 8px date-to-operation gap. */
.account-card>.account-history{padding-top:8px}
.account-card>.account-history>.journal-date:first-child{margin-top:0}

/* Loan badge labels and amounts: 30% larger at each existing breakpoint. */
.loan-badge{font-size:15.6px}
@media(max-width:700px){.loan-badge{font-size:14.3px}}

/* Journal type buttons match the Show button at every breakpoint. */
.journal-tabs button{font-size:1rem}

/* Journal filter captions match loan badge typography. */
.journal-section .filters>label{font-size:15.6px;font-weight:400}
@media(max-width:700px){.journal-section .filters>label{font-size:14.3px}}

.journal-section .filters>label>input,.journal-section .filters>label>select{font-size:13px}

/* Consistent inset for the two journal select chevrons. */

/* Halve the text-to-border vertical gaps while keeping horizontal padding. */
.operation-row{padding-top:6px;padding-bottom:6px}
@media(max-width:700px){.operation-row{padding-top:5.5px;padding-bottom:5.5px}}

/* Double the floating action button's viewport edge offsets. */
.operation-fab{right:50px;bottom:44px}.new-operation-menu{right:49px;bottom:118px}
@media(max-width:700px){.operation-fab{right:34px;bottom:34px}.new-operation-menu{right:33px;bottom:107px}}

/* Increase current FAB edge offsets by another 50%. */
.operation-fab{right:75px;bottom:33px}.new-operation-menu{right:74px;bottom:109px;gap:12px}
@media(max-width:700px){.operation-fab{right:51px;bottom:25.5px}.new-operation-menu{right:50px;bottom:101.5px}}

/* Separate outlined operation choices without an enclosing panel. */
.new-operation-menu{background:transparent;border:0;box-shadow:none;padding:0}
.new-operation-menu button{border:1px solid var(--line);border-radius:12px}

/* Operation form selects use the same chevron inset as journal filters. */

/* Compact operation forms; other editors keep their existing typography. */
#modal:has([name=amount]) #form-title{font-size:23px;font-weight:400;line-height:1.25}
#modal:has([name=amount]) #fields{gap:8px}
#modal:has([name=amount]) #fields label{font-size:16.9px;margin-bottom:6.5px}
#modal:has([name=amount]) #fields input,#modal:has([name=amount]) #fields select,#modal:has([name=amount]) #fields textarea{font-size:16.9px}
#modal:has([name=amount]) #fields fieldset{margin-bottom:7px}
@media(max-width:700px){#modal:has([name=amount]) #form-title{font-size:21px}}

/* User menu typography follows operation forms; item centers are 60px apart. */
.drawer-heading h2{font-size:23px;font-weight:400;line-height:1.25}
.user-drawer nav{gap:0}
.user-drawer nav button{display:flex;align-items:center;font-size:16.9px;line-height:22px;height:60px;min-height:60px;padding:0 16px}
.user-drawer .drawer-logout{margin-top:0}
.user-drawer .service-menu{margin-top:0;padding-top:0;border-top:0;box-shadow:0 -1px 0 var(--line)}
@media(max-width:700px){.drawer-heading h2{font-size:21px}}

/* Profile avatar is 20% larger than the unchanged responsive header avatar. */
.user-shell{--avatar-size:56.7px;--avatar-symbol-size:39.15px}
.topbar .user-avatar{width:var(--avatar-size);height:var(--avatar-size)}
.user-avatar.profile-avatar{width:calc(var(--avatar-size)*1.2);height:calc(var(--avatar-size)*1.2)}
.topbar .user-avatar svg{width:var(--avatar-symbol-size);height:var(--avatar-symbol-size)}
.profile-avatar svg{width:calc(var(--avatar-symbol-size)*1.2);height:calc(var(--avatar-symbol-size)*1.2)}
.user-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.profile-card form{display:grid;gap:18px}.profile-card label input{margin-top:7px}
.profile-photo-row{display:flex;flex-direction:column;align-items:center;gap:18px}
.profile-photo-row .profile-avatar{margin:0}.profile-photo-controls{display:grid;gap:10px;min-width:0;max-width:100%}
.profile-photo-controls input{max-width:100%}.profile-photo-hint{font-size:13px;margin:0}
.profile-card p{margin:0}#profile-error{color:#ffb1b5}#profile-error:empty{display:none}
.profile-card button[type=submit]{justify-self:start}
.profile-card .profile-saved:disabled,.security-card .profile-saved:disabled{background:#31443e;border-color:#6caf9b;color:#e7eeee;font-weight:500;cursor:default;opacity:1;filter:none}
.password-field{position:relative;min-width:0}.password-field input{padding-right:54px}.password-eye{position:absolute;right:4px;bottom:4px;min-width:38px;min-height:36px;padding:4px}.password-hints{margin:0;font-size:.9rem}.security-card{max-width:720px}.security-card form{padding:18px 0;border-bottom:1px solid var(--border,#46545c)}.security-danger{padding-top:20px}.security-danger button{margin:8px 0}.security-card input{width:100%}.security-card [role=status]{white-space:pre-wrap}
@media(max-width:700px){.user-shell{--avatar-size:51.3px}}

.security-card form{display:grid;gap:16px}.security-card h3{margin:16px 0 0}.security-card .password-field label{margin:0}.security-card form>button{justify-self:start}.security-card>p{overflow-wrap:anywhere}

.operation-fab.sensitive-page{display:none}

/* Keep captions clear of the 6px focus outline on all stacked fields. */
label>input:not([type=checkbox]):not([type=radio]),label>select,label>textarea{margin-top:12px!important}
#users-list .directory-row>div:first-child{min-width:0}#users-list .user-storage{color:var(--muted);font-variant-numeric:tabular-nums}

#users-list .user-presence.is-online{color:#8ad6ae}#users-list .user-presence.is-offline{color:#a5afb5}#users-list [data-registered],#users-list [data-last-activity]{font-variant-numeric:tabular-nums}

#users-list .user-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.7fr);align-items:start;gap:18px}
#users-list .user-info{min-width:0;overflow-wrap:anywhere}#users-list .user-id{margin:0 0 6px;color:var(--muted)}
#users-list .user-card>.user-controls{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:10px;width:auto;min-width:0}
#users-list .user-controls>select,#users-list .user-controls>button{width:100%;min-width:0;margin:0}
#users-list .role-saved:disabled{background:#31443e;border-color:#6caf9b;color:#e7eeee;font-weight:500;cursor:default;opacity:1;filter:none}
@media(max-width:700px){#users-list .user-card{grid-template-columns:minmax(0,1fr) minmax(120px,.85fr);gap:12px}#users-list .user-controls>button{padding:9px 6px}}
@media(max-width:520px){#users-list .user-card{grid-template-columns:minmax(0,1fr)}#users-list .user-card>.user-controls{width:100%}}
/* One chevron for every collapsed select: its centre is 20px from the outer edge. */
select:not([multiple]):not([size]),select[size="1"]{appearance:none;-webkit-appearance:none;padding-right:40px;background-image:linear-gradient(45deg,transparent 40%,#e7eeee 41%,#e7eeee 64%,transparent 65%),linear-gradient(135deg,transparent 40%,#e7eeee 41%,#e7eeee 64%,transparent 65%);background-repeat:no-repeat;background-size:6px 6px;background-origin:border-box;background-position:right 20px center,right 14px center}
/* Keep the title row even when an income/expense has no operation title. */
.operation-description>.operation-title:empty::before{content:"\00a0"}
/* Wide journals place operation details on one line; long text can wrap in its cell. */
@media(min-width:1001px){.operation-description{grid-template-columns:minmax(90px,.45fr) minmax(0,1fr) minmax(0,1fr);align-items:center;column-gap:18px}}
/* Larger standalone pencil inside the unchanged 64px operation button. */
.operation-fab{padding:14.85px}
.calendar-panel{max-width:780px;margin:auto;padding:22px;overflow:visible}
.calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.calendar-heading h2{text-transform:capitalize;text-align:center}
.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-week{margin:18px 0 8px;text-align:center;color:var(--muted)}
.calendar-day{position:relative;min-width:0;padding:12px 4px 18px;border:1px solid transparent}.calendar-day.is-today{border-color:var(--accent)}.calendar-day.is-selected{background:var(--accent);color:#102622}.calendar-dot{position:absolute;bottom:3px;left:0;right:0;font-size:9px}
.calendar-records{max-width:900px;margin:24px auto}.calendar-record{width:100%;display:grid;gap:8px;text-align:left;margin:10px 0;overflow-wrap:anywhere}.calendar-record small{color:var(--muted)}
#calendar-custom{display:grid;grid-template-columns:1fr 1fr;gap:12px}#calendar-custom[hidden],#calendar-operation-types[hidden],.calendar-dot[hidden]{display:none}
@media(max-width:700px){.calendar-panel{padding:12px}.calendar-days,.calendar-week{gap:3px}.calendar-heading h2{font-size:17px}.calendar-day{padding:9px 2px 17px}.calendar-records .section-head{flex-wrap:wrap}.calendar-heading button{padding:8px 14px}}
