:root{--tribal-navy:#111827;--tribal-orange:#ea580c;--tribal-orange-soft:#fff1e8;--tribal-bg:#f8f8f5;--tribal-surface:#fff;--tribal-border:#e5e7eb;--tribal-text:#172033;--tribal-muted:#6b7280;--tribal-success:#16845b;--tribal-warning:#b76b00;--tribal-danger:#b42318;--tribal-radius:12px;--tribal-shadow:0 6px 20px rgba(17,24,39,.055)}
.tf-view-clients .tribal-feedback{margin:16px 24px!important}
.tf-view-clients .tf-app-content{max-width:none;padding:0}.tf-view-clients .tribal-content{max-width:none!important;padding:0!important}.tf-crm{display:grid;grid-template-columns:var(--tf-secondary-width,252px) minmax(0,1fr);min-height:calc(100vh - var(--tf-topbar-height,48px));background:var(--tribal-surface);color:var(--tribal-text);align-items:stretch}.tf-client-filters,.tf-client-workspace{align-self:stretch}
.tf-client-filters{display:flex;flex-direction:column;border-right:1px solid var(--tribal-border);background:#fafafa;padding:24px 14px 18px;min-width:0}.tf-filter-head{display:flex;justify-content:space-between;align-items:center;padding:0 8px 18px}.tf-filter-head small,.tf-registration small{font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--tribal-muted)}.tf-filter-head h1{font-size:23px;margin:2px 0 0}.tf-filter-head>a{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--tribal-orange);color:#fff;font-size:20px;text-decoration:none}.tf-client-search{display:flex;gap:5px;margin-bottom:15px}.tf-client-search input{width:100%;margin:0!important;border-radius:9px!important}.tf-client-search button{font-size:0;width:38px;padding:0!important}.tf-client-search button:after{content:'⌕';font-size:17px}.tf-client-filters nav{display:flex;flex-direction:column;gap:2px}.tf-client-filters nav a{display:flex;justify-content:space-between;align-items:center;color:#4b5563;text-decoration:none;padding:10px 11px;border-radius:9px;font-size:13px}.tf-client-filters nav a b{font-variant-numeric:tabular-nums}.tf-client-filters nav a.active{background:#fff;color:var(--tribal-navy);box-shadow:var(--tribal-shadow);font-weight:750;border-left:3px solid var(--tribal-orange)}.tf-registration{margin-top:auto;padding:22px 5px 0;border-top:1px solid var(--tribal-border)}.tf-registration>div{display:flex;margin-top:8px}.tf-registration input{min-width:0;width:100%;font-size:10px;margin:0!important;border-radius:8px 0 0 8px!important}.tf-registration button{border-radius:0 8px 8px 0!important;background:var(--tribal-navy)!important;padding:8px!important}
.tf-client-workspace{padding:28px 32px;min-width:0;background:#fff}.tf-client-workspace>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:27px}.tf-client-workspace h1{font-size:25px;margin:0}.tf-client-workspace h1 span{color:var(--tribal-muted);font-weight:500}.tf-client-workspace header p{margin:7px 0;color:var(--tribal-muted);font-size:13px}.tf-capacity-chip{background:var(--tribal-orange-soft);color:#9a3d08;padding:8px 11px;border-radius:8px;font-size:12px}.tf-inline-panel{border:1px solid var(--tribal-border);background:var(--tribal-bg);border-radius:var(--tribal-radius);padding:18px;margin-bottom:20px}.tf-inline-panel h2{margin:0 0 5px;font-size:17px}.tf-inline-panel p{color:var(--tribal-muted)}.tf-compact-form{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr)) auto;gap:8px}.tf-compact-form input{margin:0!important}
.tf-crm-table{overflow:auto}.tf-crm-table table{width:100%;border-collapse:collapse;min-width:780px}.tf-crm-table th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#7b8493;font-weight:800;text-align:left;padding:11px;border-bottom:1px solid var(--tribal-border)}.tf-crm-table td{font-size:12px;padding:12px 11px;border-bottom:1px solid #eef0f2;vertical-align:middle}.tf-person{display:flex;align-items:center;gap:9px;color:var(--tribal-text);text-decoration:none;white-space:nowrap}.tf-person>span,.tf-profile-identity>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--tribal-orange-soft);color:var(--tribal-orange);font-size:11px;font-weight:900}.tf-status,.tf-onboarding{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef0f3;color:#4b5563;font-style:normal;font-size:10px;font-weight:800;white-space:nowrap}.status-active,.tf-onboarding.complete{background:#e8f6ee;color:var(--tribal-success)}.status-pending_approval,.status-waiting_activation,.tf-onboarding.missing{background:#fff4df;color:var(--tribal-warning)}.status-waiting_list{background:#fff1e8;color:#b54708}.status-paused{background:#eef2ff;color:#4338ca}.status-archived{background:#f2f4f7;color:#667085}.tf-client-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.tf-client-action{display:inline-flex;margin:0}.tf-client-actions .tribal-btn{font-size:10px;padding:7px 9px;background:var(--tribal-orange)}.tf-client-actions .tribal-btn.secondary{background:#fff;color:var(--tribal-text)}.tf-empty{padding:28px;text-align:center;color:var(--tribal-muted);font-size:13px}
.tf-client-profile{min-height:calc(100vh - 64px);background:var(--tribal-bg)}.tf-profile-head{background:#fff;padding:20px 28px 0;border-bottom:1px solid var(--tribal-border)}.tf-back{display:inline-block;color:var(--tribal-muted);font-size:11px;text-decoration:none;margin-bottom:12px}.tf-profile-identity{display:flex;align-items:center;gap:12px}.tf-profile-identity>span{width:48px;height:48px;font-size:14px}.tf-profile-identity h1{margin:0;font-size:24px}.tf-profile-identity p{margin:4px 0;color:var(--tribal-muted);font-size:12px}.tf-profile-identity em{margin-left:8px}.tf-profile-head>.tf-client-actions{position:absolute;right:32px;top:88px}.tf-profile-tabs{display:flex;overflow:auto;background:#fff;border-bottom:1px solid var(--tribal-border);padding:0 28px}.tf-profile-tabs a{padding:14px 13px 12px;color:#737b89;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;border-bottom:2px solid transparent}.tf-profile-tabs a.active{color:var(--tribal-orange);border-color:var(--tribal-orange)}.tf-profile-body{padding:22px 28px;max-width:1400px}.tf-overview-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(240px,.8fr);gap:16px}.tf-widget-row{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--tribal-border);border-radius:var(--tribal-radius);background:#fff;margin-bottom:14px;box-shadow:var(--tribal-shadow)}.tf-widget-row article{padding:17px;border-right:1px solid var(--tribal-border)}.tf-widget-row article:last-child{border:0}.tf-widget-row small{display:block;color:var(--tribal-muted);font-size:9px;font-weight:800;letter-spacing:.06em}.tf-widget-row strong{display:block;font-size:19px;margin:8px 0 4px}.tf-widget-row span{color:var(--tribal-muted);font-size:11px}.tf-overview-grid aside section,.tf-timeline,.tf-feature-settings{background:#fff;border:1px solid var(--tribal-border);border-radius:var(--tribal-radius);padding:18px;margin-bottom:14px;box-shadow:var(--tribal-shadow)}.tf-overview-grid h2,.tf-timeline h2,.tf-feature-settings h2{font-size:15px;margin:0 0 14px}.tf-overview-grid aside p{font-size:12px;line-height:1.5}.tf-timeline>div{position:relative;padding:0 0 15px 21px;border-left:1px solid var(--tribal-border)}.tf-timeline i{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--tribal-orange);left:-5px;top:4px}.tf-timeline span{display:block;color:var(--tribal-muted);font-size:9px}.tf-timeline strong{font-size:12px}.tf-timeline p{font-size:11px;margin:3px 0;color:#596273}
.tf-feature-settings{max-width:950px}.tf-section-heading p,.tf-feature-row p{color:var(--tribal-muted);font-size:11px;margin:4px 0}.tf-feature-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:18px 0;border-top:1px solid var(--tribal-border)}.tf-feature-row small{color:var(--tribal-muted)}.tf-segmented{display:flex;background:#f1f2f4;padding:3px;border-radius:9px}.tf-segmented input{position:absolute;opacity:0}.tf-segmented span{display:block;padding:7px 10px;border-radius:7px;font-size:10px;font-weight:750;cursor:pointer}.tf-segmented input:checked+span{background:#fff;color:var(--tribal-orange);box-shadow:0 2px 7px rgba(17,24,39,.09)}
.tribal-staff aside a.active{box-shadow:inset 3px 0 var(--tribal-orange)}.tribal-btn,.tribal-staff button{background:var(--tribal-orange)}.tribal-btn:focus-visible,.tribal-staff a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--tribal-orange)!important}
@media(max-width:1050px){.tf-crm{grid-template-columns:210px minmax(0,1fr)}.tf-client-workspace{padding:22px 18px}.tf-compact-form{grid-template-columns:repeat(2,1fr)}.tf-overview-grid{grid-template-columns:1fr}.tf-overview-grid aside{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tf-profile-head>.tf-client-actions{position:static;margin:12px 0}}
@media(max-width:760px){.tf-crm{display:block}.tf-client-filters{border:0;border-bottom:1px solid var(--tribal-border);padding:14px}.tf-client-filters nav{display:grid;grid-template-columns:repeat(2,1fr)}.tf-registration{margin-top:14px}.tf-client-workspace{padding:18px 12px}.tf-client-workspace>header{display:block}.tf-capacity-chip{display:inline-block;margin-top:8px}.tf-profile-head{padding:16px 14px 0}.tf-profile-tabs{padding:0 8px}.tf-profile-body{padding:14px 10px}.tf-widget-row{grid-template-columns:1fr}.tf-widget-row article{border-right:0;border-bottom:1px solid var(--tribal-border)}.tf-overview-grid aside{display:block}.tf-feature-row{grid-template-columns:1fr}.tf-segmented{width:max-content;max-width:100%}.tf-compact-form{grid-template-columns:1fr}.tf-profile-identity{align-items:flex-start;flex-wrap:wrap}.tf-profile-identity em{margin-left:0}.tf-client-actions .tribal-btn{min-height:40px}}

/* Client profile v3: content-driven cards with no full-height sidebar. */
.tf-client-profile{height:auto!important;min-height:0!important}.tf-profile-body{height:auto!important;min-height:0!important}.tf-profile-tabs{gap:6px!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.tf-overview-grid{grid-template-columns:minmax(0,3fr) minmax(250px,1fr)!important;align-items:start!important}.tf-overview-main,.tf-overview-sidebar{min-width:0}.tf-overview-sidebar{align-self:start!important;height:auto!important;min-height:0!important;background:transparent!important}.tf-overview-sidebar section,.tf-timeline{height:auto!important;min-height:0!important}.tf-overview-sidebar .tf-empty,.tf-timeline .tf-empty{min-height:0!important;padding:8px 0!important;text-align:left!important}.tf-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.tf-card-heading h2{margin:0!important}.tf-card-heading a{color:var(--tribal-orange);font-size:11px;font-weight:750;text-decoration:none}.tf-profile-meta-separator{padding:0 5px;color:var(--tribal-muted)}
@media(max-width:1050px){.tf-overview-grid{grid-template-columns:1fr!important}.tf-overview-sidebar{display:grid!important;grid-template-columns:1fr 1fr;gap:14px}.tf-overview-sidebar section{margin-bottom:0!important}}
@media(max-width:760px){.tf-profile-tabs{flex-wrap:nowrap!important;overflow-x:auto!important}.tf-overview-sidebar{display:block!important}.tf-overview-sidebar section{margin-bottom:14px!important}.tf-profile-head>.tf-client-actions{display:flex;flex-wrap:wrap;gap:8px}.tf-profile-head>.tf-client-actions form,.tf-profile-head>.tf-client-actions a{flex:1}.tf-profile-head>.tf-client-actions .tribal-btn{width:100%}}

/* Settings remains one continuous tab row and includes editable profile details. */
.tf-client-profile .tf-profile-tabs{display:flex!important;align-items:stretch!important;justify-content:flex-start!important;gap:18px!important;padding:0 28px!important}.tf-client-profile .tf-profile-tabs a{display:flex!important;align-items:center!important;min-height:48px!important;margin:0!important;padding:0 1px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#667085!important}.tf-client-profile .tf-profile-tabs a.active{color:var(--tribal-orange)!important;border-bottom-color:var(--tribal-orange)!important}.tf-profile-editor{max-width:950px;margin-bottom:16px;padding:22px;background:#fff;border:1px solid var(--tribal-border);border-radius:var(--tribal-radius);box-shadow:var(--tribal-shadow)}.tf-profile-editor h2{margin:0 0 5px}.tf-profile-editor .tf-section-heading p{margin-bottom:18px}.tf-profile-editor form{display:grid;grid-template-columns:92px minmax(0,1fr);gap:20px;align-items:start}.tf-profile-avatar{display:grid;place-items:center;width:78px;height:78px;border-radius:50%;background:var(--tribal-orange-soft);color:var(--tribal-orange);font-size:22px;font-weight:900}.tf-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tf-profile-fields label{display:block;color:#667085;font-size:10px;font-weight:800;text-transform:uppercase}.tf-profile-fields input,.tf-profile-fields select{display:block;width:100%;min-height:44px;margin-top:5px;box-sizing:border-box}.tf-profile-fields .wide{grid-column:1/-1}.tf-profile-fields fieldset{display:flex;align-items:center;gap:18px;border:0;padding:0;margin:0}.tf-profile-fields fieldset legend{margin-bottom:8px;color:#667085;font-size:10px;font-weight:800;text-transform:uppercase}.tf-profile-fields fieldset label{display:flex;align-items:center;gap:6px;text-transform:none;font-size:12px;font-weight:600}.tf-profile-fields fieldset input{width:auto;min-height:0;margin:0}.tf-profile-save{grid-column:2;display:flex;justify-content:flex-end}.tf-profile-save .tribal-btn{min-width:150px}
.tf-profile-overview-grid>aside{align-self:start!important;height:auto!important;min-height:0!important;background:transparent!important}.tf-profile-overview-grid>aside section{height:auto!important;min-height:0!important}.tf-profile-overview-grid .tf-empty{padding:10px 0!important;text-align:left!important;border:0!important}.tf-profile-overview-grid section{align-self:start!important}
@media(max-width:760px){.tf-client-profile .tf-profile-tabs{gap:16px!important;padding:0 14px!important;overflow-x:auto!important}.tf-client-profile .tf-profile-tabs a{flex:0 0 auto!important;min-height:46px!important}.tf-profile-editor{padding:16px}.tf-profile-editor form{grid-template-columns:1fr}.tf-profile-avatar{margin:0 auto}.tf-profile-fields{grid-template-columns:1fr}.tf-profile-fields .wide{grid-column:auto}.tf-profile-fields fieldset{flex-wrap:wrap}.tf-profile-save{grid-column:auto}.tf-profile-save .tribal-btn{width:100%}}

/* Archived-client settings cards must never inherit the dark application sidebar. */
.tf-client-profile .tf-profile-editor-essential{width:100%;max-width:1100px;box-sizing:border-box;overflow:hidden}
.tf-client-profile .tf-profile-editor-essential>.tf-portal-access,.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone{display:block!important;position:static!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;margin:20px 0 0!important;padding:20px!important;box-sizing:border-box;border:1px solid var(--tribal-border)!important;border-radius:14px!important;background:#fff!important;color:var(--tribal-navy)!important;box-shadow:none!important;overflow:visible!important}
.tf-client-profile .tf-profile-editor-essential>.tf-portal-access h3,.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone h3{margin:0 0 12px!important;color:var(--tribal-navy)!important;font-size:20px!important;line-height:1.2}
.tf-client-profile .tf-profile-editor-essential>.tf-portal-access dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.tf-client-profile .tf-profile-editor-essential>.tf-portal-access dt,.tf-client-profile .tf-profile-editor-essential>.tf-portal-access dd{color:var(--tribal-navy)!important}.tf-client-profile .tf-profile-editor-essential>.tf-portal-access dd{margin:3px 0 0;font-weight:700}
.tf-client-profile .tf-profile-editor-essential>.tf-portal-access .tribal-btn{display:inline-flex;width:auto!important;min-width:180px}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone{border-color:#f2c8c4!important;background:#fff8f7!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone p,.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone label{color:#6f2b24!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone>form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;width:100%!important;margin:16px 0 0!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone>form label{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;width:100%!important;margin:0!important;font-size:13px!important;font-weight:750!important;text-transform:none!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone>form label:has(input[type=checkbox]){display:flex!important;align-items:flex-start!important;gap:10px!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone input[type=email]{width:100%!important;max-width:520px!important;min-height:44px!important;margin:0!important;background:#fff!important;color:var(--tribal-navy)!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone input[type=checkbox]{flex:0 0 auto;width:18px!important;height:18px!important;min-height:0!important;margin:1px 0 0!important}
.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone button{justify-self:start!important;width:auto!important;min-width:210px!important;margin:0!important;background:#b42318!important;color:#fff!important}
@media(max-width:760px){.tf-client-profile .tf-profile-editor-essential{padding:16px!important}.tf-client-profile .tf-profile-editor-essential>.tf-portal-access,.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone{margin-top:16px!important;padding:16px!important}.tf-client-profile .tf-profile-editor-essential>.tf-portal-access dl{grid-template-columns:1fr}.tf-client-profile .tf-profile-editor-essential>.tf-portal-access .tribal-btn,.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone button{width:100%!important;min-width:0!important}.tf-client-profile .tf-profile-editor-essential>.tf-danger-zone input[type=email]{max-width:none!important}}

/* 2.0.19: keep every client-profile section in one predictable mobile rail. */
.tf-client-profile .tf-overview-sidebar section{color:var(--tribal-navy)!important}
.tf-client-profile .tf-overview-sidebar section .tf-card-heading a{color:var(--tribal-orange)!important;opacity:1!important;visibility:visible!important}
.tf-client-profile .tf-overview-sidebar section p{display:block!important;visibility:visible!important;opacity:1!important;color:#667085!important}
.tf-client-profile .tf-overview-sidebar section p strong{color:var(--tribal-navy)!important}
.tf-client-profile .tf-overview-sidebar section small{color:#667085!important;opacity:1!important}
@media(max-width:760px){
 .tf-client-profile .tf-profile-tabs{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
  width:100%!important;
  max-width:100%!important;
  padding:0 8px!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  scroll-snap-type:x proximity;
  scrollbar-width:thin;
 }
 .tf-client-profile .tf-profile-tabs a{
  display:inline-flex!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  min-height:44px!important;
  padding:0 9px!important;
  box-sizing:border-box!important;
  font-size:11px!important;
  white-space:nowrap!important;
  scroll-snap-align:start;
 }
 .tf-client-profile .tf-profile-body{padding:14px 8px!important}
 .tf-client-profile .tf-overview-sidebar section{padding:16px!important}
 .tf-client-profile .tf-overview-sidebar section p{
  display:block!important;
  visibility:visible!important;
  min-height:0!important;
  margin:0!important;
  padding:9px 0!important;
  border-top:1px solid var(--tribal-border);
  color:#667085!important;
  font-size:12px!important;
  line-height:1.45!important;
 }
 .tf-client-profile .tf-overview-sidebar section p strong{color:var(--tribal-navy)!important}
 .tf-client-profile .tf-overview-sidebar .tf-card-heading{margin-bottom:8px!important}
}

@media(max-width:800px){
 .tf-view-clients .tf-client-filters{background:#fff!important;color:#10243b!important}.tf-view-clients .tf-client-filters :is(h1,h2,h3,strong,label){color:#10243b!important}.tf-view-clients .tf-client-filters :is(p,small,span){color:#475467!important}.tf-view-clients .tf-client-filters nav a{color:#344054!important}.tf-view-clients .tf-client-filters nav a.active{background:#10243b!important;color:#fff!important}
 .tf-client-card,.tf-client-mobile-card{min-width:0!important}.tf-client-card :is(h2,h3,strong,span),.tf-client-mobile-card :is(h2,h3,strong,span){word-break:normal!important;overflow-wrap:break-word!important}
 .tf-client-card .tribal-btn,.tf-client-mobile-card .tribal-btn{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:44px!important;text-align:center!important}
}
.tf-crm-saas{padding:26px 30px;color:var(--tribal-text)}.tf-resource-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:18px}.tf-resource-head p{margin:0;color:var(--tribal-orange);font-size:10px;font-weight:850;letter-spacing:.12em}.tf-resource-head h1{margin:4px 0;font-size:30px}.tf-resource-head span{color:var(--tribal-muted);font-size:13px}.tf-crm-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) repeat(3,minmax(135px,.35fr)) auto;gap:8px;margin-bottom:14px}.tf-crm-toolbar>*{min-height:42px}.tf-crm-resource-table{overflow-x:auto;border:1px solid var(--tribal-border);border-radius:12px;background:#fff}.tf-crm-resource-table>.head,.tf-crm-row{display:grid;grid-template-columns:minmax(210px,1.4fr) 105px minmax(170px,1fr) 150px minmax(125px,.7fr) 140px 60px;gap:12px;align-items:center;min-width:1050px;padding:11px 14px;border-bottom:1px solid #edf0f2}.tf-crm-resource-table>.head{position:sticky;top:0;background:#f8f9fa;color:var(--tribal-muted);font-size:10px;letter-spacing:.06em;text-transform:uppercase}.tf-crm-row{min-height:62px;color:var(--tribal-text);font-size:12px;text-decoration:none}.tf-crm-row:hover{background:#fafbfc}.tf-crm-row>b{color:var(--tribal-orange);font-size:11px}.tf-crm-person{display:flex;align-items:center;gap:10px}.tf-crm-person>i{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:50%;background:var(--tribal-orange-soft);color:var(--tribal-orange);font-style:normal;font-weight:850}.tf-crm-person span{display:grid;gap:3px}.tf-crm-person small{color:var(--tribal-muted)}.tf-attention-chip{display:inline-flex;padding:5px 8px;border-radius:99px;background:#fff4df;color:var(--tribal-warning);font-size:10px;font-style:normal;font-weight:800}.tf-crm-pagination{display:flex;justify-content:center;gap:4px;margin-top:16px}.tf-crm-pagination a,.tf-crm-pagination span{display:grid;min-width:34px;height:34px;place-items:center;border:1px solid var(--tribal-border);border-radius:8px;background:#fff;color:var(--tribal-text);text-decoration:none}.tf-crm-pagination .current{background:var(--tribal-navy);color:#fff}.tf-client-profile-saas .tf-profile-head{position:relative;padding-bottom:18px}.tf-profile-primary-actions{position:absolute;right:28px;bottom:18px;display:flex;gap:8px}.tf-profile-alerts{margin:16px 28px 0;padding:14px 16px;border-left:4px solid var(--tribal-warning);border-radius:9px;background:#fff9ed}.tf-profile-alerts>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0;border-top:1px solid #f2dfbd}.tf-profile-alerts span{display:grid}.tf-profile-alerts small{color:var(--tribal-muted)}.tf-profile-alerts a{color:var(--tribal-orange);font-weight:800}.tf-profile-summary-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px;border:1px solid var(--tribal-border);border-radius:12px;background:#fff}.tf-profile-summary-strip article{padding:14px 16px;border-right:1px solid var(--tribal-border)}.tf-profile-summary-strip article:last-child{border:0}.tf-profile-summary-strip small{display:block;color:var(--tribal-muted);font-size:9px;font-weight:850;letter-spacing:.06em}.tf-profile-summary-strip strong{display:block;margin:6px 0 2px;font-size:18px}.tf-profile-summary-strip span{color:var(--tribal-muted);font-size:11px}.tf-profile-overview-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,.8fr);gap:14px;align-items:start}.tf-profile-overview-grid section{margin-bottom:14px;padding:18px;border:1px solid var(--tribal-border);border-radius:12px;background:#fff}.tf-profile-overview-grid section>p{display:grid;grid-template-columns:1fr auto;gap:5px 14px;margin:0;padding:10px 0;border-top:1px solid #edf0f2}.tf-profile-overview-grid section>p span{color:var(--tribal-muted);text-align:right}.tf-profile-overview-grid section>p small{grid-column:1/-1;color:var(--tribal-muted)}@media(max-width:1050px){.tf-crm-toolbar{grid-template-columns:1fr 1fr}.tf-profile-summary-strip{grid-template-columns:repeat(3,1fr)}.tf-profile-overview-grid{grid-template-columns:1fr}}@media(max-width:700px){.tf-crm-saas{padding:18px 12px}.tf-resource-head{align-items:stretch;flex-direction:column}.tf-crm-toolbar{grid-template-columns:1fr}.tf-crm-resource-table>.head{display:none}.tf-crm-row{grid-template-columns:1fr auto;min-width:0;padding:15px}.tf-crm-row>span:nth-child(n+3){grid-column:1/-1}.tf-crm-row>span:nth-child(3):before{content:'Membership: ';font-weight:800}.tf-crm-row>span:nth-child(4):before{content:'Next: ';font-weight:800}.tf-crm-row>span:nth-child(6){display:none}.tf-crm-row>b{grid-column:2;grid-row:1}.tf-profile-primary-actions{position:static;margin-top:14px}.tf-profile-alerts{margin:12px}.tf-profile-alerts>div{align-items:flex-start;flex-direction:column}.tf-profile-summary-strip{grid-template-columns:repeat(2,1fr)}.tf-profile-summary-strip article:nth-child(2n){border-right:0}}

/* Client profile navigation: one predictable row on every screen. */
.tf-profile-mobile-nav{display:none}
.tf-client-profile>.tf-profile-tabs{
 display:flex!important;
 flex-flow:row nowrap!important;
 align-items:stretch!important;
 justify-content:flex-start!important;
 gap:4px!important;
 width:100%!important;
 max-width:100%!important;
 min-height:54px!important;
 padding:5px 28px 0!important;
 box-sizing:border-box!important;
 overflow-x:auto!important;
 overflow-y:hidden!important;
 white-space:nowrap!important;
 background:#fff!important;
 border-top:0!important;
 border-bottom:1px solid var(--tribal-border)!important;
 scrollbar-width:thin;
 scrollbar-color:#cbd2dc transparent;
 -webkit-overflow-scrolling:touch;
 overscroll-behavior-inline:contain;
}
.tf-client-profile>.tf-profile-tabs a{
 display:inline-flex!important;
 flex:0 0 auto!important;
 align-items:center!important;
 justify-content:center!important;
 width:auto!important;
 min-width:max-content!important;
 min-height:48px!important;
 margin:0!important;
 padding:0 12px!important;
 box-sizing:border-box!important;
 border:0!important;
 border-bottom:3px solid transparent!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
 color:#667085!important;
 font-size:12px!important;
 font-weight:750!important;
 line-height:1!important;
 text-decoration:none!important;
 white-space:nowrap!important;
}
.tf-client-profile>.tf-profile-tabs a:hover,
.tf-client-profile>.tf-profile-tabs a:focus-visible{color:var(--tribal-navy)!important;background:#faf9f6!important}
.tf-client-profile>.tf-profile-tabs a.active{color:var(--tribal-orange)!important;border-bottom-color:var(--tribal-orange)!important;background:transparent!important}
@media(max-width:760px){
 .tf-client-profile>.tf-profile-tabs{display:none!important}
 .tf-client-profile>.tf-profile-mobile-nav{display:block!important;padding:14px 16px!important;background:#fff!important;border-bottom:1px solid var(--tribal-border)!important}
 .tf-profile-mobile-nav label{display:block!important;margin:0 0 7px!important;color:#667085!important;font-size:11px!important;font-weight:850!important;letter-spacing:.04em!important;text-transform:uppercase!important}
 .tf-profile-mobile-nav select{display:block!important;width:100%!important;min-height:48px!important;margin:0!important;padding:0 42px 0 14px!important;border:1px solid var(--tribal-border)!important;border-radius:11px!important;background-color:#fff!important;color:var(--tribal-navy)!important;font-size:15px!important;font-weight:800!important}
}

/* Contextual CRM panel: deliberately lighter and shorter than global navigation. */
.tf-view-clients .tf-crm{grid-template-columns:var(--tf-secondary-width,272px) minmax(0,1fr);align-items:start}.tf-view-clients .tf-client-filters{align-self:start;background:#f4f3ef;border-right-color:#dfe3e8;padding:22px 14px 18px}.tf-view-clients .tf-registration{margin-top:22px;padding-top:18px}.tf-client-filter-toggle,.tf-client-filter-backdrop{display:none}
@media(max-width:1050px) and (min-width:801px){.tf-view-clients .tf-crm{grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:800px){.tf-view-clients .tf-crm{display:block;min-height:0}.tf-client-filter-toggle{display:inline-flex;margin:0 0 14px;border:1px solid var(--tribal-border)!important;background:#fff!important;color:var(--tribal-navy)!important}.tf-view-clients .tf-client-filters{position:fixed!important;z-index:220;inset:0 auto 0 0;width:min(290px,88vw);padding:18px 14px;overflow-y:auto;transform:translateX(-105%);transition:transform .2s ease;box-shadow:18px 0 45px rgba(15,29,49,.2)}.tf-view-clients .tf-client-filters.is-open{transform:translateX(0)}.tf-client-filter-backdrop{display:none;position:fixed;z-index:210;inset:0;border:0!important;border-radius:0!important;background:rgba(15,29,49,.42)!important}.tf-client-filters-open .tf-client-filter-backdrop{display:block}.tf-view-clients .tf-client-workspace{padding:18px 12px}.tf-view-clients .tf-crm-table{max-width:100%;overflow-x:auto}}

/* Clients directory phone/tablet presentation. */
@media(max-width:1023px){
.tf-view-clients,.tf-view-clients .tf-app,.tf-view-clients .tf-app-main,.tf-view-clients .tf-app-content,.tf-view-clients .tribal-staff,.tf-view-clients .tribal-staff-main,.tf-view-clients .tribal-content,.tf-view-clients .tf-crm,.tf-view-clients .tf-client-workspace{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}.tf-view-clients{overflow-x:clip}.tf-view-clients .tf-crm{display:block!important;min-height:0!important}.tf-view-clients .tf-client-workspace{padding:16px!important;background:var(--tribal-bg)!important}
.tf-client-filter-toggle{display:inline-flex!important;min-height:44px!important;margin:0 0 14px!important;padding:10px 14px!important;border:1px solid var(--tribal-border)!important;border-radius:10px!important;background:#fff!important;color:var(--tribal-navy)!important;font-weight:800!important}.tf-view-clients .tf-client-workspace>header{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;margin:0 0 18px!important}.tf-view-clients .tf-client-workspace h1{font-size:28px!important;line-height:1.15!important}.tf-view-clients .tf-client-workspace header p{font-size:14px!important;line-height:1.45!important}.tf-view-clients .tf-capacity-chip{display:inline-flex!important;width:auto!important;margin:2px 0 0!important;padding:9px 12px!important;white-space:nowrap!important}
.tf-view-clients .tf-client-filters{position:fixed!important;display:flex!important;visibility:hidden!important;z-index:220!important;inset:0 auto 0 0!important;width:min(320px,88vw)!important;max-width:88vw!important;padding:18px 14px calc(22px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;overflow-y:auto!important;background:#f8f8f5!important;transform:translate3d(-105%,0,0)!important;transition:transform .22s ease,visibility 0s linear .22s!important}.tf-view-clients .tf-client-filters.is-open{visibility:visible!important;transform:translate3d(0,0,0)!important;transition:transform .22s ease!important}.tf-client-filter-backdrop{display:none!important;position:fixed!important;z-index:210!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;background:rgba(15,29,49,.48)!important}.tf-client-filters-open .tf-client-filter-backdrop{display:block!important}.tf-client-filters-open{overflow:hidden!important}
.tf-view-clients .tf-client-search{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:7px!important;width:100%!important}.tf-view-clients .tf-client-search input{min-width:0!important;width:100%!important}.tf-view-clients .tf-client-search button{width:44px!important;min-width:44px!important}.tf-client-search button:after{content:'Search'!important;font-size:0!important}.tf-client-search button:before{content:'\2315';font-size:18px!important}
.tf-view-clients .tf-crm-table{width:100%!important;max-width:100%!important;overflow:visible!important}.tf-view-clients .tf-crm-table table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}.tf-view-clients .tf-crm-table thead{display:none!important}.tf-view-clients .tf-crm-table tbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}.tf-view-clients .tf-crm-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px 12px!important;width:100%!important;min-width:0!important;margin:0!important;padding:16px!important;box-sizing:border-box!important;border:1px solid var(--tribal-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--tribal-shadow)!important}.tf-view-clients .tf-crm-table td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;overflow-wrap:anywhere!important}.tf-view-clients .tf-crm-table td:before{content:attr(data-label);display:block;margin:0 0 4px;color:var(--tribal-muted);font-size:10px;font-weight:850;text-transform:uppercase}.tf-view-clients .tf-crm-table td:first-child{grid-column:1!important}.tf-view-clients .tf-crm-table td:first-child:before{display:none}.tf-view-clients .tf-crm-table td:nth-last-child(2){grid-column:2!important;grid-row:1!important;align-self:center!important}.tf-view-clients .tf-crm-table td:last-child{grid-column:1/-1!important}.tf-view-clients .tf-crm-table td[colspan]{grid-column:1/-1!important}.tf-view-clients .tf-person{min-width:0!important;white-space:normal!important}.tf-view-clients .tf-person strong{min-width:0!important;overflow-wrap:anywhere!important}.tf-view-clients .tf-client-actions{width:100%!important}.tf-view-clients .tf-client-actions .tribal-btn{min-height:40px!important}
}
@media(max-width:479px){.tf-view-clients .tf-client-workspace{padding:12px!important}.tf-view-clients .tf-client-workspace h1{font-size:26px!important}.tf-view-clients .tf-crm-table tr{grid-template-columns:minmax(0,1fr)!important}.tf-view-clients .tf-crm-table td:nth-last-child(2){grid-column:1!important;grid-row:auto!important}.tf-view-clients .tf-client-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.tf-view-clients .tf-client-actions form,.tf-view-clients .tf-client-actions button,.tf-view-clients .tf-client-actions a{width:100%!important}}
.tf-view-clients .tf-app-content,.tf-view-clients .tribal-content,.tf-view-clients .tf-crm-saas{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important}.tf-view-clients .tf-crm-saas{padding:26px 30px}.tf-view-clients .tf-crm-resource-table{width:100%;max-width:100%}@media(max-width:700px){.tf-view-clients .tf-crm-saas{padding:18px 12px}}

/* Client directory 2.0.53 — mobile-first scanning cards, desktop table retained. */
.tf-view-clients .tf-client-workspace *{box-sizing:border-box;min-width:0}
.tf-view-clients .tf-client-workspace>header{display:flex!important;align-items:flex-start!important;justify-content:space-between;flex-direction:column!important;gap:8px!important;margin:0 0 12px!important}
.tf-view-clients .tf-client-workspace>header h1{display:flex;align-items:center;gap:9px;margin:0!important;font-size:26px!important;line-height:1.15!important}
.tf-view-clients .tf-directory-count{display:inline-grid;place-items:center;min-width:28px;min-height:28px;padding:2px 7px;border-radius:999px;background:#eef2f6;color:var(--tribal-muted);font-size:14px;font-weight:850}
.tf-view-clients .tf-client-workspace>header p{margin:5px 0 0!important;font-size:14px!important;line-height:1.4!important}
.tf-view-clients .tf-capacity-chip{width:auto!important;margin:2px 0 0!important;padding:6px 9px!important;border-radius:8px!important;font-size:12px!important;white-space:normal!important}
.tf-view-clients .tf-capacity-wide{display:none}.tf-view-clients .tf-capacity-compact{display:inline}
.tf-view-clients .tf-client-mobile-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:0 0 14px}
.tf-view-clients .tf-client-mobile-search{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-column:1/-1}
.tf-view-clients .tf-client-mobile-search input{width:100%;min-height:44px;border-radius:9px 0 0 9px!important;font-size:16px!important}
.tf-view-clients .tf-client-mobile-search button{width:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border-radius:0 9px 9px 0!important;font-size:0!important}
.tf-view-clients .tf-client-mobile-search button:before{content:'⌕';font-size:19px}
.tf-view-clients .tf-client-filter-toggle,.tf-view-clients .tf-mobile-add-client{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;min-height:44px!important;margin:0!important;padding:9px 13px!important}
.tf-view-clients .tf-mobile-add-client{justify-self:end}
.tf-view-clients .tf-client-workspace .tf-crm-table{width:100%!important;max-width:100%!important;overflow:visible!important}
.tf-view-clients .tf-client-workspace .tf-crm-table table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
.tf-view-clients .tf-client-workspace .tf-crm-table thead{display:none!important}
.tf-view-clients .tf-client-workspace .tf-crm-table tbody{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
.tf-view-clients .tf-client-workspace .tf-crm-table tr{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px 12px!important;width:100%!important;min-width:0!important;margin:0!important;padding:13px!important;border:1px solid var(--tribal-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--tribal-shadow)!important;cursor:pointer}
.tf-view-clients .tf-client-workspace .tf-crm-table tr:focus-visible{outline:3px solid rgba(234,88,12,.32);outline-offset:2px}
.tf-view-clients .tf-client-workspace .tf-crm-table td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;overflow-wrap:anywhere!important}
.tf-view-clients .tf-client-workspace .tf-crm-table td:before{content:none!important;display:none!important}
.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-identity{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 10px!important}
.tf-view-clients .tf-person{grid-column:1!important;display:flex!important;align-items:center!important;gap:10px!important;min-height:38px;text-decoration:none}
.tf-view-clients .tf-person>span{width:38px!important;height:38px!important;flex:0 0 38px!important}
.tf-view-clients .tf-person strong{font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.tf-view-clients .tf-mobile-status{grid-column:2!important;grid-row:1!important;align-self:center;justify-self:end;max-width:132px;white-space:normal;text-align:center;line-height:1.2}
.tf-view-clients .tf-mobile-email,.tf-view-clients .tf-mobile-added{grid-column:1/-1;margin-left:48px;color:var(--tribal-muted);font-size:12px;line-height:1.3;overflow-wrap:anywhere;word-break:break-word}
.tf-view-clients .tf-mobile-email{color:var(--tribal-text);text-decoration:none}
.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-date,.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-email,.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-status,.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-extra{display:none!important}
.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-onboarding{grid-column:1/-1!important;padding-top:6px!important;border-top:1px solid #edf0f2!important}
.tf-view-clients .tf-onboarding{display:inline-flex;align-items:center;min-height:28px;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800}
.tf-view-clients .tf-onboarding-mobile{display:inline}.tf-view-clients .tf-onboarding-desktop{display:none}
.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-action-cell{grid-column:1/-1!important}
.tf-view-clients .tf-client-actions{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center;gap:8px;width:100%!important}
.tf-view-clients .tf-client-primary,.tf-view-clients .tf-client-primary form{width:100%;margin:0}
.tf-view-clients .tf-client-primary .tribal-btn{width:100%!important;min-height:44px!important}
.tf-view-clients .tf-client-secondary{display:none!important}
.tf-view-clients .tf-client-more{display:block;position:relative}
.tf-view-clients .tf-client-more summary{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--tribal-border);border-radius:9px;background:#fff;color:var(--tribal-navy);font-size:18px;font-weight:850;cursor:pointer;list-style:none}
.tf-view-clients .tf-client-more summary::-webkit-details-marker{display:none}
.tf-view-clients .tf-client-more summary:focus-visible{outline:3px solid rgba(234,88,12,.32);outline-offset:2px}
.tf-view-clients .tf-client-more>div{position:absolute;z-index:15;right:0;bottom:50px;width:176px;padding:7px;border:1px solid var(--tribal-border);border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(15,29,49,.16)}
.tf-view-clients .tf-client-more>div form{margin:0}.tf-view-clients .tf-client-more>div .tribal-btn{width:100%!important;min-height:44px!important;justify-content:flex-start!important;border:0!important;background:#fff!important;color:var(--tribal-navy)!important;text-align:left!important}
.tf-view-clients .tf-action-wide{display:none}.tf-view-clients .tf-action-compact{display:inline}

@media(min-width:768px){
 .tf-view-clients .tf-client-workspace>header{flex-direction:row!important;align-items:flex-start!important;gap:18px!important;margin-bottom:18px!important}
 .tf-view-clients .tf-client-workspace>header h1{font-size:32px!important}.tf-view-clients .tf-directory-count{display:inline;background:transparent;min-width:0;min-height:0;padding:0;font-size:inherit;font-weight:inherit}.tf-view-clients .tf-directory-count:before{content:'('}.tf-view-clients .tf-directory-count:after{content:')'}
 .tf-view-clients .tf-capacity-wide{display:inline}.tf-view-clients .tf-capacity-compact{display:none}.tf-view-clients .tf-capacity-chip{padding:9px 12px!important;font-size:13px!important;white-space:nowrap!important}
 .tf-view-clients .tf-client-mobile-tools{display:none!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table{overflow-x:auto!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table table{display:table!important;min-width:920px!important;border:1px solid var(--tribal-border)!important;background:#fff!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table thead th{position:static!important;top:auto!important;z-index:auto!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table thead{display:table-header-group!important}.tf-view-clients .tf-client-workspace .tf-crm-table tbody{display:table-row-group!important}.tf-view-clients .tf-client-workspace .tf-crm-table tr{display:table-row!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;cursor:default}.tf-view-clients .tf-client-workspace .tf-crm-table td{display:table-cell!important;padding:14px 16px!important;border-bottom:1px solid var(--tribal-border)!important;vertical-align:middle!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-identity{display:table-cell!important}.tf-view-clients .tf-mobile-status,.tf-view-clients .tf-mobile-email,.tf-view-clients .tf-mobile-added{display:none!important}.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-date,.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-email,.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-status,.tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-extra{display:table-cell!important}.tf-view-clients .tf-client-email.is-empty{color:var(--tribal-muted)}
 .tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-onboarding{padding:14px 16px!important;border-top:0!important}.tf-view-clients .tf-onboarding-mobile{display:none}.tf-view-clients .tf-onboarding-desktop{display:inline}
 .tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-action-cell{display:table-cell!important}.tf-view-clients .tf-client-actions{display:flex!important;grid-template-columns:none!important;gap:7px;width:auto!important}.tf-view-clients .tf-client-primary,.tf-view-clients .tf-client-primary form{width:auto}.tf-view-clients .tf-client-primary .tribal-btn{width:auto!important;min-height:40px!important}.tf-view-clients .tf-client-secondary{display:flex!important;gap:7px}.tf-view-clients .tf-client-secondary form{margin:0}.tf-view-clients .tf-client-secondary .tribal-btn{min-height:40px!important}.tf-view-clients .tf-client-more{display:none}
 .tf-view-clients .tf-action-wide{display:inline}.tf-view-clients .tf-action-compact{display:none}
}

/* Client profile 2.0.57: phone navigation and overview reflow. */
@media(max-width:767px){
 .tf-client-profile,.tf-client-profile *{min-width:0;box-sizing:border-box}
 .tf-client-profile-saas .tf-profile-head{padding:14px 16px 16px!important}
 .tf-client-profile-saas .tf-back{margin-bottom:12px!important}
 .tf-client-profile-saas .tf-profile-identity{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;align-items:center!important;gap:4px 12px!important;flex-wrap:nowrap!important}
 .tf-client-profile-saas .tf-profile-identity>span{grid-column:1;grid-row:1/3;width:52px!important;height:52px!important}
 .tf-client-profile-saas .tf-profile-identity>div{grid-column:2;grid-row:1;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile-saas .tf-profile-identity h1{font-size:23px!important;line-height:1.15!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile-saas .tf-profile-identity p{margin:3px 0!important;overflow-wrap:anywhere}
 .tf-client-profile-saas .tf-profile-identity em{grid-column:2;grid-row:2;justify-self:start;width:auto!important;margin:2px 0 0!important;white-space:nowrap!important}
 .tf-client-profile-saas .tf-profile-primary-actions{position:static!important;display:flex!important;width:auto!important;margin:12px 0 0 64px!important}
 .tf-client-profile-saas .tf-profile-primary-actions .tribal-btn{width:auto!important;min-height:44px!important;padding:9px 14px!important}
 .tf-client-profile-saas .tf-profile-alerts{margin:12px!important;padding:13px 14px!important}
 .tf-client-profile-saas .tf-profile-alerts>div{gap:10px!important;padding:10px 0!important}
 .tf-client-profile-saas .tf-profile-alerts a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile>.tf-profile-mobile-nav{display:none!important}
 .tf-client-profile>.tf-profile-tabs{display:flex!important;flex-flow:row nowrap!important;gap:4px!important;min-height:50px!important;padding:3px 12px 0!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:thin}
 .tf-client-profile>.tf-profile-tabs a{display:inline-flex!important;flex:0 0 auto!important;min-width:max-content!important;min-height:46px!important;padding:0 11px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile .tf-profile-body{width:100%!important;max-width:100%!important;padding:14px 12px!important}
 .tf-client-profile .tf-profile-summary-strip{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .tf-client-profile .tf-profile-summary-strip article{min-height:96px;padding:13px!important}
 .tf-client-profile .tf-profile-overview-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:12px!important}
 .tf-client-profile .tf-profile-overview-grid>div,.tf-client-profile .tf-profile-overview-grid>aside{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:12px!important;align-items:stretch!important}
 .tf-client-profile .tf-profile-overview-grid section,.tf-client-profile .tf-profile-overview-grid>aside section{width:100%!important;max-width:100%!important;margin:0!important;padding:14px!important;align-self:stretch!important}
 .tf-client-profile:has(.tf-profile-alerts) .tf-profile-overview-grid>aside section:first-child{display:none!important}
 .tf-client-profile .tf-card-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important}
 .tf-client-profile .tf-card-heading h2{min-width:0!important;font-size:20px!important;line-height:1.2!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile .tf-card-heading a{display:inline-flex!important;align-items:center!important;min-height:44px!important;font-size:0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile .tf-card-heading a:after{content:'View all \2192';font-size:12px!important}
 .tf-client-profile .tf-profile-overview-grid section>p{grid-template-columns:minmax(0,1fr)!important;gap:3px!important}
 .tf-client-profile .tf-profile-overview-grid section>p span{text-align:left!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile .tf-profile-overview-grid .tf-empty{width:100%!important;min-height:0!important;padding:12px!important;text-align:left!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-client-profile .tf-profile-body .tf90-table-wrap,.tf-client-profile .tf-profile-body .tf90-table-scroll,.tf-client-profile .tf-profile-body .tf-crm-table{width:100%!important;max-width:100%!important;overflow-x:auto!important}
}

/* Client directory 2.0.58: final phone identity and control polish. */
@media(max-width:767px){
 .tf-view-clients .tf-capacity-compact{display:inline!important;margin-left:.28em!important}
 .tf-view-clients .tf-client-mobile-search{grid-template-columns:minmax(0,1fr) 48px!important;width:100%!important;min-width:0!important}
 .tf-view-clients .tf-client-mobile-search input{min-width:0!important;min-height:48px!important}
 .tf-view-clients .tf-client-mobile-search button{width:48px!important;min-width:48px!important;min-height:48px!important}
 .tf-view-clients .tf-client-filter-toggle,.tf-view-clients .tf-mobile-add-client{min-height:48px!important;padding:10px 14px!important;border-radius:11px!important;align-self:stretch!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table tr{gap:12px!important;padding:16px!important}
 .tf-view-clients .tf-client-workspace .tf-crm-table .tf-client-identity{grid-template-columns:minmax(0,1fr)!important;gap:5px!important}
 .tf-view-clients .tf-person{grid-column:1!important;display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:10px!important;width:100%!important;min-width:0!important}
 .tf-view-clients .tf-person>span{grid-column:1;grid-row:1;width:48px!important;height:48px!important;flex:0 0 48px!important}
 .tf-view-clients .tf-person strong{grid-column:2;grid-row:1;align-self:center;min-width:0!important;font-size:15px;line-height:1.25;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-view-clients .tf-mobile-status{grid-column:1!important;grid-row:auto!important;justify-self:start!important;width:auto!important;max-width:100%!important;margin-left:58px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
 .tf-view-clients .tf-mobile-email,.tf-view-clients .tf-mobile-added{grid-column:1!important;margin-left:58px!important;overflow-wrap:anywhere!important;word-break:normal!important}
 .tf-view-clients .tf-client-actions{grid-template-columns:minmax(0,1fr) 48px!important;gap:10px!important}
 .tf-view-clients .tf-client-primary .tribal-btn{min-height:48px!important}
 .tf-view-clients .tf-client-more summary{width:48px!important;height:48px!important;border-radius:11px!important}
}
