.acc-layout{max-width:1450px;margin:35px auto;padding:0 24px;display:grid;gap:22px}.acc-layout .card{min-width:0;padding:30px}.acc-toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:20px 0}.acc-toolbar label{min-width:190px}.acc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:20px 0}.acc-grid article{background:#f8fafc;border:1px solid #e2e5eb;border-radius:16px;padding:22px}.acc-grid strong{display:block;font-size:29px;margin-top:10px}.acc-grid span,.acc-layout .small{color:#737c8d}.acc-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;align-items:end}.acc-form label,.acc-toolbar label{display:flex;flex-direction:column;gap:7px}.acc-layout select,.acc-layout input{width:100%;min-width:0}.acc-scroll{overflow:auto;max-height:600px}.acc-scroll table{border-collapse:collapse;width:100%;font-size:14px}.acc-scroll th,.acc-scroll td{padding:12px;text-align:left;border-bottom:1px solid #e5e8ed;vertical-align:top;min-width:95px;max-width:350px;overflow-wrap:anywhere}.acc-scroll th{position:sticky;top:0;background:#f5f7fa;z-index:1}.acc-scroll td:nth-last-child(2){min-width:220px}.acc-layout details{margin:18px 0}.acc-layout summary{cursor:pointer;font-weight:600}.acc-error{color:#a03c24}.acc-layout [role=status]{overflow-wrap:anywhere}.acc-layout a.button{padding:12px 16px;border:1px solid #ddd;border-radius:10px;text-decoration:none}.acc-layout [hidden]{display:none!important}@media(max-width:700px){.acc-layout{padding:0 10px}.acc-layout .card{padding:20px}.acc-form{grid-template-columns:1fr}.acc-toolbar>*{width:100%}.acc-grid{grid-template-columns:1fr}}

.fin-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.fin-heading h2{margin:7px 0}.fin-metric{display:flex;justify-content:space-between;gap:16px;padding:9px 0}.fin-metric b{font-size:23px;font-variant-numeric:tabular-nums}.fin-income{color:#16824c}.fin-expense{color:#b64136}.fin-net{color:#213d62}.fin-note{background:#fff6df;color:#775311;padding:12px 16px;border-radius:10px;font-size:13px;line-height:1.5}#financeOverview{padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid #e3e8ef}#finBalances article{padding:16px}#finBalances strong{font-size:24px}.fin-add{border:1px solid #e1e6ee;border-radius:12px;padding:16px}.fin-add[open] summary{margin-bottom:18px}.acc-toolbar .fin-checkbox{flex-direction:row;align-items:center;min-width:0;padding-bottom:12px}.fin-checkbox input{width:18px;height:18px}.acc-scroll th:nth-child(6){min-width:200px}.acc-scroll td:nth-last-child(2){min-width:85px}#accCashRows td:nth-child(6){min-width:220px}.acc-layout h1{margin:10px 0}#finSummary article h3{margin-top:0}.acc-layout .acc-grid article{min-width:0;overflow-wrap:anywhere}

#walletOverview{padding:16px 0 24px;border-bottom:1px solid #e3e8ef;margin-bottom:28px}.wallet-address{display:block;overflow-wrap:anywhere;font-family:monospace;font-size:12px;margin:12px 0}#walletTotal{padding:14px 18px;border-radius:12px;background:#e9f6ee;color:#186b42}#walletTotal strong{font-size:26px;margin-left:10px}#walletCards strong{font-variant-numeric:tabular-nums}

/* Compact finance workspace */
body{background:#f5f6f8;background-image:none}.acc-layout{max-width:1440px;margin:24px auto;padding:0 28px;gap:0}.fin-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.fin-page-heading .acc-toolbar{margin:0}.acc-layout h1{font-size:30px;margin:4px 0}.acc-layout h2{font-size:18px;margin:0 0 12px}.acc-layout h3{font-size:15px}.acc-layout .eyebrow{font-size:10px;letter-spacing:2px}.acc-layout .card{padding:20px;border:1px solid #e1e5eb;border-radius:12px;box-shadow:none;margin-bottom:16px;background:#fff}.acc-layout .small,#accStatus{font-size:12px;line-height:1.5}#accStatus{color:#747d8c;margin:10px 0 18px}.acc-layout button,.acc-layout a.button{font-size:13px;padding:9px 13px;border-radius:8px}.acc-layout input,.acc-layout select{font-size:13px;padding:9px 11px;min-height:38px;border-radius:8px}.acc-toolbar{gap:10px;margin:12px 0}.acc-toolbar label{min-width:150px;font-size:12px;gap:5px}.fin-tabs{display:flex;gap:4px;border-bottom:1px solid #dfe4eb;margin-bottom:18px}.fin-tabs button{border:0;background:transparent;color:#758093;border-radius:0;padding:12px 18px;border-bottom:2px solid transparent}.fin-tabs button[aria-selected=true]{color:#162b46;border-bottom-color:#162b46;font-weight:700}.fin-tabs button:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}#financeFilters .acc-toolbar{margin:0 0 16px}.fin-overview-top{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,2fr);gap:16px}.acc-grid{gap:12px;margin:12px 0;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.acc-layout .acc-grid article{padding:14px;border-radius:9px;background:#fafbfd}.acc-grid strong{font-size:25px;margin-top:8px}.fin-metric{padding:5px 0}.fin-metric b{font-size:20px}.fin-metric span{font-size:12px}.fin-heading{gap:10px;margin-bottom:8px}.fin-heading h2{margin:0}.fin-actions{display:flex;gap:8px}#financeOverview{margin-bottom:16px;padding:16px 20px;border:1px solid #e1e5eb}#finPeriod{margin:0 0 8px}#finSummary{margin:0}#finSummary article p{margin:7px 0 0}#finSummary h3{margin:0 0 6px}#walletTotal{background:transparent;padding:18px 0 12px;color:#172a43}#walletTotal span{display:block;font-size:12px;color:#737c8d}#walletTotal strong{display:block;font-size:36px;margin:6px 0}#walletCompact{line-height:1.8}.fin-text-button{margin-top:16px;background:transparent;border:0;color:#244464;padding-left:0!important}.fin-salary-shortcut{width:100%;text-align:left;background:#edf2f7;border:1px solid #dde5ed;color:#30455e;margin-bottom:16px}.acc-scroll th,.acc-scroll td{padding:10px 12px;font-size:13px}.acc-scroll th{font-size:11px;color:#68778a;font-weight:600}.acc-scroll td:nth-last-child(2){min-width:95px}#finRecent td:last-child{white-space:nowrap;text-align:right}#finRecent th:last-child{text-align:right}#finRecent td:nth-child(2){min-width:180px}#walletOverview{padding:0;border:0;margin:0}.fin-note{padding:8px 10px;margin-bottom:0;font-size:11px}.acc-layout details{margin:12px 0}.acc-form{gap:12px}.fin-add{padding:12px}.acc-layout button:disabled{opacity:.55}
@media(max-width:800px){.fin-page-heading{align-items:flex-start;flex-direction:column}.fin-overview-top{grid-template-columns:1fr}.acc-layout{padding:0 12px;margin-top:16px}.acc-layout .card{padding:16px}.acc-toolbar>*{width:auto}.fin-heading{flex-wrap:wrap}.fin-tabs{overflow:auto}.fin-tabs button{white-space:nowrap;padding:12px}.fin-page-heading .acc-toolbar{width:100%}.acc-form{grid-template-columns:1fr}.acc-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}

body::before{display:none!important}.fin-page-heading{align-items:center}.fin-page-heading .acc-toolbar{align-items:center;flex-wrap:wrap}.fin-page-heading .acc-toolbar label{margin:0;display:flex;flex-direction:row;align-items:center;gap:10px}.fin-page-heading #accMonth{width:170px}.acc-layout a.button{display:inline-flex;align-items:center;color:#334155;font-weight:600;min-height:38px;background:white;line-height:20px}.fin-page-heading button{min-height:38px}.fin-page-heading .acc-toolbar>*{flex-shrink:0}#transferStatus{margin:-6px 0 12px;font-size:11px;color:#7c8695}@media(max-width:800px){.fin-page-heading .acc-toolbar label{flex-direction:column;align-items:flex-start}.fin-page-heading .acc-toolbar{align-items:end;gap:8px}}

/* USDT overview and compact ledger. */
.fin-overview-top{grid-template-columns:minmax(280px,1fr) minmax(0,2fr)}#finSummary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#finSummary article{padding:24px 20px}#finSummary article>span{font-size:14px;font-weight:600}#finSummary article strong{font-size:30px;margin:16px 0 10px;font-variant-numeric:tabular-nums}#walletTotal{padding:12px 0 0}.wallet-rub{color:#798596;font-size:16px;margin:4px 0 14px}.exchange-rate-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 0}.exchange-rate-form label{font-size:12px;white-space:nowrap;margin:0}.exchange-rate-form input{width:92px;font-size:12px;min-height:32px;padding:6px 8px}.exchange-rate-form button{font-size:12px;padding:6px 9px}.exchange-rate-form>span{font-size:12px}#exchangeRateNotice{margin:6px 0 0;font-size:11px}#exchangeRateNotice:empty{display:none}#finRecent table{table-layout:auto;min-width:650px}#finRecent th,#finRecent td{width:auto;max-width:none;white-space:nowrap;overflow-wrap:normal}#finRecent th:nth-child(1),#finRecent td:nth-child(1){width:110px}#finRecent th:nth-child(2),#finRecent td:nth-child(2){width:auto;min-width:260px}#finRecent th:last-child,#finRecent td:last-child{width:155px}.acc-scroll#finRecent{max-height:390px}#accCashRows td:nth-child(6){white-space:nowrap;max-width:none;overflow-wrap:normal}@media(max-width:800px){.fin-overview-top{grid-template-columns:1fr}#finSummary article{padding:18px 12px}#finSummary article strong{font-size:23px}}@media(max-width:420px){#finSummary{grid-template-columns:1fr}}

#finSummary{grid-template-columns:1fr}#finSummary article{padding:18px 20px}#finSummary h3{margin:0 0 10px}#finSummary .fin-metric{padding:8px 0}#finSummary .fin-metric span{font-size:13px}#finSummary .fin-metric b{font-size:24px}#finSummary article p{margin:10px 0 0}.fin-recent-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.fin-recent-heading select{width:135px;margin:0}.fin-recent-heading h2{margin:0}

/* One summary card, three compact columns. */
#finSummary article{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 18px;padding:16px 18px;align-content:start}
#finSummary article h3{grid-column:1/-1;margin:0;font-size:14px}
#finSummary .fin-metric{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:0;min-width:0}
#finSummary .fin-metric span{font-size:12px}
#finSummary .fin-metric b{font-size:25px;line-height:1.25;overflow-wrap:anywhere}
#finSummary article p{grid-column:1/-1;margin:0;font-size:11px}
#financeOverview{align-self:start}
@media(max-width:420px){#finSummary article{gap:10px;padding:14px 12px}#finSummary .fin-metric b{font-size:20px}#finSummary .fin-metric span{font-size:11px}}

/* Align each summary metric and keep the balance equivalents side by side. */
#finSummary .fin-metric{align-items:center;text-align:center}
.wallet-balance-line{display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap}
.wallet-balance-line #walletTotal{padding:12px 0 0;flex:0 0 auto}
.wallet-balance-line #walletTotal strong,.wallet-balance-line #walletRub{font-size:clamp(24px,2.6vw,38px);font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;color:#173653;margin:12px 0 0;white-space:nowrap}
.wallet-balance-line #walletRub{padding:0}

/* Monthly USDT ledger: compact summaries and two transaction columns. */
.fin-overview-top{grid-template-columns:minmax(340px,1fr) minmax(0,1.7fr);align-items:start}
.acc-layout .fin-wallet-summary{padding:16px 20px}
.fin-wallet-summary .fin-text-button{margin-top:8px}
#financeOverview{padding:16px 20px}
#finSummary article{border:0;background:transparent;padding:8px 0 0;gap:8px 14px}
#finSummary article h3{display:none}
#finSummary article p{font-size:11px}
.fin-journal-heading{display:flex;gap:12px;align-items:center;margin:0 0 10px;flex-wrap:wrap}
.fin-journal-heading h2{margin:0;margin-right:auto}
.fin-journal-heading input{width:220px}
.fin-journal-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.acc-layout .journal-side{padding:14px;min-width:0}
.journal-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.journal-title h2{margin:0;font-size:17px}
.journal-expense .journal-title strong{color:#b64136}.journal-income .journal-title strong{color:#16824c}
.journal-entry{display:grid;grid-template-columns:132px minmax(80px,1fr) 90px 34px;gap:6px}
.acc-layout .journal-entry input{padding:7px 8px;min-height:34px;font-size:12px}
.acc-layout .journal-entry button{padding:4px;font-size:20px}
.journal-entry [inputmode=decimal]{text-align:right}
.journal-side [role=status]{margin:5px 0;font-size:11px;min-height:16px}
.journal-scroll{max-height:560px;overflow:auto;border:1px solid #e2e5eb;border-radius:6px}
.journal-scroll table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.journal-scroll th,.journal-scroll td{padding:7px 9px;border-bottom:1px solid #e8ebef;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.journal-scroll th{position:sticky;top:0;background:#f4f6f9;font-weight:600;z-index:1}
.journal-expense th{background:#fbefed}.journal-income th{background:#edf7ef}
.journal-scroll th:first-child{width:100px}.journal-scroll th:last-child{width:95px}
.journal-scroll td:first-child{white-space:nowrap}
.journal-scroll td:last-child,.journal-scroll th:last-child{text-align:right;white-space:nowrap}
.journal-scroll tbody tr:hover{background:#f8fafc}.journal-scroll>p{padding:10px;color:#737c8d}
.journal-count{margin:8px 0 0!important}
@media(max-width:1050px){.fin-journal-columns{grid-template-columns:1fr}.journal-scroll{max-height:430px}}
@media(max-width:800px){.fin-overview-top{grid-template-columns:1fr}}
@media(max-width:480px){.journal-entry{grid-template-columns:125px minmax(0,1fr) 34px}.journal-entry input:nth-child(2){grid-column:1/-1;grid-row:1}.journal-scroll th:first-child{width:85px}.journal-scroll th:last-child{width:78px}.journal-scroll th,.journal-scroll td{padding:6px}.fin-journal-heading input{width:100%}}

.fin-journal-columns{grid-template-columns:1fr}.journal-entry{grid-template-columns:140px minmax(100px,1fr) 120px 36px}.journal-scroll th:first-child{width:125px}.journal-scroll th:last-child{width:125px}.journal-title>span{font-size:12px;color:#737c8d}@media(max-width:480px){.journal-entry{grid-template-columns:125px minmax(0,1fr) 34px}.journal-scroll th:first-child{width:85px}.journal-scroll th:last-child{width:78px}}

.journal-comment{display:grid;grid-template-columns:minmax(80px,1fr) auto;gap:4px 8px;align-items:center;margin:0}
.acc-layout .journal-comment input{font-size:12px;min-height:30px;padding:5px 7px;background:transparent;border:1px solid transparent}
.acc-layout .journal-comment input:hover,.acc-layout .journal-comment input:focus{border-color:#d6deea;background:#fff}
.acc-layout .journal-comment button{padding:5px 8px;font-size:11px}
.journal-comment [role=status]{grid-column:1/-1;margin:0;min-height:0;font-size:11px}
.journal-comment [role=status]:empty{display:none}
.journal-scroll td{vertical-align:middle}

/* Overview cards share a height; editable expense comments live in Operations. */
.fin-overview-top{align-items:stretch}
#financeOverview{align-self:stretch;display:flex;flex-direction:column;justify-content:center}
#finSummary{flex:1;display:flex;align-items:center}
#finSummary article{width:100%;box-sizing:border-box}
#accCashRows table{table-layout:fixed;min-width:800px}
#accCashRows th,#accCashRows td{min-width:0;max-width:none;white-space:normal;vertical-align:middle}
#accCashRows th:nth-child(1){width:100px}#accCashRows th:nth-child(2){width:75px}#accCashRows th:nth-child(3){width:140px}
#accCashRows th:nth-child(4){width:auto}#accCashRows th:nth-child(5){width:120px}#accCashRows th:nth-child(6){width:105px}
#accCashRows td:nth-child(1),#accCashRows td:nth-child(2),#accCashRows td:nth-child(5),#accCashRows td:nth-child(6){white-space:nowrap}
#accCashRows th:nth-child(5),#accCashRows td:nth-child(5){text-align:right}
#accCashRows .journal-comment{min-width:190px}

/* Split the former monthly summary area into equal summary and Qwix cards. */
.fin-overview-top{grid-template-columns:minmax(340px,1fr) minmax(0,.85fr) minmax(0,.85fr)}
.fin-overview-top>.card{min-width:0}
.fin-qwix-summary{display:flex;flex-direction:column}
.fin-qwix-summary h2{margin:0}
.fin-qwix-summary .qwix-value{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 0}
.qwix-value strong{font-size:30px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.qwix-value span{font-size:12px;color:#758093}
.fin-qwix-summary .qwix-hint{margin-bottom:0}
@media(min-width:801px) and (max-width:1150px){.fin-overview-top{grid-template-columns:repeat(2,minmax(0,1fr))}.fin-overview-top>.fin-wallet-summary{grid-column:1/-1}}
@media(max-width:800px){.fin-overview-top{grid-template-columns:1fr}}

/* Transfer purposes and equal founder shares. */
#accCashRows table{min-width:1030px}
#accCashRows th:nth-child(4){width:auto}#accCashRows th:nth-child(5){width:180px}#accCashRows th:nth-child(6){width:120px}#accCashRows th:nth-child(7){width:105px}
#accCashRows th:nth-child(5),#accCashRows td:nth-child(5){text-align:left;white-space:normal}
#accCashRows th:nth-child(6),#accCashRows td:nth-child(6){text-align:right}
#accCashRows td:nth-child(7){white-space:nowrap}
#accCashRows select{font-size:12px;padding:6px;min-height:32px}
#founderTotals{grid-template-columns:repeat(4,minmax(0,1fr))}#founderPeople{grid-template-columns:repeat(3,minmax(0,1fr))}
#founderTotals strong{font-size:22px}.founder-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:12px 0;font-size:13px}.founder-line b{font-variant-numeric:tabular-nums;white-space:nowrap}#founderPeople h3{margin:0 0 16px}
@media(max-width:1000px){#founderTotals{grid-template-columns:repeat(2,minmax(0,1fr))}#founderPeople{grid-template-columns:1fr}}

#accPeople{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;align-items:stretch}#accPeople .salary-person{padding:22px;min-width:0;display:flex;flex-direction:column;gap:22px}#accPeople .salary-person h3{margin:0;font-size:17px;line-height:1.4;overflow-wrap:anywhere;min-height:48px}.salary-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.salary-counts>div{display:flex;flex-direction:column;gap:6px}.salary-counts span{font-size:12px;color:#68758b}.salary-counts strong{font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}.salary-amounts{margin:0;display:grid;gap:12px}.salary-amounts>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px}.salary-amounts dt{font-size:13px;color:#68758b}.salary-amounts dd{margin:0;text-align:right;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.salary-amounts>div:last-child{border-top:1px solid #dce2ec;margin-top:6px;padding-top:15px}.salary-errors{border-top:1px solid #dce2ec;padding-top:16px;margin-top:auto;color:#a33d19}.salary-errors summary{cursor:pointer;font-size:13px!important;font-weight:600}.salary-errors ul{padding:0;list-style:none;max-height:180px;overflow:auto;margin:12px 0 0}.salary-errors li{display:grid;gap:4px;padding:9px 0;border-bottom:1px solid #e9dfda;font-size:12px;overflow-wrap:anywhere}.salary-errors li span{color:#68758b}

/* Contain financial panels in the page; wide ledgers scroll in their own wrapper. */
.acc-layout{grid-template-columns:minmax(0,1fr)}
.acc-layout>*{min-width:0}
#accApp,.acc-layout [role=tabpanel],.acc-scroll{min-width:0;max-width:100%}
.fin-tabs{min-width:0;max-width:100%}
