.hub-inactive{display:none!important}#staff-overview[hidden],.hub-back[hidden],.portal-hero[hidden]{display:none!important}
body[data-staff-view] #workspace>.boundary-note{display:none}
#staff-overview{margin:0 0 30px}.hub-top{display:flex;align-items:end;gap:20px;margin:0 0 18px}.hub-top label{flex:1;font-weight:700;font-size:13px;color:#34506e}.hub-top input{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:13px 16px;border:1px solid #ccd9e6;border-radius:10px;background:white;font:inherit}.hub-top button{padding:13px 18px;border:1px solid #ccd9e6;background:white;border-radius:10px;color:#244365;font-weight:700;cursor:pointer}
.hub-attention{padding:17px 20px;border-radius:13px;background:#edf2f8;margin-bottom:20px;color:#223d60;display:flex;align-items:center;gap:25px}.hub-attention>strong{font-size:14px}.hub-attention>div{display:flex;gap:20px;flex-wrap:wrap}.hub-attention a{text-decoration:none;color:#64748b;font-size:13px}.hub-attention b{margin-right:4px}.hub-attention .has-items{color:#9b293b}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.hub-card{--accent:#274e78;position:relative;display:flex;flex-direction:column;min-width:0;background:white;border:1px solid #dbe4ee;border-top:3px solid var(--accent);border-radius:14px;padding:21px 23px;text-decoration:none!important;color:#163354;box-shadow:0 4px 14px #18345408;transition:transform .15s,box-shadow .15s}.hub-card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #18345418}.hub-card:focus-visible{outline:3px solid #477bad;outline-offset:3px}.hub-card.amber{--accent:#ab7d34}.hub-card.teal{--accent:#367b7c}.hub-card.blue{--accent:#5480ab}.hub-card.slate{--accent:#657589}.hub-card.wine{--accent:#914c60}.hub-icon{font-size:22px;color:var(--accent);position:absolute;right:22px;top:18px}.hub-card h2{font-size:17px;margin:0 28px 17px 0;line-height:1.3}.hub-number{font-size:33px;font-weight:800;line-height:1.1}.hub-number span{display:inline-block;font-size:13px;font-weight:500;color:#64748b;margin-left:9px}.hub-card p{font-size:13px;line-height:1.65;color:#5b6d83;margin:13px 0 20px;flex:1}.hub-open{display:flex;justify-content:space-between;border-top:1px solid #edf1f5;padding-top:12px;font-size:12px;font-weight:750;color:var(--accent)}.hub-updated{font-size:12px;color:#758297;margin:14px 0}.hub-back{display:flex;align-items:center;gap:22px;margin:22px 0;color:#65758b}.hub-back a{font-weight:750;color:#264e79;text-decoration:none}.hub-detail{padding:25px;background:white;border:1px solid #dbe4ee;border-radius:14px;margin-bottom:30px}.hub-detail h2{color:#183858}.hub-detail>div>p{color:#607086;line-height:1.6}
.hub-record-list{display:grid;gap:12px}.hub-record-list a,#hub-results a,#hub-results button{display:flex;flex-direction:column;gap:6px;text-align:left;padding:17px;border:1px solid #dbe4ee;border-radius:9px;text-decoration:none;color:#264668;background:#fff;font:inherit}.hub-record-list span{font-size:14px}.hub-record-list small,#hub-results span{font-size:12px;color:#607086;overflow-wrap:anywhere}#hub-results:not(:empty){display:grid;gap:8px;margin-bottom:20px}.hub-record-list a:hover{background:#f2f6fb}
@media(max-width:950px){.hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hub-attention{align-items:start;flex-direction:column;gap:12px}}
@media(max-width:600px){.hub-grid{grid-template-columns:1fr}.hub-top{align-items:stretch;flex-direction:column;gap:10px}.hub-card{padding:20px}.hub-attention>div{gap:12px}.hub-back{align-items:start;flex-direction:column;gap:8px}.hub-detail{padding:18px}}

/* Compact matter rows: use desktop width without changing the linked records. */
#hub-clients .hub-record-list{gap:8px}
#hub-clients .hub-record-list>a{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(180px,1fr) minmax(220px,1.4fr);align-items:center;gap:10px 24px;padding:12px 16px;min-height:58px;box-sizing:border-box}
#hub-clients .hub-record-list>a>*{min-width:0;overflow-wrap:anywhere;line-height:1.45}
#hub-clients .hub-record-list>a>strong{font-size:15px}
#hub-clients .hub-record-list>a>span{font-size:13px;color:#536780}
#hub-clients .hub-record-list>a>small{font-size:13px;color:#264668;border-left:2px solid #dbe4ee;padding-left:16px}
#hub-clients .hub-record-list>a:focus-visible{outline:3px solid #477bad;outline-offset:2px}
@media(max-width:850px){#hub-clients .hub-record-list>a{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px 16px}#hub-clients .hub-record-list>a>span{grid-row:2;grid-column:1}#hub-clients .hub-record-list>a>small{grid-column:2;grid-row:1 / span 2}}
@media(max-width:480px){#hub-clients .hub-record-list>a{grid-template-columns:minmax(0,1fr);gap:3px;padding:10px 12px}#hub-clients .hub-record-list>a>span,#hub-clients .hub-record-list>a>small{grid-column:1;grid-row:auto}#hub-clients .hub-record-list>a>small{border-left:0;padding-left:0}}

/* At-a-glance matter progress and the next actionable deadline. */
#hub-clients .hub-record-list>a.matter-preview{grid-template-columns:minmax(160px,1.25fr) minmax(120px,.9fr) minmax(130px,.8fr) minmax(180px,1fr) 12px;gap:10px 20px;padding:12px 16px;min-height:76px}
.matter-preview .matter-identity strong,.matter-preview .matter-identity span,.matter-preview .matter-forms span,.matter-preview .matter-forms small,.matter-preview .matter-due strong,.matter-preview .matter-due span,.matter-preview .matter-due small{display:block}
.matter-preview strong{font-size:14px}.matter-preview .matter-identity span{font-size:12px;color:#607086;margin-top:3px}
.matter-preview .matter-forms small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#6a7b90}.matter-preview .matter-forms span{font-size:12px}
.matter-preview .matter-progress strong{font-size:12px}.matter-steps{display:flex;gap:3px;margin-top:7px;max-width:170px}.matter-steps i{height:5px;flex:1;border-radius:3px;background:#e3e9ef}.matter-steps i.done{background:#367b7c}.matter-steps i.current{background:#477bad}
.matter-due{border-left:3px solid #c7d5e5;padding-left:12px}.matter-preview .matter-due strong{font-size:11px}.matter-preview .matter-due span{font-size:12px}.matter-due.late{border-color:#be3449;color:#a3253b}.matter-due.soon{border-color:#c38b22;color:#81580e}.matter-due.waiting{border-color:#5882ad}.matter-due.complete{border-color:#367b7c}.matter-preview .matter-due small{font-size:10px;font-weight:750;color:inherit}
#hub-clients .hub-record-list>a>.matter-chevron{grid-column:auto;grid-row:auto;font-size:22px;color:#8293a9}
@media(max-width:1100px){#hub-clients .hub-record-list>a.matter-preview{grid-template-columns:minmax(140px,1.2fr) minmax(100px,.8fr) minmax(170px,1fr) 10px;gap:8px 16px}.matter-preview .matter-identity{grid-column:1;grid-row:1}.matter-preview .matter-forms{grid-column:1;grid-row:2}.matter-preview .matter-progress{grid-column:2;grid-row:1 / span 2}.matter-preview .matter-due{grid-column:3;grid-row:1 / span 2}#hub-clients .hub-record-list>a>.matter-chevron{grid-column:4;grid-row:1 / span 2}.matter-preview .matter-forms small{display:none}}
@media(max-width:600px){#hub-clients .hub-record-list>a.matter-preview{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 14px;padding:12px}.matter-preview .matter-identity{grid-column:1 / -1;grid-row:1}.matter-preview .matter-forms{grid-column:1 / -1;grid-row:2}.matter-preview .matter-progress{grid-column:1;grid-row:3}.matter-preview .matter-due{grid-column:2;grid-row:3}#hub-clients .hub-record-list>a>.matter-chevron{display:none}.matter-preview .matter-due span{font-size:11px}}

/* One consistent attention panel; only actionable counts appear. */
#hub-attention{display:block;padding:18px 20px;border:1px solid #dbe5ed;background:#f3f6fa}
#hub-attention .hub-attention-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap}
.hub-attention-heading strong{font-size:15px;color:#173755}.hub-attention-heading>span{font-size:12px;color:#66788d}
#hub-attention .hub-alert-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
#hub-attention .hub-alert{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 12px;border:1px solid #d9e3ed;border-radius:9px;background:#fff;color:#234569;text-decoration:none;font-size:12px;line-height:1.35}
.hub-alert b{font-size:21px;font-variant-numeric:tabular-nums;margin:0}.hub-alert span{flex:1}.hub-alert i{font-style:normal;font-size:20px;color:#8192a5}
#hub-attention .hub-alert.urgent{border-color:#e6b9c0;background:#fff6f7;color:#a22d43}
#hub-attention .hub-alert.soon{border-color:#e7d6b2;background:#fffbf2;color:#805d1d}
.hub-alert:hover{box-shadow:0 3px 9px #18345414}.hub-alert:focus-visible{outline:3px solid #477bad;outline-offset:2px}
.hub-all-clear{display:flex;align-items:center;gap:9px;margin:12px 0 0;color:#286859;font-size:14px;font-weight:650}.hub-all-clear>span{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#deeee7}
@media(max-width:1050px){#hub-attention .hub-alert-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#hub-attention .hub-alert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){#hub-attention .hub-alert-grid{grid-template-columns:1fr}}
