:root{--ink:#152c3e;--navy:#123650;--teal:#216c68;--muted:#6e7c86;--line:#dfe6e9;--bg:#f3f6f7;--red:#b42318;--green:#16704d}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 system-ui,sans-serif}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button,.button{display:inline-block;border:1px solid #bccbd2;background:white;color:var(--ink);border-radius:7px;padding:10px 15px;font:inherit;font-weight:600;cursor:pointer;text-align:center}button:hover,.button:hover{background:#eaf0f2;text-decoration:none}.primary{background:var(--navy);border-color:var(--navy);color:white}.primary:hover{background:#234d69}.text-button{background:none;border:0;padding:0;font-weight:400;font-size:12px;color:inherit}.preview{background:#fff0ca;color:#72500b;text-align:center;padding:7px 12px;font-size:11px;letter-spacing:.07em;font-weight:600}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 31px)}aside{display:flex;flex-direction:column;background:#112e43;color:#e6eef4;padding:32px 22px;gap:25px}.brand{font:36px/1.2 Georgia,serif;color:#fff;letter-spacing:-1px}.brand span{display:block;font-family:system-ui;font-size:8px;letter-spacing:.12em;margin-top:8px}.workspace-name{font-size:10px;letter-spacing:.16em;color:#8eafc1;margin-top:18px}nav{display:grid;gap:8px}nav a{color:#e6eef4;border-radius:6px;padding:10px 9px}nav a:hover{background:#244659;text-decoration:none}.sidebar-note{font-size:12px;line-height:1.9;color:#91aebb;border-top:1px solid #325267;padding-top:22px;margin-top:25px}.account{margin-top:auto;padding-top:25px;font-size:12px}.account small{display:block;color:#a8bdcb;margin:5px 0}.account form{margin:12px 0}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:white;font-size:12px}.private-label{color:#5a7970}.muted{color:var(--muted)}.content{padding:34px;max-width:1700px;margin:auto}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.15em;color:var(--teal)}h1{font:34px/1.2 Georgia,serif;margin:10px 0}h2{font-size:17px;margin:0 0 12px}h3{font-size:15px;margin:22px 0 10px}h4{font-size:14px}p{margin:10px 0 17px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.panel,.audit-report{background:white;border:1px solid var(--line);border-radius:10px;padding:24px;margin-bottom:20px}.queue-summary{display:flex;gap:30px;padding:15px 0 24px;font-size:12px;color:var(--muted)}table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:left}th,td{padding:14px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere;vertical-align:top}th{font-size:11px;color:#526775;font-weight:600;background:#f5f8f9}td{font-size:12px}td small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.case-list{padding:0;overflow:hidden}.case-name{font-weight:600;color:var(--ink)}.badge{display:inline-block;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:600}.pending{background:#edf2f5;color:#3d5c70}.approved{background:#e4f4ec;color:var(--green)}.good{color:var(--green)}.bad{color:var(--red)}.strong{font-weight:700}.empty{text-align:center;padding:55px 25px;color:var(--muted)}.empty h2{color:var(--ink)}.document-icon{font-size:40px;color:#8fa8b5;margin-bottom:15px}.case-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px}.documents{align-self:start;padding:18px}.documents h2{font-size:14px}.drop-zone{border:1px dashed #a0b9c5;border-radius:8px;padding:16px;background:#f7fafb}.drop-zone p{font-size:11px;color:var(--muted)}input,textarea{font:inherit;border:1px solid #bdcbd3;border-radius:6px;padding:10px;width:100%;color:var(--ink);background:#fff}textarea{min-height:110px;resize:vertical}input[type=file]{font-size:11px;padding:6px;max-width:100%}.drop-zone button{width:100%;font-size:12px;margin:10px 0}.drop-zone small{font-size:10px}.file-row{border-bottom:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}.file-row a{font-size:11px}.file-row small{display:block;color:var(--muted);font-size:10px}.report-heading{text-align:center;margin-bottom:28px}.report-heading h2,.report-heading .report-settlement{font-size:18px}.report-settlement{display:block}.report-section-divider{border:0;border-top:1px solid var(--line);margin:18px 0 0}.audit-result{font-weight:700;font-size:27px;letter-spacing:.04em;margin:18px 0 8px}.attention{font-size:12px}.audit-report{padding:22px}.audit-report h3{border-bottom:1px solid var(--line);padding:0 0 8px;color:var(--navy)}.audit-report th{background:var(--navy);color:white;font-size:10px}.audit-report td{font-size:11px;padding:10px 5px}.medical-table th:first-child{width:18%}.medical-table th:nth-child(2){width:12%}.medical-table th:nth-child(3){width:18%}.medical-table th:nth-child(4){width:13%}.medical-table th:nth-child(5){width:17%}.medical-table th:nth-child(6){width:22%}.medical-table textarea{font-size:12px;padding:7px;min-height:110px}.medical-table button{font-size:10px;padding:6px;margin-top:5px}.clerk-explanation{white-space:pre-wrap}.total{font-weight:700;background:#f5f8f9}.audit-report footer{font-size:10px;color:var(--muted);margin-top:26px}.case-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.case-actions form{margin:0}.attorney-review{width:100%}.attorney-review textarea{margin-bottom:10px}.actions{display:flex;gap:10px;flex-wrap:wrap}.correction-callout{border-left:4px solid #bc7b21;background:#fff3df;padding:20px 25px;margin-bottom:22px}.correction-callout p{white-space:pre-wrap}.history-item{display:block;border-bottom:1px solid var(--line);padding:13px 0;font-size:12px}.history-item small{display:block;font-size:11px;color:var(--muted)}.admin-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.rule{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.user-form{display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap}.user-form>div{flex:1;min-width:200px}label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}fieldset{border:0;padding:0;margin:0}legend{font-size:12px;margin-bottom:9px}.check{display:inline-flex;gap:6px;align-items:center;margin-right:12px;font-weight:400}.check input{width:auto}.notice{display:block;font-size:11px;color:#8a6027;margin-top:12px}.login{max-width:740px;margin:50px auto}.login h1{font-size:46px}.lead{font-size:16px;color:var(--muted);max-width:570px;margin:22px 0 30px}.login .panel{max-width:520px;padding:30px}.login hr{border:0;border-top:1px solid var(--line);margin:25px 0}.table-wrap{max-width:100%}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #5baca6;outline-offset:3px}
@media screen and (max-width:1200px){.case-layout{grid-template-columns:1fr}.documents{display:block}.drop-zone{max-width:600px}.content{padding:24px}.medical-table th,.medical-table td{font-size:11px}}@media screen and (max-width:1000px){.shell{grid-template-columns:1fr}aside{padding:15px 20px;gap:12px}.brand{font-size:26px}.workspace-name,.sidebar-note{display:none}.brand span{font-size:9px;letter-spacing:.08em}nav{display:flex;gap:6px;flex-wrap:wrap}nav a{font-size:12px;padding:6px}.account{margin:0;padding:0;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.account small{margin:0}.account form{margin:0}.topbar{padding:0 20px;height:50px}.content{padding:20px}.page-heading{align-items:flex-start;flex-wrap:wrap}h1{font-size:29px}.admin-grid{grid-template-columns:1fr}.panel,.audit-report{padding:16px}.queue-summary{gap:14px;flex-wrap:wrap}.medical-table thead{display:none}.medical-table,.medical-table tbody,.medical-table tr,.medical-table td{display:block;width:100%}.medical-table tr{padding:10px 0;border-bottom:2px solid var(--line)}.medical-table td{border:0}.medical-table td::before{content:attr(data-label);display:block;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:4px}.medical-table td:empty{display:none}.login{margin:20px 0}.login h1{font-size:36px}.private-label{font-size:10px}}
@media print{aside,.topbar,.preview,.case-actions,.documents{display:none}.shell,.case-layout{display:block}.content{padding:0}.audit-report{border:0;padding:0}textarea,button{display:none}}

.file-heading{display:flex;align-items:flex-start;gap:8px;justify-content:space-between}.file-heading>a{min-width:0;flex:1}.remove-document{margin:0;flex:none}.remove-file{border:0;background:transparent;color:#9b3232;padding:0 4px;font-size:22px;line-height:24px;min-width:28px;cursor:pointer}.remove-file:hover{background:#fff0ee;border-radius:4px}.removed-documents{margin:16px 0;font-size:11px}.removed-documents summary{cursor:pointer;font-weight:600;margin-bottom:8px}.removed-documents small{color:var(--muted)}.removed-documents .restore-file{font-size:10px;margin-top:8px;max-width:100%;overflow-wrap:anywhere}.drop-zone.dragging{border-color:#31877e;background:#edf8f5}.upload-selection{overflow-wrap:anywhere}.drop-zone button:disabled{opacity:.6;cursor:wait}

.audit-actions small{display:block;margin-top:12px;font-size:11px}.audit-actions button:disabled{opacity:.5;cursor:not-allowed}

.explanation-form [hidden]{display:none!important}.explanation-form textarea[readonly]{background:#f5f8f9}.explanation-form .actions{flex-wrap:nowrap;gap:8px}

.cp-destination-editor>summary{display:inline-block;cursor:pointer;list-style:none}.cp-destination-editor>summary::-webkit-details-marker{display:none}.cp-destination-editor[open]>summary{margin-bottom:1rem}

/* Shared bounds prevent long names and document titles widening the page. */
main,.content,.case-layout>*{min-width:0}.content{width:100%}.page-heading>div{min-width:0}h1,h2,h3,.notice,.report-submitter{overflow-wrap:anywhere}.table-wrap{overflow-x:auto}.case-section-links{display:none}#audit-report,#case-documents{scroll-margin-top:80px}
@media screen and (max-width:1200px){
.case-section-links{display:flex;gap:8px;position:sticky;top:0;z-index:10;padding:8px 0;background:var(--bg);margin-bottom:12px}
.case-section-links a{display:flex;flex:1;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid #bccbd2;border-radius:7px;background:white;color:var(--teal);font-size:14px;font-weight:600;text-align:center}
}
@media screen and (max-width:1000px){
.content{padding:16px}.topbar{height:auto;min-height:50px;padding:12px 16px;gap:12px;align-items:flex-start}.topbar>span:first-child{min-width:0;flex:1;overflow-wrap:anywhere}.private-label{flex:none;white-space:nowrap}
nav a{min-height:44px;display:flex;align-items:center}aside .text-button{min-height:44px;display:inline-flex;align-items:center;padding:8px;font-size:14px}.account{gap:8px}
.content button,.content .button{min-height:44px;font-size:14px}.content input,.content textarea,.content select,.medical-table textarea{font-size:16px;min-width:0;max-width:100%}.content input:not([type=hidden]):not([type=checkbox]):not([type=radio]),.content select{min-height:44px}.content textarea{min-height:130px}
.content .check{min-height:44px}.content .check input{width:20px;height:20px;flex:none}.content input[type=file]{width:100%;padding:0;border:0;overflow:hidden}.content input[type=file]::file-selector-button{font:inherit;min-height:44px;padding:8px 10px;border:1px solid #bccbd2;border-radius:6px;background:#edf2f5;color:var(--ink)}
.page-heading{gap:12px}h1{font-size:27px}.queue-summary{gap:10px 16px}.case-list{padding:0;overflow:visible}.table-wrap{overflow:visible}.content table{display:block;width:100%;table-layout:auto}.content table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.content table tbody{display:block;width:100%}.content table tbody tr{display:block;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:8px}.content table td{display:block;width:100%;padding:6px 0;border:0;font-size:14px;min-width:0;overflow-wrap:anywhere}.content table td::before{content:attr(data-label);display:block;font-size:12px;line-height:1.4;font-weight:600;color:#526775;margin-bottom:4px}.content table td:empty,.content table td:not([data-label])::before,.content table td[data-label=""]::before{display:none}
.case-list table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:16px;margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0}.case-list table td{padding:0}.case-list td:first-child,.case-list td.submitted-by{grid-column:1/-1}.case-list td:first-child::before,.case-list td:last-child::before{display:none}.case-list a.case-name{display:block;min-height:44px;font-size:17px;line-height:1.4}.case-list td small{font-size:12px}.case-list td:last-child a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:64px;padding:8px 12px;border:1px solid #bccbd2;border-radius:6px;font-size:14px}.case-list .badge{max-width:100%;font-size:12px;white-space:normal}
.medical-table tr{padding:12px}.medical-table td:first-child{font-size:16px;font-weight:600}.explanation-form .actions{gap:8px}.explanation-form button{flex:1;min-height:44px;font-size:14px}.file-row a{font-size:14px;min-height:44px;display:flex;align-items:center}.file-row small{font-size:12px}.remove-file{min-width:44px;min-height:44px;padding:8px;line-height:28px}.content .remove-file{font-size:24px}.removed-documents summary,.history-item{min-height:44px}.removed-documents .restore-file{font-size:14px}.notice a{display:inline-flex;align-items:center;min-height:44px}.documents .drop-zone small{font-size:12px}
.audit-actions .actions form{flex:1 1 180px}.audit-actions .actions button{width:100%}.attorney-review .actions button{flex:1 1 180px}.user-form>div{min-width:0;flex:1 1 100%}.user-form fieldset{min-width:0;max-width:100%;width:100%}.user-form>button{width:100%}.login .panel{padding:20px}.login .button{max-width:100%}
}
@media screen and (max-width:360px){.content{padding:12px}.topbar{padding:12px}.case-section-links a{font-size:13px;padding:10px 6px}}
@media print{.case-section-links{display:none}.table-wrap{overflow:visible}}
@media screen and (max-width:1000px){.audit-actions a,.content td a{display:inline-flex;align-items:center;min-height:44px}}

/* Readable portal typography with names wrapping inside the viewport. */
@media screen{
body{font-size:16px;line-height:1.55}.shell{grid-template-columns:250px minmax(0,1fr)}
aside{padding:28px 20px}.brand span{font-size:10px}.workspace-name{font-size:12px}
.account,.sidebar-note,.text-button,.topbar{font-size:14px}.account{overflow-wrap:anywhere}.account small{font-size:14px}
.content{padding:26px;max-width:1800px}.eyebrow,.preview{font-size:13px}
h1{font-size:38px}h2{font-size:22px}h3{font-size:19px}h4{font-size:17px}
.page-heading{flex-wrap:wrap}.page-heading>div{max-width:100%}
.queue-summary,.rule,label,legend,.notice,.attention,.history-item{font-size:16px}
th,td,.audit-report td{font-size:16px;padding:12px 9px}th,.audit-report th{font-size:14px;line-height:1.5}
td small,.history-item small,.audit-report footer,.audit-actions small,.drop-zone p,.drop-zone small,.file-row small,.removed-documents{font-size:14px}
.case-name{font-size:18px;line-height:1.45}.badge{font-size:14px;max-width:100%;white-space:normal}
.case-layout{grid-template-columns:320px minmax(0,1fr)}.documents h2{font-size:22px}
.file-row a{font-size:17px;line-height:1.5}.file-heading>a{overflow-wrap:anywhere;white-space:normal}
input[type=file],.drop-zone button,.medical-table textarea,.medical-table button,.removed-documents .restore-file{font-size:16px}
input,textarea,select{font:inherit;min-width:0;max-width:100%}.medical-table button{padding:8px;max-width:100%;overflow-wrap:anywhere}
.report-heading h2,.report-heading .report-settlement{font-size:22px}.audit-result{font-size:32px}
.medical-table td{font-size:15px}.explanation-form .actions{flex-wrap:wrap}.explanation-form .actions button{flex:1 1 90px}
.panel,.audit-report,.table-wrap,.actions,.case-actions,.user-form,.user-form>div{min-width:0;max-width:100%}
button,.button,summary{max-width:100%;white-space:normal;overflow-wrap:anywhere}
th,td,td a,.report-submitter,.upload-selection{overflow-wrap:anywhere;white-space:normal}
.table-wrap{overflow:visible}.user-form>div{min-width:0;flex:1 1 220px}
}
@media screen and (max-width:1500px){
.case-layout{grid-template-columns:minmax(0,1fr)}.case-section-links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.case-section-links a{color:var(--teal);padding:10px 14px;border:1px solid #bccbd2;border-radius:7px;background:white;font-size:16px}
}
@media screen and (max-width:1000px){
.shell{grid-template-columns:minmax(0,1fr)}.content{padding:16px}aside{padding:15px 20px}
nav a,.topbar,.private-label,.content button,.content .button{font-size:16px}
h1{font-size:32px}.content table td,.medical-table td{font-size:16px}.content table td::before{font-size:14px}
.case-list a.case-name{font-size:19px}.case-list td small,.case-list .badge{font-size:14px}.file-row a{font-size:17px}.file-row small,.documents .drop-zone small{font-size:14px}
.case-list table tbody tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media screen and (max-width:400px){
.content{padding:12px}.panel,.audit-report{padding:14px}.topbar{flex-wrap:wrap}.case-list table tbody tr{grid-template-columns:minmax(0,1fr)}.case-list table td{grid-column:1/-1}.case-section-links a{font-size:16px}
}

.cp-destination-line{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.cp-destination-line>p{margin:0;overflow-wrap:anywhere;min-width:0}.cp-destination-line>.cp-destination-editor{flex:0 0 auto}.cp-destination-line>.cp-destination-editor[open]{flex:1 1 100%}.cp-destination-line>form{flex:1 1 100%}

.audit-progress{color:var(--green);font-weight:600}.correction-history p{white-space:pre-wrap}

.submission-cp-history{padding:0 12px 14px;overflow-wrap:anywhere}.submission-cp-history small{display:block}.submission-history-entry{border-bottom:1px solid #e4e7ec}

.instruction-text{white-space:pre-wrap;overflow-wrap:anywhere}

.correction-thread{border-top:1px solid #dbe3e8;padding:16px 0;margin-top:12px;overflow-wrap:anywhere}
.correction-thread h4{margin:0 0 10px}.correction-text{white-space:pre-wrap;line-height:1.5}
.correction-attribution,.response-attribution{margin:12px 0 6px}.correction-response-form{margin-top:12px}
.correction-response-form textarea{width:100%;min-height:96px;box-sizing:border-box;resize:vertical}
.correction-response-form textarea[readonly]{background:#f5f8fa}.correction-response-form .actions{margin-top:8px}

.file-matches{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}.file-matches ul{margin:5px 0 0;padding-left:18px}.file-matches li{margin:6px 0;overflow-wrap:anywhere}.file-matches li>small{display:block;color:var(--muted);font-size:12px}.file-matches small{overflow-wrap:anywhere}

.review-lock-notice{font-size:18px;font-weight:700;line-height:1.5;margin:14px 0 0;color:var(--ink)}

.warning{color:#b85c00}

.account-settings{display:inline-flex;align-items:center;gap:.4rem;color:#fff;font-weight:650;margin-bottom:.35rem}
.account .account-email{color:#dce7ed}
.recent-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 0;border-top:1px solid #dce4e8}
.recent-item small{display:block;color:#526575}.recent-item:first-of-type{border-top:0}
.recent-section .section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}

nav .workspace-admin-divider{grid-column:1/-1;border:0;border-top:1px solid #5e7c8d;width:100%;margin:12px 0 4px}

.mc-case-name{grid-column:1/-1}.mc-fields input[readonly]{background:#eef3f0;color:#34483f;cursor:default}

.function-search{max-width:38rem;margin:0 0 1.25rem}.function-search label{display:block;font-weight:700;margin-bottom:.45rem}.function-search input{width:100%}.function-search [data-search-status]{display:block;min-height:1.5em;margin-top:.35rem}[data-search-entry][hidden],[data-search-empty][hidden]{display:none!important}
/* Compact function search sits above the list card and aligns with its right edge. */
.function-list-search-row{display:flex;justify-content:flex-end;margin:0 0 12px;padding-top:28px}
.function-list-search-row .function-search{display:grid;grid-template-columns:max-content 19rem;align-items:center;gap:4px 10px;max-width:100%;margin:0}
.function-list-search-row .function-search label{margin:0;white-space:nowrap}
.function-list-search-row .function-search input{width:19rem;max-width:100%;min-width:0}
.function-list-search-row .function-search [data-search-status]{grid-column:1/-1;text-align:right;margin:0;min-height:1.4em}
@media(max-width:540px){.function-list-search-row .function-search{grid-template-columns:minmax(0,1fr) minmax(8rem,1.4fr);width:100%}.function-list-search-row .function-search input{width:100%}.function-list-search-row .function-search label{white-space:normal}}

.list-sort{border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;text-transform:inherit;padding:8px 0;display:inline-flex;align-items:center;gap:7px;text-align:left;box-shadow:none;cursor:pointer}
.list-sort:hover{background:transparent;color:#1762c4}.list-sort:focus-visible{outline:2px solid #1762c4;outline-offset:4px;border-radius:4px}
.sort-indicator::after{content:'↕';opacity:.4}th[aria-sort="ascending"] .sort-indicator::after{content:'↑';opacity:1}th[aria-sort="descending"] .sort-indicator::after{content:'↓';opacity:1}
.delete-dialog{border:0;border-radius:26px;padding:28px 26px 24px;width:min(520px,calc(100vw - 36px));color:#173c50;box-shadow:0 14px 55px #0c203840;background:#fff}
.delete-dialog::backdrop{background:rgba(25,32,42,.38)}.delete-dialog h2{font-size:24px;margin:0 0 18px}.delete-dialog p{font-size:15px;line-height:1.55;margin:0 0 16px}.delete-dialog-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:26px}.delete-dialog-actions button{border-radius:24px;padding:10px 22px}.delete-dialog-actions [data-delete-cancel]{border:0;background:transparent;color:#0654cc}.delete-dialog-actions .primary{background:#0b57d0;border-color:#0b57d0;color:white}

/* Per-person section access stays readable on desktop and stacks on mobile. */
.team-access-table th{white-space:normal;min-width:95px}.team-access-table td{vertical-align:middle}.team-access-table td:first-child{min-width:200px}.section-check input{width:20px;height:20px;accent-color:#1878be;cursor:pointer}.section-check input:disabled{cursor:default;opacity:.8}.team-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:155px}.team-actions [hidden]{display:none}.team-row-editing{background:#edf6fd}.team-roles{margin-top:20px}.team-roles summary{cursor:pointer;font-weight:600}.team-roles .user-form{margin-top:16px}

.team-access-table{table-layout:auto;width:100%}.team-access-table td:first-child strong{white-space:nowrap;overflow-wrap:normal;word-break:normal}.team-access-table td:first-child{width:1%;min-width:max-content}

.access-log-only{max-width:1200px;margin:32px auto;padding:0 20px}

.firm-brand{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;background:transparent}
.brand .firm-logo-emblem,.brand .firm-logo-wordmark{position:relative;display:block;overflow:hidden;margin:0;background:transparent}
.brand .firm-logo-emblem{width:104px;aspect-ratio:1}
.brand .firm-logo-wordmark{width:100%;max-width:200px;aspect-ratio:1256/264}
.firm-brand img{position:absolute;display:block;height:auto;max-width:none;background:transparent}
.firm-logo-emblem img{width:481.39535%;left:0;top:0}
.firm-logo-wordmark img{filter:brightness(0) invert(1);width:131.84713%;left:-31.84713%;top:-15.15152%}
@media(max-width:1000px){.firm-brand{width:160px;gap:10px}.brand .firm-logo-emblem{width:72px}.brand .firm-logo-wordmark{max-width:160px}}

/* Native modal keeps keyboard focus inside the confirmation and dims the page. */
.finalize-dialog{border:0;border-radius:24px;padding:28px;width:min(520px,calc(100vw - 36px));color:#173c50;box-shadow:0 14px 55px #0c203840;background:#fff}
.finalize-dialog::backdrop{background:rgba(15,23,42,.58)}
.finalize-dialog h2{margin:0 0 16px;font-size:24px}.finalize-dialog p{line-height:1.55}.finalize-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.finalize-dialog-actions button{min-width:80px}

.payment-instructions{font-weight:normal;font-style:normal}.payment-instructions .payment-line{white-space:pre-line}.payment-instructions .payment-line+.payment-line{border-top:1px solid #e3e8ec;margin-top:3px;padding-top:3px}.payment-instructions strong{font-weight:bold}.payment-instructions .payment-source{font-weight:normal}

/* Workflow labels stay readable without color; finalized is distinct from draft. */
.badge.workflow-finalized{background:#145c45;color:#fff}
.badge.workflow-running{background:#e8f1ff;color:#174a7e}
.badge.workflow-review{background:#fff2cc;color:#704500}
.badge.workflow-attention{background:#fde9e7;color:#9b251d}

.audit-preflight-dialog{border:1px solid #cbd5e1;border-radius:12px;padding:24px;width:min(600px,calc(100vw - 48px));max-height:80vh;overflow:auto;color:#172b4d;background:#fff}.audit-preflight-dialog::backdrop{background:rgba(15,23,42,.65)}.audit-preflight-dialog li{overflow-wrap:anywhere;margin:6px 0}.audit-preflight-dialog .actions{justify-content:flex-end;margin-top:20px}

.signed-drop-zone{border:2px dashed #cbd5e1;border-radius:8px;padding:20px;background:#f8fafc}.signed-drop-zone.dragging{border-color:#276b50;background:#edf8f0}.signed-drop-zone label{display:block;font-weight:600}.signed-drop-zone small{display:block;margin-top:10px}

.documents .signed-sds{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid #dce2e7}.documents .signed-sds .signed-drop-zone{padding:16px}.documents .signed-sds input[type=file]{max-width:100%}

.function-list-search-row{justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap}.list-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}.list-tabs a{padding:9px 16px;border:1px solid transparent;border-bottom:0;border-radius:7px 7px 0 0;color:var(--muted);font-weight:600;margin-bottom:-1px}.list-tabs a:hover{text-decoration:none;color:var(--ink);background:#eaf0f2}.list-tabs a.active{color:var(--ink);background:white;border-color:var(--line)}.list-tabs .tab-count{display:inline-block;min-width:22px;padding:1px 7px;border-radius:10px;background:#edf2f5;font-size:11px;text-align:center;margin-left:4px}

.manual-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.manual-contents{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;padding:18px}.manual-contents h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--teal);margin:18px 0 6px}.manual-contents ul{list-style:none;margin:0;padding:0}.manual-contents li{margin:4px 0;font-size:13px}.manual-section h2{font:24px/1.25 Georgia,serif;margin:6px 0 4px}.manual-section p,.manual-section li{font-size:14px;line-height:1.6}.manual-roles{font-size:12px;color:var(--muted);margin:0 0 14px}.manual-items{display:grid;grid-template-columns:minmax(150px,240px) 1fr;gap:8px 18px;margin:14px 0;font-size:14px}.manual-items dt{font-weight:700}.manual-items dd{margin:0}.manual-messages li{font-family:inherit;color:#8a6027}.manual-top{font-size:12px}@media screen and (max-width:1000px){.manual-layout{grid-template-columns:1fr}.manual-contents{position:static;max-height:none}.manual-items{grid-template-columns:1fr}.manual-items dd{margin-bottom:8px}}
.manual-contents a,.manual-contents a:hover{display:inline;padding:0;border-radius:0;background:none;color:var(--teal)}.manual-contents a:hover{text-decoration:underline}
