.settlements{--set-accent:var(--att-cyan,#28c6c8);display:grid;gap:20px;padding-bottom:26px}.set-heading,.set-heading>div:last-child,.set-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.set-heading h1{font-size:25px;margin:0 0 5px}.set-heading p{margin:0;color:var(--muted)}.set-heading a,.set-heading button{display:inline-flex;align-items:center;gap:8px}.set-heading svg{width:19px;height:19px}.set-filters{display:grid;grid-template-columns:170px minmax(160px,1fr) minmax(180px,1fr) auto;gap:14px;align-items:end;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:16px}.set-filters label{display:grid;gap:7px;font-size:12px;color:var(--muted)}.set-filters button{min-height:42px}.set-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.set-card{position:relative;display:flex;align-items:center;gap:12px;text-align:left;background:linear-gradient(135deg,var(--panel),color-mix(in srgb,var(--set-accent,#28c6c8) 7%,var(--panel)));border:1px solid var(--border);border-radius:13px;padding:17px 14px;color:var(--text);cursor:pointer;min-width:0;transition:transform .15s,border-color .15s}.set-card:hover{transform:translateY(-2px);border-color:var(--set-accent,#28c6c8)}.set-card:focus-visible{outline:2px solid var(--set-accent,#28c6c8);outline-offset:3px}.set-card>span:nth-child(2){min-width:0;display:grid;gap:7px}.set-card small{font-size:12px;color:var(--muted)}.set-card strong{font-size:25px;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}.set-card em{font-size:10px;font-style:normal;color:var(--muted)}.set-card-icon{display:grid;place-items:center;width:39px;height:42px;flex-shrink:0;border-radius:10px;background:color-mix(in srgb,#28c6c8 12%,transparent);color:#28c6c8}.set-card-icon svg{width:24px;height:24px}.set-card-paid .set-card-icon{color:#36ba91;background:color-mix(in srgb,#36ba91 12%,transparent)}.set-card-balance .set-card-icon{color:#edc57d;background:color-mix(in srgb,#edc57d 12%,transparent)}.set-card-outstanding .set-card-icon{color:#9c91e6;background:color-mix(in srgb,#9c91e6 12%,transparent)}.set-card-arrow{position:absolute;right:12px;top:10px;font-size:13px;color:var(--muted)}.set-workbench{min-width:0;overflow:hidden;padding:0!important;border-radius:14px}.set-toolbar{padding:14px 16px;border-bottom:1px solid var(--border);flex-wrap:wrap}.set-tabs{display:flex;gap:5px;flex-wrap:wrap}.set-tabs button{background:transparent;color:var(--muted);border:1px solid transparent;border-radius:8px;padding:10px 14px;font-size:12px;cursor:pointer}.set-tabs [aria-selected=true]{background:color-mix(in srgb,#28c6c8 13%,var(--panel));color:var(--text);border-color:color-mix(in srgb,#28c6c8 40%,var(--border))}.set-toolbar input{max-width:260px;min-height:38px}.set-table-scroll{overflow:auto;max-height:65vh;scrollbar-gutter:stable}.set-matrix{border-collapse:separate;border-spacing:0;min-width:100%;font-size:12px;table-layout:auto}.set-matrix th,.set-matrix td{padding:12px 10px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap;text-align:right;min-width:110px;font-variant-numeric:tabular-nums}.set-matrix thead th{position:sticky;top:0;z-index:3;background:var(--panel);font-size:10px;text-align:center}.set-matrix .set-person{position:sticky;left:0;z-index:2;background:var(--panel);min-width:220px;text-align:left;border-right:2px solid var(--border)}.set-matrix thead .set-person{z-index:5}.set-matrix .set-day{min-width:95px}.set-matrix .set-day small{display:block;margin-top:5px;color:var(--muted)}.set-weekend{color:#c89c62}.set-matrix button,.set-ledger button{padding:4px 0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:color-mix(in srgb,#28c6c8 45%,transparent);text-underline-offset:4px}.set-matrix button:hover,.set-ledger button:hover{color:#28c6c8}.set-matrix .set-paid{color:#36ba91;font-weight:600}.set-matrix tfoot th,.set-matrix tfoot td{position:sticky;bottom:0;z-index:3;background:var(--panel);font-weight:700;border-top:2px solid var(--border)}.set-matrix tfoot .set-person{z-index:4}.set-workbench>.hint,#settlement-table>.hint{padding:8px 16px 14px;margin:0;font-size:11px}.set-ledger{width:100%;border-collapse:collapse;font-size:12px}.set-ledger th{color:var(--muted);font-size:11px;text-align:left;white-space:nowrap}.set-ledger td,.set-ledger th{padding:14px 16px;border-bottom:1px solid var(--border)}.set-ledger td{font-variant-numeric:tabular-nums}.set-ledger tbody tr:hover{background:color-mix(in srgb,#28c6c8 4%,transparent)}.set-amount{text-align:right;white-space:nowrap;font-weight:600}.set-in{color:#36ba91}.set-out{color:var(--text)}.set-tag{display:inline-block;white-space:nowrap;border-radius:6px;padding:5px 7px;background:color-mix(in srgb,#28c6c8 10%,transparent);font-size:10px}.set-tag-opening{background:color-mix(in srgb,#edc57d 12%,transparent)}.set-dialog{max-width:1050px;width:calc(100% - 40px);max-height:85dvh;padding:0;border:1px solid var(--border);border-radius:16px;background:var(--panel);color:var(--text);box-shadow:0 20px 80px #0006}.set-dialog::backdrop{background:#00171999;backdrop-filter:blur(3px)}.set-dialog>header,.set-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--border)}.set-dialog h2{margin:0;font-size:19px}.set-dialog>footer{border-top:1px solid var(--border);border-bottom:0;justify-content:flex-end}.set-dialog-body{padding:18px 22px;overflow:auto}.set-detail-total{font-size:32px;font-weight:700;margin:0 0 8px}.set-balance-formula{display:flex;flex-wrap:wrap;gap:14px;padding:15px 0 20px;font-size:13px}.set-dialog form{max-width:550px;margin:auto;display:grid;gap:16px}.set-dialog form label{display:grid;gap:7px;font-size:12px}.set-dialog form label[hidden]{display:none}.set-dialog form footer{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.set-cards-att{margin:-4px 0 16px}.set-cards-att .set-card{padding:12px;gap:9px;min-height:83px}.set-cards-att .set-card strong{font-size:20px}.set-cards-att .set-card small{font-size:10px}.set-cards-att .set-card em{font-size:9px}.set-cards-att .set-card-icon{width:32px;height:34px}.set-cards-att .set-card-icon svg{width:21px;height:21px}
@media(max-width:1200px){.set-card strong{font-size:22px}.set-card-icon{display:none}.set-cards-att .set-card strong{font-size:18px}}@media(max-width:850px){.set-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.set-filters{grid-template-columns:1fr 1fr}.set-heading{align-items:flex-start;flex-direction:column}.set-heading>div:last-child{flex-wrap:wrap}.set-matrix .set-person{min-width:180px}}@media(max-width:500px){.set-filters{grid-template-columns:1fr}.set-card{padding:14px 10px}.set-card strong{font-size:19px}.set-card small{font-size:11px}.set-dialog{width:calc(100% - 16px);max-height:93dvh}.set-dialog-body{padding:14px 12px}.set-ledger td,.set-ledger th{padding:12px 10px}.set-toolbar input{max-width:100%;width:100%}}
.set-workbench .table-scroll{max-height:65vh;overflow:auto;scrollbar-gutter:stable}.set-workbench .set-ledger thead th{position:sticky;top:0;z-index:2;background:var(--panel)}.set-matrix .set-paid{position:sticky;right:0;z-index:2;background:var(--panel);border-left:2px solid var(--border);min-width:130px}.set-matrix thead .set-paid,.set-matrix tfoot .set-paid{z-index:4}
.set-dialog[open]{display:flex;flex-direction:column}.set-dialog>header,.set-dialog>footer{flex-shrink:0}.set-dialog-body{min-height:0;overflow:auto}
/* Compact, shared cash cards and a single filter/action row. */
.settlements{gap:13px}.set-filters{grid-template-columns:150px minmax(160px,220px) minmax(180px,250px) minmax(270px,1fr);gap:12px;padding:10px 12px;border-radius:10px}.set-filters label{font-size:10px;gap:4px;min-width:0}.set-filters input,.set-filters select,.set-filters .control-trigger{min-height:34px;height:34px;padding-top:6px;padding-bottom:6px;font-size:12px}.set-filter-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-width:0}.set-filter-actions a,.set-filter-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:34px;padding:7px 11px;font-size:11px}.set-filter-actions svg{width:17px;height:17px}.set-cards,.set-cards-att{gap:10px;margin:0 0 13px}.set-cards .set-card,.set-cards-att .set-card{min-height:66px;padding:10px 12px;gap:10px;border-radius:10px}.set-cards .set-card>span:nth-child(2){gap:4px}.set-cards .set-card small,.set-cards-att .set-card small{font-size:10px;line-height:1.3}.set-cards .set-card strong,.set-cards-att .set-card strong{font-size:21px;line-height:1.2}.set-cards .set-card-icon,.set-cards-att .set-card-icon{display:grid;place-items:center;width:35px;height:37px;border-radius:9px;transition:transform .2s,box-shadow .2s}.set-cards .set-card-icon svg,.set-cards-att .set-card-icon svg{width:25px;height:25px;overflow:visible}.set-card:hover .set-card-icon{transform:translateY(-2px) rotate(-5deg);box-shadow:0 3px 12px color-mix(in srgb,currentColor 14%,transparent)}.set-card .set-icon-accent{stroke-width:2.2}.set-card:hover .set-icon-accent{animation:set-icon-glow .9s ease-in-out infinite alternate}.set-card:active{transform:translateY(1px) scale(.995)}.set-card:focus-visible .set-card-icon{transform:translateY(-2px)}.set-card-arrow{right:9px;top:7px;font-size:11px}.set-toolbar{padding:8px 12px;gap:8px}.set-tabs button{padding:7px 11px;font-size:11px;min-height:32px}.set-toolbar input{min-height:32px;height:32px;padding:6px 10px;font-size:12px;max-width:220px}.set-table-scroll{max-height:70vh}.set-workbench .table-scroll{max-height:70vh}
/* Sticky cells must be opaque even when the selected theme uses translucent panels. */
#settlement-root{--set-cell-bg:#ffffff;--set-head-bg:#edf5f4;--set-total-bg:#e0eeeb}html[data-theme=dark] #settlement-root{--set-cell-bg:#07262d;--set-head-bg:#103840;--set-total-bg:#12424b}
#settlement-root .set-matrix .set-person,#settlement-root .set-matrix .set-paid{background:var(--set-cell-bg);background-image:none;background-clip:border-box}#settlement-root .set-matrix thead th,#settlement-root .set-ledger thead th{background:var(--set-head-bg);background-image:none;color:var(--text)}#settlement-root .set-matrix tfoot td,#settlement-root .set-matrix tfoot th{background:var(--set-total-bg);background-image:none;color:var(--text)}#settlement-root .set-matrix thead .set-person,#settlement-root .set-matrix tfoot .set-person{z-index:7}#settlement-root .set-matrix thead .set-paid,#settlement-root .set-matrix tfoot .set-paid{z-index:6}#settlement-root .set-matrix tbody .set-person,#settlement-root .set-matrix tbody .set-paid{z-index:2}
@keyframes set-icon-glow{from{opacity:.65}to{opacity:1}}@media(prefers-reduced-motion:reduce){.set-card,.set-card-icon{transition:none!important}.set-card .set-icon-accent{animation:none!important}.set-card:hover,.set-card:hover .set-card-icon{transform:none}}
@media(max-width:1400px){.set-cards-att{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1100px){.set-filters{grid-template-columns:145px minmax(150px,1fr) minmax(160px,1fr)}.set-filter-actions{grid-column:1/-1;justify-content:flex-end}.set-cards .set-card strong{font-size:19px}}@media(max-width:650px){.set-filters{grid-template-columns:1fr 1fr}.set-filters>label:first-child{grid-column:1/-1}.set-filter-actions{justify-content:stretch}.set-filter-actions>*{flex:1}.set-cards .set-card,.set-cards-att .set-card{padding:9px;gap:7px}.set-cards .set-card strong{font-size:17px}.set-cards .set-card-icon{width:29px;height:32px}.set-cards .set-card-icon svg{width:22px;height:22px}.set-matrix .set-person{min-width:160px}.set-matrix .set-paid{min-width:110px}.set-toolbar input{max-width:100%}}
/* Shared financial cards, inspired by the approved colour reference. Waves are decorative. */
.set-cards .set-card{--cash-color:#779ba7;--cash-ink:#395d6b;min-height:116px;padding:16px 15px 30px;gap:17px;align-items:flex-start;border-radius:12px;border-color:color-mix(in srgb,var(--cash-color) 38%,var(--border));background:linear-gradient(125deg,color-mix(in srgb,var(--cash-color) 10%,var(--panel)),var(--panel));overflow:hidden;isolation:isolate;box-shadow:inset 0 1px 0 #ffffff08;transition:transform .2s,border-color .2s,box-shadow .2s}.set-cards .set-card-paid{--cash-color:#26ce94;--cash-ink:#087d54}.set-cards .set-card-balance{--cash-color:#f2c54d;--cash-ink:#9c6b08}.set-cards .set-card-outstanding{--cash-color:#ae81f7;--cash-ink:#7951b4}.set-cards .set-card-icon{display:grid;width:52px;height:56px;border-radius:16px;color:var(--cash-ink);background:linear-gradient(140deg,color-mix(in srgb,var(--cash-color) 27%,transparent),color-mix(in srgb,var(--cash-color) 14%,transparent));box-shadow:inset 0 1px 0 #ffffff18;z-index:1}.set-cards .set-card-icon svg{width:32px;height:32px;filter:drop-shadow(0 2px 2px #0002)}.set-cards .set-card-copy{gap:6px;z-index:1;padding-top:2px}.set-cards .set-card small{font-size:11px;line-height:1.2;color:var(--muted)}.set-cards .set-card strong{font-size:24px;line-height:1.2;letter-spacing:-.4px}.set-cards .set-card em{display:block;font-size:10px;line-height:1.3;margin-top:3px;color:var(--muted)}.set-cards .set-card-arrow{color:var(--cash-ink);opacity:0;transition:opacity .2s,transform .2s}.set-cards .set-card:hover{border-color:var(--cash-color);box-shadow:0 5px 20px color-mix(in srgb,var(--cash-color) 13%,transparent);transform:translateY(-2px)}.set-cards .set-card:hover .set-card-arrow,.set-cards .set-card:focus-visible .set-card-arrow{opacity:1;transform:translate(1px,-1px)}.set-cards .set-card:hover .set-card-icon{box-shadow:0 3px 14px color-mix(in srgb,var(--cash-color) 20%,transparent)}.set-card-wave{position:absolute;left:0;bottom:0;width:100%;height:34px;color:var(--cash-color);pointer-events:none;z-index:0;opacity:.8;transition:height .35s,opacity .35s}.set-wave-fill{fill:currentColor;opacity:.12}.set-wave-line{fill:none;stroke:currentColor;stroke-width:1.5;vector-effect:non-scaling-stroke}.set-card:hover .set-card-wave{height:39px;opacity:1}.set-cards .set-card:focus-visible{outline:2px solid var(--cash-color);outline-offset:3px}html[data-theme=dark] .set-cards .set-card{--cash-ink:#b4d2de}html[data-theme=dark] .set-cards .set-card-paid{--cash-ink:#76f3bb}html[data-theme=dark] .set-cards .set-card-balance{--cash-ink:#ffdb75}html[data-theme=dark] .set-cards .set-card-outstanding{--cash-ink:#c6a4ff}
@media(max-width:1700px){.set-cards .set-card{gap:11px;padding-left:12px;padding-right:12px}.set-cards .set-card strong{font-size:21px}.set-cards .set-card-icon{width:44px;height:48px}.set-cards .set-card-icon svg{width:29px;height:29px}}
@media(max-width:650px){.set-cards .set-card{min-height:110px;gap:9px;padding:12px 9px 29px}.set-cards .set-card-icon{width:33px;height:38px;border-radius:11px}.set-cards .set-card-icon svg{width:24px;height:24px}.set-cards .set-card strong{font-size:17px}.set-cards .set-card small{font-size:9px}.set-cards .set-card em{font-size:8px}.set-card-wave{height:27px}}
@media(prefers-reduced-motion:reduce){.set-card-wave,.set-card-arrow{transition:none!important}.set-card:hover .set-card-wave{height:34px}}
/* A month fits the available width; full amounts and accrual details live in the drawer. */
.set-period-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:7px 12px;border-bottom:1px solid var(--border);font-size:10px;color:var(--muted)}.set-period-tools>span{margin-right:auto}.set-period-tools button{border:1px solid transparent;background:transparent;color:var(--muted);padding:4px 8px;border-radius:6px;font-size:10px;cursor:pointer}.set-period-tools button[aria-pressed=true]{background:#1bbba51a;border-color:#29c6b44d;color:var(--text)}
#settlement-root .set-matrix-fit{width:100%;min-width:0;table-layout:fixed;font-size:10px}#settlement-root .set-matrix-fit .set-col-person{width:190px}#settlement-root .set-matrix-fit .set-col-position{width:88px}#settlement-root .set-matrix-fit .set-col-paid{width:105px}#settlement-root .set-matrix-fit th,#settlement-root .set-matrix-fit td{min-width:0;padding:7px 2px;text-align:center;white-space:nowrap;font-size:10px}#settlement-root .set-matrix-fit .set-person{text-align:left;padding-left:12px;min-width:0}#settlement-root .set-matrix-fit .set-paid{min-width:0;text-align:right;padding-right:9px}#settlement-root .set-matrix-fit .set-person-button{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;text-decoration:none;font-size:11px;padding:3px 0}#settlement-root .set-matrix-fit .set-position{overflow:hidden;text-overflow:ellipsis;text-align:left;padding-left:8px;color:var(--muted)}#settlement-root .set-matrix-fit .set-day button{font-size:inherit;background:#12b99d18;color:#87e6cc;text-decoration:none;border-radius:4px;padding:3px 1px;max-width:100%}#settlement-root .set-matrix-fit .set-day button:hover{background:#15c6a844;color:var(--text)}html:not([data-theme=dark]) #settlement-root .set-matrix-fit .set-day button{color:#08765c}#settlement-root .set-matrix-fit .set-day small{margin-top:3px;font-size:9px}#settlement-root .set-matrix-fit .set-week-groups th{top:0;height:24px;font-size:10px;padding:4px 2px}#settlement-root .set-matrix-fit thead tr:nth-child(2) th{top:24px;height:37px}#settlement-root .set-matrix-fit .set-week-groups span{font-weight:400;color:var(--muted)}#settlement-root .set-matrix-fit .set-row-selected td,#settlement-root .set-matrix-fit .set-row-selected th{background:#125350}#settlement-root .set-matrix-fit .set-row-selected .set-person{box-shadow:inset 3px 0 #b38bff}#settlement-root .set-matrix-fit tbody tr:hover td{background-color:#18bda412}.set-table-scroll:has(.set-matrix-fit){max-height:calc(100dvh - 440px);min-height:240px;border-radius:0 0 12px 12px;scrollbar-gutter:auto}
.set-worker-drawer[open]{position:fixed;inset:12px 12px 12px auto;margin:0;width:480px;max-width:calc(100vw - 24px);max-height:none;height:calc(100dvh - 24px);border-radius:20px;background:#06282f;box-shadow:-15px 0 70px #00101480;animation:set-drawer-in .22s ease-out}.set-worker-drawer::backdrop{background:#00171940;backdrop-filter:none}.set-worker-drawer>header{padding:16px 20px}.set-worker-drawer>header h2{font-size:13px;font-weight:500;color:var(--muted)}.set-worker-drawer>header button{padding:4px 10px;font-size:20px}.set-worker-drawer .set-dialog-body{padding:20px;overflow-y:auto}.set-worker-identity{display:flex;align-items:center;gap:14px;margin-bottom:22px}.set-worker-avatar{display:grid;place-items:center;flex-shrink:0;width:55px;height:55px;border-radius:50%;background:linear-gradient(135deg,#264770,#14606a);color:#d2b5ff;font-size:19px;font-weight:700}.set-worker-identity strong{display:block;font-size:18px}.set-worker-identity small{display:block;margin-top:7px;font-size:11px;color:var(--muted)}.set-worker-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.set-worker-totals>div{padding:13px 10px;border:1px solid #27616a;border-radius:12px;background:#0a333b}.set-worker-totals small{display:block;font-size:9px;color:var(--muted);margin-bottom:8px}.set-worker-totals strong{font-size:16px;white-space:nowrap}.set-worker-totals>div:last-child strong{color:#f4cb70}.set-worker-credit{font-size:12px;color:var(--muted)}.set-worker-progress{display:flex;align-items:center;gap:12px;margin:19px 0;font-size:11px}.set-worker-progress progress{appearance:none;width:100%;height:7px;border:0;border-radius:7px;overflow:hidden;background:#173e46}.set-worker-progress progress::-webkit-progress-bar{background:#173e46}.set-worker-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#10c1a2,#6be8c1);border-radius:7px}.set-worker-progress progress::-moz-progress-bar{background:#24cba7}.set-worker-actions{display:grid;gap:10px;margin-bottom:25px}.set-worker-actions>*{text-align:center;padding:11px;border-radius:10px;font-size:12px}.set-worker-history-heading{display:flex;align-items:center;justify-content:space-between;margin:12px 0}.set-worker-history-heading h3{font-size:14px;margin:0}.set-worker-history-heading span{font-size:10px;color:var(--muted);background:#123c46;padding:6px 9px;border-radius:20px}.set-worker-history{border:1px solid #23555f;border-radius:12px;overflow:hidden;margin-top:10px}.set-worker-history table{width:100%;border-collapse:collapse;font-size:11px}.set-worker-history th,.set-worker-history td{padding:11px 10px;text-align:left;border-bottom:1px solid #1a454e}.set-worker-history th{font-size:10px;font-weight:500;color:var(--muted);background:#082f38}.set-worker-history td:nth-child(2){white-space:nowrap;font-weight:600}.set-worker-history td small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.set-worker-history tr:last-child td{border-bottom:0}html:not([data-theme=dark]) .set-worker-drawer[open]{background:#f4faf9}html:not([data-theme=dark]) .set-worker-totals>div,html:not([data-theme=dark]) .set-worker-history th{background:#e5f2ef}html:not([data-theme=dark]) .set-worker-history-heading span{background:#dcece9}html:not([data-theme=dark]) .set-worker-totals>div:last-child strong{color:#966811}
@keyframes set-drawer-in{from{opacity:0;transform:translateX(25px)}to{opacity:1;transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.set-worker-drawer[open]{animation:none}}
@media(max-width:1700px){#settlement-root .set-matrix-fit .set-col-person{width:155px}#settlement-root .set-matrix-fit .set-col-position{width:70px}#settlement-root .set-matrix-fit .set-col-paid{width:90px}#settlement-root .set-matrix-fit th,#settlement-root .set-matrix-fit td{font-size:9px}#settlement-root .set-matrix-fit .set-person-button{font-size:10px}}
@media(max-width:1100px){#settlement-root .set-matrix-fit .set-col-person{width:130px}#settlement-root .set-matrix-fit .set-col-position{width:60px}#settlement-root .set-matrix-fit .set-col-paid{width:82px}#settlement-root .set-matrix-fit th,#settlement-root .set-matrix-fit td{font-size:8px;padding-left:0;padding-right:0}.set-week-groups span{display:none}}

.set-table-scroll:has(.set-matrix-fit){max-height:calc(100dvh - 550px);min-height:200px}
/* Lean cards and a single, uncluttered drawer heading. */
.set-cards .set-card,.set-cards-att .set-card{min-height:78px;height:78px;padding:9px 13px 13px;gap:12px;align-items:center}.set-cards .set-card-icon{width:40px;height:44px;border-radius:12px}.set-cards .set-card-icon svg{width:27px;height:27px}.set-cards .set-card-copy{gap:3px;padding-top:0}.set-cards .set-card strong{font-size:21px}.set-cards .set-card em{margin-top:0;font-size:9px}.set-cards .set-card small{font-size:10px}.set-card-wave{height:17px}.set-card:hover .set-card-wave{height:21px}
.set-worker-drawer[open]{animation:set-drawer-slide-in .28s cubic-bezier(.2,.8,.25,1)}.set-worker-drawer[open].set-drawer-closing{animation:set-drawer-slide-out .22s ease-in forwards}.set-worker-drawer .set-dialog-body{padding:26px 20px 20px}.set-worker-identity{padding-right:30px;margin-bottom:22px}.set-worker-identity strong{font-size:19px;line-height:1.35}.set-worker-identity small{font-size:12px;margin-top:5px}.set-worker-drawer .set-drawer-close{position:absolute;top:15px;right:16px;z-index:2;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;color:var(--muted);font-size:27px;line-height:1;cursor:pointer}.set-worker-drawer .set-drawer-close:hover{color:var(--text);background:transparent}.set-drawer-close:focus-visible{outline:2px solid #42c9b2;outline-offset:2px}.set-worker-totals small{display:flex;align-items:center;gap:5px}.set-worker-totals small svg{width:16px;height:16px;flex-shrink:0}.set-worker-accrued small svg{color:#a3c3e0}.set-worker-paid small svg,.set-worker-paid strong{color:#57dcb6}.set-worker-due small svg{color:#efca74}
#settlement-root .set-matrix-fit thead .set-person,#settlement-root .set-matrix-fit .set-paid{text-align:center;padding-left:4px;padding-right:4px}#settlement-root .set-matrix-fit .set-paid{background:#0c3838;color:#66e1bb;border-left:2px solid #277267}#settlement-root .set-matrix-fit thead .set-paid{background:#14504b;color:#c7f8e9}#settlement-root .set-matrix-fit tfoot .set-paid{background:#16584c;color:#d2fff0}#settlement-root .set-matrix-fit tbody tr:nth-child(even) td:not(.set-paid){background-color:#72b5ba08}#settlement-root .set-matrix-fit td.set-weekend-cell{background-color:#c8a86a0b}#settlement-root .set-matrix-fit td.set-week-start{border-left:2px solid #3d6873}#settlement-root .set-matrix-fit .set-week-groups th:nth-child(2n+3){background:#16444b}#settlement-root .set-matrix-fit .set-row-selected .set-paid{background:#1b6253}html:not([data-theme=dark]) #settlement-root .set-matrix-fit .set-paid{background:#e1f4ec;color:#126746}html:not([data-theme=dark]) #settlement-root .set-matrix-fit thead .set-paid,html:not([data-theme=dark]) #settlement-root .set-matrix-fit tfoot .set-paid{background:#cae9dd;color:#124f3c}html:not([data-theme=dark]) #settlement-root .set-matrix-fit .set-week-groups th:nth-child(2n+3){background:#dfedec}.set-table-scroll:has(.set-matrix-fit){max-height:calc(100dvh - 512px)}
@keyframes set-drawer-slide-in{from{transform:translateX(calc(100% + 25px))}to{transform:translateX(0)}}@keyframes set-drawer-slide-out{from{transform:translateX(0)}to{transform:translateX(calc(100% + 25px))}}
@media(max-width:650px){.set-cards .set-card{gap:8px;padding:8px;min-height:78px;height:78px}.set-cards .set-card-icon{width:29px;height:34px}.set-cards .set-card-icon svg{width:22px;height:22px}.set-cards .set-card strong{font-size:17px}.set-cards .set-card small{font-size:9px}.set-cards .set-card em{font-size:8px}}
@media(prefers-reduced-motion:reduce){.set-worker-drawer[open],.set-worker-drawer[open].set-drawer-closing{animation:none}.set-card:hover .set-card-wave{height:17px}}
.set-worker-secondary-actions{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;padding:0!important}.set-worker-secondary-actions a{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 8px;border-radius:10px;font-size:11px;white-space:nowrap}.set-worker-secondary-actions svg{width:16px;height:16px;flex-shrink:0}.set-worker-history .set-history-date{font-weight:500;color:#56d4c4}.set-worker-history td:nth-child(2),.set-worker-history th:nth-child(2){text-align:right;padding-right:17px}.set-worker-history th,.set-worker-history td{padding-top:10px;padding-bottom:10px}.set-worker-history tbody tr:nth-child(even){background:#2aafa906}.set-worker-history tbody tr:hover{background:#2aafa912}html:not([data-theme=dark]) .set-worker-history .set-history-date{color:#087f70}

/* Compact, themed object funding form, shared with employee payments. */
#set-dialog.set-entry-dialog{width:min(620px,calc(100% - 32px));border-color:color-mix(in srgb,var(--accent) 25%,var(--border));background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 4%,var(--panel)),var(--panel));box-shadow:0 24px 90px #0005,inset 0 1px 0 #ffffff0a}
#set-dialog.set-entry-dialog>header{padding:19px 24px;background:color-mix(in srgb,var(--bg) 65%,transparent);border-bottom:1px solid var(--border)}
#set-dialog.set-entry-dialog h2{font-size:19px;font-weight:650}
#set-dialog.set-entry-dialog>header button{display:grid;place-items:center;width:32px;height:32px;padding:0;font-size:21px;border-radius:9px}
#set-dialog.set-entry-dialog .set-dialog-body{padding:20px 24px 24px}
#set-entry-form{max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 16px;margin:0}
#set-entry-form .set-entry-wide{grid-column:1/-1}
#set-entry-form label{min-width:0;gap:8px;color:var(--muted);font-size:12px;font-weight:550}
#set-entry-form .control-trigger,#set-entry-form input{width:100%;min-height:44px;border-radius:10px;font-size:14px;color:var(--text)}
#set-entry-form .control-trigger{text-align:left;justify-content:space-between}
#set-entry-form input[name=amount]{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums}
#set-entry-form .set-entry-intro{grid-column:1/-1;margin:0 0 2px;font-size:13px;color:var(--muted);line-height:1.5}
#set-entry-form .set-entry-explanation{display:flex;gap:12px;align-items:center;padding:13px 14px;border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border));border-radius:11px;background:color-mix(in srgb,var(--accent) 5%,transparent)}
#set-entry-form .set-entry-symbol{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:9px;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-size:23px}
#set-entry-form .set-entry-explanation p{margin:0;font-size:12px;line-height:1.55;color:var(--muted)}
#set-entry-form .set-entry-worker-hint{font-size:11px;font-weight:400;line-height:1.4}
#set-entry-form .set-entry-worker-hint:empty{display:none}
#set-entry-form .error{margin:0;padding:11px 13px;border:1px solid color-mix(in srgb,var(--danger,#e17c73) 45%,var(--border));border-radius:9px;background:color-mix(in srgb,var(--danger,#e17c73) 8%,transparent);font-size:12px;line-height:1.5}
#set-entry-form .error[hidden]{display:none}
#set-entry-form footer{border-top:1px solid var(--border);padding-top:17px;margin-top:1px;gap:10px}
#set-entry-form footer button{min-height:42px;padding:10px 18px;border-radius:10px}
@media(max-width:480px){#set-dialog.set-entry-dialog{width:calc(100% - 16px)}#set-dialog.set-entry-dialog>header{padding:16px}#set-dialog.set-entry-dialog .set-dialog-body{padding:16px}#set-entry-form{grid-template-columns:1fr;gap:15px}#set-entry-form footer{display:grid;grid-template-columns:1fr 1fr}#set-entry-form footer button{padding:10px}}
