.time-bank-page{display:grid;gap:17px;color:var(--ink,#20313b)}
.time-bank-page [hidden],.time-bank-history-dialog [hidden]{display:none!important}
.time-bank-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.time-bank-heading h1{margin:0 0 8px}.time-bank-heading p{margin:0;font-size:12px;color:var(--muted,#647b9d);line-height:1.7}.time-bank-heading>button{flex:none;margin:0;min-height:39px;font-size:12px}
.time-bank-card{border:1px solid var(--line,#cfdbea);border-radius:12px;overflow:hidden;background:var(--surface,#fff);min-width:0}
.time-bank-table-scroll{max-width:100%;overflow-x:auto}
body[data-screen="panel"] .time-bank-table{width:100%;margin:0;border-collapse:collapse;font-size:13px;table-layout:auto}
body[data-screen="panel"] .time-bank-table :is(th,td){text-align:left;padding:16px 20px;border:0;border-bottom:1px solid var(--line,#cfdbea);line-height:1.65;vertical-align:middle}
body[data-screen="panel"] .time-bank-table th{font-size:11px;font-weight:650;background:var(--surface-alt,#f5f7fb);color:var(--muted,#647b9d);white-space:nowrap}
body[data-screen="panel"] .time-bank-table tr:last-child td{border-bottom:0}
.time-bank-balances{min-width:540px!important}
body[data-screen="panel"] .time-bank-table .time-bank-person{margin:0;padding:2px 0;min-height:30px;font-size:13px;text-align:left;color:var(--theme-link,#058194);background:transparent;border:0;border-radius:0;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;box-shadow:none;font-weight:650;line-height:1.6}
body[data-screen="panel"] .time-bank-table .time-bank-person:hover{text-decoration-color:currentColor;background:transparent}
.time-bank-number{white-space:nowrap;font-variant-numeric:tabular-nums}.time-bank-credit{color:var(--ui-success-text,#185938)}.time-bank-debit{color:var(--ui-danger-text,#95372e)}
.time-bank-empty{padding:25px 16px!important;text-align:center!important;color:var(--muted,#647b9d);font-size:12px}
.time-bank-message{margin:0;padding:11px 13px;border-radius:8px;background:var(--accent-soft,#eef8f9);font-size:12px;line-height:1.65;color:var(--muted,#647b9d)}
.time-bank-message[data-tone="error"]{background:var(--ui-danger-bg,#fff0ef);color:var(--ui-danger-text,#95372e)}.time-bank-message[data-tone="warning"]{background:var(--ui-warning-bg,#fff7e8);color:var(--ui-warning-text,#805b18)}
.time-bank-sync{font-size:11px;line-height:1.65;color:var(--muted,#647b9d);margin:0}
body[data-screen="panel"] .time-bank-history-dialog{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 36px);overflow:auto;margin:auto;padding:0;border:1px solid var(--line,#cfdbea);border-radius:14px;color:var(--ink,#20313b);background:var(--surface,#fff);box-shadow:0 20px 80px #102b4940}
.time-bank-history-dialog::backdrop{background:#0e233a80;backdrop-filter:blur(2px)}
.time-bank-history-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px;position:sticky;top:0;background:var(--surface,#fff);border-bottom:1px solid var(--line,#cfdbea);z-index:2}
.time-bank-history-heading h2{margin:0;font-size:17px;line-height:1.5}.time-bank-history-heading>button{margin:0;min-height:33px;width:35px;padding:3px;font-size:22px;line-height:1;flex:none}
.time-bank-history-body{padding:0 0 14px}.time-bank-history-body>.time-bank-message{margin:14px 16px 4px}
.time-bank-history{min-width:0!important}.time-bank-history th:last-child,.time-bank-history td:last-child{text-align:right!important}
.time-bank-history-actions{padding:14px 18px 0;display:flex;justify-content:center}.time-bank-history-actions button{min-height:38px;margin:0;font-size:12px}
.time-bank-day-simple{margin:16px 0;padding:0;background:none;border:0}
body[data-screen="panel"] .time-bank-day-simple form{margin:0;max-width:none}.time-bank-day-simple button{min-height:40px;margin:0;font-size:12px}
.time-bank-day-simple p{margin:0;padding:10px 0;font-size:12px;line-height:1.6;color:var(--muted,#647b9d)}
@media(max-width:600px){.time-bank-heading{align-items:flex-start}.time-bank-heading h1{font-size:23px}.time-bank-heading p{font-size:11px}.time-bank-heading>button{min-height:36px;padding:9px 12px}body[data-screen="panel"] .time-bank-table :is(th,td){padding:13px 15px}.time-bank-balances{min-width:460px!important}body[data-screen="panel"] .time-bank-history-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.time-bank-history-heading{padding:16px}.time-bank-history-heading h2{font-size:15px}.time-bank-day-simple button{width:100%}}



.daily-time-bank-badge{display:block;color:var(--primary,#008398);font-size:.72rem;margin-top:4px;font-weight:600}
