.home-queue-tools{display:flex;align-items:center;gap:8px;margin:-4px 0 12px;padding:8px 9px;border:1px solid #263753;border-radius:8px;background:#0f1b2d}
.home-queue-tools label{display:flex;align-items:center;gap:6px;margin:0;color:#8191a8;font-size:9px;font-weight:700;white-space:nowrap}
.home-queue-tools select{width:auto;min-width:120px;padding:6px 8px;border-radius:6px;background:#14243a;color:#dce7f5;border-color:#30415d;font-size:10px}
.home-queue-tools select:focus{border-color:var(--amber);box-shadow:0 0 0 2px #f3b84b15}
@media(max-width:560px){.home-queue-tools{align-items:stretch;flex-direction:column}.home-queue-tools label{justify-content:space-between}.home-queue-tools select{flex:1}}
.task-view-tools{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:8px 9px;border:1px solid #263753;border-radius:8px;background:#0f1b2d}
.task-view-tools label{display:flex;align-items:center;gap:6px;margin:0;color:#8191a8;font-size:9px;font-weight:700;white-space:nowrap}
.task-view-tools select{width:auto;min-width:118px;padding:6px 8px;border-radius:6px;background:#14243a;color:#dce7f5;border-color:#30415d;font-size:10px}
.task-view-tools select:focus{border-color:var(--amber);box-shadow:0 0 0 2px #f3b84b15}
.task-groups{display:grid;gap:13px}
.task-group{display:grid;gap:6px}
.task-group-heading{display:flex;align-items:center;justify-content:space-between;padding:0 3px;color:#b6c6da;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.task-group-heading span{display:grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border:1px solid #344863;border-radius:10px;color:#9fc5ff;background:#5a9bff12;font-size:9px}
@media(max-width:720px){.task-view-tools{align-items:stretch;flex-direction:column}.task-view-tools label{justify-content:space-between}.task-view-tools select{flex:1}.task-group-heading{font-size:9px}}
.context-quick-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 12px;border:1px solid #2d405e;border-radius:10px;background:linear-gradient(105deg,#12233a,#101a2d);color:#dbe7f5}
.context-quick-actions>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.context-quick-actions .eyebrow{margin:0 0 3px;color:#7e9abb;font-size:9px;letter-spacing:.08em}
.context-quick-actions strong{font-size:11px;font-weight:650}
.context-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:6px;margin:12px 0}
.context-stat{display:grid;gap:2px;min-height:52px;padding:8px 9px;border:1px solid #2b3f5c;border-radius:8px;background:#111f34;color:#a9bdd6;text-align:left;cursor:pointer}
.context-stat:hover,.context-stat:focus-visible{border-color:#e2a53e;background:#172a45;outline:0}
.context-stat strong{color:#f0c36a;font-size:16px;line-height:1}
.context-stat span{font-size:9px}
.context-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 7px;color:#8191a8;font-size:9px}
.context-list-toolbar label{display:flex;align-items:center;gap:7px;font-weight:700}
.context-list-toolbar select{min-width:148px;padding:6px 8px;border:1px solid #30415d;border-radius:6px;background:#14243a;color:#dce7f5;font-size:10px}
@media(max-width:720px){.context-quick-actions{align-items:stretch;flex-direction:column}.context-quick-actions>div:last-child{justify-content:flex-start}.context-list-toolbar{align-items:stretch;flex-direction:column}.context-list-toolbar label{justify-content:space-between}.context-list-toolbar select{flex:1}}
.document-view-tools{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding:8px 9px;border:1px solid #263753;border-radius:8px;background:#0f1b2d}
.document-view-tools label{display:flex;align-items:center;gap:6px;margin:0;color:#8191a8;font-size:9px;font-weight:700;white-space:nowrap}
.document-view-tools select{width:auto;min-width:132px;padding:6px 8px;border-radius:6px;background:#14243a;color:#dce7f5;border-color:#30415d;font-size:10px}
.document-view-tools select:focus{border-color:var(--amber);box-shadow:0 0 0 2px #f3b84b15}
@media(max-width:720px){.document-view-tools{align-items:stretch;flex-direction:column}.document-view-tools label{justify-content:space-between}.document-view-tools select{flex:1}}
.client-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.client-detail-heading h2{margin:3px 0 5px;color:#eef5ff;font-size:clamp(20px,2.3vw,28px);letter-spacing:-.02em}
.client-detail-heading p:not(.eyebrow){max-width:680px;margin:0;color:#8294ad;font-size:11px;line-height:1.5}
.client-detail-back{display:inline-flex;align-items:center;gap:5px;margin:0 0 12px;padding:0;border:0;background:transparent;color:#8fb9ef;font-size:10px;font-weight:750;cursor:pointer}
.client-detail-back:hover,.client-detail-back:focus-visible{color:#f1c166;outline:0}
.client-detail-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;padding-top:28px}
.client-detail-identity{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:13px;padding:13px 15px}
.client-detail-identity-main{display:flex;align-items:center;gap:11px;min-width:0}
.client-detail-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #3c5273;border-radius:12px;background:#19304d;color:#f1c166;font-size:17px;font-weight:800}
.client-detail-identity-main strong{display:block;overflow:hidden;color:#e8f1fc;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.client-detail-identity-main p{margin:3px 0 6px;overflow:hidden;color:#8192a9;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.client-detail-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.client-detail-related{padding-bottom:14px}
.client-detail-related .panel-heading{align-items:flex-end;margin-bottom:10px}
.client-detail-related .panel-heading h3{margin-bottom:3px}
.client-detail-related .panel-heading p:not(.eyebrow){max-width:620px}
.client-detail-filter{display:flex;align-items:center;gap:7px;color:#8191a8;font-size:9px;font-weight:750;white-space:nowrap}
.client-detail-filter select{min-width:145px;padding:7px 8px;border:1px solid #30415d;border-radius:6px;background:#14243a;color:#dce7f5;font-size:10px}
.client-detail-stats{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0 0 12px}
.client-detail-stat{display:grid;gap:3px;min-width:0;padding:8px 8px;border:1px solid #263a57;border-radius:8px;background:#101d30;color:#91a5be;text-align:left;cursor:pointer}
.client-detail-stat:hover,.client-detail-stat:focus-visible,.client-detail-stat.is-selected{border-color:#dba54d;background:#182943;color:#dbe8f8;outline:0}
.client-detail-stat strong{color:#efc269;font-size:16px;line-height:1}
.client-detail-stat span{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.client-detail-related-list{display:grid;gap:6px}
.client-detail-related-list.is-empty{min-height:125px;place-items:center;padding:25px 12px;border:1px dashed #2b3e5a;border-radius:9px;color:#8191a8;text-align:center}
.client-detail-related-list.is-empty h3{margin:0;color:#cbd9e9;font-size:13px}
.client-detail-related-list.is-empty p{margin:0;font-size:10px}
.client-detail-related-list.is-empty .empty-icon{color:#70c99f;font-size:22px}
.client-detail-related-list .record-row{background:#101d30}
@media(max-width:900px){.client-detail-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:720px){.client-detail-heading,.client-detail-identity{align-items:stretch;flex-direction:column}.client-detail-heading-actions,.client-detail-actions{justify-content:flex-start;padding-top:0}.client-detail-related .panel-heading{align-items:stretch;flex-direction:column}.client-detail-filter{justify-content:space-between}.client-detail-filter select{flex:1}.client-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:420px){.client-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.case-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.case-detail-heading h2{margin:3px 0 5px;color:#eef5ff;font-size:clamp(20px,2.3vw,28px);letter-spacing:-.02em}
.case-detail-heading p:not(.eyebrow){max-width:720px;margin:0;color:#8294ad;font-size:11px;line-height:1.5}
.case-detail-back{display:inline-flex;align-items:center;gap:5px;margin:0 0 12px;padding:0;border:0;background:transparent;color:#8fb9ef;font-size:10px;font-weight:750;cursor:pointer}
.case-detail-back:hover,.case-detail-back:focus-visible{color:#f1c166;outline:0}
.case-detail-heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;padding-top:28px}
.case-detail-identity{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:13px;padding:13px 15px}
.case-detail-identity-main{display:flex;align-items:center;gap:11px;min-width:0}
.case-detail-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #3c5273;border-radius:12px;background:#19304d;color:#f1c166;font-size:17px;font-weight:800}
.case-detail-identity-main strong{display:block;overflow:hidden;color:#e8f1fc;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.case-detail-identity-main p{margin:3px 0 6px;overflow:hidden;color:#8192a9;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.case-detail-actions,.case-detail-control-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.case-detail-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:13px;padding:12px 15px;border-color:#394c6a;background:#111f34}
.case-detail-control h3{margin:2px 0 3px;color:#e6effa;font-size:13px}
.case-detail-control p{margin:0;color:#8496ad;font-size:10px}
.case-detail-related{padding-bottom:14px}
.case-detail-related .panel-heading{align-items:flex-end;margin-bottom:10px}
.case-detail-related .panel-heading h3{margin-bottom:3px}
.case-detail-related .panel-heading p:not(.eyebrow){max-width:620px}
.case-detail-filter{display:flex;align-items:center;gap:7px;color:#8191a8;font-size:9px;font-weight:750;white-space:nowrap}
.case-detail-filter select{min-width:145px;padding:7px 8px;border:1px solid #30415d;border-radius:6px;background:#14243a;color:#dce7f5;font-size:10px}
.case-detail-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0 0 12px}
.case-detail-stat{display:grid;gap:3px;min-width:0;padding:8px 8px;border:1px solid #263a57;border-radius:8px;background:#101d30;color:#91a5be;text-align:left;cursor:pointer}
.case-detail-stat:hover,.case-detail-stat:focus-visible,.case-detail-stat.is-selected{border-color:#dba54d;background:#182943;color:#dbe8f8;outline:0}
.case-detail-stat strong{color:#efc269;font-size:16px;line-height:1}
.case-detail-stat span{overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.case-detail-related-list{display:grid;gap:6px}
.case-detail-related-list.is-empty{min-height:125px;place-items:center;padding:25px 12px;border:1px dashed #2b3e5a;border-radius:9px;color:#8191a8;text-align:center}
.case-detail-related-list.is-empty h3{margin:0;color:#cbd9e9;font-size:13px}
.case-detail-related-list.is-empty p{margin:0;font-size:10px}
.case-detail-related-list.is-empty .empty-icon{color:#70c99f;font-size:22px}
.case-detail-related-list .record-row{background:#101d30}
.case-detail-agent-note{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:13px;padding:13px 15px}
.case-detail-agent-note h3{margin:2px 0 3px;color:#e6effa;font-size:13px}
.case-detail-agent-note p{max-width:720px;margin:0;color:#8496ad;font-size:10px;line-height:1.5}
@media(max-width:900px){.case-detail-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.case-detail-heading,.case-detail-identity,.case-detail-control,.case-detail-agent-note{align-items:stretch;flex-direction:column}.case-detail-heading-actions,.case-detail-actions,.case-detail-control-actions{justify-content:flex-start;padding-top:0}.case-detail-related .panel-heading{align-items:stretch;flex-direction:column}.case-detail-filter{justify-content:space-between}.case-detail-filter select{flex:1}.case-detail-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.client-portal-card { border-color: #dbe3f3; background: linear-gradient(135deg, #fbfcff, #f5f8ff); }
.client-portal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.client-portal-heading h3 { margin: 0 0 5px; }
.client-portal-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted, #667085); }
.portal-status-pill { flex: 0 0 auto; border: 1px solid #d8dee9; border-radius: 999px; padding: 5px 9px; color: #667085; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.portal-status-pill.is-on { border-color: #bde2cb; background: #effaf3; color: #177245; }
.client-portal-summary { display: grid; gap: 3px; margin: 16px 0; padding: 13px; border: 1px solid #e0e7f2; border-radius: 12px; background: #fff; }
.client-portal-summary span { color: var(--muted, #667085); font-size: 13px; }
.client-portal-received { display: grid; gap: 7px; margin: 10px 0 16px; padding: 12px; border: 1px solid #e0e7f2; border-radius: 12px; background: #f8faff; }
.client-portal-received > strong { font-size: 13px; }
.client-portal-received > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid #e7edf5; }
.client-portal-received > div span { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.client-portal-received > div small { color: var(--muted, #667085); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-portal-toggle { display: flex; gap: 9px; align-items: center; margin: 17px 0 12px; font-weight: 700; }
.client-portal-case-list { display: grid; gap: 8px; }
.client-portal-case-list label { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid #e0e7f2; border-radius: 11px; background: #fff; cursor: pointer; }
.client-portal-case-list label:has(input:checked) { border-color: #adc2f4; background: #f8faff; }
.client-portal-case-list span { display: grid; gap: 2px; }
.client-portal-case-list small { color: var(--muted, #667085); font-size: 12px; }
.client-portal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.client-portal-invite-result { display: grid; gap: 8px; margin-top: 13px; color: var(--muted, #667085); font-size: 12px; }
.portal-invite-link { display: flex; gap: 7px; }
.portal-invite-link input { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid #dbe3f3; border-radius: 9px; background: #fff; color: #344054; font-size: 12px; }
.case-portal-sharing { border-color: #dbe3f3; background: linear-gradient(135deg, #fbfcff, #f7f9fe); }
.case-portal-sharing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.case-portal-sharing-heading h3 { margin: 0 0 5px; }
.case-portal-sharing-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted, #667085); }
.case-portal-record-list { display: grid; gap: 8px; margin-bottom: 13px; }
.case-portal-record-list label, .case-portal-demo-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid #e0e7f2; border-radius: 11px; background: #fff; }
.case-portal-record-list label { cursor: pointer; }
.case-portal-record-list label:has(input:checked) { border-color: #adc2f4; background: #f8faff; }
.case-portal-record-list label span { display: grid; gap: 2px; }
.case-portal-record-list small { color: var(--muted, #667085); font-size: 12px; }
@media (max-width: 720px) { .case-portal-sharing-heading { display: grid; } }
@media (max-width: 720px) { .client-portal-heading { display: grid; } .client-portal-actions, .portal-invite-link { display: grid; } }
