.crm-client-page {
  --crm-blue:var(--cpw-blue,#075aca);
  --crm-ink:var(--cpw-ink,#16283e);
  --crm-muted:var(--cpw-muted,#526477);
  --crm-line:var(--cpw-line,#d7e1eb);
  color:var(--crm-ink);
  font-family:var(--cpw-ui,Archivo,Arial,sans-serif);
  min-width:0;
}
.crm-client-page * {box-sizing:border-box;}
.crm-icon {width:19px;height:19px;display:inline-block;flex:none;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;}
.crm-heading,.crm-profile-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;}
.crm-heading h1,.crm-profile-heading h1 {color:#10243e;font:650 clamp(2rem,3.2vw,3.3rem)/1.08 var(--cpw-ui,Archivo,Arial,sans-serif);letter-spacing:-.055em;overflow-wrap:anywhere;}
.crm-heading p {margin:6px 0 0;color:var(--crm-muted);font-size:1rem;}
.crm-button,#firm-main .crm-button {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;max-width:100%;padding:8px 14px;border:1px solid #b3c5d9;
  border-radius:6px;color:#24496d;background:#fff;cursor:pointer;font:610 .9rem/1.35 var(--cpw-ui,Archivo,Arial,sans-serif);text-decoration:none;white-space:normal;
}
.crm-button:hover,#firm-main .crm-button:hover {color:#173e68;border-color:#7b9fc5;background:#eff5fc;}
.crm-button.crm-primary,#firm-main .crm-button.crm-primary {background:var(--crm-blue);border-color:var(--crm-blue);color:#fff;}
.crm-button.crm-primary:hover,#firm-main .crm-button.crm-primary:hover {background:#064998;border-color:#064998;}
.crm-button.crm-plain,#firm-main .crm-button.crm-plain {background:transparent;color:var(--crm-blue);border-color:transparent;min-height:36px;padding:6px 8px;}
.crm-button.crm-plain:hover,#firm-main .crm-button.crm-plain:hover {background:#edf4ff;}
.crm-button:disabled {opacity:.55;cursor:wait;}
.crm-primary .crm-icon {width:16px;height:16px;}
.crm-panel {border:1px solid var(--crm-line);border-radius:11px;background:white;min-width:0;}
.crm-panel+.crm-panel {margin-top:16px;}
.crm-panel-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px 14px;min-width:0;padding:17px 21px;border-bottom:1px solid #e1e8f0;}
.crm-panel-heading h2,.crm-edit-panel>h2 {font-size:clamp(1.15rem,1.6vw,1.45rem);font-weight:660;letter-spacing:-.035em;margin:0;color:#193754;}
.crm-count {color:#475b70;max-width:60%;font-size:.88rem;overflow-wrap:anywhere;}
.crm-search-wrap {padding:15px 21px 17px;background:linear-gradient(90deg,#f8fafd,white);}
.crm-search {display:grid;gap:5px;max-width:690px;}
.crm-search label,.crm-edit label {display:grid;gap:6px;margin:0;color:#344d65;font-size:.91rem;font-weight:580;}
.crm-search-controls {display:flex;gap:7px;align-items:center;min-width:0;}
.crm-search-controls input,.crm-edit :is(input,select,textarea) {width:100%;min-width:0;max-width:100%;min-height:42px;border:1px solid #aebfd2;border-radius:6px;background:#fff;color:var(--crm-ink);font:400 1rem/1.4 var(--cpw-ui,Archivo,Arial,sans-serif);padding:9px 11px;}
.crm-search-controls input {flex:1;}
.crm-directory {width:100%;border-collapse:collapse;table-layout:fixed;}
.crm-directory th,.crm-directory td {text-align:left;vertical-align:middle;}
.crm-directory thead th {padding:9px 12px;border-block:1px solid #dce5ef;color:#526477;background:#f2f6fa;font-size:.81rem;font-weight:625;}
.crm-directory thead th:first-child {width:36%;}.crm-directory thead th:nth-child(2){width:30%;}.crm-directory thead th:nth-child(3){width:14%;}
.crm-directory thead th:first-child,.crm-directory tbody th:first-child {padding-left:21px;}
.crm-directory th:last-child,.crm-directory td:last-child {padding-right:17px;}
.crm-directory tbody tr+tr {border-top:1px solid #e2e9f0;}
.crm-directory tbody :is(th,td) {padding:13px 12px;min-width:0;overflow-wrap:anywhere;}
.crm-directory tbody tr:hover {background:#f8fbff;}
.crm-client-link {display:inline-flex;gap:11px;align-items:center;color:#193b60;text-decoration:none;font-weight:620;max-width:100%;}
.crm-client-link:is(:hover,:focus-visible) strong,.crm-related a:is(:hover,:focus-visible) {color:var(--crm-blue);text-decoration:underline;text-underline-offset:3px;}
.crm-client-link>span:not(.crm-client-icon) {min-width:0;}
.crm-client-link strong,.crm-client-link small,.crm-contacts span,.crm-contacts small {display:block;overflow-wrap:anywhere;}
.crm-client-link strong {font-size:.97rem;font-weight:650;line-height:1.35;}
.crm-client-link small,.crm-contacts small {font-size:.81rem;font-weight:440;color:var(--crm-muted);margin-top:3px;}
.crm-client-icon,.crm-case-icon,.crm-profile-icon,.crm-empty-icon {display:inline-grid;place-items:center;flex:none;border-radius:9px;color:#275d96;background:#e9f2ff;}
.crm-client-icon,.crm-case-icon {width:36px;height:36px;}
.crm-client-icon.crm-org {background:#ebeff6;color:#3e5879;}
.crm-contacts,.crm-case-total,.crm-last-updated {font-size:.91rem;}
.crm-case-total,.crm-last-updated {font-variant-numeric:tabular-nums;}
.crm-last-updated,.crm-muted,.crm-footnote,.crm-updated {color:var(--crm-muted);}
.crm-mobile-label {display:none;}
.crm-empty {display:flex;align-items:flex-start;gap:14px;padding:28px 22px;border-top:1px solid #e5ebf2;}
.crm-empty-icon {width:43px;height:43px;background:#eef4fa;}
.crm-empty h3 {font-size:1.05rem;margin:2px 0 5px;}
.crm-empty p {font-size:.94rem;color:var(--crm-muted);max-width:52ch;}
.crm-pagination {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-top:1px solid #dce5ef;font-size:.86rem;color:var(--crm-muted);}
.crm-pagination>div,.crm-control-row,.crm-form-end,.crm-confirm>div {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.crm-back {font-size:.9rem;font-weight:600;text-decoration:underline;text-underline-offset:3px;display:inline-block;margin:0 0 13px;}
.crm-profile-heading {justify-content:flex-start;gap:15px;}
.crm-profile-icon {width:58px;height:58px;border:1px solid #bad3ee;background:#e1edfd;}
.crm-profile-icon .crm-icon {width:28px;height:28px;}
.crm-profile-heading>div {flex:1;min-width:0;}
.crm-profile-heading p {font-size:.88rem;color:#52677b;margin-bottom:3px;}
.crm-profile-heading .crm-profile-edit {margin-left:auto;flex:none;}
.crm-detail-grid {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:17px;align-items:start;}
.crm-facts {margin:0;padding:3px 20px;}
.crm-facts>div {padding:13px 0;border-bottom:1px solid #e5ebf2;}
.crm-facts>div:last-child {border:0;}
.crm-facts dt {color:var(--crm-muted);font-size:.83rem;}
.crm-facts dd {margin:3px 0 0;font-size:.97rem;overflow-wrap:anywhere;}
.crm-notes {white-space:pre-wrap;padding:17px 20px;font-size:.95rem;overflow-wrap:anywhere;}
.crm-updated,.crm-footnote {margin-top:12px;font-size:.87rem;}
.crm-title-count {display:flex;align-items:center;gap:9px;}
.crm-title-count span {display:grid;place-items:center;border-radius:6px;min-width:25px;padding:2px 6px;background:#eaf2ff;color:#275482;font-size:.84rem;font-weight:640;font-variant-numeric:tabular-nums;}
.crm-related,.crm-choices {list-style:none;margin:0;padding:0;}
.crm-related>li,.crm-choices>li {padding:11px 19px;border-bottom:1px solid #e2e9f1;}
.crm-related>li:last-child,.crm-choices>li:last-child {border-bottom:0;}
.crm-related-line,.crm-choices>li {display:flex;align-items:center;justify-content:space-between;gap:11px;}
.crm-related a {display:flex;align-items:center;gap:10px;min-width:0;color:#183d66;font-weight:600;text-decoration:none;}
.crm-related a span:last-child,.crm-choices li>span {min-width:0;overflow-wrap:anywhere;}
.crm-choices li>button,.crm-related-line>button {flex:none;}
.crm-case-icon {height:32px;width:32px;border-radius:7px;background:#edf2f8;}
.crm-case-icon .crm-icon {width:16px;height:16px;}
.crm-link-box {padding:13px 19px 16px;border-bottom:1px solid #c9daee;background:#f3f7fd;}
.crm-link-box .crm-panel-heading {padding:0 0 10px;border:0;}
.crm-link-box .crm-panel-heading h3 {font-size:1rem;}
.crm-choices {margin-top:10px;border:1px solid #d8e2ed;border-radius:7px;background:white;}
.crm-choices>li {padding:7px 10px;font-size:.94rem;}
.crm-choices .crm-button {min-height:34px;}
.crm-no-choices {padding-top:11px;font-size:.9rem;color:var(--crm-muted);}
.crm-confirm {padding:11px 13px;margin-top:9px;border-radius:6px;background:#f4f7fb;border:1px solid #d7e2ed;}
.crm-confirm p {margin:0 0 8px;font-size:.91rem;}
.crm-edit-panel {max-width:820px;padding:clamp(18px,2.4vw,29px);}
.crm-edit-panel>h2 {margin-bottom:18px;}
.crm-edit {display:grid;gap:20px;}
.crm-edit fieldset {min-width:0;border:0;margin:0;padding:0;}
.crm-edit legend {margin-bottom:9px;font-weight:650;color:#193b60;font-size:1.05rem;letter-spacing:-.015em;}
.crm-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 16px;}
.crm-edit textarea {resize:vertical;}
.crm-form-end {border-top:1px solid #dce5ef;padding-top:17px;}
.crm-success,.crm-error,.crm-feedback:not(:empty) {margin:10px 0 15px;padding:10px 13px;border-radius:5px;overflow-wrap:anywhere;font-size:.94rem;}
.crm-error,.crm-feedback:not(:empty) {background:#fff3df;color:#795020;}
.crm-success {background:#eaf4ee;color:#2c5a40;}
.crm-feedback:empty {display:none;}
.crm-loading {color:var(--crm-muted);}
.crm-visually-hidden {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;}
@media(max-width:1000px){
  .crm-directory thead th:first-child{width:32%;}.crm-directory thead th:nth-child(2){width:30%;}.crm-directory thead th:nth-child(3){width:16%;}
  .crm-directory th:first-child,.crm-directory tbody th:first-child {padding-left:14px;}
  .crm-client-icon {width:30px;height:30px;}
  .crm-client-link {gap:7px;}
}
@media(max-width:790px){
  .crm-detail-grid {grid-template-columns:minmax(0,1fr);}
  .crm-detail-grid .crm-cases {margin-top:0;}
  .crm-panel-heading {padding:14px 16px;}
}
@media(max-width:620px){
  .crm-heading {margin-bottom:16px;gap:10px;}
  .crm-heading>div {min-width:0;}
  .crm-heading .crm-button {flex:none;}
  .crm-panel-heading {padding:13px 15px;}
  .crm-search-wrap {padding:13px 15px;}
  .crm-directory,.crm-directory tbody {display:block;}
  .crm-directory thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
  .crm-directory tbody tr {display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:11px 15px;border-top:1px solid #e2e9f0;}
  .crm-directory tbody tr :is(th,td) {padding:0!important;}
  .crm-directory tbody th,.crm-directory .crm-contacts {grid-column:1/-1;}
  .crm-contacts,.crm-case-total,.crm-last-updated {font-size:.82rem;}
  .crm-case-total,.crm-last-updated {padding-top:1px;}
  .crm-contacts span,.crm-contacts small {display:inline;}
  .crm-contacts small:not(:first-child)::before {content:" · ";}
  .crm-mobile-label {display:inline;color:var(--crm-muted);}
  .crm-profile-icon {height:44px;width:44px;}
  .crm-profile-icon .crm-icon {width:23px;height:23px;}
  .crm-profile-heading {display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:9px 12px;}
  .crm-profile-heading .crm-profile-edit {grid-column:1/-1;justify-self:start;margin:3px 0 0;}
  .crm-fields {grid-template-columns:minmax(0,1fr);}
  .crm-search-controls {flex-wrap:wrap;}
  .crm-search-controls input {flex:1 1 110px;}
  .crm-count {max-width:100%;}
  .crm-empty {padding:19px 15px;gap:10px;}
  .crm-related>li {padding:10px 13px;}
  .crm-choices>li {padding:7px;}
  .crm-link-box {padding:11px 13px;}
  .crm-pagination {padding:11px 13px;}
}

.client-record-cover{margin:8px 0 16px;background:#fff;border:1px solid #cfdeea;border-top:3px solid #2b659c;border-radius:10px;overflow:hidden}
.client-record-band{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:9px clamp(15px,2vw,26px);background:#f4f8fc;border-bottom:1px solid #e0e8ee}
.client-record-band>span{font:630 .76rem/1.3 var(--cpw-mono,monospace);color:#49647e;text-transform:uppercase;letter-spacing:.08em}
.client-record-band>a{display:block;max-width:50%;min-width:0;text-decoration:none;}
.client-record-band .firm-wordmark.is-compact{gap:5px}
.client-record-band .firm-typeset,.client-record-band .is-alder .firm-typeset{font-size:1rem;letter-spacing:-.035em}
.client-record-band .alder-seal{display:none}.client-record-band .firm-wordmark img{max-height:27px;max-width:38px}
.client-record-band .firm-wordmark.is-wordmark img{width:min(145px,100%);max-width:100%}
.client-record-title{display:flex;align-items:center;gap:15px;min-width:0;padding:clamp(17px,2.1vw,30px)}
.client-record-title>div{min-width:0}.client-record-title>div>span{color:#516c7e;font-size:.88rem}
.client-record-title h1{margin:3px 0 0;font-size:clamp(1.65rem,2.85vw,3rem);line-height:1.08;color:#14324c;letter-spacing:-.048em;overflow-wrap:anywhere}
.client-record-initials{flex:none;display:grid;place-items:center;height:57px;width:57px;border-radius:13px;color:#274e64;background:#e6f1ef;box-shadow:inset 0 0 0 1px #c1d7d2;font-weight:640;font-size:1.32rem}
.client-record-title .crm-profile-edit{margin-left:auto;flex:none}
@media(max-width:520px){.client-record-title{gap:10px;flex-wrap:wrap}.client-record-title>div{max-width:calc(100% - 60px)}.client-record-initials{width:43px;height:43px;border-radius:9px;font-size:1rem}.client-record-title .crm-profile-edit{margin-left:0}.client-record-band .firm-typeset,.client-record-band .is-alder .firm-typeset{font-size:.88rem}}

/* The client identity belongs to the client. Firm branding stays in the record header. */
.crm-brand-logo{position:relative;isolation:isolate;display:inline-grid;place-items:center;flex:none;overflow:hidden;width:64px;height:64px;border:1px solid #cbd9df;border-radius:15px;background:#eaf1f3;color:#23465d;font-weight:670;font-size:1.28rem;letter-spacing:-.045em}
.crm-brand-logo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white}
.crm-client-page .crm-directory-card{padding:0;overflow:hidden;border-radius:13px;background:white;border:1px solid #ccd9e3;box-shadow:0 2px 6px #1f344908}
.crm-card-identity{display:flex;align-items:center;gap:13px;background:linear-gradient(115deg,#f6fafb,#f4f7fb);border-bottom:1px solid #e2e9ef;padding:15px 17px;min-height:93px}
.crm-card-identity>div{min-width:0}
.crm-client-category{display:block;color:#496277;font:650 .65rem/1.4 var(--cpw-ui,Arial,sans-serif);letter-spacing:.075em;text-transform:uppercase;margin-bottom:3px}
.crm-directory-card .crm-card-identity h3{margin:0;line-height:1.18;letter-spacing:-.035em;font-size:1.17rem;color:#16344d}
.crm-card-identity p{font-size:.78rem;color:#4e6272;margin:4px 0 0}
.crm-card-overview{font-size:.85rem;line-height:1.5;color:#344e64;margin:13px 17px 10px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.crm-card-contact{padding:8px 17px 15px;display:grid;gap:2px;line-height:1.35}
.crm-card-contact>span{font-size:.68rem;color:#526776}.crm-card-contact>strong{font-size:.85rem;color:#183650}.crm-card-contact>small{font-size:.74rem;color:#536879}
.crm-directory-card .fd-card-foot{margin:auto 0 0;background:white}
.crm-open-client{color:#125397;font-size:.76rem;text-decoration:none;font-weight:655}.crm-open-client:hover{text-decoration:underline}
.crm-client-page .crm-client-folio{border:1px solid #c6d7e2;border-radius:15px;box-shadow:0 2px 8px #1f344908}
.crm-client-folio .client-record-band{min-height:39px;background:#eaf1f5;border-color:#cfdee6;padding:7px clamp(16px,2vw,26px)}
.crm-folio-title{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:clamp(14px,2vw,26px);row-gap:7px;padding:clamp(18px,3vw,32px);background:linear-gradient(115deg,#fbfcfc,#f3f7f9)}
.crm-folio-title .crm-brand-logo{grid-column:1;grid-row:1/3;height:clamp(78px,8vw,112px);width:clamp(78px,8vw,112px);border-radius:18px;font-size:2rem;box-shadow:0 2px 6px #1127390c}
.crm-folio-title>.crm-folio-name{grid-column:2;align-self:end;min-width:0}.crm-folio-title:not(:has(p))>.crm-folio-name{align-self:center;grid-row:1/3}
.crm-folio-title h1{font-size:clamp(1.75rem,3.6vw,3.3rem);line-height:1.08;letter-spacing:-.055em;color:#132e49;margin:0;overflow-wrap:anywhere}
.crm-client-tags{display:flex;align-items:center;flex-wrap:wrap;gap:3px 9px;color:#4b6274;font-size:.8rem;line-height:1.5;margin-top:7px}
.crm-client-tags span+span:before{content:'·';margin-right:9px;color:#627a8a}
.crm-folio-title p{grid-column:2;align-self:start;margin:0;line-height:1.5;max-width:68ch;font-size:.93rem;color:#375468;overflow-wrap:anywhere;white-space:pre-line}
.crm-folio-actions{display:flex;flex-wrap:wrap;gap:5px 9px;border-top:1px solid #dce5eb;padding:9px clamp(14px,2vw,26px)}
.crm-contact-person{display:grid;gap:3px;margin:0 20px;padding:15px 0 12px;border-bottom:1px solid #e4eaef}
.crm-contact-person strong{color:#17384f;font-size:1.09rem}.crm-contact-person span{color:#50687c;font-size:.84rem}
.crm-facts dd a{color:#15528a;overflow-wrap:anywhere}
.crm-client-page .crm-case-files{padding:12px;display:grid;gap:9px}
.crm-client-page .crm-case-files>li{padding:12px 14px;border:1px solid #d8e3eb;border-radius:9px;background:#fafcfd}
.crm-file-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#4e6677;font-size:.76rem}
.crm-file-meta span{padding:3px 7px;border-radius:4px;background:#e7f0f3;color:#365966;font-weight:600}
.crm-file-meta small{font-size:.74rem}
.crm-case-files .crm-related-line>a{font-size:1.05rem;line-height:1.34;color:#1d3951}
.crm-case-files .crm-related-line .crm-button.crm-plain{font-size:.74rem;color:#526b7c;padding:4px;min-height:33px}
.crm-related a.crm-file-deadline{margin-top:6px;border-top:1px solid #dfe7eb;padding-top:9px;display:grid;gap:3px;color:#274b6a;font-size:.84rem;line-height:1.4}
.crm-file-deadline>span{display:flex;align-items:center;gap:5px;font-weight:625;font-size:.72rem;color:#7b4e16}.crm-file-deadline .crm-icon{height:14px;width:14px}
.crm-logo-editor{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:6px 0}.crm-logo-editor label{min-width:0;flex:1 1 180px}.crm-logo-editor small{color:#536b7b;font-weight:450}
.crm-edit label.crm-remove-image{display:flex;align-items:center;gap:7px;margin:11px 0 0}.crm-edit .crm-remove-image input{width:16px;min-height:16px}
@media(max-width:560px){
  .crm-folio-title{display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px;align-items:start}.crm-folio-title .crm-brand-logo{grid-row:1;width:60px;height:60px;border-radius:11px}.crm-folio-title>.crm-folio-name{align-self:center}.crm-folio-title p{grid-column:1/-1;font-size:.86rem}
  .crm-client-tags{gap:0 7px}.crm-folio-actions{padding:8px}.crm-folio-actions .crm-button{font-size:.78rem!important;padding-inline:8px!important}
  .crm-card-identity{padding:13px}.crm-card-contact{padding-inline:13px}.crm-card-overview{margin-inline:13px}
}
.crm-brand-logo>img.crm-pale-logo{background:#19364c}
@media(min-width:561px){.crm-folio-title .crm-brand-logo.crm-wide-logo{width:clamp(110px,13vw,172px)}}
