/* v165: unify case workspace around the Bisolawyer blue palette. */
.business-time-card,.business-time-card.inset-detail164{border-top:0!important;padding:22px!important}
.business-time-card .primary-time{background:#edf4ff!important;color:#244e8f!important;border:1px solid #d8e6fb}
.business-time-card .primary-time b{color:#2f6fed!important}
.business-time-card .time-fact-grid{gap:12px;margin:0!important;padding:0!important}
.business-time-card .time-fact-grid article{padding:15px 16px!important;border:1px solid #dfe8f5!important;border-radius:14px!important;background:#fff!important}
.business-time-card .time-fact-grid time,.business-time-card .dated-timeline time,.business-date153{color:#2f6fed!important}
.business-time-card .timeline-divider{color:#17315a;background:#f4f7fc!important}
.business-time-card .dated-timeline article{border-color:#dfe8f5!important;box-shadow:0 4px 14px rgba(47,111,237,.035)}
.business-time-card .business-date153 b{color:#2f6fed}.detail-meta+.dated-timeline>h3{color:#17315a}.detail-meta+.dated-timeline article time{color:#2f6fed!important}
.case-index-card .tag.amber,.extraction-values .tag.amber{background:#edf4ff!important;color:#2f6fed!important}
.dispatch-search156{display:block;margin:14px 0 10px;color:#60738f;font-size:13px}.dispatch-search156 input{display:block;width:100%;height:46px;margin-top:7px}.dispatch-target-row[hidden]{display:none!important}
#recallAssignmentButton{color:#526985;background:#fff;border-color:#cfdbea}#recallAssignmentButton:hover{color:#245fbd;border-color:#8eb3ee;background:#f5f9ff}
dialog.wide-modal .dispatch-target-panel{border-color:#dfe8f5!important}dialog.wide-modal .dispatch-kind-tabs button.active{color:#fff!important;background:#2f6fed!important;border-color:#2f6fed!important}
.admin-overview165{margin-bottom:20px}.admin-overview165 .overview-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-overview165 .portfolio-grid165{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:0 22px 20px}.portfolio-grid165>div{padding:14px;border-radius:14px;background:#f5f8fd}.portfolio-grid165 span{display:block;color:#6e8099;font-size:12px}.portfolio-grid165 strong{display:block;margin-top:7px;color:#17315a;font-size:23px}
.audit-filters165{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;padding:18px 22px}.audit-filters165 label{color:#60738f;font-size:12px;margin:0}.audit-filters165 input,.audit-filters165 select{display:block;width:100%;height:44px;margin-top:6px}.audit-filters165+#auditRows165{border-top:1px solid #e4ebf5}#auditRows165 table{table-layout:fixed;min-width:1120px;white-space:normal}#auditRows165 th,#auditRows165 td{padding:15px 16px;vertical-align:top;line-height:1.55}#auditRows165 th:nth-child(1){width:110px}#auditRows165 th:nth-child(2){width:90px}#auditRows165 th:nth-child(3){width:110px}#auditRows165 th:nth-child(4){width:150px}#auditRows165 th:nth-child(5){width:190px}#auditRows165 th:nth-child(6){width:210px}#auditRows165 th:nth-child(7){width:auto}#auditRows165 td.file-path{min-width:300px;max-width:none;white-space:normal;word-break:break-word;overflow-wrap:anywhere;color:#455d7c}.recipient-help170{margin:4px 0 0;padding:10px 12px;border-radius:10px;background:#f4f8fe;color:#60738f;font-size:12px;line-height:1.6}
.lawyer-admin-actions165,.user-admin-actions165{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.button-danger165{color:#a14343!important}.mail-flow-note165{margin:12px 0 0;padding:12px 14px;border-radius:12px;background:#edf4ff;color:#46658e;font-size:13px}
@media(max-width:1100px){.admin-overview165 .portfolio-grid165{grid-template-columns:repeat(3,minmax(0,1fr))}.audit-filters165{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:680px){.business-time-card,.business-time-card.inset-detail164{padding:15px!important}.business-time-card .time-fact-grid article{padding:13px!important}.dispatch-search156{margin-top:10px}.admin-overview165 .portfolio-grid165{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 14px}.audit-filters165{grid-template-columns:1fr 1fr;padding:14px}}

/* v166: remove the remaining legacy amber surfaces from the project workbench. */
:root{--amber:#2f6fed;--amber-light:#edf4ff}
.risk-summary140 span{background:#f5f8fd!important;color:#315d9c!important;border-color:#d6e4f7!important}.risk-summary140 i{color:#91a0b6!important}
.operational-flow button{background:#f7faff!important;border-color:#d9e5f6!important;color:#263e62!important;box-shadow:none!important}.operational-flow button:hover{background:#edf4ff!important;border-color:#8eb3ee!important;transform:none!important}.operational-flow button b{color:#2f6fed!important}.flow-help{color:#8796ab!important}
.stats{background:#fff!important;border-color:#dfe8f5!important}.stats .stat{background:#fff!important;border-color:#e5edf7!important;color:#17315a!important}.stats .stat strong{color:#17315a!important}.stats .stat label{color:#6f819a!important}
.lawyer-workload button,.lawyer-workload span{background:#f3f7fd!important;border-color:#d8e4f5!important;color:#315d9c!important}.pending-lawyer156,.tag.amber,.source-list span,.source-list164{color:#315d9c!important;background:#edf4ff!important;border-color:#d8e6fb!important}
.hierarchy-panel,.email-rules154{border-top-color:#2f6fed!important}.batch-conclusion{border-left-color:#2f6fed!important;background:#f7faff!important}.button-link,.email-actions154 a,.email-main154 summary{color:#245fbd!important}
input:focus,select:focus,textarea:focus{border-color:#73a4ef!important;outline:2px solid rgba(47,111,237,.12)!important}input[type=checkbox]{accent-color:#2f6fed!important}
button:focus-visible,.button-download:focus-visible{outline:2px solid #8eb3ee!important;outline-offset:2px!important;box-shadow:none!important}.primary:focus-visible{border-color:#2f6fed!important;outline:2px solid #8eb3ee!important;box-shadow:none!important}

/* v167: explicit resource lifecycle controls and project-scoped actions. */
.resource-actions156,.firm-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.resource-actions156{min-width:210px}.resource-actions156 .button-link,.firm-card-actions .button-link{white-space:nowrap}
.quick-create button,#quickNewFirmProject156,#quickNewCenterProject156{color:#245fbd!important;background:#fff!important;border-color:#cfdbea!important}.quick-create button:hover,#quickNewFirmProject156:hover,#quickNewCenterProject156:hover{background:#edf4ff!important;border-color:#8eb3ee!important}
.firm-card.is-archived{background:#f7f9fc!important;border-color:#dfe6ef!important}.firm-card.is-archived>div,.firm-card.is-archived>p{opacity:.78}.firm-card.is-archived .firm-card-actions{opacity:1}
.tag{background:#edf4ff!important;color:#315d9c!important;border-color:#d8e6fb!important}
@media(max-width:900px){.resource-actions156{min-width:170px}.panel-head .actions{align-items:stretch}.panel-head .actions button{flex:1 1 auto}}

/* v168: remove amber workbench remnants and support compact expandable sections. */
.hierarchy-panel{border-top:1px solid #dfe8f5!important}.firm-unit{border-color:#dfe8f5!important;background:#fff!important}.firm-unit-head{background:#f7faff!important;color:#17315a!important}.firm-unit-head:hover{background:#edf4ff!important}.firm-unit-head strong,.lawyer-unit strong,.batch-card-top>strong,.issue-head>span:last-child,.export-card span,.dated-timeline time{color:#2f6fed!important}.firm-unit-head small,.lawyer-unit small{color:#6f819a!important}.lawyer-unit:hover b{color:#245fbd!important}
.hierarchy-panel.is-collapsed168 .hierarchy-content168{display:none}.hierarchy-panel.is-collapsed168{margin-bottom:14px}.hierarchy-content168{padding:0 0 1px}
.panel.panel-collapsed168>:not(.panel-head){display:none!important}.panel.panel-collapsed168{margin-bottom:14px}
.balance-score168{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 14px}.balance-score168 span{padding:13px;border:1px solid #dfe8f5;border-radius:13px;background:#f7faff;color:#60738f;font-size:12px}.balance-score168 strong{display:block;margin-top:5px;color:#17315a;font-size:22px}.balance-rationale168{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin:0 0 14px;padding:13px 15px;border-radius:13px;background:#edf4ff;color:#315d9c}.balance-rationale168 p{margin:0;font-size:12px}.balance-adjust168{margin:16px 0;padding:12px 14px;border:1px solid #dfe8f5;border-radius:13px}.balance-adjust168 summary{cursor:pointer;color:#245fbd;font-weight:600}.balance-case168{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1f7}.balance-case168 span,.balance-case168 small{display:block}.balance-case168 small{margin-top:4px;color:#71829a}.balance-case168 select{margin:0}
@media(max-width:720px){.balance-score168{grid-template-columns:1fr 1fr}.balance-rationale168{grid-template-columns:1fr}.balance-case168{grid-template-columns:1fr}.balance-case168 select{width:100%}}

/* Lawyer-letter validation: explain every blocked case before generation. */
.letter-blocked-detail171{margin:14px 0;padding:14px;border:1px solid #d9e5f7;border-radius:14px;background:#f8fbff}
.letter-blocked-detail171 h4{margin:0 0 10px;color:#16345f;font-size:15px}
.letter-missing-summary171{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.letter-missing-summary171 span{padding:7px 10px;border-radius:999px;background:#eaf2ff;color:#315d98;font-size:13px}
.letter-missing164{max-height:260px;overflow:auto;border:1px solid #e2e9f3;border-radius:10px;background:#fff}
.letter-missing164 p{display:grid;grid-template-columns:minmax(150px,1fr) minmax(140px,1fr);gap:12px;margin:0;padding:10px 12px;border-bottom:1px solid #edf1f7}
.letter-missing164 p:last-of-type{border-bottom:0}
.letter-missing164 p span{color:#9b3f3f}
.letter-missing164 small{display:block;padding:10px 12px;color:#687991}
@media(max-width:640px){.letter-missing164 p{grid-template-columns:1fr;gap:4px}.letter-blocked-detail171 .actions{display:grid;grid-template-columns:1fr}.letter-blocked-detail171 .actions button{width:100%;white-space:normal}}
