.themes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr)));gap:12px}.theme-card{background:#EAF0F7;border:1px solid #D7DEE8;border-radius:8px;padding:14px;display:grid;text-align:left;color:#182536;font:inherit}.theme-count{font-size:28px;color:#1B365D}.themes-disclosure>summary{font-size:22px;font-weight:bold;color:#1B365D;cursor:pointer}.patterns-section{background:white;border:1px solid #D7DEE8;border-radius:8px;padding:20px;margin:16px 0}.patterns-person{padding:8px 0}.patterns-bar{display:inline-block;background:#1B365D;height:8px;margin-right:8px}.wrap{max-width:1600px;margin:auto;padding:20px 3vw}#patternsSearch{font:inherit;padding:8px}@media print{header,nav,button,input,label{display:none}.patterns-section{break-inside:avoid}}@media(max-width:560px){.wrap{padding:12px 10px}.themes-grid{grid-template-columns:1fr}}
.accusation-filter{display:block;width:100%;text-align:left;border:0;background:white;color:#1B365D;font:inherit;padding:8px}.accusation-filter>span{display:block;height:5px;background:#1B365D;margin-top:6px}#dirtySettings{width:100%;font:14px monospace}
.court-summary{font-size:15px;border-left:2px solid #1B365D;padding-left:10px;white-space:pre-wrap}.entry-summary p{white-space:pre-wrap}

/* Shared compact Dirty Dozen buttons and one detail panel. */
.dirty-panel .dd-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.dirty-panel .dd-btn{box-sizing:border-box;flex:0 0 auto;height:40px;padding:8px 15px;margin:0;font:700 16px/22px "Times New Roman",Times,serif;color:#1B365D;background:#FFFFFF;border:1px solid #D7DEE8;border-radius:6px;box-shadow:none;white-space:nowrap;cursor:pointer}
.dirty-panel .dd-btn:hover{background:#EAF0F7}
.dirty-panel .dd-btn[aria-expanded=true]{background:#EAF0F7;border-color:#1B365D}
.dirty-panel .dd-btn:focus-visible{outline:2px solid #274B78;outline-offset:2px}
.dirty-panel .dd-detail{background:#FFFFFF;border:1px solid #D7DEE8;border-radius:6px;padding:10px 12px;font:15px/1.4 "Times New Roman",Times,serif;color:#182536}
.dirty-panel .dd-detail[hidden]{display:none}
.dirty-panel .dd-detail p{margin:0 0 6px}
#dirtyDozenFacilities .dd-facility-theme{display:inline-block;padding:3px 8px;margin:3px;border:1px solid #D7DEE8;border-radius:6px;background:#EAF0F7;color:#182536;font:13px/1.4 "Times New Roman",Times,serif}
body[data-maid-summary] .dirty-panel .dd-buttons{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));grid-auto-rows:1fr;gap:8px}
body[data-maid-summary] .dirty-panel .dd-btn{width:100%;height:auto;min-height:40px;background:#1B365D;color:#FFFFFF;border-color:#1B365D;white-space:normal;line-height:1.25;text-align:center}
body[data-maid-summary] .dirty-panel .dd-btn:hover{background:#274B78}
/* R4 compact register themes. */
#registerInsights .themes-grid{display:grid;gap:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
#registerInsights .theme-card{background:#EAF0F7;border:1px solid #D7DEE8;border-radius:8px;padding:10px 12px;min-height:0;height:auto;box-shadow:none;margin:0;display:flex;flex-direction:column;gap:2px;text-align:left}
#registerInsights .theme-count{font:bold 22px/1.1 "Times New Roman";color:#1B365D}
#registerInsights .theme-card strong{font:bold 14px/1.3 "Times New Roman";color:#182536}
@media(max-width:1099px){#registerInsights .themes-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:799px){#registerInsights .themes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){#registerInsights .themes-grid{grid-template-columns:1fr}}

.accusation-filter>span{height:6px}.accusation-filter{background:linear-gradient(#EAF0F7,#EAF0F7) left 8px bottom 8px/calc(100% - 16px) 6px no-repeat}
.judicial-map-legend{background:#FFFFFF;border:1px solid #D7DEE8;border-radius:8px;padding:10px 12px;font:13px/1.5 "Times New Roman",Times,serif}

/* Compact Caseworker accusation themes only. */
.caseworker-accusations{margin-top:12px;padding:0}
.caseworker-accusations h3{margin:0 0 7px;line-height:1.2}
.caseworker-accusation-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}
.caseworker-accusations .accusation-filter{display:inline-block;width:auto;max-width:100%;margin:0;padding:4px 9px;border:1px solid #D7DEE8;border-radius:999px;background:linear-gradient(rgba(27,54,93,.07),rgba(27,54,93,.07)) left top/var(--accusation-share,0%) 100% no-repeat #EAF0F7;color:#1B365D;font:14px/1.25 "Times New Roman",Times,serif;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.caseworker-accusations .accusation-filter:focus-visible,.caseworker-accusation-toggle:focus-visible{outline:2px solid #274B78;outline-offset:2px}
.caseworker-accusation-toggle{display:none;margin:7px 0 0;padding:4px 9px;border:1px solid #D7DEE8;border-radius:6px;background:#EAF0F7;color:#1B365D;font:14px/1.25 "Times New Roman",Times,serif;cursor:pointer}
@media(max-width:599px){.caseworker-accusations:not(.is-expanded) .accusation-filter:nth-child(n+7){display:none}.caseworker-accusation-toggle{display:inline-block}}

/* DASHBOARD TILES - LOCKED */
.next-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.next-card{min-width:0;min-height:56px;padding:12px 16px;display:flex;align-items:center;justify-content:center;text-align:center;background:#EAF0F7;border:1px solid #D7DEE8;border-radius:8px;box-shadow:none;transform:none;text-decoration:none;color:#1B365D;font:700 16px/1.3 "Times New Roman",Times,serif}
.next-card h3{margin:0;color:#1B365D;font:700 16px/1.3 "Times New Roman",Times,serif;overflow-wrap:anywhere}
.next-card:hover{background:#E3EBF5;border-color:#AEB9C8;box-shadow:none;transform:none}
.next-card:focus-visible{outline:2px solid #274B78;outline-offset:4px}
@media(max-width:899px){.next-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:559px){.next-grid{grid-template-columns:minmax(0,1fr)}}
