.client-card-dialog {
  width: 100vw;
  height: 100vh;
  max-height: none;
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
}

.client-card-screen {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.client-side-section h3,
.client-tab-panel h3 {
  margin: 0;
}

.client-card-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
}

.client-card-sidebar {
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding: 20px;
  border-right: 1px solid var(--border);
  background: var(--primary);
  color: #fff;
  box-shadow: 10px 0 30px rgba(15, 118, 110, 0.14);
}

.client-card-content {
  min-height: 0;
  overflow: auto;
  padding: 64px 22px 22px;
  background: #fff;
}

.client-card-mobile-tab-head {
  display: none;
}

.client-mobile-tabbar {
  display: none;
}

.client-side-section,
.crm-visit-group {
  display: grid;
  gap: 14px;
}

.client-card-brand {
  min-height: 48px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.client-card-brand .brand-mark {
  --mark-size: 44px;
  --mark-stem-top: 10px;
  --mark-u-bottom: 8px;
  flex: 0 0 var(--mark-size);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.client-card-brand strong,
.client-card-brand span {
  display: block;
}

.client-card-brand span {
  color: rgba(255, 255, 255, 0.72);
}

.client-side-section {
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
}

.client-edit-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.client-tab-panel {
  display: none;
}

.client-tab-panel.active {
  display: grid;
  gap: 14px;
}

.client-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.client-meta-row {
  display: grid;
  gap: 2px;
}

.client-meta-row dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-meta-row dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.client-asset-summary,
.client-consent-grid,
.client-tab-list {
  display: grid;
  gap: 8px;
}

.client-asset-summary {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.client-asset-summary ul {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.client-asset-summary li {
  display: grid;
  gap: 1px;
}

.client-asset-summary small {
  color: var(--muted);
}

.client-consent {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.client-consent.denied {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.client-tab-list button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  text-align: left;
  font-weight: 900;
}

.client-tab-icon {
  display: none;
}

.client-tab-list button.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(5, 46, 40, 0.16);
}

.client-tab-list button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.crm-notes-table .notion-row {
  grid-template-columns: 150px minmax(0, 1fr);
}

.crm-visit-table .notion-row {
  grid-template-columns: minmax(145px, 0.85fr) minmax(110px, 0.65fr) minmax(150px, 1fr) minmax(130px, 0.8fr) 120px;
}

.crm-visit-row .admin-role {
  justify-self: start;
}
