.hv-tools{margin:18px 0}.hv-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:18px 0}.hv-filters label{display:grid;gap:5px;font-size:13px;min-width:0}.hv-filters input,.hv-filters select{width:100%;min-width:0}.hv-filters input[type=checkbox]{width:auto}.hv-needs{display:grid;gap:14px}.hv-need{border-left:5px solid var(--activity-color);min-width:0}.hv-need h3{margin:6px 0}.hv-need .buttons{margin:12px 0;flex-wrap:wrap}.hv-assignment{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid #e0e5ee}.hv-assignment span{color:#52627a;font-size:13px}#hv-history pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
@media(max-width:767px){.hv-tools{display:flex;flex-direction:column;align-items:stretch}.hv-tools>.btn{width:100%;font-size:13px}.hv-filters{grid-template-columns:1fr 1fr}.hv-need{padding:14px}.hv-need .btn{font-size:13px}.hv-assignment>strong{flex-basis:100%}.hv-need p{overflow-wrap:anywhere}}

.hv-short{display:none}@media(max-width:767px){.hv-full{display:none}.hv-short{display:inline}}

.hv-overview{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:16px 0}.hv-more{margin:12px 0}.hv-more summary{cursor:pointer;padding:12px 0;color:#2454d6;font-weight:700}.hv-workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;padding-bottom:85px}.hv-workspace>*,.hv-team-summary{min-width:0}.hv-team-summary{align-self:start;position:sticky;top:90px;max-height:75vh;overflow:auto}.hv-person{display:grid;width:100%;gap:5px;text-align:left;padding:12px;margin:10px 0;border:1px solid #d8e2f4;background:#f5f8ff;border-radius:12px;color:#18325c;white-space:normal!important}.hv-person[aria-pressed=true]{border-color:#2454d6;background:#e7efff}.hv-person span{font-size:13px}.hv-actionbar{position:sticky;bottom:12px;display:flex;gap:10px;justify-content:flex-end;background:white;padding:12px;border:1px solid #d8e2f4;border-radius:14px;box-shadow:0 4px 20px #19375b20;z-index:5}.hv-participants{display:grid;gap:12px}.hv-participants input{width:20px;height:20px;vertical-align:middle;margin-right:8px}dialog.hv-drawer{margin:0 0 0 auto;max-height:100dvh;height:100dvh;width:min(720px,100vw);border-radius:18px 0 0 18px}dialog.hv-drawer .modal-body{overflow:auto}@media(max-width:1000px){.hv-workspace{grid-template-columns:1fr}.hv-team-summary{position:static;max-height:none;grid-row:1}.hv-team-summary .hv-person{display:inline-grid;width:240px;margin-right:10px}.hv-team-summary{overflow-x:auto}.hv-actionbar{bottom:84px;justify-content:stretch}.hv-actionbar .btn{flex:1;padding:10px}.hv-workspace{padding-bottom:0}}

@media(max-width:1000px){.hv-person-list{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x proximity}.hv-team-summary .hv-person{flex:0 0 240px;scroll-snap-align:start;margin-right:0}.hv-team-summary{overflow:visible}}

.hv-participants small{display:block;margin:4px 0 8px 30px;color:#475876}.dashboard-clock{margin-bottom:18px}.dashboard-clock h2,.dashboard-clock p{margin-bottom:10px}.dashboard-clock .buttons{flex-wrap:wrap}@media(max-width:480px){.dashboard-clock .btn{flex:1 1 100%;min-height:44px}}

.event-availability{display:inline-block;border-radius:99px;padding:5px 10px;font-weight:700}.event-availability.available{background:#dcfce7;color:#166534}.event-availability.unavailable{background:#fee2e2;color:#991b1b}.event-availability.pending{background:#f1f5f9;color:#475569}

.team-reader{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 0}.team-reader input{width:20px;height:20px;flex:none}

/* Shared deletion controls: visible selection, comfortable touch targets. */
.deletion-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;padding:12px;background:#eef3ff;border-radius:12px}.deletion-tools small{flex-basis:100%}.deletion-check{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;flex:0 0 44px}.deletion-check input{width:20px!important;height:20px!important;min-width:20px;margin:0}.deletion-diagnostic details{margin:12px 0}.deletion-diagnostic li{overflow-wrap:anywhere}.deletion-diagnostic input{display:block;width:100%;margin:8px 0}.deletion-mode{display:block;max-width:100%;margin-top:12px}.deletion-mode select{max-width:100%}@media(max-width:480px){.deletion-tools .btn{white-space:normal;word-break:normal;min-height:44px;max-width:100%}.deletion-tools [data-delete-count]{flex-basis:100%}.deletion-diagnostic{min-width:0}}
.hv-import-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px;background:#eef3ff;border-radius:12px}.hv-import-list{display:grid;gap:8px;max-height:48vh;overflow:auto}.hv-import-row{display:flex;align-items:flex-start;gap:12px;padding:12px;border:1px solid #d8e2f4;border-radius:10px}.hv-import-row>input,.hv-import-row>span:first-child{flex:none;margin-top:3px}.hv-import-row>span:last-child{display:grid;gap:4px;min-width:0}.hv-import-row small{color:#52627a;overflow-wrap:anywhere}.hv-import-row.is-error{background:#fff7ed;border-color:#fed7aa}.hv-import-row.is-error>span:first-child{font-weight:800;color:#9a3412}@media(max-width:767px){.hv-import-summary{display:grid}.hv-import-row{padding:10px}}
/* Full-width vacation workspace, counters first and agenda below. */
.hv-workspace{display:flex;flex-direction:column}.hv-workspace>section{order:2}.hv-team-summary{order:1;position:static;max-height:none;overflow:visible;width:100%}.hv-team-summary table{width:100%}.hv-team-summary small,.ha-grid small{display:block}.ha-gap{color:#9a4800;background:#fff7ed}.ha-ok{color:#166534}.ha-toolbar{margin-bottom:16px;flex-wrap:wrap}.ha-toolbar label{display:flex;align-items:center;gap:8px}.ha-grid{width:100%;min-width:1000px;table-layout:fixed}.ha-grid th:first-child{width:180px}.ha-grid td{vertical-align:top}.ha-slot{display:block;width:100%;text-align:left;white-space:normal;background:#eef5ff;border:1px solid #d6e3fa;border-left:3px solid #2454d6;border-radius:5px;margin:4px 0;padding:5px;color:#18325c;cursor:pointer}.ha-slot span{display:block}.ha-slot:hover{background:#ddeaff}dialog.ha-wide-dialog{width:min(1400px,98vw);max-width:98vw}.hv-workspace .table-wrap{max-width:100%;overflow:auto}
.ha-grid .ha-slot{padding:3px 5px;margin:2px 0;font-size:12px;line-height:1.2}.ha-grid .ha-slot span{display:inline;margin-left:5px}.ha-grid tbody th{vertical-align:top}

dialog.hv-confirm{height:auto;max-height:85dvh;width:min(640px,calc(100vw - 24px));margin:auto;border-radius:18px}dialog.hv-confirm .modal-body{overflow:auto;max-height:60dvh}
