/* V6.4.3 component refinements: semantic theme tokens inherited from FYNIA UI. */
#userAvatar,.account-summary .avatar,.profile-photo{padding:0;overflow:hidden;flex-shrink:0;border:1px solid var(--green-600);background:var(--green-700);color:#fff;min-width:44px;min-height:44px;aspect-ratio:1;line-height:1}
#userAvatar:hover,#userAvatar:focus,#userAvatar[aria-expanded=true]{background:var(--green-600);color:#fff;border-color:var(--green-400)}
#userAvatar:focus-visible,.account-menu button:focus-visible{outline:3px solid var(--green-400);outline-offset:3px}
.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.account-menu{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.account-menu button{color:var(--ink);background:transparent;text-align:left}
.account-menu button:hover,.account-menu button:focus-visible{color:var(--ink);background:var(--green-50)}
html[data-theme=dark] .account-menu button:hover,html[data-theme=dark] .account-menu button:focus-visible{background:var(--surface-secondary);color:var(--ink)}
.profile-photo-row{display:flex;align-items:center;gap:16px;margin-bottom:24px}.profile-photo{width:72px;height:72px;font-size:28px}.profile-photo-row small{display:block;margin-top:8px;color:var(--muted)}
.avatar-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);overflow:auto}
.avatar-dialog form{display:grid;gap:16px}.avatar-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}.avatar-dialog h2{margin:0}.avatar-dialog header button{min-width:44px}.avatar-dialog canvas{display:block;width:192px;height:192px;border-radius:50%;margin:auto;background:var(--green-50)}.avatar-dialog label{display:grid;gap:8px}.avatar-dialog input{width:100%;min-width:0;font-size:16px;box-sizing:border-box}.avatar-adjustments{display:grid;gap:8px}.avatar-dialog .dialog-footer{padding:16px 0 max(8px,env(safe-area-inset-bottom));display:flex;justify-content:flex-end;gap:8px}.avatar-feedback{min-height:24px;color:var(--muted);font-size:14px}.avatar-dialog::backdrop{background:#001e1a88}
.ledger-panel .filters input,.ledger-panel .filters select,.ledger-panel .filters .filter-clear,.ledger-panel .due-date-control,.ledger-panel .due-date-control>button{height:48px;min-height:48px;border-radius:12px;font-size:16px;font-weight:500;box-sizing:border-box}
.ledger-panel .filters label{min-width:0}.ledger-panel .due-date-control>button{width:100%;border:0;box-shadow:none;background:transparent;color:var(--ink);display:flex;justify-content:space-between;padding:0 12px}
.ledger-panel .filters .due-date-control input[type=date]{height:46px;min-height:46px;padding:0 12px;font-size:16px;font-weight:500}
.ledger-panel .table-mode-table td.select-cell{width:64px;min-width:64px;overflow:visible;text-overflow:clip}
.invoice-split{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;font-size:12px;line-height:1.5}.invoice-split span{text-align:left}.invoice-split b{display:block;font-size:15px}.bank-card-face{gap:12px!important}
.invoice-tabs{display:flex;gap:8px;margin:16px 0}.invoice-tabs button{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;font-size:14px;padding:8px}.invoice-tabs strong{font-size:16px}.invoice-tabs button.active{background:var(--green-50);border-color:var(--green-600);color:var(--ink)}
.compact-list-head,.compact-list-row{display:grid;grid-template-columns:minmax(120px,1.6fr) repeat(3,minmax(90px,1fr)) minmax(70px,.7fr) minmax(100px,1fr);align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.compact-list-head{font-size:12px;color:var(--muted)}.compact-list-row:last-child{border-bottom:0}.compact-list-row>*{min-width:0;overflow-wrap:anywhere}.compact-list-row .badge{justify-self:start}.compact-actions{display:flex;flex-wrap:wrap;gap:4px}.compact-actions button{white-space:normal;padding:8px;min-height:44px}.compact-list-row button{min-height:44px}
.month-pulse{display:flex;flex-wrap:wrap;gap:16px;margin-top:16px}.month-pulse>a{display:grid;gap:4px;flex:1;min-width:150px;color:var(--ink)}.month-pulse small,.month-pulse span{font-size:12px;color:var(--muted)}.month-pulse strong{font-size:15px;font-weight:650}.home-hero>div:first-child{flex:1;min-width:0}.home-hero h1{font-size:24px}
.brand-lockup{flex:none;text-align:center;margin-bottom:24px}.sidebar .brand{width:100%;height:auto;justify-content:center;margin:0}.sidebar .brand img{width:190px;max-width:100%;height:auto;object-fit:contain}.brand-signature{margin:8px 0 0;color:#c4e1d6;font-size:14px;line-height:1.5;font-weight:500;text-align:center}
@media(min-width:1001px){body:not(.auth-needed){overflow:hidden}.sidebar{height:100dvh;max-height:100dvh;overflow:visible;box-sizing:border-box}.sidebar #navigation{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}.sidebar .month-label,.sidebar-bottom{flex-shrink:0}.app-shell{height:100dvh;min-height:0;display:flex;flex-direction:column}.app-shell>.topbar{flex-shrink:0}.app-shell>main{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}}
@media(max-width:1100px){.compact-list-head{display:none}.compact-list-row{grid-template-columns:1fr 1fr;gap:8px;padding:16px 0}.compact-list-row>strong{grid-column:1/-1}.compact-list-row [data-label]:before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:4px}}
@media(max-width:600px){.home-hero{align-items:flex-start}.month-pulse{flex-direction:column;gap:12px}.home-hero h1{font-size:21px}.invoice-tabs{gap:4px}.invoice-tabs button{font-size:12px}.invoice-tabs strong{font-size:14px}.profile-photo-row{align-items:flex-start}.avatar-dialog{padding:16px}.avatar-dialog canvas{width:160px;height:160px}}
.sidebar .brand-lockup{width:100%;align-items:center}.sidebar .brand-lockup .brand,.sidebar .brand-lockup .brand img{width:190px;max-width:100%;max-height:none;height:auto}.sidebar .brand-signature{width:100%;margin:8px 0 0}
html[data-theme=dark] #userAvatar,html[data-theme=dark] .account-summary .avatar,html[data-theme=dark] .profile-photo{color:#10231d}
.ledger-panel .due-date-control>button{white-space:nowrap;gap:8px;text-align:left}
@media(min-width:1200px){.ledger-panel .filters{grid-template-columns:minmax(180px,1.4fr) minmax(160px,1fr) minmax(190px,1.2fr) minmax(170px,1fr) auto}.ledger-panel .filter-clear{grid-column:auto}.ledger-panel .table-mode-table th:nth-child(2){width:120px}.ledger-panel .table-mode-table th:nth-child(3){width:18%}}

.avatar-file{display:grid;gap:8px}.avatar-file small{overflow-wrap:anywhere;color:var(--muted)}.avatar-dialog input[type=range]{accent-color:var(--accent)}
