/* Approved 2026-11-10 sample, scoped to the live CRM. */

:root {
  --ink: #233d35;
  --muted: #758278;
  --green: #244d40;
  --dark: #173e35;
  --gold: #b79a61;
  --line: #e3e8df;
  --bg: #f6f7f2;
  --pale: #e3e9d2;
  --red: #a85544;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
body.crm-product * {
  box-sizing: border-box;
}
body.crm-product {
  margin: 0;
}
body.crm-product button,
body.crm-product input,
body.crm-product select,
body.crm-product textarea {
  font: inherit;
  color: inherit;
}
body.crm-product button,
body.crm-product a {
  touch-action: manipulation;
}
body.crm-product button {
  cursor: pointer;
}
body.crm-product a {
  color: inherit;
  text-decoration: none;
}
body.crm-product button:focus-visible,
body.crm-product a:focus-visible,
body.crm-product input:focus-visible,
body.crm-product select:focus-visible {
  outline: 3px solid #baa36c;
  outline-offset: 3px;
}
body.crm-product h1,
body.crm-product h2,
body.crm-product h3,
body.crm-product p {
  margin: 0;
}
body.crm-product button {
  border: 0;
}
body.crm-product svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
body.crm-product .shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
body.crm-product .side {
  background: var(--dark);
  color: #b8cbbb;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
body.crm-product .brand-local {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 16px;
  color: #f0ecd9;
}
body.crm-product .brand-local img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}
body.crm-product .brand-local strong {
  font:
    23px Georgia,
    serif;
  letter-spacing: 0.2px;
}
body.crm-product .brand-local small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.4px;
  margin-top: 6px;
}
body.crm-product .nav-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  padding: 0 14px;
  color: #8fa899;
}
body.crm-product .side nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
body.crm-product .side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 14px;
  background: none;
  color: inherit;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
body.crm-product .side-link:hover {
  background: #ffffff0c;
}
body.crm-product .side-link.active {
  background: var(--pale);
  color: #244238;
  font-weight: 600;
}
body.crm-product .side-link .chev {
  margin-left: auto;
  width: 13px;
}
body.crm-product .nav-sub {
  margin: 0 0 5px 23px;
  padding-left: 18px;
  border-left: 1px solid #476455;
  display: grid;
  gap: 2px;
}
body.crm-product .nav-sub a {
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 6px;
}
body.crm-product .nav-sub a.sel {
  background: #ffffff0d;
  color: #f0ecd9;
}
body.crm-product .side-foot {
  margin-top: auto;
  font-size: 11px;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 20px 13px 0;
  border-top: 1px solid #ffffff15;
}
body.crm-product .side-foot i {
  height: 6px;
  width: 6px;
  background: #c8b478;
  border-radius: 50%;
}
body.crm-product .top-local {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fffffff0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  color: var(--muted);
  font-size: 12px;
}
body.crm-product .top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
body.crm-product .avatar {
  width: 34px;
  height: 34px;
  background: #eee9dc;
  color: #8c764c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
body.crm-product .main-local {
  max-width: 1540px;
  margin: auto;
  padding: 34px 38px 48px;
}
body.crm-product .page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
body.crm-product .eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #7c887d;
  margin-bottom: 9px;
  font-weight: 600;
}
body.crm-product .page-title h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.65px;
}
body.crm-product .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.7;
}
body.crm-product .actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
body.crm-product .btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  min-height: 39px;
}
body.crm-product .btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
body.crm-product .btn.ghost {
  background: transparent;
  border-color: transparent;
}
body.crm-product .btn.icon {
  padding: 9px;
}
body.crm-product .btn:hover {
  filter: brightness(0.97);
}
body.crm-product .textlink {
  background: none;
  padding: 0;
  color: var(--green);
  font-size: 12px;
  cursor: pointer;
}
body.crm-product .textlink:hover {
  text-decoration: underline;
}
body.crm-product .muted {
  color: var(--muted);
}
body.crm-product .small {
  font-size: 12px;
}
body.crm-product .tiny {
  font-size: 11px;
}
body.crm-product .num {
  font-variant-numeric: tabular-nums;
}
body.crm-product .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
body.crm-product .stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px;
  display: block;
}
body.crm-product .stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
body.crm-product .stat-icon {
  background: #eef2e8;
  border-radius: 7px;
  padding: 8px;
  display: grid;
  place-items: center;
  color: #6c8269;
}
body.crm-product .stat-value {
  font-size: 32px;
  letter-spacing: -0.8px;
  font-weight: 600;
  margin: 12px 0 9px;
}
body.crm-product .stat-foot {
  font-size: 11px;
  color: var(--muted);
}
body.crm-product .stat.warm {
  background: #f3eee2;
  border-color: #e7dfca;
}
body.crm-product .stat.warm .stat-icon {
  background: #eae1cc;
  color: #a48b54;
}
body.crm-product .columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
body.crm-product .stack {
  display: grid;
  gap: 22px;
}
body.crm-product .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
body.crm-product .panel-head {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
body.crm-product .panel h2 {
  font-size: 16px;
  font-weight: 600;
}
body.crm-product .panel-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
body.crm-product .pad {
  padding: 22px 23px;
}
body.crm-product .row {
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #edf0e9;
}
body.crm-product .row:last-child {
  border-bottom: 0;
}
body.crm-product .row .grow {
  flex: 1;
  min-width: 0;
}
body.crm-product .row strong {
  font-size: 13px;
  font-weight: 600;
}
body.crm-product .row p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.6;
}
body.crm-product .row-right {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 9px;
}
body.crm-product .check-circle {
  border: 1px solid #d7dfd0;
  background: white;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  flex-shrink: 0;
}
body.crm-product .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 8px;
  border-radius: 5px;
  color: #65765b;
  background: #edf1e7;
  white-space: nowrap;
}
body.crm-product .badge.red {
  background: #f8ece7;
  color: #a8614e;
}
body.crm-product .badge.gold {
  background: #f3eedd;
  color: #90743c;
}
body.crm-product .badge.gray {
  color: #7d857f;
  background: #f2f3ef;
}
body.crm-product .tag {
  background: #f4f6f0;
  border: 1px solid #e4e9dc;
  color: #637158;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  display: inline-block;
}
body.crm-product .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
body.crm-product .periods {
  display: flex;
  background: #f4f5ef;
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}
body.crm-product .periods button {
  background: none;
  padding: 6px 10px;
  font-size: 10px;
  color: #7d877b;
  border-radius: 4px;
}
body.crm-product .periods button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px #173e3510;
}
body.crm-product .empty {
  padding: 25px;
  color: #83907f;
  font-size: 12px;
  line-height: 1.9;
}
body.crm-product .empty.compact {
  padding: 0;
}
body.crm-product .empty-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #f0f3eb;
  display: grid;
  place-items: center;
  color: #94a18b;
  margin-bottom: 12px;
}
body.crm-product .nextdate {
  width: 39px;
  background: #f4f5ef;
  border-radius: 6px;
  text-align: center;
  padding: 8px 4px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 600;
}
body.crm-product .nextdate small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 5px;
}
body.crm-product .footnote {
  font-size: 10px;
  color: #91988e;
  margin-top: 22px;
  line-height: 1.8;
}
body.crm-product .toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  flex-wrap: wrap;
}
body.crm-product .search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  min-height: 40px;
  gap: 9px;
  background: white;
}
body.crm-product .search svg {
  width: 16px;
  color: #8a9586;
}
body.crm-product .search input {
  border: 0;
  outline: 0;
  min-width: 190px;
  width: 100%;
  font-size: 12px;
}
body.crm-product .check-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
body.crm-product .check-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 9px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
body.crm-product .check-filter label:has(input:checked) {
  background: #edf2e4;
  border-color: #bacaad;
  color: #355334;
}
body.crm-product input[type="checkbox"] {
  accent-color: var(--green);
  margin: 0;
}
body.crm-product .resultsbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 12px 22px;
  background: #fafbf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #7d887b;
}
body.crm-product .pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 11px;
}
body.crm-product .pagination button {
  height: 28px;
  min-width: 28px;
  border-radius: 4px;
  background: none;
  border: 1px solid transparent;
  color: #7a8575;
}
body.crm-product .pagination button.on {
  background: #e5ebd8;
  color: #355333;
}
body.crm-product .pagination button:hover {
  border-color: #cbd5bf;
}
body.crm-product .table-wrap {
  overflow-x: auto;
}
body.crm-product table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
body.crm-product th {
  font-size: 10px;
  font-weight: 500;
  color: #84907c;
  background: #fbfcf8;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
body.crm-product td {
  padding: 19px 22px;
  font-size: 12px;
  border-bottom: 1px solid #edf0e9;
}
body.crm-product tr:last-child td {
  border-bottom: 0;
}
body.crm-product tbody tr:hover {
  background: #fafbf7;
}
body.crm-product td.right,
body.crm-product th.right {
  text-align: right;
}
body.crm-product td strong {
  font-size: 13px;
  font-weight: 600;
}
body.crm-product td small {
  font-size: 10px;
  color: #8c9688;
  display: block;
  margin-top: 7px;
}
body.crm-product .person {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.crm-product .initials {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eef2e6;
  color: #758867;
  display: grid;
  place-items: center;
  font-size: 11px;
}
body.crm-product .chevron {
  font-size: 21px;
  color: #adb7a3;
}
body.crm-product .filters-extra {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  border-top: 1px solid var(--line);
}
body.crm-product .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  min-width: 0;
  align-self: start;
}
body.crm-product .field input,
body.crm-product .field select,
body.crm-product .field textarea {
  width: 100%;
  border: 1px solid #dce3d4;
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  height: 41px;
  font-size: 13px;
  box-sizing: border-box;
  min-width: 0;
}
body.crm-product .field textarea {
  height: 86px;
  resize: vertical;
}
body.crm-product .field small {
  font-size: 10px;
  color: #8a9382;
  line-height: 1.6;
}
body.crm-product .field label {
  display: block;
}
body.crm-product .back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #7d8d76;
  margin-bottom: 19px;
}
body.crm-product .identity-head {
  display: flex;
  align-items: center;
  gap: 15px;
}
body.crm-product .identity-head .initials {
  height: 52px;
  width: 52px;
  font-size: 16px;
  background: #e8eddb;
}
body.crm-product .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
body.crm-product .profile-main,
body.crm-product .profile-aside {
  display: grid;
  gap: 22px;
}
body.crm-product .facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 30px;
}
body.crm-product .fact dt {
  font-size: 10px;
  color: #929b8a;
  margin-bottom: 7px;
}
body.crm-product .fact dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
body.crm-product .fact.full {
  grid-column: 1/-1;
}
body.crm-product .fact a {
  border-bottom: 1px solid #b5c2a6;
}
body.crm-product .section-label {
  font-size: 11px;
  color: #839079;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.crm-product .section-label:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
body.crm-product .account {
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}
body.crm-product .account:last-child {
  border-bottom: 0;
}
body.crm-product .account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}
body.crm-product .account-name {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  padding: 0;
}
body.crm-product .account-name:hover {
  text-decoration: underline;
}
body.crm-product .account-ref {
  font-size: 10px;
  color: #8e9788;
  margin-top: 6px;
}
body.crm-product .account-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
body.crm-product .account-facts span {
  font-size: 10px;
  color: #8a9583;
  display: block;
  margin-bottom: 7px;
}
body.crm-product .account-facts strong {
  font-size: 12px;
  font-weight: 500;
}
body.crm-product .account-facts .amount {
  font-size: 17px;
  font-weight: 500;
}
body.crm-product .account-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #8b8f7b;
  padding-top: 13px;
  border-top: 1px dashed #e5e8dc;
}
body.crm-product .empty-line {
  padding: 17px 22px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #89947f;
}
body.crm-product .quick-facts {
  display: grid;
  gap: 16px;
}
body.crm-product .quick-facts > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
body.crm-product .quick-facts span {
  color: #8a9582;
}
body.crm-product .compact-choices {
  display: flex;
  gap: 4px;
}
body.crm-product .compact-choices button {
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 5px;
  background: white;
  font-size: 11px;
}
body.crm-product .compact-choices button.on {
  background: #e7edda;
  border-color: #bacba9;
}
body.crm-product .calendar-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
}
body.crm-product .calendar-filter {
  padding: 17px;
}
body.crm-product .calendar-filter h3 {
  font-size: 11px;
  margin: 10px 0 16px;
}
body.crm-product .calendar-filter label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  padding: 9px 0;
}
body.crm-product .calendar-filter input {
  accent-color: var(--green);
}
body.crm-product .calendar-filter label:has([value="birthday"]) input {
  accent-color: #a88757;
}
body.crm-product .cal-head {
  display: grid;
  border-bottom: 1px solid var(--line);
  background: #fdfefb;
}
body.crm-product .cal-head > div {
  padding: 15px 8px;
  text-align: center;
  color: #87927f;
  font-size: 10px;
}
body.crm-product .cal-head b {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: #596e52;
  margin-top: 6px;
}
body.crm-product .cal-head .today b {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  margin: 5px auto 0;
}
body.crm-product .cal-body {
  position: relative;
  display: grid;
  min-height: 530px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 65px,
    #edf0e7 65px,
    #edf0e7 66px
  );
}
body.crm-product .cal-col {
  border-left: 1px solid #e9eddf;
  position: relative;
  min-width: 0;
}
body.crm-product .hours {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  color: #9aa190;
  gap: 54px;
  padding: 0 6px;
  position: relative;
  top: -5px;
}
body.crm-product .cal-event {
  position: absolute;
  left: 7px;
  right: 7px;
  background: #e6eddc;
  border-left: 3px solid #80956e;
  border-radius: 4px;
  padding: 10px;
  font-size: 10px;
  line-height: 1.8;
  cursor: pointer;
  text-align: left;
}
body.crm-product .cal-event strong {
  font-weight: 500;
  font-size: 11px;
  display: block;
}
body.crm-product .cal-event.gold {
  background: #f4edde;
  border-color: #b09a6c;
}
body.crm-product .cal-event.blue {
  background: #e9eef0;
  border-color: #879da5;
}
body.crm-product .cal-col.today {
  background: #f3f6eb55;
}
body.crm-product .month {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
body.crm-product .month-cell {
  min-height: 100px;
  padding: 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
body.crm-product .month-cell.dim {
  color: #bbc1b4;
}
body.crm-product .month-cell button {
  display: block;
  font-size: 9px;
  background: #edf2e4;
  color: #5b7252;
  padding: 5px;
  margin-top: 7px;
  border-radius: 3px;
  width: 100%;
  text-align: left;
}
body.crm-product .month-cell span {
  display: inline-grid;
  place-items: center;
  height: 25px;
  width: 25px;
}
body.crm-product .month-cell.now span {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
}
body.crm-product .mobile-links {
  display: none;
}
body.crm-product dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 13px;
  width: min(620px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 90px #132b2140;
}
body.crm-product dialog::backdrop {
  background: #152a2259;
  backdrop-filter: blur(2px);
}
body.crm-product .dialoghead {
  display: flex;
  justify-content: space-between;
  padding: 24px 26px 21px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
body.crm-product .dialoghead h2 {
  font-size: 19px;
  font-weight: 600;
}
body.crm-product .dialogbody {
  padding: 24px 26px;
  max-height: 65vh;
  overflow: auto;
}
body.crm-product .dialogfooter {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #fcfdf9;
}
body.crm-product .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 18px;
  align-items: start;
}
body.crm-product .full {
  grid-column: 1/-1;
}
body.crm-product .form-section {
  font-size: 12px;
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 3px;
}
body.crm-product .info-note {
  font-size: 11px;
  background: #f7f4e9;
  border: 1px solid #ebe4cf;
  padding: 11px 14px;
  line-height: 1.7;
  border-radius: 6px;
  color: #8b7850;
}
body.crm-product .toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 10px 40px #173e3530;
  z-index: 100;
}
body.crm-product .mobile-only {
  display: none;
}
body.crm-product [hidden] {
  display: none !important;
}
@media (max-width: 1200px) {
  body.crm-product .shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  body.crm-product .side {
    padding: 28px 15px;
  }
  body.crm-product .main-local {
    padding: 28px;
  }
  body.crm-product .top-local {
    padding: 0 28px;
  }
  body.crm-product .toolbar {
    gap: 9px;
  }
  body.crm-product .profile-grid {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  body.crm-product .stat {
    padding: 18px;
  }
  body.crm-product .account-facts {
    gap: 10px;
  }
  body.crm-product .columns {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr);
  }
}
@media (max-width: 800px) {
  body.crm-product .shell {
    grid-template-columns: 1fr;
  }
  body.crm-product .side {
    display: none;
  }
  body.crm-product .top-local {
    height: 58px;
    padding: 0 20px;
  }
  body.crm-product .top-right .hide-mobile {
    display: none;
  }
  body.crm-product .main-local {
    padding: 24px 18px 90px;
  }
  body.crm-product .page-title {
    align-items: flex-start;
    margin-bottom: 23px;
    flex-wrap: wrap;
  }
  body.crm-product .page-title h1 {
    font-size: 26px;
  }
  body.crm-product .page-title > .actions {
    width: 100%;
  }
  body.crm-product .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  body.crm-product .stat {
    padding: 17px;
  }
  body.crm-product .stat-value {
    font-size: 27px;
  }
  body.crm-product .columns,
  body.crm-product .profile-grid {
    grid-template-columns: 1fr;
  }
  body.crm-product .profile-aside {
    grid-template-columns: 1fr 1fr;
  }
  body.crm-product .mobile-links {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 11px 8px 16px;
    z-index: 5;
  }
  body.crm-product .mobile-links a {
    display: grid;
    justify-items: center;
    gap: 5px;
    font-size: 10px;
    color: #89977f;
  }
  body.crm-product .mobile-links a.active {
    color: var(--green);
  }
  body.crm-product .mobile-links svg {
    width: 20px;
    height: 20px;
  }
  body.crm-product .calendar-layout {
    grid-template-columns: 1fr;
  }
  body.crm-product .calendar-filter {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    padding: 9px 14px;
  }
  body.crm-product .calendar-filter h3 {
    display: none;
  }
  body.crm-product .calendar-filter label {
    font-size: 10px;
    padding: 6px 0;
  }
  body.crm-product .calendar-filter .sub {
    display: none;
  }
  body.crm-product .filters-extra {
    grid-template-columns: 1fr 1fr;
  }
  body.crm-product .toolbar {
    padding: 16px;
    gap: 9px;
  }
  body.crm-product .toolbar .search {
    flex: 1;
  }
  body.crm-product .search input {
    min-width: 0;
  }
  body.crm-product .toolbar .check-filter {
    width: 100%;
    order: 3;
  }
  body.crm-product .resultsbar {
    padding: 12px 16px;
  }
  body.crm-product .account-facts {
    grid-template-columns: 1fr 1fr;
  }
  body.crm-product .account-facts > div:last-child {
    grid-column: 1/-1;
  }
  body.crm-product .account-note {
    align-items: flex-start;
    gap: 10px;
  }
  body.crm-product .profile-aside {
    grid-template-columns: 1fr;
  }
  body.crm-product .top-local .mobile-only {
    display: flex;
  }
  body.crm-product .cal-event {
    left: 3px;
    right: 3px;
    padding: 6px;
  }
  body.crm-product .cal-event strong {
    font-size: 10px;
  }
  body.crm-product .profile-grid .facts {
    gap: 18px;
  }
  body.crm-product .actions {
    flex-wrap: wrap;
  }
  body.crm-product .form-grid {
    grid-template-columns: 1fr;
  }
  body.crm-product .form-grid .full {
    grid-column: auto;
  }
  body.crm-product .dialoghead,
  body.crm-product .dialogbody {
    padding: 20px;
  }
  body.crm-product .pagination button {
    min-width: 25px;
  }
  body.crm-product .page-title .identity-head + .actions .more {
    margin-left: auto;
  }
}

@media (min-width: 1101px) {
  body.crm-product .profile-main .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 25px;
  }
  body.crm-product .profile-main .fact.full {
    grid-column: span 2;
  }
}
body.crm-product .sn-sublink {
  color: inherit;
  text-align: left;
  background: none;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 6px;
}
body.crm-product .sn-sublink.sel {
  background: #ffffff0d;
  color: #f0ecd9;
}
body.crm-product .sn-reviewlink {
  font-size: 11px;
  color: #718167;
}
body.crm-product .sn-sample-tag {
  font-size: 10px;
  background: #f1f3e9;
  color: #8a947b;
  padding: 5px 9px;
  border-radius: 4px;
}
body.crm-product .sn-role {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  padding: 0;
}
body.crm-product .sn-role svg {
  width: 12px;
  color: #87967a;
}
body.crm-product .sn-done {
  background: #84996c;
  color: white;
  border-color: #84996c;
  display: grid;
  place-items: center;
  font-size: 11px;
}
body.crm-product .sn-related {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
body.crm-product .sn-form-error {
  color: #a85544;
  background: #faeee9;
  border: 1px solid #edd8cd;
  padding: 12px 14px;
  font-size: 12px;
  border-radius: 6px;
  margin-top: 16px;
}
body.crm-product .sn-summary-strip {
  display: flex;
  gap: 45px;
  padding: 22px 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
}
body.crm-product .sn-summary-strip span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
body.crm-product .sn-summary-strip strong {
  font-size: 23px;
  font-weight: 500;
}
body.crm-product .sn-family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
body.crm-product .sn-family-members {
  display: grid;
  gap: 20px;
}
body.crm-product .sn-family-members strong {
  font-size: 13px;
}
body.crm-product .sn-contact {
  padding: 13px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 12px;
}
body.crm-product .sn-contact .tag {
  margin-left: 10px;
}
body.crm-product .sn-contact p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
body.crm-product .sn-merge-direction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
body.crm-product .sn-merge-direction span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 8px;
}
body.crm-product .sn-merge-direction strong {
  font-size: 13px;
}
body.crm-product .sn-merge-people {
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0 22px;
}
body.crm-product .sn-merge-people p {
  margin-bottom: 10px;
}
body.crm-product .sn-check-confirm {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  line-height: 1.9;
  margin-top: 22px;
}
body.crm-product .sn-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
body.crm-product .sn-feature-grid a:hover {
  border-color: #b5c49f;
}
body.crm-product .sn-feature-grid h2 {
  font-size: 16px;
}
body.crm-product .sn-feature-grid p {
  font-size: 12px;
}
body.crm-product .sn-test-note {
  padding: 9px 15px;
  font-size: 11px;
  background: #f3eedf;
  border: 1px solid #e9dfc8;
  border-radius: 6px;
  color: #8d7746;
}
@media (max-width: 800px) {
  body.crm-product .sn-family-grid,
  body.crm-product .sn-feature-grid {
    grid-template-columns: 1fr;
  }
  body.crm-product .sn-summary-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  body.crm-product .sn-summary-strip strong {
    font-size: 20px;
  }
  body.crm-product .sn-merge-direction {
    flex-wrap: wrap;
  }
  body.crm-product .sn-reviewlink {
    display: none;
  }
  body.crm-product .nav-sub {
    margin-left: 0;
  }
}
body.crm-product .sn-calendar-panel {
  overflow: auto;
}
body.crm-product .sn-day-button {
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: inherit;
}
body.crm-product .sn-allday {
  display: grid;
  border-bottom: 1px solid var(--line);
  min-height: 37px;
  font-size: 9px;
  color: var(--muted);
}
body.crm-product .sn-allday > span {
  padding: 12px 5px;
}
body.crm-product .sn-allday > div {
  border-left: 1px solid var(--line);
  padding: 7px;
}
body.crm-product .sn-allday button {
  font-size: 10px;
  background: #f3eddd;
  color: #8c7547;
  border-radius: 4px;
  padding: 5px 8px;
  text-align: left;
  width: 100%;
}
body.crm-product .sn-out-hours {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  background: #f1f4e9;
  font-size: 10px;
  padding: 8px;
  color: #768264;
}
body.crm-product .month-cell .sn-day-button {
  display: inline-block;
  width: auto;
  background: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
}
/* Real app adapters: preserve existing behavior and intrinsic content sizes. */
body.crm-product {
  font:
    14px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  background: #f6f7f2;
  color: #233d35;
}
.crm-product .crm-workspace {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
.crm-product .side {
  padding: 30px 20px;
  min-width: 0;
}
.crm-product .side nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.crm-product .side nav .side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #b8cbbb;
  text-decoration: none;
  background: none;
  border: 0;
}
.crm-product .side nav .side-link.active {
  background: #e3e9d2;
  color: #244238;
  font-weight: 600;
  box-shadow: none;
}
.crm-product .side nav .side-link:hover {
  background: #ffffff0c;
}
.crm-product .side nav .side-link.active:hover {
  background: #e3e9d2;
}
.crm-product .side-tools {
  margin: 0;
}
.crm-product .side-tools > summary {
  list-style: none;
}
.crm-product .side-tools > summary::-webkit-details-marker {
  display: none;
}
.crm-product .side-link .nav-chevron {
  margin-left: auto;
  width: 12px;
  transition: transform 0.15s;
}
.crm-product .side-tools:not([open]) .nav-chevron {
  transform: rotate(-90deg);
}
.crm-product .side-tools > div {
  padding: 0 0 0 18px;
  margin: 0 0 5px 23px;
  border-left: 1px solid #476455;
  gap: 2px;
}
.crm-product .side-tools > div a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  min-width: 0;
  white-space: normal;
}
.crm-product .side-tools > div a.active {
  background: #ffffff0d;
  color: #f0ecd9;
  box-shadow: none;
}
.crm-product .side-tools a[href="#statistics"] {
  border: 0;
  margin: 0;
  padding-top: 9px;
}
.crm-product .mobile-category {
  margin-bottom: 20px;
}
.crm-product .mobile-category > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 9px;
  color: #244238;
}
.crm-product .mobile-category > summary.active {
  background: #e3e9d2;
}
.crm-product .mobile-category > div {
  border-color: #dce3d8;
}
.crm-product .mobile-category > div a.active {
  color: #244238;
  background: #edf1e6;
  font-weight: 600;
}
.crm-product .brand-local {
  margin: 0 0 24px;
  padding: 0 8px 16px;
  gap: 12px;
}
.crm-product .brand-local img {
  width: 43px;
  height: 43px;
}
.crm-product .brand-local strong {
  font:
    23px Georgia,
    serif;
  color: #f0ecd9;
  letter-spacing: 0.2px;
}
.crm-product .brand-local small {
  font-size: 8px;
  letter-spacing: 2.4px;
  color: #bdcbbd;
}
.crm-product .side-workspace-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #8fa899;
  margin: 0 14px 18px;
}
.crm-product .side-bottom {
  font-size: 10px;
  padding: 18px 13px 0;
  border-top: 1px solid #ffffff15;
  color: #b8cbbb;
}
.crm-product .top-local {
  height: 72px;
  margin: 0;
  padding: 0 38px;
  border-bottom: 1px solid #e3e8df;
  font-size: 12px;
}
.crm-product .local-banner {
  display: none;
}
.crm-product .demo-notice {
  margin-bottom: 14px;
  color: #425547;
  font-size: 13px;
}
.crm-product .local-state {
  font-size: 10px;
  background: #f1f3e9;
  color: #879277;
  padding: 5px 9px;
  border-radius: 4px;
}
.crm-product .top-local .actions {
  gap: 12px;
}
.crm-product .top-local .btn {
  min-height: 34px;
  padding: 7px 9px;
}
.crm-product .main-local {
  max-width: 1540px;
  margin: auto;
  padding: 34px 38px 48px;
  min-width: 0;
}
.crm-product .page-title h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.65px;
  margin: 0;
}
.crm-product .page-title > div > p {
  font-size: 12px;
  margin-top: 9px;
  color: #758278;
}
.crm-product .page-title > div > p:empty {
  display: none;
}
.crm-product .page-title {
  margin: 0 0 28px;
}
.crm-product .eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #7c887d;
  margin: 0 0 9px;
  font-weight: 600;
}
.crm-product .btn.primary {
  background: #244d40;
  border-color: #244d40;
  color: #fff;
}
.crm-product .btn {
  font-size: 12px;
  font-weight: 400;
  min-height: 39px;
}
.crm-product .btn.ghost {
  border-color: transparent;
  background: transparent;
}
.crm-product .text-btn {
  font-size: 12px;
  text-decoration: none;
  background: none;
  padding: 0;
  border: 0;
  color: #244d40;
}
.crm-product .text-btn:hover {
  text-decoration: underline;
}
.crm-product .actions {
  flex-wrap: wrap;
}
.crm-product .page-title > .actions {
  justify-content: flex-end;
}
.crm-product .panel {
  margin-bottom: 22px;
  border: 1px solid #e3e8df;
  border-radius: 11px;
  min-width: 0;
  overflow: hidden;
}
.crm-product .panel-head {
  padding: 21px 23px;
  gap: 14px;
  border-bottom: 1px solid #e3e8df;
  min-height: 68px;
}
.crm-product .panel-head h2 {
  font-size: 16px;
  font-weight: 600;
}
.crm-product .panel-head .btn {
  border: 0;
  background: none;
  padding: 0;
  color: #244d40;
  min-height: 0;
}
.crm-product .panel-pad {
  padding: 22px 23px;
  min-width: 0;
}
.crm-product .panel-pad:has(> .local-list) {
  padding: 0;
}
.crm-product .panel-pad:has(> .local-row) {
  padding: 0;
}
.crm-product .local-list {
  gap: 0;
  border: 1px solid #e3e8df;
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}
.crm-product .panel .local-list {
  border: 0;
  border-radius: 0;
}
.crm-product .local-row {
  border: 0;
  border-bottom: 1px solid #edf0e9;
  border-radius: 0;
  padding: 20px 23px;
  margin: 0;
  background: #fff;
  align-items: center;
  min-width: 0;
}
.crm-product .local-row:last-child {
  border-bottom: 0;
}
.crm-product .local-row > div:first-child {
  min-width: 0;
}
.crm-product .local-row strong {
  font-size: 13px;
  font-weight: 600;
}
.crm-product .local-row p {
  font-size: 11px;
  color: #758278;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.crm-product .local-row > .actions {
  justify-content: flex-end;
  flex-shrink: 0;
}
.crm-product .local-row > .actions .btn {
  border-color: transparent;
  background: none;
  font-size: 11px;
  padding: 5px 7px;
  min-height: 28px;
  color: #42604b;
}
.crm-product .pill {
  font-size: 10px;
  line-height: 1.5;
  padding: 4px 8px;
  border-radius: 5px;
  background: #edf1e7;
  color: #65765b;
}
.crm-product .pill.red {
  background: #f8ece7;
  color: #a8614e;
}
.crm-product .pill.gold {
  background: #f3eedd;
  color: #90743c;
}
.crm-product .pill.gray {
  background: #f2f3ef;
  color: #7d857f;
}
.crm-product .pill.outline {
  background: #f8f9f5;
  border: 1px solid #e3e8da;
  color: #637158;
}
.crm-product .empty {
  padding: 24px;
  color: #83907f;
  font-size: 12px;
  line-height: 1.9;
}
.crm-product .section-count {
  margin: 0;
  padding: 12px 23px;
  border-top: 1px solid #edf0e9;
  color: #8c9683;
}
.crm-product .dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.crm-product .stats {
  margin-bottom: 26px;
  gap: 18px;
}
.crm-product .stat {
  padding: 22px;
  border-radius: 11px;
  min-width: 0;
}
.crm-product .stat-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 12px 0 9px;
}
.crm-product .stat-top {
  font-size: 12px;
  line-height: 1.6;
  color: #758278;
}
.crm-product .stat-top .stat-icon {
  display: grid;
  width: 34px;
  height: 34px;
}
.crm-product .stat-foot {
  font-size: 11px;
  line-height: 1.6;
  color: #758278;
}
.crm-product .stat.attention {
  background: #f3eee2;
  border-color: #e7dfca;
}
.crm-product .stat.attention .stat-icon {
  background: #eae1cc;
  color: #a48b54;
}
.crm-product .task-owner {
  font-size: 10px;
  color: #8a9581;
}
.crm-product .dashboard-scope {
  display: flex;
  padding: 3px;
  background: #f4f5ef;
  border-radius: 6px;
  gap: 2px;
}
.crm-product .dashboard-scope button {
  background: none;
  padding: 6px 9px;
  border-radius: 4px;
  font-size: 11px;
  color: #7d877b;
}
.crm-product .dashboard-scope button[aria-pressed="true"] {
  background: #fff;
  color: #233d35;
  box-shadow: 0 1px 4px #173e3510;
}
.crm-product .directory-panel > .filters {
  padding: 18px 22px;
  gap: 12px;
  align-items: end;
}
.crm-product .directory-panel input[name="q"] {
  font-size: 12px;
  min-height: 40px;
  width: 230px;
}
.crm-product .business-filters {
  padding: 0;
  border: 0;
  gap: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.crm-product .business-filters legend {
  font-size: 10px;
  color: #8a9582;
  margin-bottom: 7px;
}
.crm-product .business-filters label {
  font-size: 11px;
  padding: 10px 9px;
  border: 1px solid #e3e8df;
  background: #fff;
  gap: 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.crm-product .business-filters label:has(input:checked) {
  background: #edf2e4;
  border-color: #bacaad;
}
.crm-product .directory-panel .client-filter-options {
  flex-basis: 100%;
}
.crm-product .directory-panel .client-filter-options > .filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 0 0;
  border: 0;
  align-items: start;
  gap: 15px;
}
.crm-product .client-filter-options label.field-local {
  font-size: 11px;
  gap: 8px;
}
.crm-product .client-filter-options :is(input, select) {
  min-height: 41px;
  font-size: 12px;
  max-width: none;
}
.crm-product .directory-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 22px;
  background: #fafbf7;
  border-block: 1px solid #e3e8df;
}
.crm-product .directory-pager .pager {
  margin: 0;
  padding: 0;
  gap: 12px;
}
.crm-product .pager {
  font-size: 11px;
  color: #7d887b;
  gap: 15px;
  padding: 14px 2px;
  flex-wrap: wrap;
}
.crm-product .pager .btn {
  padding: 4px 8px;
  font-size: 11px;
  min-width: 29px;
  min-height: 29px;
}
.crm-product .data-table th {
  font-size: 10px;
  font-weight: 500;
  color: #84907c;
  background: #fbfcf8;
  padding: 15px 22px;
}
.crm-product .data-table td {
  padding: 19px 22px;
  font-size: 12px;
  border-color: #edf0e9;
  vertical-align: middle;
}
.crm-product .data-table td strong,
.crm-product .client-name {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.crm-product .data-table tr:hover {
  background: #fafbf7;
}
.crm-product .data-table .amount-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.crm-product .data-table small,
.crm-product .data-table .note-label {
  font-size: 10px;
  color: #8c9688;
  margin-top: 7px;
}
.crm-product .client-person {
  display: flex;
  gap: 12px;
  align-items: center;
}
.crm-product .client-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eef2e6;
  color: #758867;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.crm-product .profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.crm-product .profile-layout-main,
.crm-product .profile-layout-aside {
  min-width: 0;
}
.crm-product .profile-identity {
  display: flex;
  align-items: center;
  gap: 15px;
}
.crm-product .profile-identity .client-avatar {
  width: 52px;
  height: 52px;
  font-size: 16px;
}
.crm-product .summary-tags {
  gap: 6px;
  margin: 10px 0 0;
}
.crm-product .profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px 25px;
  margin: 0;
}
.crm-product .profile-fields > div {
  display: block;
  padding: 0;
  border: 0;
  min-width: 0;
}
.crm-product .profile-fields dt {
  font-size: 10px;
  font-weight: 400;
  color: #929b8a;
  margin-bottom: 7px;
}
.crm-product .profile-fields dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.crm-product .profile-fields + .profile-fields {
  border-top: 1px solid #edf0e9;
  margin-top: 20px;
  padding-top: 20px;
}
.crm-product .profile-contact-value {
  display: block;
}
.crm-product .profile-contact-review {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 6px;
}
.crm-product .family-people {
  display: grid;
  gap: 13px;
}
.crm-product .family-people a {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.crm-product .family-people .muted {
  font-size: 11px;
}
.crm-product .portfolio-row {
  align-items: flex-start;
}
.crm-product .portfolio-row .account-title {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #233d35;
}
.crm-product .portfolio-row .account-title:hover {
  text-decoration: underline;
}
.crm-product .portfolio-row .portfolio-identifiers {
  font-size: 10px;
  color: #8e9788;
}
.crm-product .portfolio-row .account-amount {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #233d35;
  margin: 13px 0;
}
.crm-product .portfolio-row .payment-missing {
  font-size: 11px;
  font-weight: 400;
  color: #90743c;
}
.crm-product .empty-businesses {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 22px;
  border: 1px solid #e3e8df;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 22px;
  color: #89947f;
  font-size: 11px;
}
.crm-product .account-travel {
  font-size: 11px;
  color: #758278;
  margin-top: 9px;
}
.crm-product .profile-work .grid-two {
  gap: 20px;
}
.crm-product .case-progress {
  width: 100%;
  margin: 17px 0 14px;
}
.crm-product .case-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #84907c;
  margin-bottom: 9px;
}
.crm-product .case-progress-steps {
  display: flex;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.crm-product .case-progress-steps li {
  min-width: 0;
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: #8a9582;
  overflow-wrap: anywhere;
}
.crm-product .case-progress-steps .case-segment {
  display: block;
  height: 7px;
  background: #edf0e8;
  border-radius: 2px;
  margin-bottom: 9px;
}
.crm-product .case-progress-steps .done .case-segment {
  background: #c0cdb1;
}
.crm-product .case-progress-steps .current .case-segment {
  background: #56704b;
}
.crm-product .case-progress-steps .current {
  color: #355333;
  font-weight: 600;
}
.crm-product .case-row {
  display: block;
}
.crm-product .case-row-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.crm-product .case-row h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}
.crm-product .case-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crm-product .case-amount {
  text-align: right;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.crm-product .case-amount small {
  display: block;
  font-size: 10px;
  color: #8a9582;
  margin-bottom: 7px;
}
.crm-product .case-row-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}
.crm-product .case-row-foot > .actions .btn {
  border: 0;
  background: none;
  padding: 5px 7px;
  font-size: 11px;
}
.crm-product .case-row-foot .case-note {
  font-size: 11px;
  color: #758278;
  max-width: 65ch;
  white-space: pre-wrap;
}
.crm-product .report-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}
.crm-product .report-business {
  padding: 22px;
  background: white;
  border: 1px solid #e3e8df;
  border-top: 3px solid #758b6a;
  border-radius: 11px;
}
.crm-product .report-business.insurance {
  border-top-color: #b9a367;
}
.crm-product .report-business.investment_loan {
  border-top-color: #8d998d;
}
.crm-product .report-business h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #233d35;
}
.crm-product .report-business .business-label {
  font-size: 11px;
  color: #758278;
  margin-bottom: 20px;
}
.crm-product .report-currency {
  padding: 15px 0;
  border-bottom: 1px solid #edf0e9;
}
.crm-product .report-currency:last-child {
  border: 0;
}
.crm-product .report-currency .currency {
  font-size: 12px;
  font-weight: 500;
  color: #67785b;
  margin-right: 10px;
}
.crm-product .report-currency strong {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.crm-product .report-currency small {
  display: block;
  font-size: 10px;
  color: #8a9582;
  margin-top: 9px;
}
.crm-product .report-tabs {
  display: flex;
  padding: 3px;
  background: #f1f3e9;
  border-radius: 6px;
  gap: 3px;
}
.crm-product .report-tabs button {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 4px;
  background: none;
}
.crm-product .report-tabs button.active {
  background: #fff;
  color: #233d35;
  box-shadow: 0 1px 4px #173e3510;
}
.crm-product #editor {
  padding: 0;
  border: 1px solid #e3e8df;
  border-radius: 13px;
  width: min(640px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 90px #132b2140;
}
.crm-product #editor.editor-wide {
  width: min(850px, calc(100vw - 32px));
}
.crm-product #editor::backdrop {
  background: #152a2259;
  backdrop-filter: blur(2px);
}
.crm-product .product-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 23px 26px;
  border-bottom: 1px solid #e3e8df;
  background: white;
  position: sticky;
  top: 0;
  z-index: 3;
}
.crm-product .product-dialog-head h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
.crm-product .product-dialog-head > .btn {
  padding: 5px 9px;
  background: none;
  border: 0;
}
.crm-product .form-local {
  padding: 24px 26px;
  gap: 19px 18px;
  align-items: start;
}
.crm-product label.field-local {
  font-size: 11px;
  gap: 8px;
  align-self: start;
  align-content: start;
}
.crm-product .field-local > input:not([type="checkbox"]),
.crm-product .field-local > select {
  height: 41px;
  box-sizing: border-box;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.crm-product .field-local textarea {
  font-size: 13px;
  line-height: 1.7;
  min-width: 0;
}
.crm-product .form-local footer {
  margin: 12px -26px -24px;
  padding: 18px 26px;
  border-top: 1px solid #e3e8df;
  background: #fcfdf9;
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.crm-product .policy-fields {
  align-items: start;
  gap: 16px 18px;
}
.crm-product .policy-fields .field-local > input:not([type="checkbox"]),
.crm-product .policy-fields .field-local > select {
  height: 41px;
}
.crm-product .policy-section h3 {
  font-size: 13px;
  margin-bottom: 16px;
}
.crm-product .policy-toolbar {
  padding-bottom: 18px;
}
.crm-product .notice {
  font-size: 11px;
  line-height: 1.8;
  padding: 12px 15px;
  background: #f7f4e9;
  border-color: #ebe4cf;
  color: #8b7850;
  overflow-wrap: anywhere;
}
.crm-product .editor-customer {
  font-size: 12px;
}
.crm-product .local-error {
  font-size: 12px;
  line-height: 1.8;
}
.crm-product .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 24px 0;
}
.crm-product .filter-bar .field-local {
  flex: 0 1 250px;
  min-width: 140px;
}
.crm-product .calendar-layout {
  gap: 22px;
}
.crm-product .calendar-layout .panel {
  margin: 0;
}
.crm-product .calendar-layout .field-local {
  font-size: 11px;
}
.crm-product .calendar-date-controls {
  gap: 7px;
}
@media (min-width: 1500px) {
  .crm-product .profile-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .crm-product .shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .crm-product .side {
    padding: 28px 15px;
  }
  .crm-product .main-local {
    padding: 28px;
  }
  .crm-product .top-local {
    padding: 0 28px;
  }
  .crm-product .profile-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .crm-product .case-row-foot {
    flex-wrap: wrap;
  }
  .crm-product .report-currency strong {
    font-size: 24px;
  }
}
@media (max-width: 1000px) {
  .crm-product .dashboard-columns {
    grid-template-columns: minmax(0, 1.25fr) minmax(250px, 1fr);
  }
  .crm-product .profile-layout {
    grid-template-columns: 1fr;
  }
  .crm-product .profile-layout-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .crm-product .profile-layout-aside > .panel {
    margin-bottom: 0;
  }
  .crm-product .profile-layout-aside {
    margin-bottom: 22px;
  }
}
@media (max-width: 800px) {
  .crm-product .shell {
    grid-template-columns: 1fr;
  }
  .crm-product .side {
    display: none;
  }
  .crm-product .main-local {
    padding: 24px 18px 96px;
  }
  .crm-product .top-local {
    height: 58px;
    padding: 0 18px;
  }
  .crm-product .local-state {
    display: none;
  }
  .crm-product .top-local .actions {
    gap: 5px;
  }
  .crm-product .page-title {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .crm-product .page-title h1 {
    font-size: 26px;
  }
  .crm-product .page-title > .actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .crm-product .stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .crm-product .stat {
    padding: 17px;
  }
  .crm-product .stat-value {
    font-size: 27px;
  }
  .crm-product .dashboard-columns,
  .crm-product .profile-layout {
    grid-template-columns: 1fr;
  }
  .crm-product .profile-layout-aside {
    grid-template-columns: 1fr;
  }
  .crm-product .panel-head {
    padding: 18px;
  }
  .crm-product .panel-pad {
    padding: 18px;
  }
  .crm-product .local-row {
    padding: 17px 18px;
    flex-wrap: wrap;
    align-items: start;
  }
  .crm-product .local-row > .actions {
    flex: 1;
    justify-content: flex-end;
    max-width: 100%;
  }
  .crm-product .directory-panel > .filters {
    padding: 16px;
    gap: 9px;
  }
  .crm-product .directory-panel input[name="q"] {
    width: 100%;
    min-width: 0;
    flex: 1 1 180px;
  }
  .crm-product .business-filters {
    flex-basis: 100%;
    order: 3;
  }
  .crm-product .directory-panel .client-filter-options {
    order: 4;
  }
  .crm-product .directory-panel .client-filter-options > .filters {
    grid-template-columns: 1fr 1fr;
  }
  .crm-product .directory-pager {
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .crm-product .pager .btn {
    min-width: 25px;
    padding: 3px 7px;
  }
  .crm-product .data-table th,
  .crm-product .data-table td {
    padding: 15px 16px;
  }
  .crm-product .report-cards {
    grid-template-columns: 1fr;
  }
  .crm-product .report-business {
    padding: 20px;
  }
  .crm-product .profile-fields {
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }
  .crm-product .case-row-head {
    flex-wrap: wrap;
  }
  .crm-product .case-row-foot {
    flex-wrap: wrap;
  }
  .crm-product .case-row-foot > .actions {
    justify-content: flex-start;
  }
  .crm-product .case-progress-steps {
    gap: 3px;
  }
  .crm-product .case-progress-steps li {
    font-size: 9px;
  }
  .crm-product .form-local {
    padding: 20px;
    grid-template-columns: 1fr;
  }
  .crm-product .form-local .wide {
    grid-column: 1;
  }
  .crm-product .product-dialog-head {
    padding: 19px 20px;
  }
  .crm-product .form-local footer {
    margin: 12px -20px -20px;
    padding: 16px 20px;
    bottom: 0;
    flex-wrap: wrap;
  }
  .crm-product .profile-identity .client-avatar {
    display: none;
  }
  .crm-product .profile-work .grid-two {
    grid-template-columns: 1fr;
  }
}
.crm-product .case-progress-steps button {
  display: block;
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  line-height: 1.6;
  text-align: center;
}
.crm-product .case-progress-steps button:hover .case-segment {
  outline: 2px solid #b7c5a7;
  outline-offset: 2px;
}
.crm-product .profile-back {
  display: inline-flex;
  font-size: 11px;
  margin-bottom: 19px;
}
.crm-product .filter-switch button {
  font-size: 11px;
}
.crm-product .business-filters {
  min-width: 0;
}
.crm-product .sales-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 22px 0;
}
.crm-product .sales-overview dt {
  font-size: 11px;
  color: #758278;
  margin-bottom: 11px;
}
.crm-product .sales-overview dd {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.crm-product .profile-more {
  position: relative;
}
.crm-product .profile-more > summary {
  list-style: none;
}
.crm-product .profile-more > summary::-webkit-details-marker {
  display: none;
}
.crm-product .profile-more > div {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 4;
  padding: 9px;
  background: white;
  border: 1px solid #e3e8df;
  border-radius: 8px;
  box-shadow: 0 8px 28px #173e3515;
  min-width: 160px;
  display: grid;
  gap: 5px;
}
.crm-product .profile-more > div .btn {
  border: 0;
  justify-content: flex-start;
}
.crm-product .report-section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 26px 0 0;
}
.crm-product .mobile-portfolio {
  border: 1px solid #e3e8df;
  border-radius: 10px;
  background: white;
  margin-bottom: 20px;
  overflow: hidden;
}
.crm-product .mobile-portfolio > summary {
  padding: 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.crm-product .mobile-portfolio > .panel {
  border: 0;
  margin: 0;
}
.crm-product .profile-layout-main > .panel:last-child {
  margin-bottom: 0;
}
.crm-product .report-tabs .btn {
  padding: 7px 11px;
  min-height: 0;
  border: 0;
  background: transparent;
}
.crm-product .report-tabs .btn[aria-pressed="true"] {
  background: white;
}
.crm-product .profile-work > .panel {
  margin-bottom: 20px;
}
@media (max-width: 800px) {
  .crm-product .sales-overview {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .crm-product .sales-overview > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .crm-product .sales-overview dd {
    font-size: 21px;
  }
  .crm-product .sales-overview dt {
    margin: 0;
  }
  .crm-product .profile-layout-main > .panel:last-child {
    margin-bottom: 22px;
  }
}
.crm-product .panel-head .dashboard-scope button.btn {
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.5;
  min-height: 0;
  border: 0;
  background: none;
}
.crm-product .panel-head .dashboard-scope button.btn[aria-pressed="true"] {
  background: #fff;
  color: #233d35;
  box-shadow: 0 1px 4px #173e3510;
}
.crm-product .dashboard-columns .local-row > button.btn {
  border: 0;
  background: none;
  padding: 5px 7px;
  font-size: 11px;
  min-height: 28px;
}
.crm-product .panel-head > .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crm-product .client-person a.text-btn {
  font-size: 13px;
  font-weight: 600;
}
.crm-product tr[data-client-row] {
  cursor: pointer;
}
.crm-product tr[data-client-row]:active {
  background: #f3f5ed;
}
.crm-product .source-note-body {
  white-space: pre-wrap;
}
.crm-product .report-tabs {
  margin-bottom: 20px;
}
.crm-product .report-cards .report-business p {
  color: #758278;
}
.crm-product .family-extra-contacts h4 {
  font-size: 12px;
  font-weight: 600;
}

.crm-product .team-accounts .local-row {
  flex-wrap: wrap;
}
.crm-product .team-accounts .local-row strong {
  overflow-wrap: anywhere;
}
.crm-product .panel-head .btn[data-action="assistant-add"] {
  min-height: 38px;
  padding: 8px 14px;
}
.crm-product .team-accounts .local-row > .actions .btn {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
}
.crm-product .team-archived {
  margin-top: 1rem;
}
.crm-product .team-archived summary {
  cursor: pointer;
}
.crm-product .team-archived[open] summary {
  margin-bottom: .75rem;
}
@media (max-width: 800px) {
  .crm-product .panel-head .btn[data-action="assistant-add"],
  .crm-product .team-accounts .local-row > .actions .btn {
    min-height: 44px;
  }
}

/* Sign-in is isolated from workspace typography and layout. */
.crm-product .login-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.crm-product .login-cloud.panel {
  width: min(420px, 100%);
  padding: 36px;
  margin: 0;
  box-shadow: 0 12px 48px #173e3509;
}
.crm-product .login-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 30px;
}
.crm-product .login-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}
.crm-product .login-brand span {
  color: #97804f;
  font-size: 10px;
  letter-spacing: 2px;
}
.crm-product .login-brand h1 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
}
.crm-product .login-cloud form,
.crm-product .login-cloud label {
  display: grid;
  gap: 8px;
}
.crm-product .login-cloud form {
  gap: 18px;
}
.crm-product .login-cloud label {
  font-size: 13px;
  font-weight: 500;
}
.crm-product .login-cloud input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 400;
}
.crm-product .login-cloud .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}
.crm-product .login-cloud button:disabled {
  opacity: .55;
  cursor: wait;
}
.crm-product .login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 23px 0;
  color: var(--muted);
  font-size: 12px;
}
.crm-product .login-divider::before,
.crm-product .login-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.crm-product .login-status {
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.crm-product .login-footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.crm-product .login-error:not([hidden]) {
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #a04739;
  background: #fbf1ed;
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .crm-product .login-page {
    padding: 28px 18px;
  }
  .crm-product .login-cloud.panel {
    padding: 30px 24px;
  }
  .crm-product .login-cloud input {
    font-size: 16px;
  }
}
