/* A staff case occupies the page below the firm header. The existing dialog body
   owns vertical scrolling; client previews retain their separate dialog layout. */
.boyce-case-focus:not([data-native-client-view]) { inset:var(--boyce-header-height,86px) 0 0; width:100%; height:calc(100dvh - var(--boyce-header-height,86px)); max-width:none; max-height:none; margin:0; border:0; border-radius:0; box-shadow:none; background:#f1f4f8; }
.boyce-case-focus:not([data-native-client-view]) > .boyce-case-focus__body { min-height:0; min-width:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; scrollbar-gutter:stable; padding:24px 22px 36px; }
.boyce-case-focus:not([data-native-client-view]) > header > .pragtical-dialog-close { top:28px; right:18px; width:36px; height:36px; min-height:36px; border:0; background:transparent; font-size:24px; }
.boyce-case-focus .boyce-nextchapter-case { --case-ink:#29313a; --case-muted:#465569; --case-line:#c1cad6; --case-navy:#173d6a; min-width:0; color:var(--case-ink); font:400 14px/1.5 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-masthead { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px 24px; min-height:54px; margin:0 0 22px; padding:0 52px 0 0; border:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-masthead h1 { flex:1 1 280px; margin:0; color:#252c34; font:700 24px/1.35 'DM Sans',Arial,sans-serif; letter-spacing:-.3px; overflow-wrap:anywhere; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-header-tools { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:24px; min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-context { display:flex; flex-wrap:wrap; gap:24px; margin:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-context > div { min-width:68px; max-width:220px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-context dt { margin:0 0 2px; color:#465569; text-transform:uppercase; font-size:12px; font-weight:600; line-height:1.4; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-context dd { margin:0; color:#2a3139; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.boyce-case-focus .boyce-case-questionnaire-source { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 20px; color:#46505c; font-size:13px; }
.boyce-case-focus .boyce-case-questionnaire-source select { max-width:100%; min-height:40px; padding:8px 12px; border:1px solid #7b8b9f; border-radius:5px; background:#fff; color:#213b60; font:inherit; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-preview { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:40px; padding:10px 23px; color:#fff; background:var(--case-navy); border:1px solid var(--case-navy); border-radius:24px; font:600 14px/1.35 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-preview:hover { color:#fff; background:#245fa8; border-color:#245fa8; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-workspace-grid { display:grid; grid-template-columns:minmax(0,24fr) minmax(0,43fr) minmax(0,30fr); gap:20px; align-items:start; min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory { min-width:0; padding:14px 4px; background:#fff; border:1px solid var(--case-line); border-radius:6px; box-shadow:0 2px 10px #15263612; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory nav { display:flex; flex-direction:column; gap:0; min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory .boyce-case-directory-link { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:33px; padding:7px 12px 7px 14px; color:#465569; text-align:left; text-decoration:none; border:0; border-radius:20px 0 0 20px; background:transparent; font:400 12.5px/1.5 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory .boyce-case-directory-link:hover:not(:disabled) { color:#294866; background:#edf4fc; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory .boyce-case-directory-link.is-current { color:#435364; background:#eaf2fb; font-weight:600; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory .boyce-case-directory-link:disabled { opacity:1; color:#596879; cursor:not-allowed; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-directory-chevron { display:flex; align-items:center; justify-content:center; flex:0 0 20px; height:20px; color:#465569; background:#edf1f5; border-radius:50%; font:400 21px/1 Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-section-status { margin:12px 12px 2px; color:#465569; font-size:12px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-main { min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordions { overflow:hidden; background:#fff; border:1px solid var(--case-line); border-radius:6px; box-shadow:0 2px 10px #15263612; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion { margin:0; border-bottom:1px solid var(--case-line); }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion:last-child { border-bottom:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion > summary { display:flex; align-items:center; gap:9px; min-height:70px; padding:20px 22px; box-sizing:border-box; color:#35414d; background:#fff; list-style:none; cursor:pointer; font:600 14px/1.5 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion > summary::-webkit-details-marker { display:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion > summary > svg { flex:0 0 18px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion-chevron { flex:0 0 8px; width:8px; height:8px; margin-left:auto; border-right:2px solid #788592; border-bottom:2px solid #788592; transform:rotate(45deg); }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion[open] > summary .boyce-case-accordion-chevron { transform:rotate(225deg); }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion[open] > summary { border-bottom:1px solid var(--case-line); }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion-body { padding:22px; color:#465564; font-size:13px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion-body > p:first-child { margin-top:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion-body > p:last-child { margin-bottom:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 20px; margin:0; font-size:13px; line-height:1.5; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-facts > div { min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-facts dt { margin:0 0 3px; color:var(--case-muted); font-size:12px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-facts dd { margin:0; color:#354454; font-weight:500; overflow-wrap:anywhere; white-space:pre-wrap; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-contact-name { margin:0 0 18px; color:#173d6a; font-size:15px; font-weight:600; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-contact-name a { color:inherit; text-decoration:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-contact-name a:hover { text-decoration:underline; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-authority-actions { gap:10px; margin-top:20px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-authority-actions:empty { display:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-authority-actions button { min-height:38px; padding:8px 12px; color:var(--case-navy); border-color:#7b8b9f; font-size:12px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-authority-actions [data-native-case-activate]:not(:disabled) { color:#fff; border-color:var(--case-navy); background:var(--case-navy); }
.boyce-case-focus .boyce-nextchapter-case [data-native-case-error]:empty { display:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-tools { min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs { display:flex; align-items:center; justify-content:space-between; gap:2px; min-height:36px; margin:0 0 9px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs > button { flex:0 1 auto; min-width:0; min-height:35px; padding:7px 14px; color:#465569; background:transparent; border:0; border-radius:22px; font:400 14px/1.5 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs > button[aria-selected=true] { color:#456484; background:#eaf2fb; font-weight:600; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs > button:disabled { color:#596879; opacity:1; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-card { min-height:130px; padding:22px 23px; background:#fff; border:0; border-radius:6px; box-shadow:0 2px 10px #15263612; }
.boyce-case-focus .boyce-nextchapter-case [data-case-dashboard-panel] { min-width:0; }
.boyce-case-focus .boyce-nextchapter-case [data-case-dashboard-panel][hidden] { display:none !important; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-panel-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin:0 0 14px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-panel-heading h2 { margin:0; color:#394957; font:600 13px/1.4 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-panel-link { color:var(--case-navy); font-size:12px; text-decoration:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-panel-link:hover { text-decoration:underline; }
.boyce-case-focus .boyce-nextchapter-case .boyce-task-reference { padding:12px 0; border-bottom-color:var(--case-line); }
.boyce-case-focus .boyce-nextchapter-case .boyce-task-reference strong { color:#34516f; font-size:13px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-task-reference span,.boyce-case-focus .boyce-nextchapter-case .boyce-task-reference small { color:var(--case-muted); font-size:11px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-progress { margin:0 0 20px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-progress strong { display:block; margin-bottom:4px; color:#414c59; font-size:12px; font-weight:600; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-progress progress { display:block; width:100%; height:6px; color:var(--case-navy); border:0; border-radius:5px; background:#e8ebef; accent-color:var(--case-navy); }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-progress progress::-webkit-progress-bar { border-radius:5px; background:#e8ebef; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-progress progress::-webkit-progress-value { border-radius:5px; background:#245fa8; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-progress > span { display:block; margin-top:7px; color:#465569; font-size:10px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list { display:grid; gap:13px; margin:0; padding:0; list-style:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list > li { display:flex; align-items:flex-start; gap:9px; min-width:0; color:#465569; font-size:12.5px; line-height:1.4; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list input[type=checkbox] { flex:0 0 13px; width:13px; height:13px; min-height:0; margin:2px 0 0; accent-color:var(--case-navy); opacity:1; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list > li > div { min-width:0; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list a { color:inherit; text-decoration:none; overflow-wrap:anywhere; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list a:hover { color:var(--case-navy); text-decoration:underline; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list small { display:block; margin-top:2px; color:#465569; font-size:10px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-empty { margin:0; color:#465569; font-size:13px; }
/* The case dashboard keeps the shared blue keyboard ring above the native reset. */
.boyce-case-focus .boyce-nextchapter-case :focus-visible { outline:3px solid #245fa8!important; outline-offset:3px!important; }
@media(max-width:1100px) {
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-workspace-grid { grid-template-columns:minmax(0,23fr) minmax(0,43fr) minmax(0,34fr); gap:16px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-card { padding:19px 16px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs > button { padding-inline:9px; font-size:13px; }
}
@media(max-width:900px) {
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-workspace-grid { grid-template-columns:minmax(0,1fr) minmax(0,.8fr); }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-directory { grid-column:1/-1; padding:6px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-directory nav { flex-direction:row; max-width:100%; overflow-x:auto; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-directory .boyce-case-directory-link { flex:0 0 auto; width:auto; min-height:40px; border-radius:20px; white-space:nowrap; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-directory-chevron { display:none; }
}
@media(max-width:700px) {
 .boyce-case-focus:not([data-native-client-view]) > .boyce-case-focus__body { padding:20px 14px 30px; }
 .boyce-case-focus:not([data-native-client-view]) > header > .pragtical-dialog-close { top:17px; right:12px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-masthead { align-items:flex-start; gap:16px; margin-bottom:18px; padding-right:38px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-masthead h1 { flex-basis:100%; font-size:21px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-header-tools { justify-content:flex-start; gap:16px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-context { gap:12px 20px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-context > div { min-width:58px; max-width:145px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-context dt { font-size:10px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-context dd { font-size:12px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-preview { min-height:38px; padding:8px 18px; font-size:13px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-workspace-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-directory { grid-column:auto; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion > summary { min-height:58px; padding:17px 18px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-accordion-body { padding:19px 18px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-facts { gap:16px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs { justify-content:flex-start; gap:8px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-tabs > button { flex:1 1 auto; font-size:13px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-tool-card { padding:21px 18px; }
 .boyce-case-focus .boyce-nextchapter-case .boyce-case-document-list > li { font-size:13px; }
}
/* Submitted files remain a separate review table below the selected tool. */
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-documents { min-width:0; margin-top:20px; overflow:hidden; background:#fff; border-radius:6px; box-shadow:0 2px 10px #15263612; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-documents > h2 { margin:0; padding:19px 22px; color:#394957; border-bottom:1px solid var(--case-line); font:600 14px/1.45 'DM Sans',Arial,sans-serif; }
.boyce-case-focus .boyce-nextchapter-case [data-boyce-case-client-documents] > p,.boyce-case-focus .boyce-nextchapter-case [data-boyce-case-client-documents] > .boyce-case-empty { margin:0; padding:20px 22px; font-size:12px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table { table-layout:fixed; width:100%; border-collapse:collapse; font-size:11px; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table th,.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table td { padding:11px 10px; border:0; border-bottom:1px solid var(--case-line); text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table thead th { color:#5a6877; background:#f8fafc; text-transform:uppercase; font-size:9px; font-weight:600; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table thead th:first-child { width:44%; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table thead th:nth-child(2) { width:19%; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table tbody th { color:#34516f; font-weight:500; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table tbody td { color:#465569; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table tbody tr:nth-child(even) { background:#f6f9fc; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table a { color:inherit; text-decoration:none; }
.boyce-case-focus .boyce-nextchapter-case .boyce-case-client-document-table a:hover { text-decoration:underline; }
