:root {
  --bsmi-black: #0b0c0e;
  --bsmi-ink: #17191d;
  --bsmi-muted: #69707b;
  --bsmi-line: #e3e5e8;
  --bsmi-panel: #ffffff;
  --bsmi-canvas: #f4f5f6;
  --bsmi-gold: #b89a5b;
  --bsmi-gold-dark: #80672f;
  --bsmi-green: #247a55;
  --bsmi-blue: #245f9e;
  --bsmi-red: #b33a3a;
  --bsmi-amber: #a96f13;
  --bsmi-shadow: 0 14px 36px rgba(11, 12, 14, 0.12);
}

/* Messaging Governance */
.bsmi-crm-message-command {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, .85fr);
  min-width: 0;
  margin-bottom: 12px;
  color: #fff;
  background: #141619;
  border: 1px solid #2d3034;
}

.bsmi-crm-message-command > div {
  align-self: center;
  max-width: 800px;
  padding: 28px 30px;
}

.bsmi-crm-message-command > div > small,
.bsmi-crm-message-view-head small,
.bsmi-crm-message-gaps header small {
  color: var(--bsmi-gold);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.bsmi-crm-message-command h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.08;
}

.bsmi-crm-message-command p {
  max-width: 700px;
  margin: 0;
  color: #c7cacf;
  font-size: 10px;
  line-height: 1.6;
}

.bsmi-crm-message-command dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid #33373b;
}

.bsmi-crm-message-command dl > div {
  display: flex;
  min-width: 0;
  padding: 24px 14px;
  border-right: 1px solid #33373b;
  flex-direction: column;
  justify-content: center;
}

.bsmi-crm-message-command dl > div:last-child { border-right: 0; }
.bsmi-crm-message-command dt { color: #a4a8ad; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-message-command dd { margin: 7px 0 3px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.bsmi-crm-message-command dl small { color: #afb3b8; font-size: 8px; line-height: 1.4; }

.bsmi-crm-message-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-message-kpis article {
  min-width: 0;
  min-height: 82px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  box-shadow: none;
}

.bsmi-crm-message-kpis article:last-child { border-right: 0; }
.bsmi-crm-message-kpis article span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-message-kpis article strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-message-kpis article small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-message-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-message-tabs button {
  display: flex;
  min-width: 0;
  min-height: 47px;
  padding: 0 14px;
  color: #575d63;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  align-items: center;
  justify-content: space-between;
}

.bsmi-crm-message-tabs button:last-child { border-right: 0; }
.bsmi-crm-message-tabs button span { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-message-tabs button strong { display: grid; width: 24px; height: 24px; margin-left: 8px; color: #5d6267; background: #eceeed; border-radius: 50%; font-size: 9px; place-items: center; }
.bsmi-crm-message-tabs button.is-active { color: #fff; background: #191c1f; }
.bsmi-crm-message-tabs button.is-active strong { color: #1b1e20; background: var(--bsmi-gold); }

.bsmi-crm-message-view-head {
  display: flex;
  min-width: 0;
  min-height: 74px;
  margin-bottom: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bsmi-crm-message-view-head > div { min-width: 0; }
.bsmi-crm-message-view-head h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-message-view-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-message-view-head > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-message-view-head > button { flex: 0 0 auto; min-height: 36px; }

.bsmi-crm-message-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, .7fr));
  margin-bottom: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  gap: 8px;
}

.bsmi-crm-message-filters.is-compact { grid-template-columns: minmax(190px, 280px); }
.bsmi-crm-message-filters label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-message-filters label > span { margin-bottom: 4px; color: #585e64; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-message-filters input,
.bsmi-crm-message-filters select { width: 100%; min-width: 0; min-height: 38px; }

.bsmi-crm-message-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  gap: 9px;
}

.bsmi-crm-message-template {
  display: flex;
  min-width: 0;
  min-height: 390px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-left: 4px solid #91969b;
  border-radius: 4px;
  flex-direction: column;
}

.bsmi-crm-message-template.is-active { border-left-color: var(--bsmi-green); }
.bsmi-crm-message-template.is-in-review { border-left-color: var(--bsmi-amber); }
.bsmi-crm-message-template.is-draft { border-left-color: var(--bsmi-gold); }
.bsmi-crm-message-template.is-paused { border-left-color: #b5783d; }
.bsmi-crm-message-template.is-retired { border-left-color: #8b9095; }

.bsmi-crm-message-template > header {
  display: flex;
  min-width: 0;
  padding: 14px 15px;
  border-bottom: 1px solid var(--bsmi-line);
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bsmi-crm-message-template > header > div { min-width: 0; }
.bsmi-crm-message-template > header span { color: var(--bsmi-gold-dark); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-message-template h3 { margin: 4px 0 3px; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.bsmi-crm-message-template > header small { display: block; color: var(--bsmi-muted); font-size: 7px; overflow-wrap: anywhere; }
.bsmi-crm-message-template > header em,
.bsmi-crm-message-usage-table .is-success,
.bsmi-crm-message-usage-table .is-warning,
.bsmi-crm-message-usage-table .is-danger,
.bsmi-crm-message-usage-table .is-neutral {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #555b60;
  background: #eceeed;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.bsmi-crm-message-template > header em.is-success,
.bsmi-crm-message-usage-table .is-success { color: #236545; background: #e5f1ea; }
.bsmi-crm-message-template > header em.is-warning,
.bsmi-crm-message-usage-table .is-warning { color: #755712; background: #f7f0dc; }
.bsmi-crm-message-template > header em.is-danger,
.bsmi-crm-message-usage-table .is-danger { color: #8d3434; background: #f7e8e8; }

.bsmi-crm-message-template-purpose {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-message-template-purpose > span { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-message-template-purpose > span:last-child { border-right: 0; }
.bsmi-crm-message-template-purpose small { display: block; color: var(--bsmi-muted); font-size: 6px; text-transform: uppercase; }
.bsmi-crm-message-template-purpose strong { display: block; margin-top: 3px; font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }
.bsmi-crm-message-template-subject { display: block; margin: 12px 14px 0; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-message-template > p { min-height: 76px; margin: 9px 14px 8px; color: #555b60; font-size: 8px; line-height: 1.55; overflow-wrap: anywhere; }

.bsmi-crm-message-template-vars {
  display: flex;
  min-width: 0;
  margin: 0 14px 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.bsmi-crm-message-template-vars span { padding: 4px 6px; color: #5c5647; background: #f1eee5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 6px; overflow-wrap: anywhere; }
.bsmi-crm-message-template-error { display: grid; margin: 0 14px 10px; padding: 9px 10px; color: #6d4d13; background: #f8f0da; border-left: 3px solid var(--bsmi-amber); gap: 3px; }
.bsmi-crm-message-template-error strong { font-size: 8px; }
.bsmi-crm-message-template-error span { font-size: 7px; line-height: 1.4; }

.bsmi-crm-message-template > footer {
  display: flex;
  min-width: 0;
  margin-top: auto;
  padding: 10px 12px;
  border-top: 1px solid var(--bsmi-line);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsmi-crm-message-template > footer dl { display: grid; grid-template-columns: repeat(3, minmax(44px, 1fr)); min-width: 170px; margin: 0; }
.bsmi-crm-message-template > footer dl > div { min-width: 0; padding: 0 8px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-message-template > footer dl > div:first-child { padding-left: 0; }
.bsmi-crm-message-template > footer dl > div:last-child { border-right: 0; }
.bsmi-crm-message-template > footer dt { color: var(--bsmi-muted); font-size: 6px; text-transform: uppercase; }
.bsmi-crm-message-template > footer dd { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
.bsmi-crm-message-template > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.bsmi-crm-message-template > footer button { min-height: 32px; padding-inline: 9px; font-size: 7px; }

.bsmi-crm-message-gaps {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: 0;
  margin-bottom: 8px;
  color: #fff;
  background: #202326;
  border: 1px solid #2f3337;
}

.bsmi-crm-message-gaps > header { display: flex; padding: 15px; border-right: 1px solid #3b3f43; flex-direction: column; justify-content: center; }
.bsmi-crm-message-gaps h3 { margin: 5px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-message-gaps header > span { color: #bfc3c7; font-size: 7px; }
.bsmi-crm-message-gaps > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; }
.bsmi-crm-message-gaps > div > button { display: flex; min-width: 0; min-height: 82px; padding: 11px; color: #fff; background: transparent; border: 0; border-right: 1px solid #3b3f43; border-radius: 0; text-align: left; flex-direction: column; align-items: flex-start; }
.bsmi-crm-message-gaps > div > button:last-child { border-right: 0; }
.bsmi-crm-message-gaps button strong { max-width: 100%; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-message-gaps button span { max-width: 100%; margin-top: 4px; color: #bfc3c7; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-message-gaps button em { margin-top: auto; color: var(--bsmi-gold); font-size: 7px; font-style: normal; font-weight: 850; text-transform: uppercase; }

.bsmi-crm-message-consent-table table,
.bsmi-crm-message-usage-table table { min-width: 1020px; }
.bsmi-crm-message-consent-table td > strong,
.bsmi-crm-message-usage-table td > strong { display: block; font-size: 9px; }
.bsmi-crm-message-consent-table td > small,
.bsmi-crm-message-usage-table td > small { display: block; max-width: 310px; margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-message-consent-table td > span { display: block; max-width: 330px; color: #555b60; font-size: 8px; line-height: 1.45; }
.bsmi-crm-message-consent-table td > button,
.bsmi-crm-message-usage-table td > button { min-height: 32px; padding: 0; color: #735b27; background: transparent; border: 0; font-size: 9px; font-weight: 800; text-align: left; }

.bsmi-crm-message-providers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-message-providers article { min-width: 0; min-height: 108px; padding: 14px; border-right: 1px solid var(--bsmi-line); border-top: 3px solid #8b9095; }
.bsmi-crm-message-providers article:last-child { border-right: 0; }
.bsmi-crm-message-providers article.is-success { border-top-color: var(--bsmi-green); }
.bsmi-crm-message-providers article.is-warning { border-top-color: var(--bsmi-amber); }
.bsmi-crm-message-providers article.is-danger { border-top-color: #b65353; }
.bsmi-crm-message-providers header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bsmi-crm-message-providers header span { min-width: 0; font-size: 10px; font-weight: 850; }
.bsmi-crm-message-providers header strong { flex: 0 0 auto; padding: 4px 5px; color: #666b70; background: #eceeed; font-size: 6px; text-transform: uppercase; }
.bsmi-crm-message-providers article.is-success header strong { color: #216444; background: #e5f1ea; }
.bsmi-crm-message-providers article.is-warning header strong { color: #795710; background: #f7f0db; }
.bsmi-crm-message-providers article.is-danger header strong { color: #8d3434; background: #f7e8e8; }
.bsmi-crm-message-providers p { margin: 11px 0 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }

.bsmi-crm-message-boundary,
.bsmi-crm-message-form-boundary {
  margin-top: 12px;
  padding: 13px 15px;
  background: #f2efe6;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-message-boundary strong,
.bsmi-crm-message-form-boundary strong { display: block; font-size: 10px; }
.bsmi-crm-message-boundary p,
.bsmi-crm-message-form-boundary p { margin: 4px 0 0; color: #62615a; font-size: 9px; line-height: 1.5; }

.bsmi-crm-message-policy-form { min-width: 0; margin-bottom: 10px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-message-policy-form > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; padding: 14px; gap: 9px; }
.bsmi-crm-message-policy-form label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-message-policy-form label.is-wide { grid-column: 1 / -1; }
.bsmi-crm-message-policy-form label > span:not(.bsmi-crm-message-check span) { margin-bottom: 4px; color: #545a60; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-message-policy-form input:not([type="checkbox"]),
.bsmi-crm-message-policy-form textarea { width: 100%; min-width: 0; }
.bsmi-crm-message-check { display: flex !important; min-height: 62px; padding: 10px; background: #f5f6f6; border: 1px solid var(--bsmi-line); flex-direction: row !important; align-items: flex-start; gap: 8px; }
.bsmi-crm-message-check input { width: 16px !important; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.bsmi-crm-message-check span { min-width: 0; }
.bsmi-crm-message-check strong { display: block; font-size: 8px; }
.bsmi-crm-message-check small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.35; }
.bsmi-crm-message-policy-form > footer { display: flex; min-height: 56px; padding: 10px 14px; border-top: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-message-policy-form > footer span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-message-policy-read { margin-bottom: 10px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-message-policy-read dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.bsmi-crm-message-policy-read dl > div { padding: 13px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-message-policy-read dl > div:last-child { border-right: 0; }

.bsmi-crm-message-guardrails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-message-guardrails article { display: flex; min-width: 0; min-height: 68px; padding: 11px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); flex-direction: column; justify-content: center; gap: 6px; }
.bsmi-crm-message-guardrails article:nth-child(4n) { border-right: 0; }
.bsmi-crm-message-guardrails article:nth-last-child(-n+4) { border-bottom: 0; }
.bsmi-crm-message-guardrails span { align-self: flex-start; padding: 4px 5px; color: #8d3434; background: #f7e8e8; font-size: 6px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-message-guardrails article.is-on span { color: #236545; background: #e5f1ea; }
.bsmi-crm-message-guardrails strong { font-size: 8px; line-height: 1.35; }

.bsmi-crm-message-template-form { min-width: 0; }
.bsmi-crm-message-variable-bank { min-width: 0; padding: 11px; background: #f5f6f6; border: 1px solid var(--bsmi-line); }
.bsmi-crm-message-variable-bank > span { display: block; margin-bottom: 7px; color: #53595f; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-message-variable-bank > div { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.bsmi-crm-message-variable-bank button { min-height: 32px; padding-inline: 8px; color: #5c5647; background: #eeeadd; border-color: #d8d0bb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.bsmi-crm-thread-compose output[data-message-template-selected] { display: block; margin-bottom: 8px; padding: 8px 10px; color: #625634; background: #f1eee5; border-left: 3px solid var(--bsmi-gold); font-size: 8px; font-weight: 800; }

.bsmi-crm-whatsapp-account {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
  min-width: 0;
  margin-bottom: 8px;
  color: #fff;
  background: #17191c;
  border: 1px solid #2e3236;
  border-top: 4px solid #7b8187;
}

.bsmi-crm-whatsapp-account.is-success { border-top-color: var(--bsmi-green); }
.bsmi-crm-whatsapp-account.is-warning { border-top-color: var(--bsmi-gold); }
.bsmi-crm-whatsapp-account.is-danger { border-top-color: var(--bsmi-red); }
.bsmi-crm-whatsapp-account > div { min-width: 0; padding: 20px 22px; }
.bsmi-crm-whatsapp-account > div > small { color: var(--bsmi-gold); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-whatsapp-account h3 { margin: 5px 0 6px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.bsmi-crm-whatsapp-account p { max-width: 650px; margin: 0; color: #c3c7cb; font-size: 8px; line-height: 1.5; }
.bsmi-crm-whatsapp-account dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0; border-left: 1px solid #34383c; }
.bsmi-crm-whatsapp-account dl > div { min-width: 0; padding: 18px 14px; border-right: 1px solid #34383c; }
.bsmi-crm-whatsapp-account dl > div:last-child { border-right: 0; }
.bsmi-crm-whatsapp-account dt { color: #9fa4a9; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-whatsapp-account dd { margin: 6px 0 0; color: #fff; font-size: 9px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }

.bsmi-crm-whatsapp-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-whatsapp-kpis article { min-width: 0; min-height: 76px; margin: 0; padding: 13px 15px; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; box-shadow: none; }
.bsmi-crm-whatsapp-kpis article:last-child { border-right: 0; }
.bsmi-crm-whatsapp-kpis article > span { display: block; color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-whatsapp-kpis article > strong { display: block; margin: 4px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.bsmi-crm-whatsapp-kpis article > small { color: var(--bsmi-muted); font-size: 7px; }

.bsmi-crm-whatsapp-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-whatsapp-checks article { min-width: 0; min-height: 100px; padding: 12px 13px; border-right: 1px solid var(--bsmi-line); border-top: 3px solid #90959a; }
.bsmi-crm-whatsapp-checks article:last-child { border-right: 0; }
.bsmi-crm-whatsapp-checks article.is-success { border-top-color: var(--bsmi-green); }
.bsmi-crm-whatsapp-checks article.is-warning { border-top-color: var(--bsmi-gold); }
.bsmi-crm-whatsapp-checks article.is-danger { border-top-color: var(--bsmi-red); }
.bsmi-crm-whatsapp-checks span,
.bsmi-crm-whatsapp-capabilities span,
.bsmi-crm-whatsapp-windows td > span,
.bsmi-crm-whatsapp-events td > span { display: inline-block; padding: 4px 6px; color: #565b60; background: #eceeed; font-size: 6px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-whatsapp-checks article.is-success > span,
.bsmi-crm-whatsapp-windows .is-success,
.bsmi-crm-whatsapp-events .is-success { color: #236545; background: #e5f1ea; }
.bsmi-crm-whatsapp-checks article.is-warning > span,
.bsmi-crm-whatsapp-windows .is-warning,
.bsmi-crm-whatsapp-events .is-warning { color: #755712; background: #f7f0dc; }
.bsmi-crm-whatsapp-checks article.is-danger > span,
.bsmi-crm-whatsapp-windows .is-danger,
.bsmi-crm-whatsapp-events .is-danger { color: #8d3434; background: #f7e8e8; }
.bsmi-crm-whatsapp-checks strong { display: block; margin-top: 9px; font-size: 9px; line-height: 1.35; }
.bsmi-crm-whatsapp-checks p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }

.bsmi-crm-whatsapp-windows,
.bsmi-crm-whatsapp-events { margin-bottom: 8px; }
.bsmi-crm-whatsapp-windows table { min-width: 960px; }
.bsmi-crm-whatsapp-events table { min-width: 940px; }
.bsmi-crm-whatsapp-windows td > button { min-height: 32px; padding: 0; color: #735b27; background: transparent; border: 0; font-size: 9px; font-weight: 800; text-align: left; }
.bsmi-crm-whatsapp-windows td > small,
.bsmi-crm-whatsapp-events td > small,
.bsmi-crm-whatsapp-events td > strong { display: block; margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-whatsapp-events td:first-child > strong { margin-top: 0; color: var(--bsmi-ink); font-size: 8px; text-transform: capitalize; }

.bsmi-crm-whatsapp-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-whatsapp-capabilities article { display: flex; min-width: 0; min-height: 58px; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); flex-direction: column; justify-content: center; gap: 6px; }
.bsmi-crm-whatsapp-capabilities article:nth-child(3n) { border-right: 0; }
.bsmi-crm-whatsapp-capabilities article:nth-last-child(-n+3) { border-bottom: 0; }
.bsmi-crm-whatsapp-capabilities article.is-on span { align-self: flex-start; color: #236545; background: #e5f1ea; }
.bsmi-crm-whatsapp-capabilities article.is-off span { align-self: flex-start; color: #8d3434; background: #f7e8e8; }
.bsmi-crm-whatsapp-capabilities strong { font-size: 8px; line-height: 1.35; }

.bsmi-crm-whatsapp-window {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr);
  min-width: 0;
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #f4f6f5;
  border-left: 3px solid var(--bsmi-green);
  align-items: center;
  gap: 14px;
}

.bsmi-crm-whatsapp-window.is-closed { background: #f6f2e9; border-left-color: var(--bsmi-gold); }
.bsmi-crm-whatsapp-window span { display: block; color: var(--bsmi-green); font-size: 6px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-whatsapp-window.is-closed span { color: var(--bsmi-gold-dark); }
.bsmi-crm-whatsapp-window strong { display: block; margin-top: 3px; font-size: 8px; }
.bsmi-crm-whatsapp-window p { margin: 0; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }

.bsmi-crm-template-selection { display: flex; min-width: 0; margin-bottom: 8px; align-items: stretch; gap: 6px; }
.bsmi-crm-template-selection output[data-message-template-selected] { min-width: 0; margin: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.bsmi-crm-template-selection button { min-height: 34px; flex: 0 0 auto; }
.bsmi-crm-template-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 7px; }
.bsmi-crm-template-values label { min-width: 0; }
.bsmi-crm-template-values input { width: 100%; min-width: 0; }
.bsmi-crm-sms-metrics { display: block; margin-top: 5px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-sms-metrics.is-warning { color: #795710; }
.bsmi-crm-sms-metrics.is-danger { color: #963e3e; font-weight: 800; }

.bsmi-crm-email-account {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .8fr);
  min-width: 0;
  margin-bottom: 8px;
  color: #fff;
  background: #151719;
  border: 1px solid #303438;
  border-top: 4px solid #7b8187;
}

.bsmi-crm-email-account.is-success { border-top-color: var(--bsmi-green); }
.bsmi-crm-email-account.is-warning { border-top-color: var(--bsmi-gold); }
.bsmi-crm-email-account.is-danger { border-top-color: var(--bsmi-red); }
.bsmi-crm-email-account > div { min-width: 0; padding: 20px 22px; }
.bsmi-crm-email-account > div > small { color: var(--bsmi-gold); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-email-account h3 { margin: 5px 0 6px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.bsmi-crm-email-account p { max-width: 650px; margin: 0; color: #c3c7cb; font-size: 8px; line-height: 1.5; }
.bsmi-crm-email-account code { display: block; max-width: 100%; margin-top: 10px; color: #d9c998; font-size: 7px; line-height: 1.45; overflow-wrap: anywhere; }
.bsmi-crm-email-account dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0; border-left: 1px solid #34383c; }
.bsmi-crm-email-account dl > div { min-width: 0; padding: 18px 14px; border-right: 1px solid #34383c; }
.bsmi-crm-email-account dl > div:last-child { border-right: 0; }
.bsmi-crm-email-account dt { color: #9fa4a9; font-size: 6px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-email-account dd { margin: 6px 0 0; color: #fff; font-size: 9px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }

.bsmi-crm-email-kpis,
.bsmi-crm-email-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-email-kpis article { min-width: 0; min-height: 76px; margin: 0; padding: 13px 15px; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; box-shadow: none; }
.bsmi-crm-email-kpis article:last-child { border-right: 0; }
.bsmi-crm-email-kpis article > span { display: block; color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-email-kpis article > strong { display: block; margin: 4px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.bsmi-crm-email-kpis article > small { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-email-checks article { min-width: 0; min-height: 100px; padding: 12px 13px; border-right: 1px solid var(--bsmi-line); border-top: 3px solid #90959a; }
.bsmi-crm-email-checks article:last-child { border-right: 0; }
.bsmi-crm-email-checks article.is-success { border-top-color: var(--bsmi-green); }
.bsmi-crm-email-checks article.is-warning { border-top-color: var(--bsmi-gold); }
.bsmi-crm-email-checks article.is-danger { border-top-color: var(--bsmi-red); }
.bsmi-crm-email-checks span,
.bsmi-crm-email-capabilities span,
.bsmi-crm-email-threads td > span,
.bsmi-crm-email-events td > span { display: inline-block; padding: 4px 6px; color: #565b60; background: #eceeed; font-size: 6px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-email-checks article.is-success > span,
.bsmi-crm-email-threads .is-success,
.bsmi-crm-email-events .is-success { color: #236545; background: #e5f1ea; }
.bsmi-crm-email-checks article.is-warning > span,
.bsmi-crm-email-threads .is-warning,
.bsmi-crm-email-events .is-warning { color: #755712; background: #f7f0dc; }
.bsmi-crm-email-checks article.is-danger > span,
.bsmi-crm-email-threads .is-danger,
.bsmi-crm-email-events .is-danger { color: #8d3434; background: #f7e8e8; }
.bsmi-crm-email-checks strong { display: block; margin-top: 9px; font-size: 9px; line-height: 1.35; }
.bsmi-crm-email-checks p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }

.bsmi-crm-email-threads,
.bsmi-crm-email-events { margin-bottom: 8px; }
.bsmi-crm-email-threads table { min-width: 1040px; }
.bsmi-crm-email-events table { min-width: 1020px; }
.bsmi-crm-sms-messages table { min-width: 1180px; }
.bsmi-crm-sms-events table { min-width: 1120px; }
.bsmi-crm-email-threads td > button { min-height: 32px; padding: 0; color: #735b27; background: transparent; border: 0; font-size: 9px; font-weight: 800; text-align: left; }
.bsmi-crm-email-threads td > small,
.bsmi-crm-email-threads td > strong,
.bsmi-crm-email-events td > small,
.bsmi-crm-email-events td > strong { display: block; margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-email-events td:first-child > strong { margin-top: 0; color: var(--bsmi-ink); font-size: 8px; text-transform: capitalize; }
.bsmi-crm-email-events td code { display: block; color: #5b5f63; font-size: 7px; line-height: 1.45; overflow-wrap: anywhere; }

.bsmi-crm-email-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-email-capabilities article { display: flex; min-width: 0; min-height: 58px; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); flex-direction: column; justify-content: center; gap: 6px; }
.bsmi-crm-email-capabilities article:nth-child(3n) { border-right: 0; }
.bsmi-crm-email-capabilities article:nth-last-child(-n+3) { border-bottom: 0; }
.bsmi-crm-email-capabilities article.is-on span { align-self: flex-start; color: #236545; background: #e5f1ea; }
.bsmi-crm-email-capabilities article.is-off span { align-self: flex-start; color: #8d3434; background: #f7e8e8; }
.bsmi-crm-email-capabilities strong { font-size: 8px; line-height: 1.35; }

.bsmi-crm-telephony-account { background: #101214; border-color: #2d3135; }
.bsmi-crm-telephony-account > div > small { color: #dcc982; }
.bsmi-crm-telephony-kpis,
.bsmi-crm-telephony-checks,
.bsmi-crm-telephony-events,
.bsmi-crm-telephony-capabilities { min-width: 0; }
.bsmi-crm-telephony-calls table { min-width: 1260px; }
.bsmi-crm-telephony-calls td:last-child > button {
  min-height: 36px;
  padding: 0 10px;
  color: #fff;
  background: #1a1d20;
  border: 1px solid #1a1d20;
  text-align: center;
}
.bsmi-crm-telephony-calls td:last-child > button:hover { color: #1a1d20; background: var(--bsmi-gold); border-color: var(--bsmi-gold); }
.bsmi-crm-call-review-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 12px;
  background: #17191b;
  border-top: 3px solid var(--bsmi-gold);
}
.bsmi-crm-call-review-evidence > div { min-width: 0; padding: 13px 14px; border-right: 1px solid #34383c; }
.bsmi-crm-call-review-evidence > div:last-child { border-right: 0; }
.bsmi-crm-call-review-evidence span { display: block; color: #9fa4a9; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-call-review-evidence strong { display: block; margin-top: 5px; color: #fff; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }

.bsmi-crm-email-handoff {
  display: grid;
  grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr);
  min-width: 0;
  margin: 0 0 8px;
  padding: 10px 12px;
  background: #f3f1ea;
  border-left: 3px solid var(--bsmi-gold);
  align-items: center;
  gap: 14px;
}

.bsmi-crm-email-handoff span { display: block; color: var(--bsmi-gold-dark); font-size: 6px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-email-handoff strong { display: block; margin-top: 3px; font-size: 8px; }
.bsmi-crm-email-handoff p { margin: 0; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }
.bsmi-crm-email-handoff code { color: #5d543b; font-size: inherit; }

@media (max-width: 1180px) {
  .bsmi-crm-message-command { grid-template-columns: 1fr; }
  .bsmi-crm-message-command dl { border-top: 1px solid #33373b; border-left: 0; }
  .bsmi-crm-message-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-message-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-message-template-grid { grid-template-columns: 1fr; }
  .bsmi-crm-message-gaps { grid-template-columns: 1fr; }
  .bsmi-crm-message-gaps > header { border-right: 0; border-bottom: 1px solid #3b3f43; }
  .bsmi-crm-message-policy-form > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-whatsapp-account { grid-template-columns: 1fr; }
  .bsmi-crm-whatsapp-account dl { border-top: 1px solid #34383c; border-left: 0; }
  .bsmi-crm-email-account { grid-template-columns: 1fr; }
  .bsmi-crm-email-account dl { border-top: 1px solid #34383c; border-left: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-training-command { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-training-command button { width: 100%; }
  .bsmi-crm-training-filters { grid-template-columns: 1fr; }
  .bsmi-crm-training-list > article { grid-template-columns: 4px minmax(0, 1fr); gap: 11px; }
  .bsmi-crm-training-list article > dl,
  .bsmi-crm-training-list article > aside,
  .bsmi-crm-training-list article > footer { grid-column: 2; }
  .bsmi-crm-training-list article > footer { justify-content: flex-start; min-width: 0; }
  .bsmi-crm-training-list article > footer button { flex: 1 1 auto; }
  .bsmi-crm-content:has(.bsmi-crm-message-tabs) { padding-inline: 10px; }
  .bsmi-crm-message-command { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-message-command > div { padding: 22px 16px; }
  .bsmi-crm-message-command h2 { font-size: 24px; }
  .bsmi-crm-message-command dl > div { padding: 14px 8px; }
  .bsmi-crm-message-command dd { font-size: 18px; }
  .bsmi-crm-message-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-message-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-message-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-message-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-message-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-message-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-message-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-message-tabs button:last-child { grid-column: auto; border-right: 0; border-bottom: 0; }
  .bsmi-crm-message-view-head,
  .bsmi-crm-message-filters,
  .bsmi-crm-content:has(.bsmi-crm-message-tabs) > .bsmi-crm-section,
  .bsmi-crm-message-providers,
  .bsmi-crm-message-gaps,
  .bsmi-crm-message-policy-form,
  .bsmi-crm-message-policy-read,
  .bsmi-crm-message-guardrails { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-message-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-message-view-head > button { width: 100%; min-height: 44px; }
  .bsmi-crm-message-filters,
  .bsmi-crm-message-filters.is-compact { grid-template-columns: 1fr; }
  .bsmi-crm-message-filters .is-search { grid-column: auto; }
  .bsmi-crm-message-filters input,
  .bsmi-crm-message-filters select { min-height: 44px; }
  .bsmi-crm-message-template-grid { margin-inline: -10px; }
  .bsmi-crm-message-template { min-height: 0; border-right: 0; border-radius: 0; }
  .bsmi-crm-message-template-purpose { grid-template-columns: 1fr; }
  .bsmi-crm-message-template-purpose > span { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-message-template-purpose > span:last-child { border-bottom: 0; }
  .bsmi-crm-message-template > p { min-height: 0; }
  .bsmi-crm-message-template > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-message-template > footer dl { width: 100%; }
  .bsmi-crm-message-template > footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-message-template > footer button { min-height: 44px; }
  .bsmi-crm-message-gaps > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-message-gaps > div > button { min-height: 88px; border-bottom: 1px solid #3b3f43; }
  .bsmi-crm-message-gaps > div > button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-message-consent-table table,
  .bsmi-crm-message-consent-table tbody,
  .bsmi-crm-message-usage-table table,
  .bsmi-crm-message-usage-table tbody { display: block; min-width: 0; }
  .bsmi-crm-message-consent-table thead,
  .bsmi-crm-message-usage-table thead { display: none; }
  .bsmi-crm-message-consent-table tr,
  .bsmi-crm-message-usage-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-message-consent-table td,
  .bsmi-crm-message-usage-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-message-consent-table td::before,
  .bsmi-crm-message-usage-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-message-consent-table td:first-child,
  .bsmi-crm-message-consent-table td:nth-child(4),
  .bsmi-crm-message-consent-table td:last-child,
  .bsmi-crm-message-usage-table td:first-child,
  .bsmi-crm-message-usage-table td:nth-child(5) { grid-column: 1 / -1; }
  .bsmi-crm-message-consent-table td > button,
  .bsmi-crm-message-usage-table td > button { min-height: 44px; }
  .bsmi-crm-message-providers { grid-template-columns: 1fr; }
  .bsmi-crm-message-providers article { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-message-providers article:last-child { border-bottom: 0; }
  .bsmi-crm-message-policy-form > div,
  .bsmi-crm-message-policy-read dl,
  .bsmi-crm-message-guardrails { grid-template-columns: 1fr; }
  .bsmi-crm-message-policy-form label.is-wide { grid-column: auto; }
  .bsmi-crm-message-policy-form input:not([type="checkbox"]),
  .bsmi-crm-message-policy-form textarea,
  .bsmi-crm-message-policy-form button { min-height: 44px; }
  .bsmi-crm-message-policy-form > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-message-policy-read dl > div,
  .bsmi-crm-message-guardrails article { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-message-guardrails article:last-child { border-bottom: 0; }
  .bsmi-crm-message-variable-bank button,
  .bsmi-crm-message-template-form input:not([type="checkbox"]),
  .bsmi-crm-message-template-form select,
  .bsmi-crm-message-template-form textarea,
  .bsmi-crm-message-template-form button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-message-template-form),
  .bsmi-crm-drawer:has(.bsmi-crm-message-form-boundary) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-whatsapp-account,
  .bsmi-crm-whatsapp-kpis,
  .bsmi-crm-whatsapp-checks,
  .bsmi-crm-whatsapp-capabilities { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-whatsapp-account > div { padding: 17px 15px; }
  .bsmi-crm-whatsapp-account h3 { font-size: 21px; }
  .bsmi-crm-whatsapp-account dl { grid-template-columns: 1fr; }
  .bsmi-crm-whatsapp-account dl > div { padding: 11px 15px; border-right: 0; border-bottom: 1px solid #34383c; }
  .bsmi-crm-whatsapp-account dl > div:last-child { border-bottom: 0; }
  .bsmi-crm-whatsapp-kpis,
  .bsmi-crm-whatsapp-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-whatsapp-kpis article:nth-child(2n),
  .bsmi-crm-whatsapp-checks article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-whatsapp-kpis article:nth-child(-n+2),
  .bsmi-crm-whatsapp-checks article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-whatsapp-windows table,
  .bsmi-crm-whatsapp-windows tbody,
  .bsmi-crm-whatsapp-events table,
  .bsmi-crm-whatsapp-events tbody { display: block; min-width: 0; }
  .bsmi-crm-whatsapp-windows thead,
  .bsmi-crm-whatsapp-events thead { display: none; }
  .bsmi-crm-whatsapp-windows tr,
  .bsmi-crm-whatsapp-events tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-whatsapp-windows td,
  .bsmi-crm-whatsapp-events td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-whatsapp-windows td::before,
  .bsmi-crm-whatsapp-events td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-whatsapp-windows td:first-child,
  .bsmi-crm-whatsapp-events td:first-child,
  .bsmi-crm-whatsapp-events td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-whatsapp-windows td > button { min-height: 44px; }
  .bsmi-crm-whatsapp-capabilities { grid-template-columns: 1fr; }
  .bsmi-crm-whatsapp-capabilities article,
  .bsmi-crm-whatsapp-capabilities article:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-whatsapp-capabilities article:last-child { border-bottom: 0; }
  .bsmi-crm-whatsapp-window { grid-template-columns: 1fr; gap: 5px; }
  .bsmi-crm-email-account,
  .bsmi-crm-email-kpis,
  .bsmi-crm-email-checks,
  .bsmi-crm-email-capabilities { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-email-account > div { padding: 17px 15px; }
  .bsmi-crm-email-account h3 { font-size: 21px; }
  .bsmi-crm-email-account dl { grid-template-columns: 1fr; }
  .bsmi-crm-email-account dl > div { padding: 11px 15px; border-right: 0; border-bottom: 1px solid #34383c; }
  .bsmi-crm-email-account dl > div:last-child { border-bottom: 0; }
  .bsmi-crm-email-kpis,
  .bsmi-crm-email-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-email-kpis article:nth-child(2n),
  .bsmi-crm-email-checks article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-email-kpis article:nth-child(-n+2),
  .bsmi-crm-email-checks article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-email-threads table,
  .bsmi-crm-email-threads tbody,
  .bsmi-crm-email-events table,
  .bsmi-crm-email-events tbody { display: block; min-width: 0; }
  .bsmi-crm-email-threads thead,
  .bsmi-crm-email-events thead { display: none; }
  .bsmi-crm-email-threads tr,
  .bsmi-crm-email-events tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-email-threads td,
  .bsmi-crm-email-events td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-email-threads td::before,
  .bsmi-crm-email-events td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-email-threads td:first-child,
  .bsmi-crm-email-events td:first-child,
  .bsmi-crm-email-events td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-email-threads td > button { min-height: 44px; }
  .bsmi-crm-telephony-calls td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-telephony-calls td:last-child > button { width: 100%; min-height: 44px; }
  .bsmi-crm-email-capabilities { grid-template-columns: 1fr; }
  .bsmi-crm-email-capabilities article,
  .bsmi-crm-email-capabilities article:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-email-capabilities article:last-child { border-bottom: 0; }
  .bsmi-crm-call-review-evidence { grid-template-columns: 1fr; }
  .bsmi-crm-call-review-evidence > div { border-right: 0; border-bottom: 1px solid #34383c; }
  .bsmi-crm-call-review-evidence > div:last-child { border-bottom: 0; }
  .bsmi-crm-email-handoff { grid-template-columns: 1fr; gap: 5px; }
  .bsmi-crm-template-selection { flex-direction: column; }
  .bsmi-crm-template-selection button,
  .bsmi-crm-template-values input { min-height: 44px; }
  .bsmi-crm-template-values { grid-template-columns: 1fr; }
}

html.bsmi-crm-drawer-open,
html.bsmi-crm-drawer-open body {
  overflow: hidden;
}

.bsmi-platform-body.bsmi-crm-body,
.bsmi-platform-body.bsmi-crm-body * {
  box-sizing: border-box;
}

.bsmi-platform-body.bsmi-crm-body {
  margin: 0;
  background: var(--bsmi-canvas);
  color: var(--bsmi-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.bsmi-crm-app [hidden] {
  display: none !important;
}

.bsmi-crm-app button,
.bsmi-crm-app input,
.bsmi-crm-app select,
.bsmi-crm-app textarea,
.bsmi-crm-login-shell input,
.bsmi-crm-login-shell button {
  font: inherit;
  letter-spacing: 0;
}

.bsmi-crm-app button,
.bsmi-crm-app a,
.bsmi-crm-login-shell button,
.bsmi-crm-login-shell a {
  -webkit-tap-highlight-color: transparent;
}

.bsmi-crm-app button:focus-visible,
.bsmi-crm-app a:focus-visible,
.bsmi-crm-app input:focus-visible,
.bsmi-crm-app select:focus-visible,
.bsmi-crm-app textarea:focus-visible,
.bsmi-crm-login-shell input:focus-visible,
.bsmi-crm-login-shell button:focus-visible,
.bsmi-crm-login-shell a:focus-visible {
  outline: 3px solid rgba(184, 154, 91, 0.3);
  outline-offset: 2px;
}

.bsmi-crm-app {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100svh;
  background: var(--bsmi-canvas);
}

.bsmi-crm-sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow: hidden;
  color: #fff;
  background: var(--bsmi-black);
  border-right: 1px solid #202225;
}

.bsmi-crm-brand,
.bsmi-crm-login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.bsmi-crm-brand {
  min-height: 76px;
  padding: 15px 18px;
  border-bottom: 1px solid #25272b;
}

.bsmi-crm-brand img,
.bsmi-crm-login-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}

.bsmi-crm-brand span,
.bsmi-crm-login-brand span {
  display: grid;
  min-width: 0;
}

.bsmi-crm-brand strong,
.bsmi-crm-login-brand strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.bsmi-crm-brand small,
.bsmi-crm-login-brand small {
  margin-top: 3px;
  color: var(--bsmi-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.bsmi-crm-sidebar nav {
  display: grid;
  gap: 2px;
  padding: 14px 10px;
  overflow-y: auto;
}

.bsmi-crm-sidebar nav button,
.bsmi-crm-sidebar-footer button,
.bsmi-crm-sidebar-footer a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px 8px 17px;
  color: #c7c9ce;
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  justify-content: flex-start;
}

.bsmi-crm-sidebar .bsmi-crm-sidebar-footer button {
  color: #c7c9ce;
  background: transparent;
  border: 0;
}

.bsmi-crm-sidebar nav button::before,
.bsmi-crm-sidebar-footer button::before,
.bsmi-crm-sidebar-footer a::before {
  position: absolute;
  left: 7px;
  width: 3px;
  height: 3px;
  content: "";
  background: #6e7279;
  border-radius: 50%;
}

.bsmi-crm-sidebar nav button:hover,
.bsmi-crm-sidebar-footer button:hover,
.bsmi-crm-sidebar-footer a:hover {
  color: #fff;
  background: #1c1e21;
}

.bsmi-crm-sidebar nav button.is-active {
  color: #fff;
  font-weight: 700;
  background: #222326;
  box-shadow: inset 3px 0 var(--bsmi-gold);
}

.bsmi-crm-sidebar nav button.is-active::before {
  background: var(--bsmi-gold);
}

.bsmi-crm-sidebar-footer {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 12px 10px;
  border-top: 1px solid #25272b;
}

.bsmi-crm-workspace {
  min-width: 0;
}

.bsmi-crm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(240px, 520px) auto auto;
  align-items: center;
  justify-content: end;
  gap: 12px;
  min-height: 68px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-app .bsmi-crm-menu {
  display: none;
}

.bsmi-crm-global-search {
  position: relative;
  display: block;
  justify-self: stretch;
}

.bsmi-crm-global-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.bsmi-crm-global-search::before {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid #7b8088;
  border-radius: 50%;
  transform: translateY(-62%);
}

.bsmi-crm-global-search::after {
  position: absolute;
  top: calc(50% + 5px);
  left: 26px;
  z-index: 1;
  width: 7px;
  height: 2px;
  content: "";
  background: #7b8088;
  transform: rotate(45deg);
  transform-origin: left center;
}

.bsmi-crm-global-search input,
.bsmi-crm-filterbar select,
.bsmi-crm-property-tools input,
.bsmi-crm-property-tools select,
.bsmi-crm-form input,
.bsmi-crm-form select,
.bsmi-crm-form textarea,
.bsmi-crm-upload-form input,
.bsmi-crm-upload-form select,
.bsmi-crm-integration-panel input,
.bsmi-crm-integration-panel select,
.bsmi-crm-routing-rule input,
.bsmi-crm-routing-rule select,
.bsmi-crm-wide-field textarea,
.bsmi-crm-drawer-band input,
.bsmi-crm-drawer-band textarea,
.bsmi-crm-login-shell input[type="text"],
.bsmi-crm-login-shell input[type="password"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--bsmi-ink);
  background: #fff;
  border: 1px solid #cfd2d7;
  border-radius: 4px;
}

.bsmi-crm-global-search input {
  min-height: 42px;
  padding-left: 38px;
  background-color: #f6f7f8;
}

.bsmi-crm-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 160px;
}

.bsmi-crm-user img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

.bsmi-crm-user span {
  display: grid;
  min-width: 0;
}

.bsmi-crm-user strong,
.bsmi-crm-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-user strong {
  font-size: 13px;
}

.bsmi-crm-user small {
  margin-top: 2px;
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-content {
  width: 100%;
  min-width: 0;
  padding: 24px;
}

.bsmi-crm-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  margin-bottom: 18px;
}

.bsmi-crm-page-head h1,
.bsmi-crm-page-head p,
.bsmi-crm-section-head h2,
.bsmi-crm-section-head p {
  margin: 0;
}

.bsmi-crm-page-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.bsmi-crm-page-head p {
  margin-top: 4px;
  color: var(--bsmi-muted);
  font-size: 12px;
}

.bsmi-crm-page-head > div:last-child,
.bsmi-crm-form-actions,
.bsmi-crm-drawer-actions,
.bsmi-crm-row-actions,
.bsmi-crm-property-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bsmi-crm-app button,
.bsmi-crm-button,
.bsmi-crm-page-head a,
.bsmi-crm-property-actions a,
.bsmi-crm-drawer-actions a,
.bsmi-crm-drawer-band button,
.bsmi-crm-drawer-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  color: #25282d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #cfd2d7;
  border-radius: 4px;
  cursor: pointer;
}

.bsmi-crm-app button:hover,
.bsmi-crm-button:hover,
.bsmi-crm-page-head a:hover,
.bsmi-crm-property-actions a:hover {
  color: var(--bsmi-black);
  border-color: #9fa4ab;
  background: #f7f7f7;
}

.bsmi-crm-app .bsmi-crm-primary,
.bsmi-crm-login-shell input[type="submit"] {
  color: #0b0c0e;
  background: var(--bsmi-gold);
  border-color: var(--bsmi-gold);
}

.bsmi-crm-app .bsmi-crm-primary:hover,
.bsmi-crm-login-shell input[type="submit"]:hover {
  color: #fff;
  background: var(--bsmi-gold-dark);
  border-color: var(--bsmi-gold-dark);
}

.bsmi-crm-app button:disabled,
.bsmi-crm-app input:disabled,
.bsmi-crm-app select:disabled,
.bsmi-crm-app textarea:disabled {
  cursor: wait;
  opacity: 0.58;
}

.bsmi-crm-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bsmi-crm-kpis article {
  display: grid;
  min-height: 112px;
  padding: 16px;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-kpis article:first-child {
  border-top-color: var(--bsmi-gold);
  border-top-width: 3px;
}

.bsmi-crm-kpis span,
.bsmi-crm-kpis small {
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-kpis strong {
  align-self: center;
  font-size: 23px;
  line-height: 1.1;
}

.bsmi-crm-overview-grid,
.bsmi-crm-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.bsmi-crm-dashboard-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.bsmi-crm-dashboard-widget {
  min-width: 0;
  margin-bottom: 0;
}

.bsmi-crm-dashboard-widget.is-wide {
  grid-column: 1 / -1;
}

.bsmi-crm-dashboard-viewings,
.bsmi-crm-dashboard-widget-picker {
  display: grid;
  gap: 9px;
}

.bsmi-crm-dashboard-viewings > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 0;
  color: var(--bsmi-text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bsmi-line);
  border-radius: 0;
}

.bsmi-crm-dashboard-viewings > button:last-child { border-bottom: 0; }
.bsmi-crm-dashboard-viewings span { min-width: 0; }
.bsmi-crm-dashboard-viewings strong,
.bsmi-crm-dashboard-viewings small { display: block; }
.bsmi-crm-dashboard-viewings small,
.bsmi-crm-dashboard-viewings time { color: var(--bsmi-muted); font-size: 11px; }
.bsmi-crm-dashboard-viewings time { flex: 0 0 auto; text-align: right; }

.bsmi-crm-dashboard-widget-picker > label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 76px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-dashboard-widget-picker input { margin: 0; }
.bsmi-crm-dashboard-widget-picker span { min-width: 0; }
.bsmi-crm-dashboard-widget-picker strong,
.bsmi-crm-dashboard-widget-picker small { display: block; }
.bsmi-crm-dashboard-widget-picker small { margin-top: 3px; color: var(--bsmi-muted); font-size: 11px; line-height: 1.4; }
.bsmi-crm-dashboard-widget-picker select { width: 76px; }

.bsmi-crm-approval-command {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr);
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px;
  color: #f7f7f4;
  background: #141715;
  border-top: 3px solid var(--bsmi-gold);
}

.bsmi-crm-approval-command small { color: #c9b77c; font-size: 10px; font-weight: 800; }
.bsmi-crm-approval-command h2 { margin: 7px 0; color: #fff; font-size: 22px; }
.bsmi-crm-approval-command p { max-width: 760px; margin: 0; color: #bac3bf; line-height: 1.55; }
.bsmi-crm-approval-command dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #343936; }
.bsmi-crm-approval-command dl > div { padding: 13px; background: #202522; }
.bsmi-crm-approval-command dt { color: #9ea9a4; font-size: 10px; text-transform: uppercase; }
.bsmi-crm-approval-command dd { margin: 4px 0 0; color: #fff; font-size: 19px; font-weight: 750; }

.bsmi-crm-approval-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-approval-filters label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-approval-filters label > span { color: var(--bsmi-muted); font-size: 10px; font-weight: 700; }
.bsmi-crm-approval-filters > strong { padding: 11px 4px; white-space: nowrap; }
.bsmi-crm-approval-list { display: grid; gap: 9px; }
.bsmi-crm-approval-list > article {
  position: relative;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) minmax(190px, 0.32fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-approval-list > article > i { align-self: stretch; background: #648176; }
.bsmi-crm-approval-list > article.is-due-soon > i { background: #b58f2c; }
.bsmi-crm-approval-list > article.is-overdue > i { background: #a24640; }
.bsmi-crm-approval-main { min-width: 0; }
.bsmi-crm-approval-main header { display: flex; gap: 10px; align-items: center; }
.bsmi-crm-approval-main header span { color: #31584b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-approval-main header em { color: var(--bsmi-muted); font-size: 10px; font-style: normal; }
.bsmi-crm-approval-main h3 { margin: 5px 0 2px; font-size: 15px; }
.bsmi-crm-approval-main > strong { color: var(--bsmi-muted); font-size: 11px; }
.bsmi-crm-approval-main p { margin: 7px 0 0; line-height: 1.4; }
.bsmi-crm-approval-list article > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.bsmi-crm-approval-list article > dl div { min-width: 0; }
.bsmi-crm-approval-list dt { color: var(--bsmi-muted); font-size: 9px; text-transform: uppercase; }
.bsmi-crm-approval-list dd { margin: 3px 0 0; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.bsmi-crm-approval-list footer { min-width: 130px; text-align: right; }

.bsmi-crm-section {
  min-width: 0;
  margin-bottom: 16px;
  padding: 18px;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-section.is-flush {
  padding: 0;
  overflow: hidden;
}

.bsmi-crm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.bsmi-crm-section-head h2 {
  font-size: 15px;
}

.bsmi-crm-section-head p {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-bars,
.bsmi-crm-source-bars {
  display: grid;
  gap: 13px;
}

.bsmi-crm-bars > div > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
}

.bsmi-crm-bars i,
.bsmi-crm-source-bars i {
  display: block;
  height: 6px;
  overflow: hidden;
  background: #eceef0;
  border-radius: 2px;
}

.bsmi-crm-bars em,
.bsmi-crm-source-bars em {
  display: block;
  height: 100%;
  background: var(--bsmi-gold);
}

.bsmi-crm-source-bars > div {
  display: grid;
  grid-template-columns: 120px minmax(80px, 1fr) 28px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.bsmi-crm-filterbar,
.bsmi-crm-property-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-filterbar label,
.bsmi-crm-property-tools label,
.bsmi-crm-upload-form label,
.bsmi-crm-form label,
.bsmi-crm-integration-panel label,
.bsmi-crm-wide-field {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.bsmi-crm-filterbar label span,
.bsmi-crm-property-tools label span,
.bsmi-crm-upload-form label span,
.bsmi-crm-form label span,
.bsmi-crm-integration-panel label span,
.bsmi-crm-wide-field > span {
  color: #555b64;
  font-size: 11px;
  font-weight: 700;
}

.bsmi-crm-filterbar > span {
  margin: 0 0 10px auto;
  color: var(--bsmi-muted);
  font-size: 12px;
}

.bsmi-crm-lead-control-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bsmi-crm-app .bsmi-crm-lead-control-kpis > button {
  display: grid;
  min-width: 0;
  min-height: 92px;
  padding: 13px 14px;
  color: var(--bsmi-ink);
  text-align: left;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-app .bsmi-crm-lead-control-kpis > button:hover,
.bsmi-crm-app .bsmi-crm-lead-control-kpis > button.is-active {
  color: var(--bsmi-ink);
  background: #fbfaf7;
  border-color: var(--bsmi-gold);
}

.bsmi-crm-lead-control-kpis span,
.bsmi-crm-lead-control-kpis small {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-lead-control-kpis strong {
  align-self: center;
  font-size: 24px;
  line-height: 1;
}

.bsmi-crm-lead-viewbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 11px 12px;
  background: #101318;
  border: 1px solid #20242b;
  border-radius: 5px;
}

.bsmi-crm-lead-viewbar label {
  display: grid;
  flex: 1 1 280px;
  max-width: 420px;
  gap: 5px;
}

.bsmi-crm-lead-viewbar label span {
  color: #c9cbd0;
  font-size: 10px;
  font-weight: 700;
}

.bsmi-crm-lead-viewbar select {
  color: #fff;
  background: #1a1e24;
  border-color: #383d46;
}

.bsmi-crm-lead-viewbar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.bsmi-crm-app .bsmi-crm-lead-viewbar button {
  color: #fff;
  background: transparent;
  border-color: #474c55;
}

.bsmi-crm-app .bsmi-crm-lead-viewbar button:hover {
  color: #111;
  background: var(--bsmi-gold);
  border-color: var(--bsmi-gold);
}

.bsmi-crm-lead-filters label {
  flex: 1 1 150px;
}

.bsmi-crm-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bsmi-crm-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  table-layout: auto;
}

.bsmi-crm-table th,
.bsmi-crm-table td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-table th {
  color: #606771;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  background: #f7f8f8;
}

.bsmi-crm-table td {
  color: #393d43;
  font-size: 12px;
}

.bsmi-crm-table tbody tr:hover {
  background: #fbfaf7;
}

.bsmi-crm-table tbody tr:last-child td {
  border-bottom: 0;
}

.bsmi-crm-lead-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
  cursor: pointer;
}

.bsmi-crm-lead-cell > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bsmi-crm-lead-cell small {
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-lead-signal {
  display: grid;
  min-width: 116px;
  gap: 2px;
  padding-left: 9px;
  border-left: 3px solid #8a9098;
}

.bsmi-crm-lead-signal strong {
  font-size: 10px;
  line-height: 1.2;
}

.bsmi-crm-lead-signal small {
  color: var(--bsmi-muted);
  font-size: 9px;
  line-height: 1.25;
}

.bsmi-crm-lead-signal.is-critical { border-color: var(--bsmi-red); }
.bsmi-crm-lead-signal.is-warning { border-color: var(--bsmi-amber); }
.bsmi-crm-lead-signal.is-attention { border-color: var(--bsmi-gold-dark); }
.bsmi-crm-lead-signal.is-positive { border-color: var(--bsmi-green); }

.bsmi-crm-lead-protection-hero {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(280px, 1.35fr);
  gap: 18px;
  padding: 17px 20px;
  color: #fff;
  background: #101318;
  border-left: 4px solid #8a9098;
}

.bsmi-crm-lead-protection-hero.is-critical { border-left-color: var(--bsmi-red); }
.bsmi-crm-lead-protection-hero.is-warning { border-left-color: var(--bsmi-amber); }
.bsmi-crm-lead-protection-hero.is-attention { border-left-color: var(--bsmi-gold); }
.bsmi-crm-lead-protection-hero.is-positive { border-left-color: var(--bsmi-green); }

.bsmi-crm-lead-protection-hero > div {
  display: grid;
  gap: 4px;
}

.bsmi-crm-lead-protection-hero > div span,
.bsmi-crm-lead-protection-hero > div small {
  color: #aeb3bc;
  font-size: 10px;
}

.bsmi-crm-lead-protection-hero > div strong {
  align-self: center;
  font-size: 20px;
}

.bsmi-crm-lead-protection-hero dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  margin: 0;
}

.bsmi-crm-lead-protection-hero dl > div {
  display: grid;
  gap: 3px;
  padding: 0 14px;
  border-left: 1px solid #353a43;
}

.bsmi-crm-lead-protection-hero dt {
  color: #aeb3bc;
  font-size: 9px;
}

.bsmi-crm-lead-protection-hero dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 10px;
  font-weight: 700;
}

.bsmi-crm-stage,
.bsmi-crm-status,
.bsmi-crm-record-kind,
.bsmi-crm-integration-panel header span,
.bsmi-crm-conversations > article > span,
.bsmi-crm-log > div > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  color: #4f535a;
  font-size: 10px;
  font-weight: 750;
  background: #edf0f2;
  border-radius: 3px;
}

.bsmi-crm-temperature {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #8a9098;
  border-radius: 50%;
}

.bsmi-crm-temperature.is-hot { background: var(--bsmi-red); }
.bsmi-crm-temperature.is-warm { background: var(--bsmi-amber); }
.bsmi-crm-temperature.is-cold { background: var(--bsmi-blue); }

.bsmi-crm-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  min-height: 20px;
  margin-left: 5px;
  padding: 2px 5px;
  color: #4d535c;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  background: #edf0f2;
  border: 1px solid #d9dde1;
  border-radius: 3px;
}

.bsmi-crm-score.is-a { color: #0e6748; background: #e7f4ed; border-color: #c7e6d6; }
.bsmi-crm-score.is-b { color: #765813; background: #f8f1df; border-color: #e9d8a9; }
.bsmi-crm-score.is-c { color: #3d5f86; background: #e8f0f8; border-color: #cadbea; }
.bsmi-crm-score.is-d { color: #7b3f42; background: #f8e9ea; border-color: #eacdd0; }

.bsmi-crm-pipeline-card .bsmi-crm-score {
  margin-left: auto;
}

.bsmi-crm-row-actions {
  flex-wrap: nowrap;
}

.bsmi-crm-row-actions button {
  min-height: 29px;
  padding: 5px 8px;
  font-size: 11px;
}

.bsmi-crm-offer-kpis {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.bsmi-crm-offer-stages {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.bsmi-crm-offer-stages article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  min-height: 78px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #aeb3ba;
  border-radius: 5px;
}

.bsmi-crm-offer-stages article.is-submitted { border-top-color: var(--bsmi-blue); }
.bsmi-crm-offer-stages article.is-countered { border-top-color: var(--bsmi-amber); }
.bsmi-crm-offer-stages article.is-accepted { border-top-color: var(--bsmi-green); }
.bsmi-crm-offer-stages article.is-rejected,
.bsmi-crm-offer-stages article.is-expired { border-top-color: var(--bsmi-red); }

.bsmi-crm-offer-stages span {
  overflow: hidden;
  color: var(--bsmi-muted);
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-offer-stages strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 22px;
}

.bsmi-crm-offer-stages small {
  overflow: hidden;
  color: #454a51;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-offers-table {
  min-width: 1120px;
}

.bsmi-crm-cell-note {
  display: block;
  max-width: 180px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--bsmi-muted);
  font-size: 10px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-offer-deadline {
  color: #42474e;
  font-size: 11px;
  white-space: nowrap;
}

.bsmi-crm-offer-deadline.is-urgent { color: var(--bsmi-amber); font-weight: 750; }
.bsmi-crm-offer-deadline.is-expired { color: var(--bsmi-red); font-weight: 750; }

.bsmi-crm-app .bsmi-crm-offer-actions .is-accept {
  color: #fff;
  background: var(--bsmi-green);
  border-color: var(--bsmi-green);
}

.bsmi-crm-kanban {
  display: grid;
  grid-auto-columns: 284px;
  grid-auto-flow: column;
  gap: 12px;
  width: calc(100vw - 284px);
  min-height: calc(100svh - 164px);
  padding-bottom: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.bsmi-crm-kanban-column {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 560px;
  overflow: hidden;
  background: #edeff1;
  border: 1px solid #dfe2e5;
  border-radius: 5px;
  scroll-snap-align: start;
}

.bsmi-crm-kanban-column.is-dragover {
  border-color: var(--bsmi-gold);
  box-shadow: inset 0 0 0 2px rgba(184, 154, 91, 0.25);
}

.bsmi-crm-kanban-column > header {
  display: grid;
  gap: 6px;
  padding: 13px;
  background: #fff;
  border-bottom: 1px solid #dfe2e5;
}

.bsmi-crm-kanban-column > header span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.bsmi-crm-kanban-column > header b {
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
  background: #eef0f1;
  border-radius: 3px;
}

.bsmi-crm-kanban-column > header small {
  color: var(--bsmi-muted);
}

.bsmi-crm-kanban-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 9px;
}

.bsmi-crm-pipeline-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dadddf;
  border-radius: 4px;
  cursor: grab;
}

.bsmi-crm-pipeline-card:active {
  cursor: grabbing;
}

.bsmi-crm-pipeline-card > div,
.bsmi-crm-pipeline-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bsmi-crm-pipeline-card > div {
  justify-content: flex-start;
}

.bsmi-crm-pipeline-card p {
  min-height: 32px;
  margin: 0;
  color: #5f6570;
  font-size: 11px;
  line-height: 1.45;
}

.bsmi-crm-pipeline-card small {
  color: var(--bsmi-muted);
}

.bsmi-crm-opportunity-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  padding: 4px;
  overflow-x: auto;
  background: var(--bsmi-black);
  border: 1px solid #24262a;
  border-radius: 5px;
  scrollbar-width: thin;
}

.bsmi-crm-opportunity-tabs button {
  display: inline-flex;
  flex: 1 0 max-content;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 9px 12px;
  color: #c7c9cd;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
}

.bsmi-crm-opportunity-tabs button:hover { color: #fff; background: #191b1f; }
.bsmi-crm-opportunity-tabs button.is-active { color: #fff; background: #24262a; border-color: #3b3932; box-shadow: inset 0 -2px 0 var(--bsmi-gold); }
.bsmi-crm-opportunity-tabs button span { font-size: 11px; font-weight: 750; }
.bsmi-crm-opportunity-tabs button b { min-width: 22px; padding: 2px 6px; color: var(--bsmi-gold); font-size: 10px; text-align: center; background: #111214; border-radius: 3px; }

.bsmi-crm-opportunity-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-opportunity-kpis article { display: grid; gap: 6px; min-width: 0; padding: 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-opportunity-kpis article:last-child { border-right: 0; }
.bsmi-crm-opportunity-kpis span { color: var(--bsmi-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-opportunity-kpis strong { overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-opportunity-kpis small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-opportunity-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.bsmi-crm-opportunity-queues { display: flex; gap: 5px; min-width: 0; overflow-x: auto; }
.bsmi-crm-opportunity-queues button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 10px; color: var(--bsmi-muted); background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-opportunity-queues button.is-active { color: var(--bsmi-black); border-color: var(--bsmi-gold); box-shadow: inset 0 -2px 0 var(--bsmi-gold); }
.bsmi-crm-opportunity-queues button b { min-width: 20px; padding: 1px 5px; font-size: 9px; text-align: center; background: #eef0f1; border-radius: 3px; }
.bsmi-crm-opportunity-controls > label { display: grid; flex: 0 0 210px; gap: 5px; }
.bsmi-crm-opportunity-controls > label span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-opportunity-controls select { min-height: 38px; padding: 7px 30px 7px 10px; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }

.bsmi-crm-opportunity-board { grid-auto-columns: 304px; min-height: calc(100svh - 350px); }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column { min-height: 470px; background: #f0f1f2; border-color: #d9dcdf; }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column.is-won { background: #edf5f1; border-color: #c9ddd3; }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column.is-lost,
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column.is-cancelled { background: #f4eeee; border-color: #e1cccc; }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column > header { min-height: 72px; padding: 12px 13px; }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column > header strong { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11px; }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column > header strong i { padding: 2px 5px; color: var(--bsmi-gold-dark); font-size: 7px; font-style: normal; text-transform: uppercase; background: #f4ecd9; border: 1px solid #dfcda2; border-radius: 2px; }
.bsmi-crm-opportunity-board .bsmi-crm-kanban-column > header small { font-size: 9px; }

.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card { gap: 10px; padding: 12px; cursor: pointer; border-left: 3px solid #c9cdd1; box-shadow: 0 3px 10px rgba(11, 12, 14, 0.05); }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card[draggable="true"] { cursor: grab; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card[draggable="true"]:active { cursor: grabbing; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card.is-stalled { border-left-color: var(--bsmi-amber); }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card.is-closed { border-left-color: var(--bsmi-green); }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card header { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card header strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card header em { padding: 3px 5px; color: var(--bsmi-gold-dark); font-size: 9px; font-style: normal; font-weight: 800; background: #f4ecd9; border-radius: 3px; }
.bsmi-crm-pipeline-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.bsmi-crm-pipeline-badges span { padding: 3px 5px; color: #5e646d; font-size: 8px; font-weight: 700; background: #eef0f1; border-radius: 2px; }
.bsmi-crm-pipeline-badges span.is-stalled,
.bsmi-crm-pipeline-badges span.is-rejected { color: #7c4e08; background: #f9ebce; }
.bsmi-crm-pipeline-badges span.is-pending { color: #6a5525; background: #f4ecd9; }
.bsmi-crm-pipeline-badges span.is-approved { color: #1d6244; background: #e2f0e9; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card > p { min-height: 30px; font-size: 10px; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin: 0; padding: 9px 0; border-block: 1px solid #eceef0; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card dl div { min-width: 0; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card dt { color: var(--bsmi-muted); font-size: 7px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card dd { margin: 3px 0 0; overflow: hidden; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer > small { min-width: 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer > div { display: flex; gap: 4px; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer button { min-height: 32px; padding: 5px 8px; color: var(--bsmi-black); font-size: 9px; font-weight: 750; background: #fff; border: 1px solid #cfd3d7; border-radius: 3px; }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer button:hover { border-color: var(--bsmi-gold); }
.bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer button.is-approve { color: #fff; background: var(--bsmi-green); border-color: var(--bsmi-green); }
.bsmi-crm-pipeline-empty { margin: 18px 8px; color: #8a9098; font-size: 9px; text-align: center; }

.bsmi-crm-governance-note { padding: 12px 14px; background: #f6f2e8; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-governance-note strong { display: block; margin-bottom: 4px; font-size: 10px; }
.bsmi-crm-governance-note p { margin: 0; color: #665d49; font-size: 9px; line-height: 1.5; }
.bsmi-crm-opportunity-360 .bsmi-crm-drawer-band-head > div p { margin: 3px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-pipeline-history { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-pipeline-history h4 { margin: 0 0 9px; font-size: 10px; }
.bsmi-crm-pipeline-history article { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 9px; padding: 8px 0; border-top: 1px solid #eef0f1; }
.bsmi-crm-pipeline-history article:first-of-type { border-top: 0; }
.bsmi-crm-pipeline-history i { width: 8px; height: 8px; margin-top: 4px; background: var(--bsmi-gold); border-radius: 50%; }
.bsmi-crm-pipeline-history i.is-approved,
.bsmi-crm-pipeline-history i.is-won,
.bsmi-crm-pipeline-history i.is-reactivated { background: var(--bsmi-green); }
.bsmi-crm-pipeline-history i.is-rejected,
.bsmi-crm-pipeline-history i.is-lost,
.bsmi-crm-pipeline-history i.is-cancelled { background: var(--bsmi-red); }
.bsmi-crm-pipeline-history article span { min-width: 0; }
.bsmi-crm-pipeline-history article strong,
.bsmi-crm-pipeline-history article small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-pipeline-history article strong { font-size: 9px; text-transform: capitalize; }
.bsmi-crm-pipeline-history article small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }

.bsmi-crm-task-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bsmi-crm-task-group {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-task-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-task-group h2 {
  margin: 0;
  font-size: 14px;
}

.bsmi-crm-task-group > header span {
  color: var(--bsmi-muted);
}

.bsmi-crm-task-list {
  display: grid;
}

.bsmi-crm-task-list article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 9px 12px;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-task-list article:last-child {
  border-bottom: 0;
}

.bsmi-crm-task-list article > button {
  width: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 50%;
}

.bsmi-crm-task-list article > button.is-complete {
  background: var(--bsmi-green);
  border-color: var(--bsmi-green);
  box-shadow: inset 0 0 0 4px #fff;
}

.bsmi-crm-task-list article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  cursor: pointer;
}

.bsmi-crm-task-list article span,
.bsmi-crm-task-list time {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-task-list article.is-complete strong {
  color: var(--bsmi-muted);
  text-decoration: line-through;
}

.bsmi-crm-calendar-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-calendar-toolbar .bsmi-crm-segments {
  margin-left: 0;
}

.bsmi-crm-calendar-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.bsmi-crm-calendar-toolbar label span {
  color: var(--bsmi-muted);
  font-size: 10px;
  font-weight: 700;
}

.bsmi-crm-calendar-toolbar select {
  min-height: 39px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid #cfd2d7;
  border-radius: 4px;
}

.bsmi-crm-calendar-toolbar > p {
  max-width: 430px;
  margin: 0 0 5px auto;
  color: var(--bsmi-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.bsmi-crm-calendar-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bsmi-crm-calendar-kpis article {
  display: grid;
  min-height: 92px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-calendar-kpis article:first-child {
  border-top: 3px solid var(--bsmi-gold);
}

.bsmi-crm-calendar-kpis span,
.bsmi-crm-calendar-kpis small {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-calendar-kpis strong {
  align-self: center;
  font-size: 21px;
}

.bsmi-crm-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-calendar-day {
  min-width: 0;
  min-height: 420px;
  background: #f8f9fa;
  border-right: 1px solid var(--bsmi-line);
}

.bsmi-crm-calendar-day:last-child {
  border-right: 0;
}

.bsmi-crm-calendar-day.is-today {
  background: #faf8f1;
  box-shadow: inset 0 3px 0 var(--bsmi-gold);
}

.bsmi-crm-calendar-day > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 66px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-calendar-day > header > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bsmi-crm-calendar-day > header span {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.bsmi-crm-calendar-day > header strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.bsmi-crm-calendar-day > header button {
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 17px;
}

.bsmi-crm-calendar-day-list {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 7px;
}

.bsmi-crm-calendar-day-list > p {
  margin: 18px 4px;
  color: #9a9fa6;
  font-size: 9px;
  text-align: center;
}

.bsmi-crm-app .bsmi-crm-calendar-appointment {
  display: grid;
  justify-content: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 9px;
  text-align: left;
  background: #fff;
  border: 1px solid #d9dcdf;
  border-left: 3px solid var(--bsmi-blue);
  border-radius: 4px;
}

.bsmi-crm-app .bsmi-crm-calendar-appointment.is-viewing {
  border-left-color: var(--bsmi-gold-dark);
}

.bsmi-crm-calendar-appointment > span,
.bsmi-crm-calendar-appointment footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.bsmi-crm-calendar-appointment > span b,
.bsmi-crm-calendar-appointment > span i {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-style: normal;
}

.bsmi-crm-calendar-appointment > strong,
.bsmi-crm-calendar-appointment > p,
.bsmi-crm-calendar-appointment > small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.bsmi-crm-calendar-appointment > strong {
  font-size: 11px;
}

.bsmi-crm-calendar-appointment > p,
.bsmi-crm-calendar-appointment > small {
  color: var(--bsmi-muted);
  font-size: 9px;
  line-height: 1.35;
}

.bsmi-crm-calendar-appointment > small.bsmi-crm-calendar-exchange {
  color: #245846;
  font-weight: 750;
}

.bsmi-crm-calendar-appointment > small.bsmi-crm-calendar-exchange.is-error {
  color: var(--bsmi-red);
}

.bsmi-crm-calendar-appointment > small.bsmi-crm-calendar-exchange.is-removed {
  color: var(--bsmi-muted);
}

.bsmi-crm-calendar-appointment footer {
  align-items: flex-end;
  margin-top: 2px;
}

.bsmi-crm-calendar-appointment footer em {
  padding: 3px 5px;
  color: var(--bsmi-amber);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  background: #fff6df;
  border-radius: 3px;
}

.bsmi-crm-calendar-appointment footer em.is-confirmed,
.bsmi-crm-calendar-appointment footer em.is-completed {
  color: var(--bsmi-green);
  background: #e9f6ef;
}

.bsmi-crm-calendar-appointment footer em.is-declined,
.bsmi-crm-calendar-appointment footer em.is-cancelled,
.bsmi-crm-calendar-appointment footer em.is-no-show {
  color: var(--bsmi-red);
  background: #fcecec;
}

.bsmi-crm-calendar-appointment footer span {
  overflow: hidden;
  color: var(--bsmi-muted);
  font-size: 8px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-calendar-appointment.is-cancelled {
  opacity: 0.62;
}

.bsmi-crm-appointment-rule {
  padding: 12px 14px;
  background: #f5f2e8;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-appointment-rule strong,
.bsmi-crm-appointment-rule p {
  display: block;
  margin: 0;
}

.bsmi-crm-appointment-rule p {
  margin-top: 4px;
  color: var(--bsmi-muted);
  font-size: 11px;
  line-height: 1.45;
}

.bsmi-crm-appointment-calendar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #eef6f2;
  border-left: 3px solid var(--bsmi-green);
}

.bsmi-crm-appointment-calendar.is-error {
  background: #fff1f0;
  border-left-color: var(--bsmi-red);
}

.bsmi-crm-appointment-calendar > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bsmi-crm-appointment-calendar strong,
.bsmi-crm-appointment-calendar span,
.bsmi-crm-appointment-calendar p {
  margin: 0;
}

.bsmi-crm-appointment-calendar span,
.bsmi-crm-appointment-calendar p {
  color: var(--bsmi-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.bsmi-crm-appointment-calendar a {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--bsmi-green);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  background: #fff;
  border: 1px solid #b9d3c8;
  border-radius: 3px;
}

.bsmi-crm-property-tools .is-search {
  flex: 1 1 280px;
}

.bsmi-crm-segments {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  background: #eceef0;
  border-radius: 5px;
}

.bsmi-crm-segments button {
  min-height: 33px;
  border-color: transparent;
  background: transparent;
}

.bsmi-crm-segments button.is-active {
  background: #fff;
  border-color: #d8dadd;
  box-shadow: 0 2px 7px rgba(11, 12, 14, 0.08);
}

.bsmi-crm-requirement-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 13px;
  color: #fff;
  background: #25272b;
  border-left: 4px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-requirement-strip span {
  overflow: hidden;
  color: #d5d7da;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 13px;
}

.bsmi-crm-property-card {
  display: grid;
  grid-template-rows: 170px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-property-card > img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #dfe2e4;
}

.bsmi-crm-property-card > div {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px;
}

.bsmi-crm-property-card h2,
.bsmi-crm-property-card p,
.bsmi-crm-property-card small {
  margin: 0;
}

.bsmi-crm-property-card h2 {
  min-height: 38px;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.15;
}

.bsmi-crm-property-card p,
.bsmi-crm-property-card small {
  color: var(--bsmi-muted);
  font-size: 10px;
  line-height: 1.4;
}

.bsmi-crm-property-card small {
  min-height: 28px;
}

.bsmi-crm-property-market {
  display: block;
  padding: 6px 7px;
  color: #66531f;
  font-size: 10px;
  font-weight: 700;
  background: #fbf7e9;
  border-left: 2px solid var(--bsmi-gold);
}

.bsmi-crm-record-kind {
  justify-self: start;
}

.bsmi-crm-record-kind.is-live,
.bsmi-crm-record-kind.is-profile {
  color: #15563a;
  background: #e5f3ec;
}

.bsmi-crm-record-kind.is-market {
  color: #1c558c;
  background: #e5eef7;
}

.bsmi-crm-property-actions {
  margin-top: 3px;
}

.bsmi-crm-property-actions button,
.bsmi-crm-property-actions a {
  flex: 1 1 100px;
  min-height: 34px;
  padding: 6px 9px;
  font-size: 11px;
}

.bsmi-crm-property-actions button.is-matched {
  color: #fff;
  background: var(--bsmi-green);
  border-color: var(--bsmi-green);
}

.bsmi-crm-load-more {
  display: flex !important;
  margin: 18px auto 0;
}

.bsmi-crm-channel-summary,
.bsmi-crm-share-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bsmi-crm-channel-summary > div,
.bsmi-crm-share-summary > div {
  display: grid;
  gap: 3px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-channel-summary strong,
.bsmi-crm-share-summary strong {
  font-size: 22px;
}

.bsmi-crm-channel-summary span,
.bsmi-crm-share-summary span {
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-share-table td:first-child strong,
.bsmi-crm-share-table td:first-child small {
  display: block;
}

.bsmi-crm-share-table td:first-child {
  min-width: 190px;
}

.bsmi-crm-share-table td:first-child small {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-status.is-active {
  color: #15563a;
  background: #e5f3ec;
}

.bsmi-crm-status.is-expired,
.bsmi-crm-status.is-revoked {
  color: #6e3a3a;
  background: #f6e9e9;
}

.bsmi-crm-conversations article,
.bsmi-crm-document-grid article,
.bsmi-crm-log > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-conversations article:last-child,
.bsmi-crm-document-grid article:last-child,
.bsmi-crm-log > div:last-child {
  border-bottom: 0;
}

.bsmi-crm-conversations p,
.bsmi-crm-document-grid p,
.bsmi-crm-log p {
  margin: 3px 0;
  color: #535963;
  line-height: 1.45;
}

.bsmi-crm-conversations p.is-error {
  color: var(--bsmi-red);
  font-weight: 700;
}

.bsmi-crm-conversations small,
.bsmi-crm-document-grid small,
.bsmi-crm-log time {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-conversations > article > span.is-inbound {
  color: #15563a;
  background: #e5f3ec;
}

.bsmi-crm-conversations > article > span.is-outbound {
  color: #1c558c;
  background: #e5eef7;
}

.bsmi-crm-communication-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  color: #fff;
  background: #151619;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-communication-kpis article {
  display: grid;
  min-height: 100px;
  padding: 15px;
  border-right: 1px solid #303238;
}

.bsmi-crm-communication-kpis article:last-child { border-right: 0; }
.bsmi-crm-communication-kpis span,
.bsmi-crm-communication-kpis small { color: #a4a8ae; font-size: 9px; }
.bsmi-crm-communication-kpis strong { align-self: center; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }

.bsmi-crm-communication-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-communication-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.bsmi-crm-communication-toolbar label span,
.bsmi-crm-communication-toolbar > span { color: var(--bsmi-muted); font-size: 9px; font-weight: 700; }
.bsmi-crm-communication-toolbar select { min-height: 36px; }
.bsmi-crm-communication-toolbar > span { margin-left: auto; padding-bottom: 10px; }

.bsmi-crm-inbox {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(360px, 1fr) minmax(210px, 250px);
  min-width: 0;
  min-height: 680px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(11, 12, 14, 0.05);
}

.bsmi-crm-thread-list,
.bsmi-crm-thread-main,
.bsmi-crm-thread-context { min-width: 0; }

.bsmi-crm-thread-list {
  background: #fafafa;
  border-right: 1px solid var(--bsmi-line);
}

.bsmi-crm-thread-list > header {
  display: grid;
  gap: 3px;
  min-height: 69px;
  padding: 14px;
  background: #111215;
  border-bottom: 2px solid var(--bsmi-gold);
}

.bsmi-crm-thread-list > header strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-thread-list > header span { color: #9fa3a9; font-size: 9px; }
.bsmi-crm-thread-list > div { max-height: 760px; overflow-y: auto; }

.bsmi-crm-app .bsmi-crm-thread-item {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 66px;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 98px;
  padding: 12px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e7e8ea;
  border-left: 3px solid transparent;
  border-radius: 0;
}

.bsmi-crm-app .bsmi-crm-thread-item:hover { background: #f4f2ec; }
.bsmi-crm-app .bsmi-crm-thread-item.is-active { background: #f3efe5; border-left-color: var(--bsmi-gold); }
.bsmi-crm-app .bsmi-crm-thread-item.is-unread .bsmi-crm-thread-copy strong { font-weight: 800; }

.bsmi-crm-thread-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  background: #202226;
  border-radius: 50%;
}

.bsmi-crm-thread-copy,
.bsmi-crm-thread-meta { display: grid; align-content: start; min-width: 0; }
.bsmi-crm-thread-copy { gap: 4px; }
.bsmi-crm-thread-copy strong,
.bsmi-crm-thread-copy small,
.bsmi-crm-thread-copy em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bsmi-crm-thread-copy strong { font-size: 11px; white-space: nowrap; }
.bsmi-crm-thread-copy small { color: var(--bsmi-muted); font-size: 8px; white-space: nowrap; }
.bsmi-crm-thread-copy em { display: -webkit-box; color: #565c65; font-size: 9px; font-style: normal; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bsmi-crm-thread-meta { justify-items: end; gap: 6px; }
.bsmi-crm-thread-meta time { color: var(--bsmi-muted); font-size: 7px; text-align: right; }
.bsmi-crm-thread-meta b { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 2px; color: #111; font-size: 8px; background: var(--bsmi-gold); border-radius: 50%; }
.bsmi-crm-thread-meta i,
.bsmi-crm-thread-main > header em { padding: 3px 5px; color: #596069; font-size: 7px; font-style: normal; font-weight: 750; background: #e9ebed; border-radius: 2px; }
.bsmi-crm-thread-meta i.is-high,
.bsmi-crm-thread-meta i.is-urgent,
.bsmi-crm-thread-main > header em.is-high,
.bsmi-crm-thread-main > header em.is-urgent { color: var(--bsmi-red); background: #f9e9e9; }

.bsmi-crm-thread-main {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr) auto;
  background: #f5f6f7;
}

.bsmi-crm-thread-main > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 70px;
  padding: 12px 15px;
  background: #fff;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-thread-main > header > div:first-child { min-width: 0; }
.bsmi-crm-thread-main > header span,
.bsmi-crm-thread-main > header h2,
.bsmi-crm-thread-main > header small { display: block; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bsmi-crm-thread-main > header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; }
.bsmi-crm-thread-main > header h2 { margin-top: 3px; font-size: 15px; }
.bsmi-crm-thread-main > header small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-thread-main > header > div:last-child { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.bsmi-crm-thread-main > header button { min-height: 30px; padding: 5px 8px; font-size: 9px; }

.bsmi-crm-thread-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 525px;
  min-height: 320px;
  padding: 17px;
  overflow-y: auto;
}

.bsmi-crm-message {
  align-self: flex-start;
  width: min(78%, 560px);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #dcdee1;
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(11, 12, 14, 0.04);
}

.bsmi-crm-message.is-outbound {
  align-self: flex-end;
  color: #fff;
  background: #181a1e;
  border-color: #181a1e;
  border-left-color: var(--bsmi-gold);
}

.bsmi-crm-message header,
.bsmi-crm-message footer,
.bsmi-crm-call-event header,
.bsmi-crm-call-event footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bsmi-crm-message header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-message.is-outbound header span { color: var(--bsmi-gold); }
.bsmi-crm-message time { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-message.is-outbound time,
.bsmi-crm-message.is-outbound footer { color: #aeb2b8; }
.bsmi-crm-message > strong { display: block; margin-top: 8px; font-size: 10px; }
.bsmi-crm-message p { margin: 7px 0; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.bsmi-crm-message footer { justify-content: flex-start; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-message small.is-error { display: block; margin-top: 7px; color: #f08b8b; font-size: 8px; font-weight: 750; }

.bsmi-crm-call-event {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  width: min(88%, 620px);
  align-self: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #d9dcdf;
  border-top: 2px solid var(--bsmi-gold);
  border-radius: 3px;
}

.bsmi-crm-call-event.is-missed { border-top-color: var(--bsmi-red); }
.bsmi-crm-call-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; color: #fff; font-size: 14px; background: #222429; border-radius: 50%; }
.bsmi-crm-call-event.is-missed .bsmi-crm-call-mark { background: var(--bsmi-red); }
.bsmi-crm-call-event header strong { font-size: 10px; }
.bsmi-crm-call-event header em { color: var(--bsmi-gold-dark); font-size: 8px; font-style: normal; font-weight: 750; }
.bsmi-crm-call-event p { margin: 7px 0; color: #4e545d; font-size: 9px; line-height: 1.5; }
.bsmi-crm-call-event footer { justify-content: flex-start; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-call-event footer time { margin-left: auto; }
.bsmi-crm-call-event a { display: inline-block; margin-top: 7px; color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; }

.bsmi-crm-composer {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid var(--bsmi-line);
}

.bsmi-crm-composer-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 9px; }
.bsmi-crm-composer-tabs button { min-height: 29px; padding: 5px 9px; font-size: 8px; background: #f1f2f3; border-color: #e2e4e6; }
.bsmi-crm-composer-tabs button.is-active { color: #fff; background: #17191d; border-color: #17191d; }
.bsmi-crm-composer-tabs span { margin-left: auto; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-message-snippets { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 8px; }
.bsmi-crm-message-snippets > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; }
.bsmi-crm-message-snippets button { min-height: 25px; padding: 4px 7px; color: #63552f; font-size: 7px; background: #f6f1e5; border-color: #e2d5b6; }
.bsmi-crm-thread-compose { display: grid; gap: 8px; }
.bsmi-crm-thread-compose > label { display: grid; gap: 4px; }
.bsmi-crm-thread-compose label > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 700; }
.bsmi-crm-thread-compose textarea { width: 100%; min-height: 88px; resize: vertical; }
.bsmi-crm-thread-compose > div { display: flex; align-items: end; justify-content: flex-end; gap: 8px; }
.bsmi-crm-thread-compose > div label { display: grid; gap: 4px; margin-right: auto; }
.bsmi-crm-thread-compose > div select { min-height: 34px; }
.bsmi-crm-thread-compose > div button { min-height: 35px; }
.bsmi-crm-composer-restriction { padding: 11px; background: #fff4e4; border-left: 3px solid var(--bsmi-amber); }
.bsmi-crm-composer-restriction strong,
.bsmi-crm-composer-restriction p { margin: 0; }
.bsmi-crm-composer-restriction p { margin-top: 4px; color: #75531c; font-size: 9px; }

.bsmi-crm-thread-context {
  padding: 14px;
  background: #fbfbfb;
  border-left: 1px solid var(--bsmi-line);
}

.bsmi-crm-thread-context > header { display: grid; gap: 4px; padding-bottom: 11px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-thread-context > header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-thread-context > header strong { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-thread-context form { display: grid; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-thread-context form label { display: grid; gap: 4px; min-width: 0; }
.bsmi-crm-thread-context form label > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 700; }
.bsmi-crm-thread-context form select,
.bsmi-crm-thread-context form input { width: 100%; min-width: 0; min-height: 34px; }
.bsmi-crm-thread-context form button { width: 100%; min-height: 35px; }
.bsmi-crm-thread-context dl { display: grid; gap: 0; margin: 12px 0; }
.bsmi-crm-thread-context dl div { grid-template-columns: 80px minmax(0, 1fr); padding: 7px 0; }
.bsmi-crm-thread-context dl dt,
.bsmi-crm-thread-context dl dd { font-size: 8px; }
.bsmi-crm-thread-context > button { width: 100%; min-height: 34px; }

.bsmi-crm-call-note {
  padding: 11px 13px;
  background: #f5f1e6;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-call-note strong,
.bsmi-crm-call-note p { margin: 0; }
.bsmi-crm-call-note p { margin-top: 4px; color: #655a3f; font-size: 9px; line-height: 1.5; }

.bsmi-crm-upload-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.bsmi-crm-document-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  margin-bottom: 16px;
  background: #151619;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-document-kpis article {
  display: grid;
  min-height: 104px;
  padding: 16px;
  color: #fff;
  border-right: 1px solid #303238;
}

.bsmi-crm-document-kpis article:last-child { border-right: 0; }
.bsmi-crm-document-kpis span,
.bsmi-crm-document-kpis small { color: #9fa3aa; font-size: 9px; }
.bsmi-crm-document-kpis strong { align-self: center; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }

.bsmi-crm-document-intake {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
}

.bsmi-crm-document-intake > div { align-self: center; }
.bsmi-crm-document-intake h2,
.bsmi-crm-document-intake p { margin: 0; }
.bsmi-crm-document-intake h2 { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-document-intake p { margin-top: 6px; color: var(--bsmi-muted); font-size: 10px; line-height: 1.5; }
.bsmi-crm-document-intake .bsmi-crm-upload-form { grid-template-columns: repeat(5, minmax(108px, 1fr)) auto; }

.bsmi-crm-closing-packs .bsmi-crm-section-head { padding: 16px 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-closing-packs .bsmi-crm-section-head > div > span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-closing-packs .bsmi-crm-section-head > small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-document-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.bsmi-crm-document-readiness-grid > article {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 210px;
  padding: 15px;
  border-right: 1px solid var(--bsmi-line);
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-document-readiness-grid > article:nth-child(3n) { border-right: 0; }
.bsmi-crm-document-readiness-grid > article.is-ready { box-shadow: inset 0 3px var(--bsmi-green); }
.bsmi-crm-document-readiness-grid > article.is-review { box-shadow: inset 0 3px var(--bsmi-gold); }
.bsmi-crm-document-readiness-grid > article.is-missing { box-shadow: inset 0 3px var(--bsmi-red); }

.bsmi-crm-document-readiness-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.bsmi-crm-document-readiness-head > div { display: grid; gap: 4px; min-width: 0; }
.bsmi-crm-document-readiness-head span { color: var(--bsmi-muted); font-size: 8px; text-transform: uppercase; }
.bsmi-crm-document-readiness-head strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }
.bsmi-crm-document-readiness-head em { color: var(--bsmi-gold-dark); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-style: normal; }

.bsmi-crm-document-readiness-bar {
  height: 5px;
  margin: 12px 0 9px;
  overflow: hidden;
  background: #e6e8ea;
  border-radius: 2px;
}

.bsmi-crm-document-readiness-bar i { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-document-readiness-grid > article.is-ready .bsmi-crm-document-readiness-bar i { background: var(--bsmi-green); }
.bsmi-crm-document-readiness-grid > article > p { margin: 0 0 9px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-document-readiness-grid > article > button { align-self: end; justify-self: start; min-height: 30px; margin-top: 11px; padding: 5px 9px; font-size: 9px; }

.bsmi-crm-document-readiness-missing { display: flex; flex-wrap: wrap; gap: 5px; }
.bsmi-crm-document-readiness-missing span { max-width: 100%; padding: 3px 6px; overflow-wrap: anywhere; color: var(--bsmi-red); font-size: 8px; background: #f9eaea; border-radius: 2px; }
.bsmi-crm-document-readiness-missing span.is-review,
.bsmi-crm-document-readiness-missing span.is-expiring { color: #805d17; background: #fff3d7; }
.bsmi-crm-document-readiness-missing span.is-ready { color: var(--bsmi-green); background: #e8f4ed; }

.bsmi-crm-document-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-document-toolbar label { display: grid; gap: 4px; min-width: 180px; }
.bsmi-crm-document-toolbar label span { color: var(--bsmi-muted); font-size: 9px; font-weight: 700; }
.bsmi-crm-document-toolbar select { min-height: 36px; }
.bsmi-crm-document-toolbar > span { margin-left: auto; padding-bottom: 10px; color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-document-table { min-width: 880px; table-layout: fixed; }
.bsmi-crm-document-table th:nth-child(1) { width: 27%; }
.bsmi-crm-document-table th:nth-child(2) { width: 17%; }
.bsmi-crm-document-table th:nth-child(3) { width: 17%; }
.bsmi-crm-document-table th:nth-child(4) { width: 14%; }
.bsmi-crm-document-table th:nth-child(5) { width: 15%; }
.bsmi-crm-document-table th:nth-child(6) { width: 10%; }
.bsmi-crm-document-table td > strong,
.bsmi-crm-document-table td > span,
.bsmi-crm-document-table td > small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-document-table td > span,
.bsmi-crm-document-table td > small { margin-top: 4px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-document-table td:last-child button { width: 100%; min-width: 0; padding-inline: 5px; }

.bsmi-crm-document-state {
  display: inline-flex;
  padding: 3px 6px;
  color: #4d535b;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  background: #eceef0;
  border-radius: 2px;
}

.bsmi-crm-document-state.is-verified { color: var(--bsmi-green); background: #e6f3ec; }
.bsmi-crm-document-state.is-expiring-soon,
.bsmi-crm-document-state.is-awaiting-signature,
.bsmi-crm-document-state.is-needs-review { color: #805d17; background: #fff1d2; }
.bsmi-crm-document-state.is-expired,
.bsmi-crm-document-state.is-rejected,
.bsmi-crm-document-state.is-signature-issue { color: var(--bsmi-red); background: #f8e7e7; }

.bsmi-crm-document-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 18px 0;
  color: #fff;
  background: #17181b;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-document-hero > div { display: grid; min-width: 0; min-height: 92px; padding: 13px; border-right: 1px solid #303237; }
.bsmi-crm-document-hero > div:last-child { border-right: 0; }
.bsmi-crm-document-hero span,
.bsmi-crm-document-hero small { color: #9da1a8; font-size: 8px; }
.bsmi-crm-document-hero strong { align-self: center; overflow-wrap: anywhere; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-document-hero.is-expired,
.bsmi-crm-document-hero.is-rejected,
.bsmi-crm-document-hero.is-signature-issue { border-top-color: var(--bsmi-red); }

.bsmi-crm-document-exception,
.bsmi-crm-document-access {
  margin: 14px 18px 0;
  padding: 12px 14px;
  border-radius: 3px;
}

.bsmi-crm-document-exception { color: var(--bsmi-red); background: #fff0f0; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-document-exception strong { font-size: 10px; }
.bsmi-crm-document-exception p { margin: 4px 0 0; color: var(--bsmi-ink); font-size: 10px; line-height: 1.45; }

.bsmi-crm-document-access { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 18px; background: #f4f0e7; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-document-access strong { font-size: 10px; }
.bsmi-crm-document-access p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-document-access a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; color: #fff; font-size: 9px; font-weight: 750; text-decoration: none; background: var(--bsmi-black); border-radius: 3px; }

.bsmi-crm-transaction-documents .bsmi-crm-document-requirement-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.bsmi-crm-document-requirement-list article { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 8px; background: #f7f7f6; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-document-requirement-list article i { display: grid; place-items: center; width: 22px; height: 22px; color: #805d17; font-size: 10px; font-style: normal; font-weight: 800; background: #fff0cf; border-radius: 50%; }
.bsmi-crm-document-requirement-list article.is-ready i { color: var(--bsmi-green); background: #e2f2e9; }
.bsmi-crm-document-requirement-list article.is-exception i,
.bsmi-crm-document-requirement-list article.is-missing i { color: var(--bsmi-red); background: #f8e4e4; }
.bsmi-crm-document-requirement-list article span { display: grid; gap: 2px; min-width: 0; }
.bsmi-crm-document-requirement-list strong,
.bsmi-crm-document-requirement-list small { overflow-wrap: anywhere; font-size: 8px; }
.bsmi-crm-document-requirement-list small { color: var(--bsmi-muted); }
.bsmi-crm-transaction-document-files { display: grid; gap: 5px; }
.bsmi-crm-transaction-document-files .bsmi-crm-document-link { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 3px 8px; }
.bsmi-crm-transaction-document-files .bsmi-crm-document-link > span { grid-row: 1 / span 2; align-self: center; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-transaction-document-files .bsmi-crm-document-link > span.is-verified { color: var(--bsmi-green); }
.bsmi-crm-transaction-document-files .bsmi-crm-document-link > span.is-expired,
.bsmi-crm-transaction-document-files .bsmi-crm-document-link > span.is-rejected { color: var(--bsmi-red); }
.bsmi-crm-transaction-document-files .bsmi-crm-document-link > small { color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-document-grid article > span {
  min-width: 46px;
  padding: 7px;
  color: var(--bsmi-gold-dark);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
  background: #f6f0e4;
  border: 1px solid #e9dbbd;
  border-radius: 3px;
}

.bsmi-crm-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 12px;
}

.bsmi-crm-team-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px 12px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-team-grid img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.bsmi-crm-team-grid h2,
.bsmi-crm-team-grid p {
  margin: 0;
}

.bsmi-crm-team-grid h2 { font-size: 14px; }
.bsmi-crm-team-grid p,
.bsmi-crm-team-grid > article > span { color: var(--bsmi-muted); font-size: 11px; }

.bsmi-crm-team-grid dl {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 10px 0;
  border-block: 1px solid #eceef0;
}

.bsmi-crm-team-grid dl div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.bsmi-crm-team-grid dt { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-team-grid dd { margin: 0; font-size: 17px; font-weight: 750; }
.bsmi-crm-team-grid > article > span { grid-column: 1 / -1; }

.bsmi-crm-team-access {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.bsmi-crm-team-access-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 1px;
}

.bsmi-crm-team-access-head h2,
.bsmi-crm-team-access-head p {
  margin: 0;
}

.bsmi-crm-team-access-head h2 {
  font-size: 16px;
}

.bsmi-crm-team-access-head p {
  margin-top: 4px;
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-team-access-head > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.bsmi-crm-team-access-head > div:last-child span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 5px 8px;
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-team-access-head > div:last-child b {
  color: var(--bsmi-ink);
  font-size: 13px;
}

.bsmi-crm-team-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 10px;
}

.bsmi-crm-team-access-card {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid var(--bsmi-green);
  border-radius: 6px;
}

.bsmi-crm-team-access-card.is-paused { border-top-color: var(--bsmi-amber); }
.bsmi-crm-team-access-card.is-suspended { border-top-color: var(--bsmi-red); }

.bsmi-crm-team-access-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-team-access-card > header img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  background: #f0f1f2;
  border-radius: 50%;
}

.bsmi-crm-team-access-card > header div {
  min-width: 0;
}

.bsmi-crm-team-access-card > header h3,
.bsmi-crm-team-access-card > header p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-team-access-card > header h3 {
  font-size: 13px;
}

.bsmi-crm-team-access-card > header p {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-team-access-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  color: var(--bsmi-green);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  background: #e5f3ec;
  border-radius: 3px;
  white-space: nowrap;
}

.bsmi-crm-team-access-state.is-paused {
  color: var(--bsmi-amber);
  background: #fbf0dc;
}

.bsmi-crm-team-access-state.is-suspended {
  color: var(--bsmi-red);
  background: #f9e8e8;
}

.bsmi-crm-team-access-contact {
  display: grid;
  gap: 4px;
  padding: 11px 13px 0;
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-team-access-contact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-team-capacity {
  display: grid;
  gap: 7px;
  padding: 12px 13px;
}

.bsmi-crm-team-capacity > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.bsmi-crm-team-capacity span {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.bsmi-crm-team-capacity strong {
  font-size: 10px;
  text-align: right;
}

.bsmi-crm-team-capacity-rail {
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: #e8eaec;
  border-radius: 3px;
}

.bsmi-crm-team-capacity-rail i {
  display: block;
  height: 100%;
  background: var(--bsmi-gold);
  border-radius: inherit;
}

.bsmi-crm-team-access-card dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 13px 10px;
}

.bsmi-crm-team-access-card dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #eceef0;
}

.bsmi-crm-team-access-card dt,
.bsmi-crm-team-access-card dd {
  margin: 0;
  font-size: 9px;
}

.bsmi-crm-team-access-card dt {
  color: var(--bsmi-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.bsmi-crm-team-access-card dd {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.bsmi-crm-team-access-card > footer {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 49px;
  margin-top: auto;
  padding: 9px 13px;
  background: #fafafa;
  border-top: 1px solid var(--bsmi-line);
}

.bsmi-crm-team-access-card > footer button {
  min-height: 30px;
  padding: 6px 9px;
  color: var(--bsmi-ink);
  font-size: 9px;
  font-weight: 750;
  background: #fff;
  border: 1px solid #d8dadd;
  border-radius: 4px;
  cursor: pointer;
}

.bsmi-crm-team-access-card > footer button:first-child {
  color: #fff;
  background: var(--bsmi-black);
  border-color: var(--bsmi-black);
}

.bsmi-crm-team-access-card > footer span {
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-team-access-note {
  padding: 12px 13px;
  background: #f7f2e8;
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 0 4px 4px 0;
}

.bsmi-crm-team-access-note strong,
.bsmi-crm-team-access-note p {
  margin: 0;
}

.bsmi-crm-team-access-note strong {
  font-size: 11px;
}

.bsmi-crm-team-access-note p {
  margin-top: 4px;
  color: #62583f;
  font-size: 10px;
  line-height: 1.55;
}

.bsmi-crm-team-period {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.bsmi-crm-team-period span {
  color: var(--bsmi-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.bsmi-crm-team-period input {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--bsmi-ink);
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-team-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-team-section-head h2,
.bsmi-crm-team-section-head p {
  margin: 0;
}

.bsmi-crm-team-section-head h2 {
  font-size: 15px;
}

.bsmi-crm-team-section-head p,
.bsmi-crm-team-section-head > span {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-team-table-wrap,
.bsmi-crm-team-target-table-wrap {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.bsmi-crm-team-table,
.bsmi-crm-team-targets table {
  width: 100%;
  min-width: 1240px;
  border-collapse: collapse;
}

.bsmi-crm-team-table th,
.bsmi-crm-team-table td,
.bsmi-crm-team-targets th,
.bsmi-crm-team-targets td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-team-table th,
.bsmi-crm-team-targets th {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
  background: #fafafa;
}

.bsmi-crm-team-table tbody tr:last-child td,
.bsmi-crm-team-targets tbody tr:last-child td {
  border-bottom: 0;
}

.bsmi-crm-team-table tbody tr:hover,
.bsmi-crm-team-targets tbody tr:hover {
  background: #fbfbfa;
}

.bsmi-crm-team-table td > strong,
.bsmi-crm-team-table td > span {
  display: block;
}

.bsmi-crm-team-table td > strong {
  font-size: 13px;
}

.bsmi-crm-team-table td > span {
  margin-top: 4px;
  color: var(--bsmi-muted);
  font-size: 9px;
  white-space: nowrap;
}

.bsmi-crm-team-person {
  display: grid;
  grid-template-columns: 38px minmax(135px, 1fr);
  align-items: center;
  gap: 9px;
}

.bsmi-crm-team-person img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  background: #f0f1f2;
  border-radius: 50%;
}

.bsmi-crm-team-person strong,
.bsmi-crm-team-person span {
  display: block;
}

.bsmi-crm-team-person strong {
  font-size: 12px;
}

.bsmi-crm-team-person span {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-team-metric {
  display: grid;
  gap: 4px;
  min-width: 92px;
}

.bsmi-crm-team-metric strong {
  font-size: 12px;
}

.bsmi-crm-team-metric > span {
  color: var(--bsmi-muted);
  font-size: 9px;
  white-space: nowrap;
}

.bsmi-crm-team-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #e8eaec;
  border-radius: 2px;
}

.bsmi-crm-team-progress i {
  display: block;
  height: 100%;
  background: var(--bsmi-gold);
  border-radius: inherit;
}

.bsmi-crm-performance-score {
  display: grid;
  gap: 3px;
  min-width: 92px;
}

.bsmi-crm-performance-score strong { color: var(--bsmi-ink); font-size: 13px; }
.bsmi-crm-performance-score > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; }
.bsmi-crm-performance-score > div { height: 4px; overflow: hidden; background: #e7e9ea; border-radius: 2px; }
.bsmi-crm-performance-score > div i { display: block; height: 100%; background: #7b858e; border-radius: inherit; }
.bsmi-crm-performance-score.is-healthy > div i { background: var(--bsmi-green); }
.bsmi-crm-performance-score.is-warning > div i { background: var(--bsmi-gold); }
.bsmi-crm-performance-score.is-critical > div i { background: var(--bsmi-red); }

.bsmi-crm-team-overdue {
  display: inline-grid !important;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin: 0 !important;
  color: var(--bsmi-green) !important;
  font-weight: 800;
  background: #e5f3ec;
  border-radius: 50%;
}

.bsmi-crm-team-overdue.has-overdue {
  color: var(--bsmi-red) !important;
  background: #f9e8e8;
}

.bsmi-crm-team-targets {
  padding-bottom: 0;
}

.bsmi-crm-team-targets table {
  min-width: 1760px;
}

.bsmi-crm-team-targets td:first-child {
  width: 220px;
}

.bsmi-crm-team-targets td:first-child strong,
.bsmi-crm-team-targets td:first-child span {
  display: block;
}

.bsmi-crm-team-targets td:first-child strong {
  font-size: 12px;
}

.bsmi-crm-team-targets td:first-child span {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-team-targets input[type="number"],
.bsmi-crm-team-targets input[type="text"] {
  width: 100%;
  min-width: 112px;
  min-height: 38px;
  padding: 8px 9px;
  color: var(--bsmi-ink);
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-team-targets input[type="text"] { min-width: 190px; }

.bsmi-crm-team-section-head button {
  min-height: 36px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 3px;
  color: var(--bsmi-ink);
  font-size: 9px;
  font-weight: 800;
}

.bsmi-crm-team-target-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--bsmi-line);
}

.bsmi-crm-team-target-footer span {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-team-target-footer .bsmi-crm-primary {
  display: none;
}

.bsmi-crm-integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bsmi-crm-integration-panel {
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-integration-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-integration-panel h2 {
  margin: 0;
  font-size: 14px;
}

.bsmi-crm-integration-panel header span.is-connected {
  color: #15563a;
  background: #e5f3ec;
}

.bsmi-crm-integration-panel > div {
  display: grid;
  gap: 11px;
  padding: 15px;
}

.bsmi-crm-integration-panel p {
  margin: 0;
  color: var(--bsmi-muted);
  font-size: 11px;
  line-height: 1.5;
}

.bsmi-crm-integration-panel .is-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bsmi-crm-integration-panel .is-check input {
  width: 17px;
  min-height: 17px;
}

.bsmi-crm-integration-panel.is-wide {
  grid-column: 1 / -1;
}

.bsmi-crm-google-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--bsmi-line);
}

.bsmi-crm-google-status > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  border-right: 1px solid var(--bsmi-line);
}

.bsmi-crm-google-status > div:last-child {
  border-right: 0;
}

.bsmi-crm-google-status span,
.bsmi-crm-google-status strong {
  overflow-wrap: anywhere;
}

.bsmi-crm-google-status span {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.bsmi-crm-google-status strong {
  font-size: 12px;
}

.bsmi-crm-google-status strong.is-success,
.bsmi-crm-google-sync-state.is-success {
  color: #15563a;
}

.bsmi-crm-google-status strong.is-partial,
.bsmi-crm-google-sync-state.is-partial {
  color: #8a5a00;
}

.bsmi-crm-google-status strong.is-error,
.bsmi-crm-google-sync-state.is-error {
  color: #9d2a27;
}

.bsmi-crm-google-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 11px;
}

.bsmi-crm-google-toggles,
.bsmi-crm-google-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.bsmi-crm-google-toggles {
  padding: 2px 0;
}

.bsmi-crm-google-actions > span {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-app button.is-danger {
  color: #9d2a27;
  border-color: #d8aaa8;
  background: #fff;
}

.bsmi-crm-app button.is-danger:hover {
  color: #fff;
  border-color: #9d2a27;
  background: #9d2a27;
}

.bsmi-crm-google-webhook {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(240px, 1.3fr) minmax(190px, 0.8fr) auto;
  align-items: end;
  gap: 11px;
  padding-top: 15px;
  border-top: 1px solid var(--bsmi-line);
}

.bsmi-crm-google-webhook h3 {
  margin: 0 0 4px;
  font-size: 12px;
}

.bsmi-crm-google-error {
  margin: 0;
  padding: 9px 11px;
  color: #8f2926;
  font-size: 10px;
  background: #fff1f0;
  border-left: 3px solid #ba4a46;
}

.bsmi-crm-calendar-safety {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.6fr);
  gap: 5px 18px;
  padding: 14px;
  background: #f4f7f5;
  border-left: 3px solid var(--bsmi-green);
}

.bsmi-crm-calendar-safety strong {
  font-size: 12px;
}

.bsmi-crm-calendar-safety p {
  grid-row: span 2;
  margin: 0;
  line-height: 1.5;
}

.bsmi-crm-calendar-safety code {
  color: var(--bsmi-muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.bsmi-crm-google-report {
  padding-bottom: 0;
  overflow: hidden;
}

.bsmi-crm-google-sync-state {
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--bsmi-soft);
  border-radius: 3px;
}

.bsmi-crm-google-report-kpis {
  display: grid;
  grid-template-columns: repeat(8, minmax(100px, 1fr));
  margin: 0 -18px;
  border-block: 1px solid var(--bsmi-line);
  background: #fafafa;
}

.bsmi-crm-google-report-kpis article {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 98px;
  padding: 13px;
  border-right: 1px solid var(--bsmi-line);
}

.bsmi-crm-google-report-kpis article:last-child {
  border-right: 0;
}

.bsmi-crm-google-report-kpis span,
.bsmi-crm-google-report-kpis small {
  color: var(--bsmi-muted);
  font-size: 9px;
  line-height: 1.35;
}

.bsmi-crm-google-report-kpis strong {
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.bsmi-crm-google-attribution-note {
  margin: 0 -18px;
  padding: 10px 18px;
  color: var(--bsmi-muted);
  font-size: 10px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-google-table-wrap {
  margin: 0 -18px;
  overflow-x: auto;
}

.bsmi-crm-google-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 10px;
}

.bsmi-crm-google-table th,
.bsmi-crm-google-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-google-table th {
  color: var(--bsmi-muted);
  font-size: 8px;
  text-transform: uppercase;
  background: #fafafa;
}

.bsmi-crm-google-table td:first-child {
  min-width: 190px;
}

.bsmi-crm-google-table td strong,
.bsmi-crm-google-table td span {
  display: block;
}

.bsmi-crm-google-table td span {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-google-table tbody tr:last-child td {
  border-bottom: 0;
}

.bsmi-crm-wide-field {
  margin-bottom: 12px;
}

.bsmi-crm-routing {
  margin-bottom: 16px;
}

.bsmi-crm-routing-master {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-routing-master input,
.bsmi-crm-routing-rule .is-toggle input {
  width: 17px;
  min-height: 17px;
}

.bsmi-crm-routing-list {
  display: grid;
}

.bsmi-crm-routing-rule {
  display: grid;
  grid-template-columns: 70px 82px minmax(160px, 1.2fr) repeat(2, minmax(128px, 1fr));
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-routing-rule label {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.bsmi-crm-routing-rule label > span {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.bsmi-crm-routing-rule .is-toggle {
  justify-items: start;
}

.bsmi-crm-routing-remove {
  align-self: end;
  min-height: 40px;
  color: #8f2929;
  background: #fff;
  border: 1px solid #dbc5c5;
}

.bsmi-crm-routing-note {
  margin: 12px 0 0;
  color: var(--bsmi-muted);
  font-size: 11px;
  line-height: 1.5;
}

.bsmi-crm-log > div {
  grid-template-columns: 76px 100px minmax(0, 1fr) auto;
  padding-inline: 0;
}

.bsmi-crm-log > div > span.is-success {
  color: #15563a;
  background: #e5f3ec;
}

.bsmi-crm-log > div > span.is-error,
.bsmi-crm-log > div > span.is-rejected {
  color: #8f2929;
  background: #f8e7e7;
}

.bsmi-crm-profile-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(420px, 1fr);
  gap: 16px;
}

.bsmi-crm-profile-preview,
.bsmi-crm-profile-layout > .bsmi-crm-form {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-profile-preview {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.bsmi-crm-profile-preview img {
  width: 96px;
  height: 96px;
  margin-bottom: 14px;
  object-fit: cover;
  background: #eceef0;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--bsmi-line);
}

.bsmi-crm-profile-preview h2,
.bsmi-crm-profile-preview p {
  margin: 0;
}

.bsmi-crm-profile-preview h2 { font-family: Georgia, "Times New Roman", serif; }
.bsmi-crm-profile-preview p { margin: 5px 0 15px; color: var(--bsmi-gold-dark); }
.bsmi-crm-profile-preview span { margin-top: 5px; color: var(--bsmi-muted); }

.bsmi-crm-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 10, 12, 0.5);
  backdrop-filter: blur(2px);
}

.bsmi-crm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(560px, 94vw);
  height: 100svh;
  overflow-y: auto;
  color: var(--bsmi-ink);
  background: #fff;
  box-shadow: -18px 0 45px rgba(11, 12, 14, 0.2);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.bsmi-crm-drawer.is-open {
  transform: translateX(0);
}

.bsmi-crm-drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-drawer-head h2,
.bsmi-crm-drawer-head p {
  margin: 0;
}

.bsmi-crm-drawer-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.bsmi-crm-drawer-head p {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 11px;
}

.bsmi-crm-drawer-head > button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  color: transparent;
  font-size: 0;
}

.bsmi-crm-drawer-head > button::before,
.bsmi-crm-drawer-head > button::after {
  position: absolute;
  width: 15px;
  height: 2px;
  content: "";
  background: var(--bsmi-ink);
  transform: rotate(45deg);
}

.bsmi-crm-drawer-head > button::after {
  transform: rotate(-45deg);
}

.bsmi-crm-drawer-actions {
  padding: 12px 18px;
  background: #f7f8f8;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-drawer-band {
  padding: 17px 18px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-drawer-band h3,
.bsmi-crm-drawer-band h4 {
  margin: 0 0 12px;
  font-size: 13px;
}

.bsmi-crm-drawer-band h4 {
  margin-top: 18px;
  color: var(--bsmi-muted);
}

.bsmi-crm-drawer-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.bsmi-crm-drawer-band-head h3 { margin: 0; }
.bsmi-crm-drawer-band-head span { color: var(--bsmi-muted); font-size: 11px; }
.bsmi-crm-drawer-band-head button { min-height: 30px; padding: 5px 8px; font-size: 10px; }

.bsmi-crm-drawer-band form {
  display: grid;
  gap: 8px;
}

.bsmi-crm-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid #eceef0;
}

.bsmi-crm-detail-list > div {
  min-width: 0;
  padding: 9px 6px 9px 0;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-detail-list dt {
  margin-bottom: 3px;
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.bsmi-crm-note {
  margin: 12px 0 0;
  padding: 11px;
  color: #4f555d;
  line-height: 1.5;
  background: #f6f7f8;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-offer-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  color: #fff;
  background: #2d3035;
  border-bottom: 3px solid var(--bsmi-gold);
}

.bsmi-crm-offer-hero.is-accepted { border-bottom-color: var(--bsmi-green); }
.bsmi-crm-offer-hero.is-expired,
.bsmi-crm-offer-hero.is-rejected { border-bottom-color: var(--bsmi-red); }

.bsmi-crm-offer-hero > div {
  display: grid;
  min-width: 0;
  min-height: 112px;
  padding: 16px 13px;
  background: var(--bsmi-black);
}

.bsmi-crm-offer-hero span,
.bsmi-crm-offer-hero small {
  overflow: hidden;
  color: #aeb2b8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-offer-hero strong {
  align-self: center;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 17px;
}

.bsmi-crm-offer-terms {
  display: grid;
  gap: 10px;
}

.bsmi-crm-offer-terms > div {
  padding: 11px;
  background: #f7f8f8;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-offer-terms span {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.bsmi-crm-offer-terms p {
  margin: 5px 0 0;
  line-height: 1.45;
}

.bsmi-crm-offer-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bsmi-crm-offer-timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.bsmi-crm-offer-timeline > div:not(:last-child)::after {
  position: absolute;
  top: 6px;
  left: 7px;
  width: calc(100% - 1px);
  height: 2px;
  content: "";
  background: #dfe2e5;
}

.bsmi-crm-offer-timeline i {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  background: #dfe2e5;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d2d6da;
}

.bsmi-crm-offer-timeline .is-complete i { background: var(--bsmi-green); }
.bsmi-crm-offer-timeline span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-offer-timeline strong { overflow-wrap: anywhere; font-size: 10px; }
.bsmi-crm-offer-timeline small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-owner-kpis {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.bsmi-crm-mandate-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.bsmi-crm-app .bsmi-crm-mandate-stages button {
  position: relative;
  display: grid;
  min-height: 78px;
  padding: 10px 11px;
  overflow: hidden;
  color: var(--bsmi-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #9ba0a7;
  border-radius: 4px;
}

.bsmi-crm-app .bsmi-crm-mandate-stages button:hover,
.bsmi-crm-app .bsmi-crm-mandate-stages button.is-selected {
  color: var(--bsmi-ink);
  background: #fbfaf7;
  border-color: var(--bsmi-gold);
  box-shadow: inset 0 0 0 1px var(--bsmi-gold);
}

.bsmi-crm-mandate-stages button.is-selected::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--bsmi-gold-dark);
  border-radius: 50%;
}

.bsmi-crm-mandate-stages button.is-selected,
.bsmi-crm-mandate-stages button.is-renewal-due { border-top-color: var(--bsmi-gold); }
.bsmi-crm-mandate-stages button.is-active { border-top-color: var(--bsmi-green); }
.bsmi-crm-mandate-stages button.is-expired,
.bsmi-crm-mandate-stages button.is-withdrawn { border-top-color: var(--bsmi-red); }
.bsmi-crm-mandate-stages button.is-valuation,
.bsmi-crm-mandate-stages button.is-awaiting-signature { border-top-color: var(--bsmi-blue); }

.bsmi-crm-mandate-stages span,
.bsmi-crm-mandate-stages small {
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-mandate-stages strong {
  align-self: center;
  font-size: 21px;
}

.bsmi-crm-owner-table { min-width: 1120px; }
.bsmi-crm-owner-table td:first-child { min-width: 210px; }

.bsmi-crm-owner-signal {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  color: #4e545c;
  font-size: 9px;
  font-weight: 750;
  background: #f0f1f2;
  border: 1px solid #d9dcdf;
  border-radius: 2px;
}

.bsmi-crm-owner-signal.is-good { color: var(--bsmi-green); background: #edf7f2; border-color: #badbcb; }
.bsmi-crm-owner-signal.is-warning { color: var(--bsmi-amber); background: #fff7e9; border-color: #ead4aa; }
.bsmi-crm-owner-signal.is-danger { color: var(--bsmi-red); background: #fff0f0; border-color: #e5bcbc; }

.bsmi-crm-owner-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  color: #fff;
  background: #303238;
  border-bottom: 3px solid var(--bsmi-gold);
}

.bsmi-crm-owner-hero > div {
  display: grid;
  min-width: 0;
  min-height: 108px;
  padding: 15px 13px;
  background: var(--bsmi-black);
}

.bsmi-crm-owner-hero span,
.bsmi-crm-owner-hero small {
  overflow: hidden;
  color: #aeb2b8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-owner-hero strong {
  align-self: center;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 17px;
}

.bsmi-crm-owner-hero strong.is-warning { color: #e5c173; }
.bsmi-crm-owner-hero strong.is-danger { color: #ed9696; }
.bsmi-crm-owner-hero strong.is-good { color: #8dc7aa; }

.bsmi-crm-owner-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bsmi-crm-owner-readiness > div {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 9px;
  background: #f7f8f8;
  border: 1px solid #eceef0;
}

.bsmi-crm-owner-readiness i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  background: var(--bsmi-amber);
  border-radius: 50%;
}

.bsmi-crm-owner-readiness .is-complete i { background: var(--bsmi-green); }
.bsmi-crm-owner-readiness span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-owner-readiness strong { font-size: 10px; }
.bsmi-crm-owner-readiness small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-owner-assets,
.bsmi-crm-owner-mandates {
  display: grid;
  gap: 8px;
}

.bsmi-crm-owner-assets article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 11px;
  border: 1px solid var(--bsmi-line);
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-owner-assets article > div { display: grid; gap: 4px; min-width: 0; }
.bsmi-crm-owner-assets article > div:last-child { justify-items: end; }
.bsmi-crm-owner-assets span,
.bsmi-crm-owner-assets small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-owner-assets strong { overflow-wrap: anywhere; font-size: 11px; }

.bsmi-crm-owner-mandates article {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-owner-mandates article.is-active { border-left-color: var(--bsmi-green); }
.bsmi-crm-owner-mandates article.is-expired,
.bsmi-crm-owner-mandates article.is-withdrawn { border-left-color: var(--bsmi-red); }

.bsmi-crm-owner-mandates header,
.bsmi-crm-owner-mandates footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsmi-crm-owner-mandates header > div { min-width: 0; }
.bsmi-crm-owner-mandates h4 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.bsmi-crm-owner-mandates header span:first-child,
.bsmi-crm-owner-mandates footer small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-owner-mandate-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 11px 0;
  background: var(--bsmi-line);
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-owner-mandate-facts > span {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 9px;
  background: #f8f9f9;
}

.bsmi-crm-owner-mandate-facts small { color: var(--bsmi-muted); font-size: 8px; text-transform: uppercase; }
.bsmi-crm-owner-mandate-facts strong { overflow-wrap: anywhere; font-size: 10px; }

.bsmi-crm-owner-mandate-progress { display: grid; gap: 5px; margin: 8px 0; }
.bsmi-crm-owner-mandate-progress > div { height: 5px; overflow: hidden; background: #e8eaec; border-radius: 2px; }
.bsmi-crm-owner-mandate-progress > div span { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-owner-mandate-progress small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-owner-mandate-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 11px;
}

.bsmi-crm-owner-mandate-checks span {
  padding: 3px 6px;
  color: var(--bsmi-red);
  font-size: 8px;
  font-weight: 750;
  background: #fff2f2;
  border: 1px solid #ebcaca;
  border-radius: 2px;
}

.bsmi-crm-owner-mandate-checks span.is-complete { color: var(--bsmi-green); background: #eff8f3; border-color: #c7dfd2; }

.bsmi-crm-lead-offers {
  display: grid;
  gap: 7px;
}

.bsmi-crm-app .bsmi-crm-lead-offers > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-lead-offers > button > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bsmi-crm-lead-offers > button > span:last-child { justify-items: end; text-align: right; }
.bsmi-crm-lead-offers strong,
.bsmi-crm-lead-offers small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-lead-offers small { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-lead-offers em { color: var(--bsmi-muted); font-size: 9px; font-style: normal; font-weight: 750; }
.bsmi-crm-lead-offers em.is-accepted { color: var(--bsmi-green); }
.bsmi-crm-lead-offers em.is-countered { color: var(--bsmi-amber); }
.bsmi-crm-lead-offers em.is-rejected,
.bsmi-crm-lead-offers em.is-expired { color: var(--bsmi-red); }

.bsmi-crm-search-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.bsmi-crm-search-criteria > span {
  min-width: 0;
  padding: 8px 9px;
  border-left: 2px solid var(--bsmi-gold);
  background: #f6f7f8;
}

.bsmi-crm-search-criteria small,
.bsmi-crm-search-criteria strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-search-criteria small {
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-search-criteria strong {
  margin-top: 2px;
  font-size: 11px;
}

.bsmi-crm-search-criteria > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--bsmi-muted);
}

.bsmi-crm-search-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid #16191d;
  border-radius: 3px;
  background: #16191d;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.bsmi-crm-match-list {
  display: grid;
  gap: 7px;
}

.bsmi-crm-match-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-match-list img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  background: #eceef0;
  border-radius: 3px;
}

.bsmi-crm-match-list article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bsmi-crm-match-list span { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-match-list button,
.bsmi-crm-match-list a { min-height: 29px; padding: 5px 7px; font-size: 10px; }

.bsmi-crm-share-property {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 18px 18px 0;
  padding: 10px;
  background: #f7f8f8;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-share-property img {
  width: 116px;
  height: 82px;
  object-fit: cover;
  background: #e5e7e9;
  border-radius: 3px;
}

.bsmi-crm-share-property div,
.bsmi-crm-share-property strong,
.bsmi-crm-share-property span,
.bsmi-crm-share-property small {
  display: block;
  min-width: 0;
}

.bsmi-crm-share-property strong {
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.bsmi-crm-share-property span,
.bsmi-crm-share-property small {
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-share-note {
  grid-column: 1 / -1;
  padding: 12px 13px;
  color: #49515a;
  background: #f5f6f7;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-share-note p {
  margin: 4px 0 0;
  font-size: 11px;
}

.bsmi-crm-exact-unit-proof {
  grid-column: 1 / -1;
  overflow: hidden;
  background: #fbfaf6;
  border: 1px solid #ded5bd;
  border-radius: 4px;
}

.bsmi-crm-exact-unit-proof header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #e7dfc8;
}

.bsmi-crm-exact-unit-proof header span {
  color: #765d20;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.bsmi-crm-exact-unit-proof header span.is-ready { color: #17613d; }
.bsmi-crm-exact-unit-proof header span.is-blocked { color: #9b352d; }

.bsmi-crm-exact-unit-proof dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.bsmi-crm-exact-unit-proof dl div {
  min-width: 0;
  padding: 10px 13px;
  border-right: 1px solid #e7dfc8;
  border-bottom: 1px solid #e7dfc8;
}

.bsmi-crm-exact-unit-proof dl div:nth-child(3n) { border-right: 0; }
.bsmi-crm-exact-unit-proof dl div:nth-last-child(-n + 3) { border-bottom: 0; }

.bsmi-crm-exact-unit-proof dt {
  color: var(--bsmi-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.bsmi-crm-exact-unit-proof dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
}

.bsmi-crm-share-ready {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px;
  text-align: center;
}

@media (max-width: 720px) {
  .bsmi-crm-exact-unit-proof dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-exact-unit-proof dl div:nth-child(3n) { border-right: 1px solid #e7dfc8; }
  .bsmi-crm-exact-unit-proof dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-exact-unit-proof dl div:nth-last-child(-n + 3) { border-bottom: 1px solid #e7dfc8; }
  .bsmi-crm-exact-unit-proof dl div:nth-last-child(-n + 2) { border-bottom: 0; }
}

.bsmi-crm-share-ready-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  font-size: 23px;
  background: var(--bsmi-green);
  border-radius: 50%;
}

.bsmi-crm-share-ready h3,
.bsmi-crm-share-ready p,
.bsmi-crm-share-ready small {
  margin: 0;
}

.bsmi-crm-share-ready h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.bsmi-crm-share-ready p,
.bsmi-crm-share-ready small {
  color: var(--bsmi-muted);
}

.bsmi-crm-share-ready label {
  width: 100%;
  text-align: left;
}

.bsmi-crm-share-ready label span {
  display: block;
  margin-bottom: 4px;
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-share-ready label input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--bsmi-line);
  border-radius: 3px;
}

.bsmi-crm-share-ready-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.bsmi-crm-share-ready-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--bsmi-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  background: #fff;
  border: 1px solid #cfd2d7;
  border-radius: 4px;
}

.bsmi-crm-document-link {
  justify-content: flex-start !important;
  width: 100%;
  margin-top: 5px;
}

.bsmi-crm-timeline {
  display: grid;
  gap: 12px;
}

.bsmi-crm-timeline article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
}

.bsmi-crm-timeline article > span {
  align-self: start;
  padding: 4px 6px;
  color: #555b64;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  background: #eef0f2;
  border-radius: 3px;
}

.bsmi-crm-timeline p,
.bsmi-crm-timeline small { margin: 0; }
.bsmi-crm-timeline p { line-height: 1.45; }
.bsmi-crm-timeline small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 10px; }

.bsmi-crm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.bsmi-crm-form fieldset {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-form legend {
  padding: 0 6px;
  color: #454a52;
  font-size: 11px;
  font-weight: 750;
}

.bsmi-crm-form .is-wide,
.bsmi-crm-form-actions,
.bsmi-crm-duplicate-alert {
  grid-column: 1 / -1;
}

.bsmi-crm-form .is-check {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 9px;
  min-width: 0;
}

.bsmi-crm-form .is-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.bsmi-crm-duplicate-alert {
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  color: #593d0d;
  background: #fff8e8;
  border: 1px solid #e5c980;
  border-radius: 4px;
}

.bsmi-crm-duplicate-alert strong {
  color: #3c2b0e;
}

.bsmi-crm-duplicate-alert p,
.bsmi-crm-duplicate-alert small {
  margin: 0;
}

.bsmi-crm-duplicate-alert small {
  color: #6f5727;
}

.bsmi-crm-duplicate-alert > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.bsmi-crm-custom-fields {
  padding: 14px;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-custom-fields-head,
.bsmi-crm-custom-fields [data-custom-field-row] {
  display: flex;
  align-items: end;
  gap: 10px;
}

.bsmi-crm-custom-fields-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 750;
}

.bsmi-crm-custom-fields [data-custom-field-list] {
  display: grid;
  gap: 8px;
}

.bsmi-crm-custom-fields [data-custom-field-row] label {
  flex: 1 1 0;
}

.bsmi-crm-custom-fields [data-custom-field-row] button {
  min-height: 40px;
}

.bsmi-crm-form textarea,
.bsmi-crm-drawer-band textarea,
.bsmi-crm-wide-field textarea {
  resize: vertical;
  line-height: 1.45;
}

.bsmi-crm-form-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.bsmi-crm-module-empty,
.bsmi-crm-empty-compact,
.bsmi-crm-loading,
.bsmi-crm-error {
  display: grid;
  place-content: center;
  min-height: 220px;
  padding: 30px;
  text-align: center;
}

.bsmi-crm-module-empty h2,
.bsmi-crm-module-empty p,
.bsmi-crm-error h1,
.bsmi-crm-error p {
  margin: 0;
}

.bsmi-crm-module-empty p,
.bsmi-crm-error p,
.bsmi-crm-loading span,
.bsmi-crm-muted {
  margin-top: 6px;
  color: var(--bsmi-muted);
}

.bsmi-crm-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(400px, calc(100vw - 44px));
  padding: 11px 14px;
  color: #fff;
  background: #202226;
  border-left: 4px solid var(--bsmi-gold);
  border-radius: 4px;
  box-shadow: var(--bsmi-shadow);
}

.bsmi-crm-toast.is-error {
  border-left-color: var(--bsmi-red);
}

.bsmi-crm-login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(420px, 1.15fr);
  min-height: 100svh;
  color: var(--bsmi-ink);
  background: #f3f4f5;
}

.bsmi-crm-login-panel {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  padding: 52px 64px;
  background: #fff;
}

.bsmi-crm-login-brand {
  align-self: flex-start;
  margin-bottom: 68px;
  color: var(--bsmi-black);
}

.bsmi-crm-login-panel > p,
.bsmi-crm-login-context > span {
  margin: 0 0 9px;
  color: var(--bsmi-gold-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.bsmi-crm-login-panel h1 {
  margin: 0 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
}

.bsmi-crm-login-panel form {
  display: grid;
  gap: 14px;
}

.bsmi-crm-login-panel form p {
  display: grid;
  gap: 6px;
  margin: 0;
}

.bsmi-crm-login-panel label {
  color: #555b64;
  font-size: 11px;
  font-weight: 700;
}

.bsmi-crm-login-panel .login-remember label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.bsmi-crm-login-shell input[type="submit"] {
  min-height: 44px;
  font-weight: 750;
  border: 1px solid var(--bsmi-gold);
  border-radius: 4px;
  cursor: pointer;
}

.bsmi-crm-forgot {
  align-self: flex-start;
  margin-top: 17px;
  color: #555b64;
  font-size: 12px;
}

.bsmi-crm-login-context {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  min-height: 100%;
  padding: 72px;
  color: #fff;
  background: #101113;
  border-left: 7px solid var(--bsmi-gold);
}

.bsmi-crm-login-context h2 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.13;
}

.bsmi-crm-login-context p {
  max-width: 560px;
  margin: 18px 0 0;
  color: #b7bbc1;
  line-height: 1.6;
}

.bsmi-crm-access-denied {
  display: grid;
  place-content: center;
  min-height: 100svh;
  padding: 30px;
  color: #fff;
  text-align: center;
  background: var(--bsmi-black);
}

.bsmi-crm-access-denied a { color: var(--bsmi-gold); }

.bsmi-crm-transaction-kpis {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.bsmi-crm-transaction-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.bsmi-crm-app .bsmi-crm-transaction-stages button {
  position: relative;
  display: grid;
  min-height: 78px;
  padding: 10px 11px;
  overflow: hidden;
  color: var(--bsmi-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #9ba0a7;
  border-radius: 4px;
}

.bsmi-crm-app .bsmi-crm-transaction-stages button:hover,
.bsmi-crm-app .bsmi-crm-transaction-stages button.is-selected {
  color: var(--bsmi-ink);
  background: #fbfaf7;
  border-color: var(--bsmi-gold);
  box-shadow: inset 0 0 0 1px var(--bsmi-gold);
}

.bsmi-crm-transaction-stages button.is-selected::after {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--bsmi-gold-dark);
  border-radius: 50%;
}

.bsmi-crm-transaction-stages button.is-selected,
.bsmi-crm-transaction-stages button.is-ready-to-close,
.bsmi-crm-transaction-stages button.is-transfer-handover { border-top-color: var(--bsmi-gold); }
.bsmi-crm-transaction-stages button.is-documentation,
.bsmi-crm-transaction-stages button.is-finance-noc { border-top-color: var(--bsmi-blue); }
.bsmi-crm-transaction-stages button.is-completed { border-top-color: var(--bsmi-green); }
.bsmi-crm-transaction-stages button.is-cancelled { border-top-color: var(--bsmi-red); }

.bsmi-crm-transaction-stages span,
.bsmi-crm-transaction-stages small {
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-transaction-stages strong {
  align-self: center;
  font-size: 21px;
}

.bsmi-crm-transaction-table {
  min-width: 1020px;
  table-layout: fixed;
}
.bsmi-crm-transaction-table th,
.bsmi-crm-transaction-table td { padding-inline: 9px; }
.bsmi-crm-transaction-table td { vertical-align: top; }
.bsmi-crm-transaction-table td > strong,
.bsmi-crm-transaction-table td > span,
.bsmi-crm-transaction-table td > small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-transaction-table td > span,
.bsmi-crm-transaction-table td > small { margin-top: 4px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-transaction-table th:nth-child(1) { width: 19%; }
.bsmi-crm-transaction-table th:nth-child(2) { width: 13%; }
.bsmi-crm-transaction-table th:nth-child(3) { width: 14%; }
.bsmi-crm-transaction-table th:nth-child(4) { width: 20%; }
.bsmi-crm-transaction-table th:nth-child(5) { width: 7%; }
.bsmi-crm-transaction-table th:nth-child(6) { width: 8%; }
.bsmi-crm-transaction-table th:nth-child(7) { width: 10%; }
.bsmi-crm-transaction-table th:nth-child(8) { width: 9%; }
.bsmi-crm-transaction-table td:last-child button { width: 100%; padding-inline: 6px; }

.bsmi-crm-transaction-progress {
  width: 100%;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  background: #e8eaec;
  border-radius: 2px;
}

.bsmi-crm-transaction-progress i {
  display: block;
  height: 100%;
  background: var(--bsmi-gold);
}

.bsmi-crm-signal {
  display: inline-flex;
  min-height: 21px;
  margin-bottom: 6px;
  padding: 3px 7px;
  color: #4e545c;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  background: #f0f1f2;
  border: 1px solid #d9dcdf;
  border-radius: 2px;
}

.bsmi-crm-signal.is-good { color: var(--bsmi-green); background: #edf7f2; border-color: #badbcb; }
.bsmi-crm-signal.is-warning { color: var(--bsmi-amber); background: #fff7e9; border-color: #ead4aa; }
.bsmi-crm-signal.is-danger { color: var(--bsmi-red); background: #fff0f0; border-color: #e5bcbc; }

.bsmi-crm-transaction-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  color: #fff;
  background: #303238;
  border-bottom: 3px solid var(--bsmi-gold);
}

.bsmi-crm-drawer:has(.bsmi-crm-transaction-hero),
.bsmi-crm-drawer:has([data-transaction-form]) {
  width: min(720px, 94vw);
}

.bsmi-crm-transaction-hero > div {
  display: grid;
  min-width: 0;
  min-height: 108px;
  padding: 15px 12px;
  background: var(--bsmi-black);
}

.bsmi-crm-transaction-hero span,
.bsmi-crm-transaction-hero small {
  overflow: hidden;
  color: #aeb2b8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bsmi-crm-transaction-hero strong {
  align-self: center;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 16px;
}

.bsmi-crm-transaction-hero strong.is-good { color: #8dc7aa; }
.bsmi-crm-transaction-hero strong.is-warning { color: #e5c173; }
.bsmi-crm-transaction-hero strong.is-danger { color: #ed9696; }

.bsmi-crm-transaction-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.bsmi-crm-transaction-timeline > div {
  position: relative;
  display: block;
  min-width: 0;
}

.bsmi-crm-transaction-timeline > div:not(:last-child)::after {
  position: absolute;
  top: 7px;
  left: 13px;
  width: calc(100% + 8px);
  height: 2px;
  content: "";
  background: #e1e3e6;
}

.bsmi-crm-transaction-timeline i {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  background: #dfe2e5;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d2d6da;
}

.bsmi-crm-transaction-timeline .is-complete i { background: var(--bsmi-green); }
.bsmi-crm-transaction-timeline .is-current i { background: var(--bsmi-gold); }
.bsmi-crm-transaction-timeline .is-cancelled i { background: var(--bsmi-red); }
.bsmi-crm-transaction-timeline span { display: grid; gap: 3px; min-width: 0; margin-top: 7px; }
.bsmi-crm-transaction-timeline strong { overflow-wrap: anywhere; font-size: 9px; }
.bsmi-crm-transaction-timeline small { color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-transaction-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bsmi-crm-transaction-checks article {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 9px;
  background: #f7f8f8;
  border: 1px solid #eceef0;
}

.bsmi-crm-transaction-checks i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  background: var(--bsmi-amber);
  border-radius: 50%;
}

.bsmi-crm-transaction-checks .is-complete i { background: var(--bsmi-green); }
.bsmi-crm-transaction-checks .is-not-required i { color: var(--bsmi-muted); background: #dfe2e5; }
.bsmi-crm-transaction-checks span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-transaction-checks strong { overflow-wrap: anywhere; font-size: 10px; }
.bsmi-crm-transaction-checks small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-transaction-blocker {
  margin-top: 12px;
  padding: 11px 12px;
  color: var(--bsmi-amber);
  background: #fff8eb;
  border-left: 3px solid var(--bsmi-amber);
}

.bsmi-crm-transaction-blocker.is-blocked { color: var(--bsmi-red); background: #fff1f1; border-left-color: var(--bsmi-red); }
.bsmi-crm-transaction-blocker strong { font-size: 10px; }
.bsmi-crm-transaction-blocker p { margin: 5px 0 0; color: var(--bsmi-ink); font-size: 10px; line-height: 1.5; }

.bsmi-crm-form .bsmi-crm-transaction-checklist-editor {
  grid-column: 1 / -1;
}

.bsmi-crm-transaction-checklist-editor > p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--bsmi-muted);
  font-size: 10px;
  line-height: 1.45;
}

.bsmi-crm-transaction-checklist-editor > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bsmi-crm-commission-workbench {
  background: #fafaf9;
  border-top: 3px solid var(--bsmi-gold);
}

.bsmi-crm-commission-workbench .bsmi-crm-drawer-band-head {
  align-items: flex-start;
}

.bsmi-crm-commission-workbench .bsmi-crm-drawer-band-head h3,
.bsmi-crm-commission-workbench .bsmi-crm-drawer-band-head p {
  margin: 0;
}

.bsmi-crm-commission-workbench .bsmi-crm-drawer-band-head p {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 10px;
}

.bsmi-crm-commission-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
  overflow: hidden;
  color: #fff;
  background: var(--bsmi-black);
  border-bottom: 3px solid var(--bsmi-gold);
  border-radius: 4px 4px 0 0;
}

.bsmi-crm-commission-summary article {
  display: grid;
  min-width: 0;
  min-height: 102px;
  padding: 13px 11px;
  border-right: 1px solid #2b2d31;
}

.bsmi-crm-commission-summary article:last-child { border-right: 0; }
.bsmi-crm-commission-summary span,
.bsmi-crm-commission-summary small { color: #aeb2b8; font-size: 8px; }
.bsmi-crm-commission-summary strong { align-self: center; overflow-wrap: anywhere; color: #fff; font-size: 14px; }
.bsmi-crm-commission-summary strong.is-negative { color: #ed9696; }

.bsmi-crm-commission-gate {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #4f555d;
  background: #f1f2f3;
  border-left: 3px solid #a7adb5;
}

.bsmi-crm-commission-gate.is-warning { color: var(--bsmi-amber); background: #fff7e9; border-left-color: var(--bsmi-amber); }
.bsmi-crm-commission-gate.is-danger { color: var(--bsmi-red); background: #fff0f0; border-left-color: var(--bsmi-red); }
.bsmi-crm-commission-gate.is-good { color: var(--bsmi-green); background: #edf7f2; border-left-color: var(--bsmi-green); }
.bsmi-crm-commission-gate p { margin: 0; color: var(--bsmi-ink); font-size: 10px; line-height: 1.45; }
.bsmi-crm-commission-gate strong { font-size: 10px; }

.bsmi-crm-commission-allocations {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.bsmi-crm-commission-allocations > article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 3px;
}

.bsmi-crm-commission-allocations > article > div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-commission-allocations > article > div:last-child { justify-items: end; text-align: right; }
.bsmi-crm-commission-allocations span,
.bsmi-crm-commission-allocations small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-allocations strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-commission-allocations em { padding: 2px 5px; color: var(--bsmi-muted); font-size: 8px; font-style: normal; font-weight: 750; background: #eef0f2; border-radius: 2px; }
.bsmi-crm-commission-allocations em.is-paid,
.bsmi-crm-commission-allocations em.is-approved,
.bsmi-crm-commission-allocations em.is-eligible { color: var(--bsmi-green); background: #e7f4ed; }
.bsmi-crm-commission-allocations em.is-on-hold { color: var(--bsmi-amber); background: #fff3dd; }
.bsmi-crm-commission-allocations em.is-clawback { color: var(--bsmi-red); background: #fdeaea; }

.bsmi-crm-form .bsmi-crm-commission-controls,
.bsmi-crm-form .bsmi-crm-commission-editor,
.bsmi-crm-form .bsmi-crm-document-controls {
  background: #fbfbfa;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-form .bsmi-crm-commission-controls:disabled,
.bsmi-crm-form .bsmi-crm-commission-editor:disabled,
.bsmi-crm-form .bsmi-crm-document-controls:disabled {
  color: var(--bsmi-ink);
  background: #f3f4f4;
}

.bsmi-crm-manager-note {
  margin: 0;
  padding: 8px 10px;
  color: var(--bsmi-muted);
  font-size: 9px;
  background: #e9ebed;
  border-left: 2px solid #a7adb5;
}

.bsmi-crm-commission-editor-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bsmi-crm-commission-editor-head p { margin: 0; color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-commission-editor-head > span { color: var(--bsmi-muted); font-size: 9px; font-weight: 750; }
.bsmi-crm-commission-editor-head button { min-height: 32px; padding: 5px 9px; font-size: 10px; }

.bsmi-crm-commission-editor-summary {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  color: #fff;
  background: var(--bsmi-black);
  border-bottom: 2px solid var(--bsmi-gold);
  border-radius: 3px 3px 0 0;
}

.bsmi-crm-commission-editor-summary > span { display: grid; gap: 5px; min-width: 0; padding: 10px; border-right: 1px solid #2b2d31; }
.bsmi-crm-commission-editor-summary > span:last-child { border-right: 0; }
.bsmi-crm-commission-editor-summary small { color: #aeb2b8; font-size: 8px; }
.bsmi-crm-commission-editor-summary strong { overflow-wrap: anywhere; color: #fff; font-size: 12px; }

.bsmi-crm-commission-allocation-list {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.bsmi-crm-commission-allocation-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 13px 38px 13px 12px;
  background: #fff;
  border: 1px solid #dfe2e5;
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 3px;
}

.bsmi-crm-commission-allocation-row > label { min-width: 0; }
.bsmi-crm-commission-allocation-row input,
.bsmi-crm-commission-allocation-row select { min-width: 0; }
.bsmi-crm-commission-allocation-row > label.is-external { display: none; }
.bsmi-crm-commission-allocation-row.is-external > label.is-external { display: grid; }
.bsmi-crm-commission-allocation-row > .is-wide { grid-column: 1 / -1; }
.bsmi-crm-commission-allocation-row [data-commission-allocation-remove] {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  color: var(--bsmi-red);
  font-size: 17px;
  background: #fff;
  border-color: #e6c8c8;
}

.bsmi-crm-commission-empty { padding: 18px; color: var(--bsmi-muted); font-size: 10px; text-align: center; background: #fff; border: 1px dashed #cfd3d8; }
.bsmi-crm-commission-allocation-error { grid-column: 1 / -1; margin: 0; padding: 9px 11px; color: var(--bsmi-red); font-size: 10px; font-weight: 700; background: #fff0f0; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-commission-editor.is-overallocated { border-color: #d6a6a6; border-left-color: var(--bsmi-red); }

.bsmi-crm-money-bars > div { grid-template-columns: 120px minmax(70px, 1fr) minmax(100px, auto); }
.bsmi-crm-money-bars > div > span { text-align: right; }

.bsmi-crm-commission-report .bsmi-crm-section-head > span {
  color: var(--bsmi-gold-dark);
  font-size: 11px;
  font-weight: 750;
}

.bsmi-crm-commission-report-table-wrap {
  margin: 0 -18px -18px;
  overflow-x: auto;
  border-top: 1px solid var(--bsmi-line);
}

.bsmi-crm-commission-report-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 10px;
}

.bsmi-crm-commission-report-table th,
.bsmi-crm-commission-report-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-report-table th { color: var(--bsmi-muted); font-size: 8px; text-transform: uppercase; background: #fafafa; }
.bsmi-crm-commission-report-table td:first-child { min-width: 240px; }
.bsmi-crm-commission-report-table td strong,
.bsmi-crm-commission-report-table td span { display: block; overflow-wrap: anywhere; }
.bsmi-crm-commission-report-table td span { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-report-table strong.is-negative { color: var(--bsmi-red); }
.bsmi-crm-commission-report-table .bsmi-crm-signal { margin: 0; }
.bsmi-crm-commission-report-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 1180px) {
  .bsmi-crm-app { grid-template-columns: 210px minmax(0, 1fr); }
  .bsmi-crm-kpis { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .bsmi-crm-property-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .bsmi-crm-team-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .bsmi-crm-team-access-grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
  .bsmi-crm-kanban { width: calc(100vw - 258px); }
  .bsmi-crm-upload-form { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .bsmi-crm-document-intake { grid-template-columns: 1fr; }
  .bsmi-crm-document-intake .bsmi-crm-upload-form { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .bsmi-crm-document-readiness-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .bsmi-crm-document-readiness-grid > article:nth-child(3n) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-document-readiness-grid > article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-routing-rule { grid-template-columns: 70px 82px repeat(2, minmax(140px, 1fr)); }
  .bsmi-crm-calendar-week { grid-template-columns: repeat(7, minmax(135px, 1fr)); overflow-x: auto; }
  .bsmi-crm-google-fields { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
  .bsmi-crm-google-webhook { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .bsmi-crm-google-report-kpis { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .bsmi-crm-google-report-kpis article:nth-child(4n) { border-right: 0; }
  .bsmi-crm-google-report-kpis article:nth-child(-n+4) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-owner-kpis { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .bsmi-crm-mandate-stages { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .bsmi-crm-transaction-kpis { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .bsmi-crm-transaction-stages { grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .bsmi-crm-commission-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-summary article:nth-child(2) { border-right: 0; }
  .bsmi-crm-commission-summary article:nth-child(-n+2) { border-bottom: 1px solid #2b2d31; }
  .bsmi-crm-commission-allocation-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-inbox { grid-template-columns: minmax(235px, 280px) minmax(340px, 1fr); }
  .bsmi-crm-thread-context { grid-column: 1 / -1; border-top: 1px solid var(--bsmi-line); border-left: 0; }
  .bsmi-crm-thread-context form { grid-template-columns: repeat(5, minmax(130px, 1fr)); align-items: end; }
  .bsmi-crm-thread-context form button { align-self: end; }
  .bsmi-crm-thread-context dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bsmi-crm-thread-context dl div { grid-template-columns: 1fr; gap: 3px; padding-right: 12px; }
  .bsmi-crm-thread-context dl dd { text-align: left; }
  .bsmi-crm-thread-context > button { width: auto; }
}

@media (max-width: 900px) {
  .bsmi-crm-app { display: block; }
  .bsmi-crm-sidebar {
    position: fixed;
    left: 0;
    width: min(280px, 86vw);
    box-shadow: 18px 0 42px rgba(11, 12, 14, 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }
  .bsmi-crm-app.is-nav-open .bsmi-crm-sidebar { transform: translateX(0); }
  .bsmi-crm-app.is-nav-open::after {
    position: fixed;
    inset: 0;
    z-index: 35;
    content: "";
    background: rgba(11, 12, 14, 0.45);
  }
  .bsmi-crm-topbar { grid-template-columns: auto minmax(140px, 1fr) auto; padding-inline: 14px; }
  .bsmi-crm-app .bsmi-crm-menu { display: inline-flex; }
  .bsmi-crm-user { display: none; }
  .bsmi-crm-content { padding: 18px; }
  .bsmi-crm-overview-grid,
  .bsmi-crm-report-grid,
  .bsmi-crm-dashboard-layout { grid-template-columns: 1fr; }
  .bsmi-crm-dashboard-widget.is-wide { grid-column: auto; }
  .bsmi-crm-approval-command { grid-template-columns: 1fr; }
  .bsmi-crm-approval-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-approval-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-approval-list > article { grid-template-columns: 4px minmax(0, 1fr) auto; }
  .bsmi-crm-approval-list article > dl { grid-column: 2; }
  .bsmi-crm-approval-list article > footer { grid-column: 3; grid-row: 1 / span 2; }
  .bsmi-crm-document-kpis { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .bsmi-crm-document-kpis article:nth-child(2) { border-right: 0; }
  .bsmi-crm-document-kpis article:nth-child(-n+2) { border-bottom: 1px solid #303238; }
  .bsmi-crm-offer-stages { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
  .bsmi-crm-mandate-stages { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .bsmi-crm-transaction-stages { grid-template-columns: repeat(4, minmax(100px, 1fr)); }
  .bsmi-crm-transaction-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .bsmi-crm-transaction-timeline > div:not(:last-child)::after { display: none; }
  .bsmi-crm-kanban { width: calc(100vw - 36px); }
  .bsmi-crm-integration-grid { grid-template-columns: 1fr; }
  .bsmi-crm-login-shell { grid-template-columns: 1fr; }
  .bsmi-crm-login-panel { max-width: none; min-height: 70svh; }
  .bsmi-crm-login-context { min-height: 30svh; padding: 42px 64px; }
  .bsmi-crm-login-context h2 { font-size: 30px; }
  .bsmi-crm-inbox { grid-template-columns: minmax(220px, 260px) minmax(320px, 1fr); }
  .bsmi-crm-thread-context form { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 640px) {
  .bsmi-crm-dashboard-widget-picker > label { grid-template-columns: auto minmax(0, 1fr); }
  .bsmi-crm-dashboard-widget-picker select { grid-column: 2; width: 100%; }
  .bsmi-crm-dashboard-viewings > button { align-items: flex-start; }
  .bsmi-crm-dashboard-viewings time { max-width: 100px; }
  .bsmi-crm-approval-command { padding: 18px; }
  .bsmi-crm-approval-command dl { grid-template-columns: 1fr 1fr; }
  .bsmi-crm-approval-filters { grid-template-columns: 1fr; }
  .bsmi-crm-approval-filters .is-search { grid-column: auto; }
  .bsmi-crm-approval-list > article { grid-template-columns: 4px minmax(0, 1fr); gap: 12px; }
  .bsmi-crm-approval-list article > dl,
  .bsmi-crm-approval-list article > footer { grid-column: 2; grid-row: auto; }
  .bsmi-crm-approval-list article > footer { min-width: 0; text-align: left; }
  .bsmi-crm-routing-rule { grid-template-columns: 1fr 1fr; }
  .bsmi-crm-routing-rule label:nth-of-type(n + 3),
  .bsmi-crm-routing-remove { grid-column: 1 / -1; }
  .bsmi-crm-topbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 7px;
    min-height: 60px;
    padding: 8px 10px;
  }
  .bsmi-crm-topbar > .bsmi-crm-primary {
    width: 42px;
    min-width: 42px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .bsmi-crm-topbar > .bsmi-crm-primary::before {
    color: var(--bsmi-black);
    content: "+";
    font-size: 22px;
  }
  .bsmi-crm-app .bsmi-crm-menu {
    width: 42px;
    min-width: 42px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .bsmi-crm-menu::before {
    width: 18px;
    height: 12px;
    content: "";
    border-block: 2px solid var(--bsmi-ink);
    box-shadow: inset 0 5px 0 -3px var(--bsmi-ink);
  }
  .bsmi-crm-global-search input { min-height: 40px; }
  .bsmi-crm-content { padding: 14px 10px 24px; }
  .bsmi-crm-page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .bsmi-crm-page-head h1 { font-size: 24px; }
  .bsmi-crm-page-head > div:last-child { width: 100%; }
  .bsmi-crm-page-head > div:last-child > * { flex: 1 1 auto; }
  .bsmi-crm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-kpis article { min-height: 100px; padding: 13px; }
  .bsmi-crm-kpis strong { font-size: 19px; overflow-wrap: anywhere; }
  .bsmi-crm-offer-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-offer-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .bsmi-crm-offer-stages article { min-height: 70px; padding: 10px; }
  .bsmi-crm-offers-table-wrap { overflow: visible; }
  .bsmi-crm-offers-table { display: block; min-width: 0; }
  .bsmi-crm-offers-table thead { display: none; }
  .bsmi-crm-offers-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-offers-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px;
    background: #fff;
    border: 1px solid var(--bsmi-line);
    border-left: 3px solid var(--bsmi-gold);
    border-radius: 4px;
  }
  .bsmi-crm-offers-table td {
    display: block;
    min-width: 0;
    padding: 8px;
    border: 0;
  }
  .bsmi-crm-offers-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--bsmi-muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
  }
  .bsmi-crm-offers-table td:nth-child(1),
  .bsmi-crm-offers-table td:nth-child(2),
  .bsmi-crm-offers-table td:nth-child(3),
  .bsmi-crm-offers-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-offers-table td:first-child { border-bottom: 1px solid #eceef0; }
  .bsmi-crm-offers-table .bsmi-crm-cell-note { max-width: none; }
  .bsmi-crm-offer-actions { flex-wrap: wrap; }
  .bsmi-crm-owner-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-mandate-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .bsmi-crm-app .bsmi-crm-mandate-stages button { min-height: 72px; padding: 9px; }
  .bsmi-crm-owner-table-wrap { overflow: visible; }
  .bsmi-crm-owner-table { display: block; min-width: 0; }
  .bsmi-crm-owner-table thead { display: none; }
  .bsmi-crm-owner-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-owner-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px;
    background: #fff;
    border: 1px solid var(--bsmi-line);
    border-left: 3px solid var(--bsmi-gold);
    border-radius: 4px;
  }
  .bsmi-crm-owner-table td {
    display: block;
    min-width: 0;
    padding: 8px;
    border: 0;
  }
  .bsmi-crm-owner-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--bsmi-muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
  }
  .bsmi-crm-owner-table td:first-child,
  .bsmi-crm-owner-table td:nth-last-child(2),
  .bsmi-crm-owner-table td:last-child { grid-column: 1 / -1; min-width: 0; }
  .bsmi-crm-owner-table td:first-child { border-bottom: 1px solid #eceef0; }
  .bsmi-crm-owner-hero { grid-template-columns: 1fr; }
  .bsmi-crm-owner-hero > div { min-height: 82px; }
  .bsmi-crm-owner-readiness { grid-template-columns: 1fr; }
  .bsmi-crm-owner-assets article { grid-template-columns: minmax(0, 1fr); }
  .bsmi-crm-owner-assets article > div:last-child { justify-items: start; }
  .bsmi-crm-owner-mandate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-owner-mandates header,
  .bsmi-crm-owner-mandates footer { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-transaction-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-transaction-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .bsmi-crm-app .bsmi-crm-transaction-stages button { min-height: 72px; padding: 9px; }
  .bsmi-crm-transaction-table-wrap { overflow: visible; }
  .bsmi-crm-transaction-table { display: block; min-width: 0; }
  .bsmi-crm-transaction-table thead { display: none; }
  .bsmi-crm-transaction-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-transaction-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 7px;
    background: #fff;
    border: 1px solid var(--bsmi-line);
    border-left: 3px solid var(--bsmi-gold);
    border-radius: 4px;
  }
  .bsmi-crm-transaction-table td {
    display: block;
    min-width: 0;
    padding: 8px;
    border: 0;
  }
  .bsmi-crm-transaction-table td::before {
    display: block;
    margin-bottom: 4px;
    color: var(--bsmi-muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
  }
  .bsmi-crm-transaction-table td:first-child,
  .bsmi-crm-transaction-table td:nth-child(2),
  .bsmi-crm-transaction-table td:nth-child(3),
  .bsmi-crm-transaction-table td:nth-child(4),
  .bsmi-crm-transaction-table td:last-child { grid-column: 1 / -1; min-width: 0; }
  .bsmi-crm-transaction-table td:first-child { border-bottom: 1px solid #eceef0; }
  .bsmi-crm-transaction-hero { grid-template-columns: 1fr; }
  .bsmi-crm-transaction-hero > div { min-height: 82px; }
  .bsmi-crm-transaction-timeline { grid-template-columns: 1fr; }
  .bsmi-crm-transaction-timeline > div { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 6px; }
  .bsmi-crm-transaction-timeline span { margin-top: 0; }
  .bsmi-crm-transaction-checks { grid-template-columns: 1fr; }
  .bsmi-crm-transaction-checklist-editor > div { grid-template-columns: 1fr; }
  .bsmi-crm-commission-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-summary article { min-height: 88px; padding: 10px; }
  .bsmi-crm-commission-gate { grid-template-columns: 1fr; gap: 4px; }
  .bsmi-crm-commission-allocations > article { grid-template-columns: minmax(0, 1fr); }
  .bsmi-crm-commission-allocations > article > div:last-child { justify-items: start; text-align: left; }
  .bsmi-crm-commission-editor-head { align-items: stretch; flex-direction: column; }
  .bsmi-crm-commission-editor-head button { width: 100%; }
  .bsmi-crm-commission-editor-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-editor-summary > span:nth-child(2) { border-right: 0; }
  .bsmi-crm-commission-editor-summary > span:nth-child(-n+2) { border-bottom: 1px solid #2b2d31; }
  .bsmi-crm-commission-allocation-row { grid-template-columns: 1fr; padding: 40px 10px 10px; }
  .bsmi-crm-commission-allocation-row > .is-wide { grid-column: 1; }
  .bsmi-crm-money-bars > div { grid-template-columns: minmax(75px, 0.8fr) minmax(45px, 1fr) minmax(82px, auto); gap: 7px; }
  .bsmi-crm-money-bars > div strong,
  .bsmi-crm-money-bars > div span { overflow-wrap: anywhere; font-size: 9px; }
  .bsmi-crm-commission-report .bsmi-crm-section-head { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-commission-report-table-wrap { margin: 0 -13px -13px; overflow: visible; }
  .bsmi-crm-commission-report-table { display: block; min-width: 0; }
  .bsmi-crm-commission-report-table thead { display: none; }
  .bsmi-crm-commission-report-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-commission-report-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); }
  .bsmi-crm-commission-report-table td,
  .bsmi-crm-commission-report-table td:first-child { display: block; min-width: 0; padding: 8px; border: 0; }
  .bsmi-crm-commission-report-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-commission-report-table td:first-child,
  .bsmi-crm-commission-report-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-commission-report-table td:first-child { border-bottom: 1px solid #eceef0; }
  .bsmi-crm-section { padding: 13px; }
  .bsmi-crm-google-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-google-status > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-google-status > div:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-google-fields,
  .bsmi-crm-google-webhook { grid-template-columns: 1fr; }
  .bsmi-crm-google-toggles { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-google-actions { align-items: stretch; flex-direction: column; }
  .bsmi-crm-google-actions button { width: 100%; }
  .bsmi-crm-calendar-safety { grid-template-columns: 1fr; }
  .bsmi-crm-calendar-safety p { grid-row: auto; }
  .bsmi-crm-google-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -13px; }
  .bsmi-crm-google-report-kpis article,
  .bsmi-crm-google-report-kpis article:nth-child(4n) { min-height: 88px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-google-report-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-google-report-kpis article:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-google-attribution-note,
  .bsmi-crm-google-table-wrap { margin-inline: -13px; }
  .bsmi-crm-google-attribution-note { padding-inline: 13px; }
  .bsmi-crm-google-table { min-width: 0; }
  .bsmi-crm-google-table thead { display: none; }
  .bsmi-crm-google-table tbody,
  .bsmi-crm-google-table tr,
  .bsmi-crm-google-table td { display: block; width: 100%; }
  .bsmi-crm-google-table tr { padding: 8px 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-google-table td,
  .bsmi-crm-google-table td:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-width: 0; padding: 6px 13px; text-align: right; border: 0; }
  .bsmi-crm-google-table td::before { flex: 0 0 42%; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 700; text-align: left; text-transform: uppercase; }
  .bsmi-crm-google-table td:first-child { align-items: center; text-align: right; }
  .bsmi-crm-google-table td:first-child strong,
  .bsmi-crm-google-table td:first-child span { overflow-wrap: anywhere; }
  .bsmi-crm-filterbar,
  .bsmi-crm-property-tools { align-items: stretch; }
  .bsmi-crm-filterbar label,
  .bsmi-crm-property-tools label { flex: 1 1 44%; min-width: 0; }
  .bsmi-crm-filterbar > span { width: 100%; margin: 0; }
  .bsmi-crm-lead-table-wrap { overflow: visible; }
  .bsmi-crm-lead-table-wrap .bsmi-crm-table { min-width: 0; table-layout: fixed; }
  .bsmi-crm-lead-table-wrap th:nth-child(1) { width: 40%; }
  .bsmi-crm-lead-table-wrap th:nth-child(2) { width: 30%; }
  .bsmi-crm-lead-table-wrap th:nth-child(3) { width: 30%; }
  .bsmi-crm-lead-table-wrap th:nth-child(n+4),
  .bsmi-crm-lead-table-wrap td:nth-child(n+4) { display: none; }
  .bsmi-crm-lead-table-wrap th,
  .bsmi-crm-lead-table-wrap td { padding: 10px 6px; overflow-wrap: anywhere; }
  .bsmi-crm-lead-table-wrap .bsmi-crm-lead-cell { min-width: 0; }
  .bsmi-crm-lead-table-wrap .bsmi-crm-lead-cell small { overflow-wrap: normal; word-break: normal; }
  .bsmi-crm-task-groups { grid-template-columns: 1fr; }
  .bsmi-crm-task-list article { grid-template-columns: 26px minmax(0, 1fr); }
  .bsmi-crm-task-list time { grid-column: 2; }
  .bsmi-crm-calendar-toolbar { align-items: stretch; flex-direction: column; }
  .bsmi-crm-calendar-toolbar .bsmi-crm-segments { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .bsmi-crm-calendar-toolbar label { width: 100%; min-width: 0; }
  .bsmi-crm-calendar-toolbar > p { max-width: none; margin: 0; text-align: left; }
  .bsmi-crm-calendar-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-calendar-kpis article { min-height: 82px; padding: 12px; }
  .bsmi-crm-calendar-kpis strong { font-size: 18px; }
  .bsmi-crm-calendar-week { grid-template-columns: 1fr; overflow: visible; }
  .bsmi-crm-calendar-day { min-height: 0; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-calendar-day:last-child { border-bottom: 0; }
  .bsmi-crm-calendar-day > header { min-height: 54px; }
  .bsmi-crm-calendar-day-list { grid-template-columns: 1fr; padding: 8px; }
  .bsmi-crm-calendar-day-list > p { margin: 8px 4px; text-align: left; }
  .bsmi-crm-app .bsmi-crm-calendar-appointment { padding: 10px 11px; }
  .bsmi-crm-calendar-appointment > strong { font-size: 12px; }
  .bsmi-crm-appointment-calendar { align-items: stretch; flex-direction: column; }
  .bsmi-crm-appointment-calendar a { align-self: flex-start; }
  .bsmi-crm-property-grid { grid-template-columns: 1fr; }
  .bsmi-crm-property-card { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto; }
  .bsmi-crm-property-card > img { height: 100%; min-height: 190px; }
  .bsmi-crm-property-card h2 { min-height: 0; font-size: 15px; }
  .bsmi-crm-requirement-strip { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-requirement-strip span { white-space: normal; }
  .bsmi-crm-channel-summary,
  .bsmi-crm-share-summary { grid-template-columns: 1fr 1fr; }
  .bsmi-crm-communication-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-communication-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-communication-kpis article:nth-child(2) { border-right: 0; }
  .bsmi-crm-communication-kpis article:nth-child(-n+2) { border-bottom: 1px solid #303238; }
  .bsmi-crm-communication-kpis strong { font-size: 22px; }
  .bsmi-crm-communication-toolbar { align-items: stretch; flex-direction: column; }
  .bsmi-crm-communication-toolbar label { width: 100%; min-width: 0; }
  .bsmi-crm-communication-toolbar > span { margin-left: 0; padding-bottom: 0; }
  .bsmi-crm-inbox { display: block; min-height: 0; overflow: visible; }
  .bsmi-crm-thread-list { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-thread-list > div { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .bsmi-crm-app .bsmi-crm-thread-item { flex: 0 0 270px; min-height: 98px; border-right: 1px solid #e7e8ea; border-bottom: 0; }
  .bsmi-crm-thread-main { display: block; }
  .bsmi-crm-thread-main > header { align-items: flex-start; }
  .bsmi-crm-thread-main > header > div:last-child { align-items: flex-end; flex-direction: column; }
  .bsmi-crm-thread-timeline { min-height: 300px; max-height: 470px; padding: 13px 10px; }
  .bsmi-crm-message,
  .bsmi-crm-call-event { width: 92%; }
  .bsmi-crm-composer { padding: 11px 10px; }
  .bsmi-crm-composer-tabs { flex-wrap: wrap; }
  .bsmi-crm-composer-tabs span { width: 100%; margin-left: 0; }
  .bsmi-crm-thread-compose > div { align-items: stretch; flex-direction: column; }
  .bsmi-crm-thread-compose > div label,
  .bsmi-crm-thread-compose > div button { width: 100%; }
  .bsmi-crm-thread-context { padding: 12px 10px; }
  .bsmi-crm-thread-context form { grid-template-columns: 1fr; }
  .bsmi-crm-thread-context dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-thread-context > button { width: 100%; }
  .bsmi-crm-conversations article,
  .bsmi-crm-document-grid article { grid-template-columns: auto minmax(0, 1fr); }
  .bsmi-crm-conversations article > :last-child,
  .bsmi-crm-document-grid article > :last-child { grid-column: 2; justify-self: start; }
  .bsmi-crm-upload-form { grid-template-columns: 1fr; }
  .bsmi-crm-team-grid { grid-template-columns: 1fr; }
  .bsmi-crm-team-access-head { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-team-access-head > div:last-child { justify-content: flex-start; width: 100%; }
  .bsmi-crm-team-access-head > div:last-child span { flex: 1 1 92px; justify-content: center; }
  .bsmi-crm-team-access-grid { grid-template-columns: minmax(0, 1fr); }
  .bsmi-crm-team-access-card > header { grid-template-columns: 42px minmax(0, 1fr); }
  .bsmi-crm-team-access-state { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .bsmi-crm-team-access-card > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-team-access-card > footer button { width: 100%; min-height: 38px; }
  .bsmi-crm-team-period { width: 100%; min-width: 0; }
  .bsmi-crm-team-section-head { align-items: flex-start; padding: 13px; }
  .bsmi-crm-team-table-wrap,
  .bsmi-crm-team-target-table-wrap { overflow: visible; }
  .bsmi-crm-team-table,
  .bsmi-crm-team-targets table { display: block; min-width: 0; }
  .bsmi-crm-team-table thead,
  .bsmi-crm-team-targets thead { display: none; }
  .bsmi-crm-team-table tbody,
  .bsmi-crm-team-targets tbody { display: grid; }
  .bsmi-crm-team-table tr,
  .bsmi-crm-team-targets tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 11px 7px;
    border-bottom: 1px solid var(--bsmi-line);
  }
  .bsmi-crm-team-table tbody tr:last-child,
  .bsmi-crm-team-targets tbody tr:last-child { border-bottom: 0; }
  .bsmi-crm-team-table td,
  .bsmi-crm-team-targets td {
    display: block;
    min-width: 0;
    padding: 9px 7px;
    border: 0;
  }
  .bsmi-crm-team-table td::before,
  .bsmi-crm-team-targets td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--bsmi-muted);
    content: attr(data-label);
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
  }
  .bsmi-crm-team-table td:first-child,
  .bsmi-crm-team-targets td:first-child {
    grid-column: 1 / -1;
    width: auto;
    margin-bottom: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eceef0;
  }
  .bsmi-crm-team-table td:first-child::before,
  .bsmi-crm-team-targets td:first-child::before { display: none; }
  .bsmi-crm-team-person { grid-template-columns: 38px minmax(0, 1fr); }
  .bsmi-crm-team-metric { min-width: 0; }
  .bsmi-crm-team-targets input[type="number"],
  .bsmi-crm-team-targets input[type="text"] { min-width: 0; min-height: 44px; }
  .bsmi-crm-team-targets { padding-inline: 0; }
  .bsmi-crm-team-targets > form > .bsmi-crm-section-head,
  .bsmi-crm-team-target-footer { margin-inline: 13px; }
  .bsmi-crm-team-target-footer .bsmi-crm-primary { display: inline-flex; }
  .bsmi-crm-profile-layout { grid-template-columns: 1fr; }
  .bsmi-crm-profile-layout > .bsmi-crm-form { padding: 15px; }
  .bsmi-crm-form,
  .bsmi-crm-form fieldset { grid-template-columns: 1fr; }
  .bsmi-crm-form fieldset { padding: 11px; }
  .bsmi-crm-form .is-wide,
  .bsmi-crm-form-actions,
  .bsmi-crm-duplicate-alert { grid-column: 1; }
  .bsmi-crm-custom-fields [data-custom-field-row] { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .bsmi-crm-detail-list { grid-template-columns: 1fr; }
  .bsmi-crm-offer-hero { grid-template-columns: 1fr; }
  .bsmi-crm-offer-hero > div { min-height: 82px; }
  .bsmi-crm-offer-timeline { grid-template-columns: 1fr; gap: 11px; }
  .bsmi-crm-offer-timeline > div { grid-template-columns: 14px minmax(0, 1fr); gap: 6px; }
  .bsmi-crm-offer-timeline > div:not(:last-child)::after { top: 7px; width: 2px; height: calc(100% + 11px); }
  .bsmi-crm-search-criteria { grid-template-columns: 1fr; }
  .bsmi-crm-match-list article { grid-template-columns: 42px minmax(0, 1fr); }
  .bsmi-crm-match-list img { width: 42px; height: 42px; }
  .bsmi-crm-match-list article a,
  .bsmi-crm-match-list article > button { grid-column: 2; justify-self: start; }
  .bsmi-crm-share-property { grid-template-columns: 84px minmax(0, 1fr); margin-inline: 13px; }
  .bsmi-crm-share-property img { width: 84px; height: 72px; }
  .bsmi-crm-share-ready { padding: 32px 16px; }
  .bsmi-crm-share-ready-actions { width: 100%; }
  .bsmi-crm-share-ready-actions > * { flex: 1 1 44%; }
  .bsmi-crm-log > div { grid-template-columns: 70px minmax(0, 1fr); }
  .bsmi-crm-log p,
  .bsmi-crm-log time { grid-column: 2; }
  .bsmi-crm-login-panel { min-height: 72svh; padding: 34px 24px; }
  .bsmi-crm-login-brand { margin-bottom: 42px; }
  .bsmi-crm-login-panel h1 { font-size: 29px; }
  .bsmi-crm-login-context { min-height: 28svh; padding: 30px 24px; }
  .bsmi-crm-login-context h2 { font-size: 24px; }
  .bsmi-crm-drawer,
  .bsmi-crm-drawer:has(.bsmi-crm-transaction-hero),
  .bsmi-crm-drawer:has([data-transaction-form]) { width: 100vw; }
  .bsmi-crm-drawer-head { padding-inline: 13px; }
  .bsmi-crm-drawer-actions,
  .bsmi-crm-drawer-band,
  .bsmi-crm-form { padding-inline: 13px; }
  .bsmi-crm-document-kpis article { min-height: 88px; padding: 12px; }
  .bsmi-crm-document-kpis strong { font-size: 22px; }
  .bsmi-crm-document-intake .bsmi-crm-upload-form { grid-template-columns: 1fr; }
  .bsmi-crm-document-readiness-grid { grid-template-columns: 1fr; }
  .bsmi-crm-document-readiness-grid > article,
  .bsmi-crm-document-readiness-grid > article:nth-child(2n),
  .bsmi-crm-document-readiness-grid > article:nth-child(3n) { min-height: 0; border-right: 0; }
  .bsmi-crm-document-toolbar { align-items: stretch; flex-direction: column; }
  .bsmi-crm-document-toolbar label { min-width: 0; width: 100%; }
  .bsmi-crm-document-toolbar > span { margin-left: 0; padding-bottom: 0; }
  .bsmi-crm-document-table-wrap { overflow: visible; }
  .bsmi-crm-document-table { display: block; min-width: 0; }
  .bsmi-crm-document-table thead { display: none; }
  .bsmi-crm-document-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-document-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-document-table td { display: block; min-width: 0; padding: 8px; border: 0; }
  .bsmi-crm-document-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-document-table td:first-child,
  .bsmi-crm-document-table td:nth-child(2),
  .bsmi-crm-document-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-document-table td:first-child { border-bottom: 1px solid #eceef0; }
  .bsmi-crm-document-hero { grid-template-columns: 1fr; margin-inline: 13px; }
  .bsmi-crm-document-hero > div { min-height: 76px; border-right: 0; border-bottom: 1px solid #303237; }
  .bsmi-crm-document-hero > div:last-child { border-bottom: 0; }
  .bsmi-crm-document-exception,
  .bsmi-crm-document-access { margin-inline: 13px; }
  .bsmi-crm-document-access { grid-template-columns: 1fr; }
  .bsmi-crm-document-access a { justify-self: start; }
  .bsmi-crm-transaction-documents .bsmi-crm-document-requirement-list { grid-template-columns: 1fr; }
  .bsmi-crm-transaction-document-files .bsmi-crm-document-link { grid-template-columns: minmax(76px, 92px) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .bsmi-crm-sidebar,
  .bsmi-crm-drawer { transition: none; }
}

.bsmi-crm-campaign-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  color: #fff;
  background: #121316;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-campaign-kpis article {
  display: grid;
  align-content: center;
  min-height: 100px;
  padding: 15px 16px;
  border-right: 1px solid #303238;
}

.bsmi-crm-campaign-kpis article:last-child { border-right: 0; }
.bsmi-crm-campaign-kpis span { color: #bfc2c8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.bsmi-crm-campaign-kpis strong { margin: 8px 0 4px; color: #c3a25e; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-campaign-kpis small { color: #bfc2c8; font-size: 9px; }

.bsmi-crm-campaign-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 13px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-campaign-toolbar label { display: grid; gap: 5px; min-width: 190px; }
.bsmi-crm-campaign-toolbar label span { color: var(--bsmi-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.bsmi-crm-campaign-toolbar select { width: 100%; min-height: 36px; padding: 6px 9px; background: #fff; border: 1px solid #bfc3c9; border-radius: 2px; }
.bsmi-crm-campaign-toolbar > span { margin-left: auto; padding-bottom: 9px; color: var(--bsmi-muted); font-size: 10px; font-weight: 700; }

.bsmi-crm-campaign-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 14px;
  margin-bottom: 14px;
}

.bsmi-crm-campaign-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.bsmi-crm-campaign-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #8d939b;
  border-radius: 4px;
  box-shadow: 0 7px 18px rgba(20, 22, 26, 0.05);
}

.bsmi-crm-campaign-card.is-active { border-top-color: var(--bsmi-green); }
.bsmi-crm-campaign-card.is-planned,
.bsmi-crm-campaign-card.is-ready { border-top-color: var(--bsmi-gold); }
.bsmi-crm-campaign-card.is-paused { border-top-color: var(--bsmi-amber); }
.bsmi-crm-campaign-card.is-ended,
.bsmi-crm-campaign-card.is-completed { border-top-color: var(--bsmi-blue); }

.bsmi-crm-campaign-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 88px;
  padding: 13px 14px;
  border-bottom: 1px solid #eceef0;
}

.bsmi-crm-campaign-card > header div { min-width: 0; }
.bsmi-crm-campaign-card > header span { color: var(--bsmi-gold-dark); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-campaign-card h3 { margin: 5px 0 4px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.1; }
.bsmi-crm-campaign-card > header small { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-campaign-card > header em { flex: 0 0 auto; padding: 5px 7px; color: #4e535b; background: #f0f1f2; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-campaign-card.is-active > header em { color: #17613f; background: #e7f3ed; }
.bsmi-crm-campaign-card.is-planned > header em,
.bsmi-crm-campaign-card.is-ready > header em { color: #71591f; background: #f6f0e3; }

.bsmi-crm-campaign-card-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-campaign-card-metrics > span { display: grid; min-width: 0; min-height: 76px; padding: 11px 13px; border-right: 1px solid #eceef0; border-bottom: 1px solid #eceef0; }
.bsmi-crm-campaign-card-metrics > span:nth-child(2n) { border-right: 0; }
.bsmi-crm-campaign-card-metrics small { color: var(--bsmi-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.bsmi-crm-campaign-card-metrics strong { margin: 6px 0 2px; overflow-wrap: anywhere; font-size: 15px; }
.bsmi-crm-campaign-card-metrics i { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 8px; font-style: normal; }
.bsmi-crm-campaign-budget { height: 4px; background: #e7e8ea; }
.bsmi-crm-campaign-budget i { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-campaign-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 48px; padding: 9px 13px; }
.bsmi-crm-campaign-card > footer span { min-width: 0; overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-campaign-card > footer button,
.bsmi-crm-campaign-table button { min-height: 31px; padding: 5px 10px; color: var(--bsmi-ink); background: #fff; border: 1px solid #c7cbd0; border-radius: 3px; font-size: 10px; font-weight: 700; cursor: pointer; }

.bsmi-crm-campaign-funnel {
  align-self: start;
  overflow: hidden;
  color: #fff;
  background: #121316;
  border: 1px solid #292b30;
  border-radius: 4px;
}

.bsmi-crm-campaign-funnel > header { padding: 18px; border-bottom: 1px solid #303238; }
.bsmi-crm-campaign-funnel > header span { color: var(--bsmi-gold); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-campaign-funnel h2 { margin: 6px 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-campaign-funnel p { margin: 0; color: #b6bac1; font-size: 10px; line-height: 1.5; }
.bsmi-crm-campaign-funnel > div { display: grid; }
.bsmi-crm-campaign-funnel article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; padding: 14px 17px; border-bottom: 1px solid #2b2d31; }
.bsmi-crm-campaign-funnel article:last-child { border-bottom: 0; }
.bsmi-crm-campaign-funnel article span { display: grid; gap: 3px; }
.bsmi-crm-campaign-funnel article strong { font-size: 11px; }
.bsmi-crm-campaign-funnel article small { color: #92979f; font-size: 8px; }
.bsmi-crm-campaign-funnel article b { color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-campaign-funnel article > i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: #33363b; }
.bsmi-crm-campaign-funnel article > i em { display: block; height: 100%; background: var(--bsmi-gold); }

.bsmi-crm-campaign-performance > .bsmi-crm-section-head { padding: 14px 15px; }
.bsmi-crm-campaign-performance > .bsmi-crm-section-head span { color: var(--bsmi-gold-dark); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-campaign-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-campaign-table { width: 100%; min-width: 910px; border-collapse: collapse; }
.bsmi-crm-campaign-table th { padding: 10px 12px; color: var(--bsmi-muted); background: #f7f7f8; border-top: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); font-size: 8px; text-align: left; text-transform: uppercase; }
.bsmi-crm-campaign-table td { padding: 12px; border-bottom: 1px solid var(--bsmi-line); vertical-align: top; }
.bsmi-crm-campaign-table tbody tr:last-child td { border-bottom: 0; }
.bsmi-crm-campaign-table td strong,
.bsmi-crm-campaign-table td span { display: block; }
.bsmi-crm-campaign-table td strong { font-size: 11px; }
.bsmi-crm-campaign-table td span { margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; }

.bsmi-crm-campaign-drawer-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 20px 16px; overflow: hidden; color: #fff; background: #15171a; border-top: 3px solid var(--bsmi-gold); border-radius: 4px; }
.bsmi-crm-campaign-drawer-kpis article { display: grid; min-height: 90px; padding: 13px; border-right: 1px solid #313338; }
.bsmi-crm-campaign-drawer-kpis article:last-child { border-right: 0; }
.bsmi-crm-campaign-drawer-kpis span { color: #b8bcc3; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-campaign-drawer-kpis strong { margin: 7px 0 3px; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-campaign-drawer-kpis small { color: #b8bcc3; font-size: 8px; }
.bsmi-crm-campaign-tracking label { display: grid; gap: 6px; margin-top: 14px; }
.bsmi-crm-campaign-tracking label span { color: var(--bsmi-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.bsmi-crm-campaign-tracking input { width: 100%; min-height: 36px; padding: 7px 9px; background: #f7f7f8; border: 1px solid #c8cbd0; border-radius: 2px; }
.bsmi-crm-campaign-tracking > div:last-child { display: flex; gap: 8px; margin-top: 8px; }
.bsmi-crm-campaign-tracking button,
.bsmi-crm-campaign-tracking a { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 10px; color: var(--bsmi-ink); text-decoration: none; background: #fff; border: 1px solid #c8cbd0; border-radius: 3px; font-size: 10px; font-weight: 700; }
.bsmi-crm-campaign-leads { display: grid; }
.bsmi-crm-campaign-leads button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 11px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--bsmi-line); cursor: pointer; }
.bsmi-crm-campaign-leads button:last-child { border-bottom: 0; }
.bsmi-crm-campaign-leads button span { display: grid; min-width: 0; gap: 3px; }
.bsmi-crm-campaign-leads button strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-campaign-leads button small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-campaign-leads button em { flex: 0 0 auto; color: var(--bsmi-gold-dark); font-size: 10px; font-style: normal; font-weight: 700; }

@media (max-width: 1180px) {
  .bsmi-crm-campaign-workspace { grid-template-columns: 1fr; }
  .bsmi-crm-campaign-funnel > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bsmi-crm-campaign-funnel article { border-right: 1px solid #2b2d31; border-bottom: 0; }
  .bsmi-crm-campaign-funnel article:last-child { border-right: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-campaign-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-campaign-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-campaign-kpis article:nth-child(2) { border-right: 0; }
  .bsmi-crm-campaign-kpis article:nth-child(-n+2) { border-bottom: 1px solid #303238; }
  .bsmi-crm-campaign-kpis strong { font-size: 21px; }
  .bsmi-crm-campaign-toolbar { align-items: stretch; flex-direction: column; }
  .bsmi-crm-campaign-toolbar label { width: 100%; min-width: 0; }
  .bsmi-crm-campaign-toolbar > span { margin-left: 0; padding-bottom: 0; }
  .bsmi-crm-campaign-board { grid-template-columns: 1fr; }
  .bsmi-crm-campaign-funnel > div { grid-template-columns: 1fr; }
  .bsmi-crm-campaign-funnel article { border-right: 0; border-bottom: 1px solid #2b2d31; }
  .bsmi-crm-campaign-table-wrap { overflow: visible; }
  .bsmi-crm-campaign-table { display: block; min-width: 0; }
  .bsmi-crm-campaign-table thead { display: none; }
  .bsmi-crm-campaign-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-campaign-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-campaign-table td { display: block; min-width: 0; padding: 8px; border: 0; }
  .bsmi-crm-campaign-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-campaign-table td:first-child,
  .bsmi-crm-campaign-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-campaign-table td:first-child { border-bottom: 1px solid #eceef0; }
  .bsmi-crm-campaign-table button { width: 100%; }
  .bsmi-crm-campaign-drawer-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-campaign-drawer-kpis article:nth-child(2) { border-right: 0; }
  .bsmi-crm-campaign-drawer-kpis article:nth-child(-n+2) { border-bottom: 1px solid #313338; }
  .bsmi-crm-campaign-tracking > div:last-child { align-items: stretch; flex-direction: column; }
}

/* Integration Control Center */
.bsmi-crm-integration-command {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(430px, .78fr);
  gap: 24px;
  align-items: center;
  min-height: 164px;
  margin-bottom: 12px;
  padding: 24px;
  color: #fff;
  background: #111417;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 5px;
}
.bsmi-crm-integration-command > div { min-width: 0; }
.bsmi-crm-integration-command > div small { color: #d3b66e; font-size: 8px; font-weight: 850; }
.bsmi-crm-integration-command h2 { margin: 7px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; letter-spacing: 0; }
.bsmi-crm-integration-command p { max-width: 680px; margin: 0; color: #b8bec4; font-size: 10px; line-height: 1.6; }
.bsmi-crm-integration-command dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid #34383d; }
.bsmi-crm-integration-command dl div { display: grid; align-content: center; min-width: 0; min-height: 88px; padding: 13px; background: #191d21; border-right: 1px solid #34383d; }
.bsmi-crm-integration-command dl div:last-child { border-right: 0; }
.bsmi-crm-integration-command dt { color: #929aa2; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-integration-command dd { margin: 6px 0 4px; overflow-wrap: anywhere; color: #fff; font-size: 13px; font-weight: 800; }
.bsmi-crm-integration-command dl span { color: #a9b0b7; font-size: 7px; line-height: 1.35; }

.bsmi-crm-integration-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}
.bsmi-crm-integration-kpis article { display: grid; gap: 5px; min-width: 0; min-height: 90px; padding: 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-kpis article:last-child { border-right: 0; }
.bsmi-crm-integration-kpis span,
.bsmi-crm-integration-kpis small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-integration-kpis span { font-weight: 800; text-transform: uppercase; }
.bsmi-crm-integration-kpis strong { overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }

.bsmi-crm-integration-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
  overflow: hidden;
}
.bsmi-crm-integration-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 48px; padding: 10px 13px; color: #34383d; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; }
.bsmi-crm-integration-tabs button:last-child { border-right: 0; }
.bsmi-crm-integration-tabs button span { min-width: 0; overflow-wrap: anywhere; text-align: left; font-size: 9px; font-weight: 800; }
.bsmi-crm-integration-tabs button strong { display: grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; color: #5c6268; font-size: 8px; background: #eef0f2; border-radius: 3px; }
.bsmi-crm-integration-tabs button.is-active { color: #fff; background: #15191d; box-shadow: inset 0 -3px var(--bsmi-gold); }
.bsmi-crm-integration-tabs button.is-active strong { color: #17191c; background: var(--bsmi-gold); }

.bsmi-crm-integration-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
  margin-bottom: 12px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-left: 3px solid var(--bsmi-black);
  border-radius: 5px;
}
.bsmi-crm-integration-view-head > div { min-width: 0; }
.bsmi-crm-integration-view-head small { color: #9b7a2f; font-size: 7px; font-weight: 850; }
.bsmi-crm-integration-view-head h2 { margin: 4px 0; font-size: 16px; letter-spacing: 0; }
.bsmi-crm-integration-view-head p { max-width: 760px; margin: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-integration-view-head > button,
.bsmi-crm-integration-view-head > a { flex: 0 0 auto; }

.bsmi-crm-integration-boundary {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, .85fr);
  align-items: stretch;
  margin-bottom: 12px;
  background: #f5f6f6;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}
.bsmi-crm-integration-boundary > div { padding: 16px 18px; }
.bsmi-crm-integration-boundary > div strong { font-size: 11px; }
.bsmi-crm-integration-boundary > div p { margin: 5px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }
.bsmi-crm-integration-boundary dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-boundary dl div { display: grid; align-content: center; min-width: 0; padding: 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-boundary dl div:last-child { border-right: 0; }
.bsmi-crm-integration-boundary dt { color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-integration-boundary dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 800; }

.bsmi-crm-integration-table { overflow-x: auto; }
.bsmi-crm-integration-table table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.bsmi-crm-integration-table th,
.bsmi-crm-integration-table td { padding: 12px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-table th { color: var(--bsmi-muted); font-size: 7px; font-weight: 850; text-transform: uppercase; background: #f7f8f8; }
.bsmi-crm-integration-table td { overflow-wrap: anywhere; font-size: 9px; }
.bsmi-crm-integration-table tbody tr:last-child td { border-bottom: 0; }
.bsmi-crm-integration-table td > strong,
.bsmi-crm-integration-table td > small,
.bsmi-crm-integration-table td > code { display: block; }
.bsmi-crm-integration-table td > small { margin-top: 5px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-integration-table code { color: #31363a; font-size: 8px; }
.bsmi-crm-integration-table .bsmi-crm-row-actions { align-items: stretch; flex-direction: column; }
.bsmi-crm-integration-table .bsmi-crm-row-actions button { width: 100%; min-height: 30px; }
.bsmi-crm-integration-table th:nth-child(1) { width: 16%; }
.bsmi-crm-integration-table th:nth-child(2) { width: 14%; }
.bsmi-crm-integration-table th:nth-child(3) { width: 23%; }
.bsmi-crm-integration-table th:nth-child(4) { width: 18%; }
.bsmi-crm-integration-table th:nth-child(5) { width: 16%; }
.bsmi-crm-integration-table th:nth-child(6) { width: 13%; }
.bsmi-crm-integration-delivery-table table { min-width: 1240px; }
.bsmi-crm-integration-delivery-table th { width: auto !important; }

.bsmi-crm-integration-status { display: inline-flex; align-items: center; width: fit-content; margin-top: 4px; padding: 4px 6px; font-size: 7px; font-weight: 850; text-transform: uppercase; background: #eef0f1; border-radius: 3px; }
.bsmi-crm-integration-status.is-success { color: #15563a; background: #e5f3ec; }
.bsmi-crm-integration-status.is-warning { color: #79540c; background: #fff3d5; }
.bsmi-crm-integration-status.is-danger { color: #8f2929; background: #f8e7e7; }
.bsmi-crm-integration-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.bsmi-crm-integration-chips span { padding: 4px 6px; color: #41464b; font-size: 7px; line-height: 1.3; background: #f0f2f3; border: 1px solid #e0e3e5; border-radius: 3px; }

.bsmi-crm-integration-webhook-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bsmi-crm-integration-webhook-list > article { display: grid; gap: 13px; min-width: 0; padding: 17px; background: #fff; border: 1px solid var(--bsmi-line); border-top: 3px solid #22272b; border-radius: 5px; }
.bsmi-crm-integration-webhook-list article > header,
.bsmi-crm-integration-webhook-list article > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.bsmi-crm-integration-webhook-list header small { color: #9b7a2f; font-size: 7px; font-weight: 850; }
.bsmi-crm-integration-webhook-list h3 { margin: 4px 0 0; font-size: 13px; }
.bsmi-crm-integration-webhook-list > article > code { padding: 10px; overflow-wrap: anywhere; color: #2e3338; font-size: 8px; background: #f5f6f6; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-integration-webhook-list dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-webhook-list dl div { min-width: 0; padding: 10px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-webhook-list dl div:nth-child(2n) { border-right: 0; }
.bsmi-crm-integration-webhook-list dl div:nth-last-child(-n+2) { border-bottom: 0; }
.bsmi-crm-integration-webhook-list dt { color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-integration-webhook-list dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.bsmi-crm-integration-webhook-list footer { padding-top: 11px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-webhook-list footer > span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-integration-webhook-list footer > div { display: flex; gap: 7px; }

.bsmi-crm-integration-filter { display: grid; gap: 4px; min-width: 180px; }
.bsmi-crm-integration-filter span { color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }

.bsmi-crm-integration-guide-grid { display: grid; grid-template-columns: minmax(450px, 1.15fr) minmax(360px, .85fr); gap: 12px; }
.bsmi-crm-integration-endpoints article { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(100px, auto); gap: 11px; align-items: center; min-height: 58px; padding: 10px 15px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-endpoints article > span { display: grid; place-items: center; min-height: 24px; color: #fff; font-size: 7px; font-weight: 850; background: #202529; border-radius: 3px; }
.bsmi-crm-integration-endpoints article > span.is-post { color: #17191b; background: var(--bsmi-gold); }
.bsmi-crm-integration-endpoints strong,
.bsmi-crm-integration-endpoints small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-integration-endpoints strong { font-size: 10px; }
.bsmi-crm-integration-endpoints small { margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-integration-endpoints code { overflow-wrap: anywhere; color: #5a6167; font-size: 7px; text-align: right; }
.bsmi-crm-integration-auth { display: grid; gap: 7px; margin: 12px; padding: 13px; background: #f4f5f5; border-left: 3px solid #252a2e; }
.bsmi-crm-integration-auth strong { font-size: 10px; }
.bsmi-crm-integration-auth code { overflow-wrap: anywhere; font-size: 8px; }
.bsmi-crm-integration-auth p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-integration-sandbox form { display: grid; gap: 12px; }
.bsmi-crm-integration-sandbox form label { display: grid; gap: 5px; }
.bsmi-crm-integration-sandbox form textarea { min-height: 150px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.bsmi-crm-integration-sandbox-empty { margin-top: 14px; padding: 15px; background: #f5f6f6; border: 1px dashed #c7ccd0; }
.bsmi-crm-integration-sandbox-empty strong { font-size: 10px; }
.bsmi-crm-integration-sandbox-empty p { margin: 5px 0 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-integration-sandbox-result { margin-top: 14px; border: 1px solid #b8d7c7; }
.bsmi-crm-integration-sandbox-result > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; color: #fff; background: #173d2c; }
.bsmi-crm-integration-sandbox-result header small,
.bsmi-crm-integration-sandbox-result header strong { display: block; }
.bsmi-crm-integration-sandbox-result header small { color: #b9d3c7; font-size: 7px; }
.bsmi-crm-integration-sandbox-result header strong { margin-top: 3px; font-size: 11px; }
.bsmi-crm-integration-sandbox-result header span { padding: 5px 7px; color: #173d2c; font-size: 7px; font-weight: 850; background: #d8eadf; border-radius: 3px; }
.bsmi-crm-integration-sandbox-result dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.bsmi-crm-integration-sandbox-result dl div { min-width: 0; padding: 10px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-sandbox-result dl div:last-child { border-right: 0; }
.bsmi-crm-integration-sandbox-result dt { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-integration-sandbox-result dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 700; }
.bsmi-crm-integration-sandbox-result pre { margin: 0; padding: 12px; overflow: auto; color: #dfe7e2; font-size: 8px; line-height: 1.5; background: #202723; }
.bsmi-crm-integration-signature { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 12px; padding: 16px 18px; color: #e7e9eb; background: #171a1e; border-radius: 5px; }
.bsmi-crm-integration-signature small { color: #d4b66d; font-size: 7px; font-weight: 850; }
.bsmi-crm-integration-signature h3 { margin: 5px 0; font-size: 13px; }
.bsmi-crm-integration-signature p { margin: 0; color: #aab0b6; font-size: 8px; line-height: 1.5; }
.bsmi-crm-integration-signature code { flex: 0 1 360px; padding: 10px; overflow-wrap: anywhere; color: #f1dfad; font-size: 8px; background: #24282d; }

.bsmi-crm-integration-access-form .bsmi-crm-integration-scope-fieldset { grid-column: 1 / -1; }
.bsmi-crm-integration-scope-fieldset > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-integration-scope-fieldset label { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 10px; background: #f6f7f7; border: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-scope-fieldset input { width: 17px; min-height: 17px; flex: 0 0 auto; margin-top: 1px; }
.bsmi-crm-integration-scope-fieldset label span { min-width: 0; }
.bsmi-crm-integration-scope-fieldset strong,
.bsmi-crm-integration-scope-fieldset small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-integration-scope-fieldset strong { font-size: 9px; }
.bsmi-crm-integration-scope-fieldset small { margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-integration-access-form label > small { color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-integration-secret { display: grid; gap: 16px; padding: 18px; }
.bsmi-crm-integration-secret > header { padding: 17px; color: #fff; background: #161a1e; border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-integration-secret header small { color: #d4b66d; font-size: 7px; font-weight: 850; }
.bsmi-crm-integration-secret h3 { margin: 6px 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-integration-secret header p { margin: 0; color: #b4bac0; font-size: 9px; line-height: 1.5; }
.bsmi-crm-integration-secret label { display: grid; gap: 5px; }
.bsmi-crm-integration-secret label input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.bsmi-crm-integration-secret > div { display: flex; gap: 8px; }
.bsmi-crm-integration-secret dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; background: #f5f6f6; border: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-secret dl div { min-width: 0; padding: 11px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-integration-secret dl div:last-child { border-right: 0; }
.bsmi-crm-integration-secret dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-integration-secret dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 800; }

@media (max-width: 1080px) {
  .bsmi-crm-integration-command,
  .bsmi-crm-integration-boundary,
  .bsmi-crm-integration-guide-grid { grid-template-columns: 1fr; }
  .bsmi-crm-integration-boundary dl { border-top: 1px solid var(--bsmi-line); border-left: 0; }
  .bsmi-crm-integration-webhook-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-integration-tabs) .bsmi-crm-page-head { align-items: flex-start; }
  .bsmi-crm-integration-command { min-height: 0; margin-inline: -10px; padding: 18px 14px; border-radius: 0; }
  .bsmi-crm-integration-command h2 { font-size: 20px; }
  .bsmi-crm-integration-command dl { grid-template-columns: 1fr; }
  .bsmi-crm-integration-command dl div { min-height: 64px; border-right: 0; border-bottom: 1px solid #34383d; }
  .bsmi-crm-integration-command dl div:last-child { border-bottom: 0; }
  .bsmi-crm-integration-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-integration-kpis article { min-height: 80px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-integration-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-integration-kpis article:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-integration-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-integration-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-integration-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-integration-tabs button:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bsmi-crm-integration-view-head { align-items: stretch; flex-direction: column; min-height: 0; margin-inline: -10px; padding: 14px; border-inline: 0; border-left: 0; border-radius: 0; }
  .bsmi-crm-integration-view-head > button,
  .bsmi-crm-integration-view-head > a,
  .bsmi-crm-integration-view-head select { width: 100%; min-height: 44px; }
  .bsmi-crm-integration-boundary { margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-integration-boundary dl { grid-template-columns: 1fr; }
  .bsmi-crm-integration-boundary dl div { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-integration-boundary dl div:last-child { border-bottom: 0; }
  .bsmi-crm-section:has(.bsmi-crm-integration-table) { margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-integration-table,
  .bsmi-crm-integration-table table,
  .bsmi-crm-integration-table tbody { display: block; min-width: 0; width: 100%; }
  .bsmi-crm-integration-table thead { display: none; }
  .bsmi-crm-integration-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-integration-table td { display: block; min-width: 0; padding: 8px 6px; border: 0; }
  .bsmi-crm-integration-table td::before { display: block; margin-bottom: 5px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-integration-table td:first-child,
  .bsmi-crm-integration-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-integration-table .bsmi-crm-row-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex-direction: row; }
  .bsmi-crm-integration-table .bsmi-crm-row-actions button,
  .bsmi-crm-integration-table td > button { min-height: 44px; }
  .bsmi-crm-integration-webhook-list { margin-inline: -10px; }
  .bsmi-crm-integration-webhook-list > article { border-inline: 0; border-radius: 0; }
  .bsmi-crm-integration-webhook-list footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-integration-webhook-list footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-integration-webhook-list footer button { min-height: 44px; }
  .bsmi-crm-integration-guide-grid { margin-inline: -10px; }
  .bsmi-crm-integration-guide-grid > .bsmi-crm-section { border-inline: 0; border-radius: 0; }
  .bsmi-crm-integration-endpoints article { grid-template-columns: 46px minmax(0, 1fr); }
  .bsmi-crm-integration-endpoints code { grid-column: 2; text-align: left; }
  .bsmi-crm-integration-sandbox form select,
  .bsmi-crm-integration-sandbox form button { min-height: 44px; }
  .bsmi-crm-integration-sandbox-result dl { grid-template-columns: 1fr; }
  .bsmi-crm-integration-sandbox-result dl div { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-integration-sandbox-result dl div:last-child { border-bottom: 0; }
  .bsmi-crm-integration-signature { align-items: stretch; flex-direction: column; margin-inline: -10px; border-radius: 0; }
  .bsmi-crm-integration-signature code { flex-basis: auto; }
  .bsmi-crm-integration-scope-fieldset > div { grid-template-columns: 1fr; }
  .bsmi-crm-integration-scope-fieldset label { min-height: 52px; }
  .bsmi-crm-integration-secret { padding: 12px; }
  .bsmi-crm-integration-secret > div { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-integration-secret button,
  .bsmi-crm-integration-secret input { min-height: 44px; }
  .bsmi-crm-integration-secret dl { grid-template-columns: 1fr; }
  .bsmi-crm-integration-secret dl div { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-integration-secret dl div:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-lead-control-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-app .bsmi-crm-lead-control-kpis > button { min-height: 82px; padding: 11px; }
  .bsmi-crm-lead-control-kpis strong { font-size: 20px; }
  .bsmi-crm-lead-viewbar { align-items: stretch; flex-direction: column; }
  .bsmi-crm-lead-viewbar label { flex: 0 0 auto; width: 100%; max-width: none; }
  .bsmi-crm-lead-viewbar > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .bsmi-crm-app .bsmi-crm-lead-viewbar button { width: 100%; padding-inline: 7px; }
  .bsmi-crm-lead-protection-hero { grid-template-columns: 1fr; gap: 13px; padding: 15px 16px; }
  .bsmi-crm-lead-protection-hero dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-lead-protection-hero dl > div { padding: 0 8px; }
}

@media (max-width: 640px) {
  .bsmi-crm-lead-table-wrap th:nth-child(1) { width: 42%; }
  .bsmi-crm-lead-table-wrap th:nth-child(2) { width: 38%; }
  .bsmi-crm-lead-table-wrap th:nth-child(3) { width: 20%; }
  .bsmi-crm-lead-table-wrap .bsmi-crm-lead-signal { min-width: 0; padding-left: 6px; }
  .bsmi-crm-lead-table-wrap .bsmi-crm-lead-signal small { overflow-wrap: anywhere; }
  .bsmi-crm-lead-table-wrap .bsmi-crm-stage { padding-inline: 4px; overflow-wrap: anywhere; }
  .bsmi-crm-lead-protection-hero dl { grid-template-columns: 1fr; gap: 8px; }
  .bsmi-crm-lead-protection-hero dl > div { padding: 0; border-left: 0; }
}

.bsmi-crm-customer-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bsmi-crm-customer-kpis article {
  display: grid;
  min-height: 96px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-customer-kpis article:first-child { border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-customer-kpis span,
.bsmi-crm-customer-kpis small { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-customer-kpis strong { align-self: center; font-size: 22px; }
.bsmi-crm-customer-filters label { flex: 1 1 170px; }

.bsmi-crm-customer-table td:first-child strong,
.bsmi-crm-customer-table td:nth-child(3) strong { display: block; }

.bsmi-crm-customer-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 20px 16px;
  overflow: hidden;
  color: #fff;
  background: #101318;
  border-top: 3px solid #8a9098;
  border-radius: 4px;
}

.bsmi-crm-customer-hero.is-critical { border-top-color: var(--bsmi-red); }
.bsmi-crm-customer-hero.is-warning { border-top-color: var(--bsmi-amber); }
.bsmi-crm-customer-hero.is-attention { border-top-color: var(--bsmi-gold); }
.bsmi-crm-customer-hero.is-positive { border-top-color: var(--bsmi-green); }

.bsmi-crm-customer-hero > div {
  display: grid;
  min-width: 0;
  min-height: 94px;
  padding: 14px;
  border-right: 1px solid #30343b;
}

.bsmi-crm-customer-hero > div:last-child { border-right: 0; }
.bsmi-crm-customer-hero span,
.bsmi-crm-customer-hero small { color: #aeb3bc; font-size: 9px; }
.bsmi-crm-customer-hero strong { align-self: center; overflow-wrap: anywhere; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }

.bsmi-crm-customer-relationships,
.bsmi-crm-customer-records { display: grid; }

.bsmi-crm-app .bsmi-crm-customer-relationships > button,
.bsmi-crm-app .bsmi-crm-customer-records > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 0;
  color: var(--bsmi-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bsmi-line);
  border-radius: 0;
}

.bsmi-crm-app .bsmi-crm-customer-relationships > button:last-child,
.bsmi-crm-app .bsmi-crm-customer-records > button:last-child { border-bottom: 0; }
.bsmi-crm-customer-relationships button span,
.bsmi-crm-customer-records button span { display: grid; min-width: 0; gap: 3px; }
.bsmi-crm-customer-relationships button strong,
.bsmi-crm-customer-records button strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-customer-relationships button small,
.bsmi-crm-customer-records button small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-customer-relationships button em,
.bsmi-crm-customer-records button em { flex: 0 0 auto; max-width: 44%; color: var(--bsmi-gold-dark); font-size: 9px; font-style: normal; font-weight: 700; text-align: right; }

.bsmi-crm-assignment-history { display: grid; }

.bsmi-crm-assignment-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-assignment-history article:last-child { border-bottom: 0; }
.bsmi-crm-assignment-history article div { display: grid; min-width: 0; gap: 3px; }
.bsmi-crm-assignment-history strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-assignment-history small { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-assignment-history p { grid-column: 1; margin: 0; overflow-wrap: anywhere; color: #3f4650; font-size: 10px; line-height: 1.45; }
.bsmi-crm-assignment-history span { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 4px 6px; color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; background: #f7f0df; border-radius: 3px; }

@media (max-width: 760px) {
  .bsmi-crm-customer-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-customer-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-customer-table-wrap { overflow: visible; }
  .bsmi-crm-customer-table { display: block; min-width: 0; }
  .bsmi-crm-customer-table thead { display: none; }
  .bsmi-crm-customer-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-customer-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-customer-table td { display: block; min-width: 0; padding: 8px; border: 0; }
  .bsmi-crm-customer-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-customer-table td:first-child,
  .bsmi-crm-customer-table td:nth-child(4),
  .bsmi-crm-customer-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-customer-table td:first-child { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-customer-table td:last-child button { width: 100%; }
  .bsmi-crm-customer-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-customer-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-customer-hero > div:nth-child(-n+2) { border-bottom: 1px solid #30343b; }
  .bsmi-crm-assignment-history article { grid-template-columns: minmax(0, 1fr); }
  .bsmi-crm-assignment-history span { grid-column: 1; grid-row: auto; justify-self: start; }
}

.bsmi-crm-project-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bsmi-crm-project-kpis article {
  display: grid;
  min-height: 96px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-project-kpis article:first-child { border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-project-kpis span,
.bsmi-crm-project-kpis small { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-project-kpis strong { align-self: center; overflow-wrap: anywhere; font-size: 22px; }
.bsmi-crm-project-filters label { flex: 1 1 165px; }
.bsmi-crm-project-table { min-width: 1160px; }
.bsmi-crm-project-table td { vertical-align: top; }
.bsmi-crm-project-table td:first-child { min-width: 190px; }
.bsmi-crm-project-table td:nth-child(2) { min-width: 165px; }
.bsmi-crm-project-table td:nth-child(3),
.bsmi-crm-project-table td:nth-child(4),
.bsmi-crm-project-table td:nth-child(5) { min-width: 150px; }
.bsmi-crm-project-table td strong { display: block; overflow-wrap: anywhere; }

.bsmi-crm-project-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 20px 16px;
  overflow: hidden;
  color: #fff;
  background: #101318;
  border-top: 3px solid #8a9098;
  border-radius: 4px;
}

.bsmi-crm-project-hero.is-critical { border-top-color: var(--bsmi-red); }
.bsmi-crm-project-hero.is-warning { border-top-color: var(--bsmi-amber); }
.bsmi-crm-project-hero.is-attention { border-top-color: var(--bsmi-gold); }
.bsmi-crm-project-hero.is-positive { border-top-color: var(--bsmi-green); }

.bsmi-crm-project-hero > div {
  display: grid;
  min-width: 0;
  min-height: 98px;
  padding: 14px;
  border-right: 1px solid #30343b;
}

.bsmi-crm-project-hero > div:last-child { border-right: 0; }
.bsmi-crm-project-hero span,
.bsmi-crm-project-hero small { color: #aeb3bc; font-size: 9px; }
.bsmi-crm-project-hero strong { align-self: center; overflow-wrap: anywhere; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }

.bsmi-crm-project-evidence {
  position: relative;
  overflow: hidden;
  background: #fbfbfa;
  border-left: 3px solid var(--bsmi-gold);
}

.bsmi-crm-project-evidence::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 4px;
  content: "";
  background: var(--bsmi-black);
}

.bsmi-crm-project-evidence.is-missing { border-left-color: var(--bsmi-red); }
.bsmi-crm-project-evidence > div > span { color: var(--bsmi-gold-dark); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-project-evidence > div > h3 { margin: 5px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-project-evidence > div > p { max-width: 690px; margin: 0 0 13px; color: var(--bsmi-muted); font-size: 10px; line-height: 1.5; }
.bsmi-crm-project-evidence > a { display: inline-flex; margin-top: 12px; color: var(--bsmi-gold-dark); font-size: 10px; font-weight: 750; }

.bsmi-crm-project-related,
.bsmi-crm-project-units,
.bsmi-crm-project-commercial { display: grid; }

.bsmi-crm-project-commercial { margin-top: 14px; }
.bsmi-crm-project-commercial h4 { margin: 0; padding: 9px 0; color: var(--bsmi-muted); font-size: 9px; text-transform: uppercase; border-bottom: 1px solid var(--bsmi-line); }

.bsmi-crm-app .bsmi-crm-project-related > button,
.bsmi-crm-app .bsmi-crm-project-units > button,
.bsmi-crm-app .bsmi-crm-project-commercial > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 11px 0;
  color: var(--bsmi-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bsmi-line);
  border-radius: 0;
}

.bsmi-crm-app .bsmi-crm-project-related > button:last-child,
.bsmi-crm-app .bsmi-crm-project-units > button:last-child,
.bsmi-crm-app .bsmi-crm-project-commercial > button:last-child { border-bottom: 0; }
.bsmi-crm-project-related button span,
.bsmi-crm-project-units button span,
.bsmi-crm-project-commercial button span { display: grid; min-width: 0; gap: 3px; }
.bsmi-crm-project-related button strong,
.bsmi-crm-project-units button strong,
.bsmi-crm-project-commercial button strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-project-related button small,
.bsmi-crm-project-units button small,
.bsmi-crm-project-commercial button small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-project-related button em,
.bsmi-crm-project-units button em,
.bsmi-crm-project-commercial button em { flex: 0 0 auto; max-width: 44%; overflow-wrap: anywhere; color: var(--bsmi-gold-dark); font-size: 9px; font-style: normal; font-weight: 750; text-align: right; }
.bsmi-crm-project-related button em.is-critical { color: var(--bsmi-red); }
.bsmi-crm-project-related button em.is-warning { color: var(--bsmi-amber); }
.bsmi-crm-project-related button em.is-positive { color: var(--bsmi-green); }

.bsmi-crm-project-inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bsmi-black);
  border-bottom: 2px solid var(--bsmi-gold);
  border-radius: 3px;
}

.bsmi-crm-project-inventory-summary > span { display: grid; min-width: 0; min-height: 72px; gap: 5px; padding: 11px; border-right: 1px solid #30343b; }
.bsmi-crm-project-inventory-summary > span:last-child { border-right: 0; }
.bsmi-crm-project-inventory-summary small { color: #aeb3bc; font-size: 8px; }
.bsmi-crm-project-inventory-summary strong { align-self: center; overflow-wrap: anywhere; color: #fff; font-size: 13px; }

.bsmi-crm-project-sync { border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-project-sync > p { margin: 13px 0 0; padding: 11px 12px; color: #454a52; font-size: 10px; line-height: 1.5; background: #f6f6f4; border: 1px solid var(--bsmi-line); }
[data-project-form] fieldset { border-left: 3px solid #d9d9d6; }
[data-project-form] fieldset:first-of-type,
[data-project-form] fieldset:last-of-type { border-left-color: var(--bsmi-gold); }

@media (max-width: 760px) {
  .bsmi-crm-project-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-project-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-project-table-wrap { overflow: visible; }
  .bsmi-crm-project-table { display: block; min-width: 0; }
  .bsmi-crm-project-table thead { display: none; }
  .bsmi-crm-project-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-project-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-project-table td { display: block; min-width: 0 !important; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-project-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-project-table td:first-child,
  .bsmi-crm-project-table td:nth-child(2),
  .bsmi-crm-project-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-project-table td:first-child { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-project-table td:last-child button { width: 100%; }
  .bsmi-crm-project-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-project-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-project-hero > div:nth-child(-n+2) { border-bottom: 1px solid #30343b; }
  .bsmi-crm-project-inventory-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-project-inventory-summary > span:nth-child(2) { border-right: 0; }
  .bsmi-crm-project-inventory-summary > span:nth-child(-n+2) { border-bottom: 1px solid #30343b; }
  .bsmi-crm-project-related button em,
  .bsmi-crm-project-units button em,
  .bsmi-crm-project-commercial button em { max-width: 40%; }
}

.bsmi-crm-inventory-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bsmi-crm-inventory-kpis article {
  display: grid;
  min-height: 96px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 5px;
}

.bsmi-crm-inventory-kpis article:first-child { border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-inventory-kpis span,
.bsmi-crm-inventory-kpis small { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-inventory-kpis strong { align-self: center; overflow-wrap: anywhere; font-size: 22px; }
.bsmi-crm-inventory-filters label { flex: 1 1 145px; }
.bsmi-crm-inventory-filters label.is-search { flex-basis: 240px; }

.bsmi-crm-inventory-bulk {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 8px 11px;
  color: #fff;
  background: #14171b;
  border-bottom: 2px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-inventory-bulk > span { min-width: 78px; font-size: 10px; }
.bsmi-crm-inventory-bulk > span strong { color: var(--bsmi-gold); font-size: 14px; }
.bsmi-crm-inventory-bulk select { width: min(240px, 100%); min-height: 34px; color: var(--bsmi-ink); background: #fff; }
.bsmi-crm-inventory-bulk button { min-height: 34px; color: #16181b; background: var(--bsmi-gold); border-color: var(--bsmi-gold); }
.bsmi-crm-inventory-bulk button:disabled { opacity: .45; }
.bsmi-crm-inventory-bulk small { margin-left: auto; color: #aeb3bc; font-size: 9px; }

.bsmi-crm-inventory-table { min-width: 1160px; }
.bsmi-crm-inventory-table td { vertical-align: top; }
.bsmi-crm-inventory-table th.is-select,
.bsmi-crm-inventory-table td.is-select { width: 42px; min-width: 42px; text-align: center; }
.bsmi-crm-inventory-table input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--bsmi-gold-dark); }
.bsmi-crm-inventory-table td:nth-child(2) { min-width: 205px; }
.bsmi-crm-inventory-table td:nth-child(3) { min-width: 185px; }
.bsmi-crm-inventory-table td:nth-child(4),
.bsmi-crm-inventory-table td:nth-child(6) { min-width: 170px; }
.bsmi-crm-inventory-table td strong { display: block; overflow-wrap: anywhere; }

.bsmi-crm-inventory-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 20px 16px;
  overflow: hidden;
  color: #fff;
  background: #101318;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-inventory-hero > div { display: grid; min-width: 0; min-height: 98px; padding: 14px; border-right: 1px solid #30343b; }
.bsmi-crm-inventory-hero > div:last-child { border-right: 0; }
.bsmi-crm-inventory-hero span,
.bsmi-crm-inventory-hero small { color: #aeb3bc; font-size: 9px; }
.bsmi-crm-inventory-hero strong { align-self: center; overflow-wrap: anywhere; color: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-inventory-hero strong.is-positive { color: #8dc7aa; }
.bsmi-crm-inventory-hero strong.is-warning,
.bsmi-crm-inventory-hero strong.is-attention { color: #e5c173; }
.bsmi-crm-inventory-hero strong.is-critical { color: #ed9696; }

.bsmi-crm-inventory-signal { padding: 4px 7px; font-size: 9px; font-weight: 750; background: #f0f1f2; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-inventory-signal.is-positive { color: var(--bsmi-green); background: #edf7f2; border-color: #badbcb; }
.bsmi-crm-inventory-signal.is-warning,
.bsmi-crm-inventory-signal.is-attention { color: var(--bsmi-amber); background: #fff7e9; border-color: #ead4aa; }
.bsmi-crm-inventory-signal.is-critical { color: var(--bsmi-red); background: #fff0f0; border-color: #e5bcbc; }

.bsmi-crm-inventory-control-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-inventory-control-actions button { min-height: 32px; }
.bsmi-crm-inventory-matches { display: grid; }
.bsmi-crm-app .bsmi-crm-inventory-matches > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 11px 0;
  color: var(--bsmi-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bsmi-line);
  border-radius: 0;
}

.bsmi-crm-app .bsmi-crm-inventory-matches > button:last-child { border-bottom: 0; }
.bsmi-crm-inventory-matches button span { display: grid; min-width: 0; gap: 3px; }
.bsmi-crm-inventory-matches button strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-inventory-matches button small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-inventory-matches button em { flex: 0 0 auto; color: var(--bsmi-gold-dark); font-size: 10px; font-style: normal; font-weight: 750; }

.bsmi-crm-inventory-readiness { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bsmi-crm-inventory-readiness span { padding: 5px 7px; color: var(--bsmi-muted); font-size: 9px; background: #f3f4f4; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-inventory-readiness span.is-complete { color: var(--bsmi-green); background: #eff8f3; border-color: #c7dfd2; }
.bsmi-crm-inventory-audit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 13px; overflow: hidden; background: var(--bsmi-line); border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-inventory-audit span { display: grid; min-width: 0; gap: 4px; padding: 10px; background: #f7f7f5; }
.bsmi-crm-inventory-audit strong { font-size: 9px; }
.bsmi-crm-inventory-audit small { overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 9px; }
[data-assets-form] fieldset { border-left: 3px solid #d9d9d6; }
[data-assets-form] fieldset:first-of-type,
[data-assets-form] fieldset:nth-of-type(4),
[data-assets-form] fieldset:last-of-type { border-left-color: var(--bsmi-gold); }

@media (max-width: 980px) {
  .bsmi-crm-inventory-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-inventory-bulk { align-items: stretch; flex-wrap: wrap; }
  .bsmi-crm-inventory-bulk small { width: 100%; margin-left: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-inventory-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-inventory-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-inventory-bulk > span { display: flex; align-items: center; gap: 5px; width: 100%; }
  .bsmi-crm-inventory-bulk select { flex: 1 1 180px; width: auto; }
  .bsmi-crm-inventory-table-wrap { overflow: visible; }
  .bsmi-crm-inventory-table { display: block; min-width: 0; }
  .bsmi-crm-inventory-table thead { display: none; }
  .bsmi-crm-inventory-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-inventory-table tr { display: grid; grid-template-columns: 38px repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-inventory-table td { display: block; min-width: 0 !important; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-inventory-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-inventory-table td.is-select { grid-row: 1 / span 7; width: 38px; min-width: 38px !important; padding-inline: 4px; }
  .bsmi-crm-inventory-table td:nth-child(2),
  .bsmi-crm-inventory-table td:nth-child(3),
  .bsmi-crm-inventory-table td:last-child { grid-column: 2 / -1; }
  .bsmi-crm-inventory-table td:nth-child(4),
  .bsmi-crm-inventory-table td:nth-child(6) { grid-column: 2; }
  .bsmi-crm-inventory-table td:nth-child(5),
  .bsmi-crm-inventory-table td:nth-child(7) { grid-column: 3; }
  .bsmi-crm-inventory-table td:nth-child(2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-inventory-table td:last-child button { width: 100%; }
  .bsmi-crm-inventory-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-inventory-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-inventory-hero > div:nth-child(-n+2) { border-bottom: 1px solid #30343b; }
  .bsmi-crm-inventory-audit { grid-template-columns: 1fr; }
  .bsmi-crm-inventory-matches button { align-items: flex-start; flex-direction: column; }
}

/* Viewing operations */
.bsmi-crm-viewing-kpis article:first-child { border-top-color: var(--bsmi-gold); }
.bsmi-crm-viewing-control {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(5, minmax(125px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-viewing-control label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-viewing-control label span { color: var(--bsmi-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-viewing-control input,
.bsmi-crm-viewing-control select { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; background: #fff; border: 1px solid #d8dade; border-radius: 3px; }

.bsmi-crm-viewing-status-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-app .bsmi-crm-viewing-status-board button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  color: var(--bsmi-ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
}

.bsmi-crm-app .bsmi-crm-viewing-status-board button:last-child { border-right: 0; }
.bsmi-crm-viewing-status-board button span { align-self: center; min-width: 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 750; }
.bsmi-crm-viewing-status-board button strong { align-self: center; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-viewing-status-board button small { grid-column: 1 / -1; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-viewing-status-board button.is-selected { color: #fff; background: var(--bsmi-black); box-shadow: inset 0 3px 0 var(--bsmi-gold); }
.bsmi-crm-viewing-status-board button.is-selected small { color: #c8c9cc; }

.bsmi-crm-viewing-table { min-width: 1180px; }
.bsmi-crm-viewing-table td { vertical-align: top; }
.bsmi-crm-viewing-table td strong,
.bsmi-crm-viewing-table td small { display: block; max-width: 190px; overflow-wrap: anywhere; }
.bsmi-crm-viewing-table td small { margin-top: 4px; color: var(--bsmi-muted); font-size: 9px; line-height: 1.35; }
.bsmi-crm-viewing-table td:nth-child(1) { min-width: 132px; }
.bsmi-crm-viewing-table td:nth-child(2) { min-width: 145px; }
.bsmi-crm-viewing-table td:nth-child(3) { min-width: 175px; }
.bsmi-crm-viewing-table td:nth-child(7) { min-width: 175px; }
.bsmi-crm-viewing-table strong.is-risk { color: var(--bsmi-red); }
.bsmi-crm-viewing-table strong.is-good { color: var(--bsmi-green); }
.bsmi-crm-status.is-in-progress,
.bsmi-crm-status.is-confirmed,
.bsmi-crm-status.is-completed,
.bsmi-crm-status.is-keys-collected { color: var(--bsmi-green); background: #edf7f2; border-color: #badbcb; }
.bsmi-crm-status.is-access-pending,
.bsmi-crm-status.is-feedback-due,
.bsmi-crm-status.is-pending,
.bsmi-crm-status.is-not-checked,
.bsmi-crm-status.is-reschedule-requested { color: var(--bsmi-amber); background: #fff7e9; border-color: #ead4aa; }
.bsmi-crm-status.is-no-show,
.bsmi-crm-status.is-cancelled,
.bsmi-crm-status.is-blocked { color: var(--bsmi-red); background: #fff0f0; border-color: #e5bcbc; }

.bsmi-crm-viewing-performance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.bsmi-crm-viewing-performance-list { display: grid; }
.bsmi-crm-viewing-performance-list article { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-viewing-performance-list article:last-child { border-bottom: 0; }
.bsmi-crm-viewing-performance-list article > div,
.bsmi-crm-viewing-performance-list article > span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-viewing-performance-list article > div strong { overflow-wrap: anywhere; font-size: 11px; }
.bsmi-crm-viewing-performance-list article small,
.bsmi-crm-viewing-performance-list article i { color: var(--bsmi-muted); font-size: 9px; font-style: normal; }
.bsmi-crm-viewing-performance-list article > span { flex: 0 0 72px; text-align: right; }
.bsmi-crm-viewing-performance-list article b { color: var(--bsmi-gold-dark); font-size: 14px; }

.bsmi-crm-viewing-form fieldset { border-left: 3px solid #d9d9d6; }
.bsmi-crm-viewing-form fieldset:nth-of-type(1),
.bsmi-crm-viewing-form fieldset:nth-of-type(3),
.bsmi-crm-viewing-form fieldset:nth-of-type(6) { border-left-color: var(--bsmi-gold); }
.bsmi-crm-viewing-form.is-meeting [data-viewing-itinerary],
.bsmi-crm-viewing-form.is-meeting fieldset:nth-of-type(4),
.bsmi-crm-viewing-form.is-meeting fieldset:nth-of-type(5),
.bsmi-crm-viewing-form.is-meeting fieldset:nth-of-type(6) { display: none; }
.bsmi-crm-viewing-itinerary-editor { grid-column: 1 / -1; }
.bsmi-crm-viewing-itinerary-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; grid-column: 1 / -1; margin-bottom: 8px; }
.bsmi-crm-viewing-itinerary-head p { margin: 0; color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-viewing-itinerary-head button { min-height: 32px; }
.bsmi-crm-viewing-itinerary-editor [data-viewing-itinerary-list] { display: grid; grid-column: 1 / -1; gap: 8px; }
.bsmi-crm-viewing-itinerary-row {
  display: grid;
  grid-template-columns: 28px minmax(170px, 1.6fr) minmax(150px, 1fr) minmax(120px, .8fr) minmax(150px, 1.2fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
  padding: 9px;
  background: #f7f7f5;
  border: 1px solid var(--bsmi-line);
  border-radius: 3px;
}
.bsmi-crm-viewing-stop-number { align-self: center; color: var(--bsmi-gold-dark); font-family: Georgia, "Times New Roman", serif; font-size: 20px; text-align: center; }
.bsmi-crm-viewing-itinerary-row label { min-width: 0; }
.bsmi-crm-viewing-itinerary-row select,
.bsmi-crm-viewing-itinerary-row input { width: 100%; min-width: 0; }
.bsmi-crm-viewing-itinerary-row > button { min-height: 38px; }
.bsmi-crm-drawer .bsmi-crm-viewing-itinerary-row { grid-template-columns: 28px repeat(2, minmax(0, 1fr)); }
.bsmi-crm-drawer .bsmi-crm-viewing-itinerary-row .bsmi-crm-viewing-stop-number { grid-row: 1 / span 3; }
.bsmi-crm-drawer .bsmi-crm-viewing-itinerary-row .is-note { grid-column: 2 / -1; }
.bsmi-crm-drawer .bsmi-crm-viewing-itinerary-row > button { grid-column: 2 / -1; }

.bsmi-crm-viewing-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 18px 14px; color: #fff; background: var(--bsmi-black); border-top: 3px solid var(--bsmi-gold); border-radius: 3px; }
.bsmi-crm-viewing-hero > div { display: grid; gap: 4px; min-width: 0; padding: 14px; border-right: 1px solid #30343b; }
.bsmi-crm-viewing-hero > div:last-child { border-right: 0; }
.bsmi-crm-viewing-hero span,
.bsmi-crm-viewing-hero small { color: #bfc2c7; font-size: 9px; }
.bsmi-crm-viewing-hero strong { overflow-wrap: anywhere; font-size: 15px; }
.bsmi-crm-viewing-itinerary-360 { display: grid; }
.bsmi-crm-viewing-itinerary-360 article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-viewing-itinerary-360 article:last-child { border-bottom: 0; }
.bsmi-crm-viewing-itinerary-360 article > span { display: grid; place-items: center; width: 26px; height: 26px; color: #fff; font-size: 11px; font-weight: 750; background: var(--bsmi-black); border-radius: 50%; }
.bsmi-crm-viewing-itinerary-360 article > div { display: grid; gap: 4px; min-width: 0; }
.bsmi-crm-viewing-itinerary-360 article strong,
.bsmi-crm-viewing-itinerary-360 article small,
.bsmi-crm-viewing-itinerary-360 article p { margin: 0; overflow-wrap: anywhere; }
.bsmi-crm-viewing-itinerary-360 article small,
.bsmi-crm-viewing-itinerary-360 article p { color: var(--bsmi-muted); font-size: 10px; line-height: 1.4; }
.bsmi-crm-viewing-itinerary-360 article aside { display: grid; justify-items: end; gap: 6px; }
.bsmi-crm-viewing-itinerary-360 article em { padding: 4px 6px; color: var(--bsmi-muted); font-size: 8px; font-style: normal; font-weight: 750; background: #f1f2f2; border-radius: 3px; }
.bsmi-crm-viewing-itinerary-360 article a { color: var(--bsmi-gold-dark); font-size: 9px; font-weight: 750; }
.bsmi-crm-viewing-feedback { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 12px; overflow: hidden; background: var(--bsmi-line); border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-viewing-feedback > div { display: grid; gap: 3px; padding: 11px; background: #f7f7f5; }
.bsmi-crm-viewing-feedback span { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-viewing-feedback strong { font-size: 14px; }
.bsmi-crm-viewing-objection { margin-top: 10px; padding: 10px 12px; background: #fff7e9; border-left: 3px solid var(--bsmi-amber); }
.bsmi-crm-viewing-objection p { margin: 4px 0 0; }
.bsmi-crm-viewing-next { display: grid; gap: 4px; padding: 12px; background: #f3f4f4; border-left: 3px solid #a9afb6; }
.bsmi-crm-viewing-next.is-good { background: #edf7f2; border-left-color: var(--bsmi-green); }
.bsmi-crm-viewing-next.is-risk { background: #fff0f0; border-left-color: var(--bsmi-red); }
.bsmi-crm-viewing-next span,
.bsmi-crm-viewing-next small { color: var(--bsmi-muted); font-size: 10px; }

@media (max-width: 1180px) {
  .bsmi-crm-viewing-control { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-viewing-control .is-search { grid-column: span 2; }
  .bsmi-crm-viewing-status-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-app .bsmi-crm-viewing-status-board button:nth-child(3) { border-right: 0; }
  .bsmi-crm-app .bsmi-crm-viewing-status-board button:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-viewing-itinerary-row { grid-template-columns: 28px repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-viewing-itinerary-row .is-note { grid-column: 2 / -1; }
  .bsmi-crm-viewing-itinerary-row > button { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .bsmi-crm-viewing-control { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-viewing-control .is-search { grid-column: 1 / -1; }
  .bsmi-crm-viewing-status-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-app .bsmi-crm-viewing-status-board button { min-height: 68px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-app .bsmi-crm-viewing-status-board button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-app .bsmi-crm-viewing-status-board button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-viewing-table-wrap { overflow: visible; }
  .bsmi-crm-viewing-table { display: block; min-width: 0; }
  .bsmi-crm-viewing-table thead { display: none; }
  .bsmi-crm-viewing-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-viewing-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-viewing-table td { display: block; min-width: 0 !important; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-viewing-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-viewing-table td:nth-child(1),
  .bsmi-crm-viewing-table td:nth-child(2),
  .bsmi-crm-viewing-table td:nth-child(3),
  .bsmi-crm-viewing-table td:nth-child(7),
  .bsmi-crm-viewing-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-viewing-table td:last-child button { width: 100%; }
  .bsmi-crm-viewing-performance { grid-template-columns: 1fr; }
  .bsmi-crm-viewing-itinerary-row { grid-template-columns: 28px minmax(0, 1fr); }
  .bsmi-crm-viewing-itinerary-row label,
  .bsmi-crm-viewing-itinerary-row .is-note,
  .bsmi-crm-viewing-itinerary-row > button { grid-column: 2; }
  .bsmi-crm-viewing-itinerary-head { align-items: stretch; flex-direction: column; }
  .bsmi-crm-viewing-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-viewing-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-viewing-hero > div:nth-child(-n+2) { border-bottom: 1px solid #30343b; }
  .bsmi-crm-viewing-itinerary-360 article { grid-template-columns: 28px minmax(0, 1fr); }
  .bsmi-crm-viewing-itinerary-360 article aside { grid-column: 2; grid-auto-flow: column; justify-content: start; }
}

/* Requirements and property matching */
.bsmi-crm-requirement-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.bsmi-crm-requirement-kpis article {
  display: grid;
  min-height: 94px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-requirement-kpis article:first-child { border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-requirement-kpis span,
.bsmi-crm-requirement-kpis small { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-requirement-kpis strong { align-self: center; overflow-wrap: anywhere; font-size: 22px; }

.bsmi-crm-requirement-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-requirement-stages article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-height: 70px;
  padding: 12px;
  border-right: 1px solid var(--bsmi-line);
}
.bsmi-crm-requirement-stages article:last-child { border-right: 0; }
.bsmi-crm-requirement-stages article.is-active { box-shadow: inset 0 3px var(--bsmi-gold); }
.bsmi-crm-requirement-stages article.is-matched { box-shadow: inset 0 3px var(--bsmi-green); }
.bsmi-crm-requirement-stages article.is-on-hold { box-shadow: inset 0 3px var(--bsmi-amber); }
.bsmi-crm-requirement-stages span { align-self: center; color: var(--bsmi-muted); font-size: 10px; font-weight: 750; }
.bsmi-crm-requirement-stages strong { align-self: center; font-size: 20px; }
.bsmi-crm-requirement-stages small { grid-column: 1 / -1; color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-requirement-filters {
  grid-template-columns: minmax(210px, 2fr) repeat(5, minmax(125px, 1fr)) auto;
}
.bsmi-crm-requirement-table { min-width: 1260px; }
.bsmi-crm-requirement-table th:nth-child(1) { width: 15%; }
.bsmi-crm-requirement-table th:nth-child(2) { width: 18%; }
.bsmi-crm-requirement-table th:nth-child(3) { width: 13%; }
.bsmi-crm-requirement-score { display: grid; gap: 3px; }
.bsmi-crm-requirement-score strong { color: var(--bsmi-black); font-size: 15px; }
.bsmi-crm-requirement-score small { max-width: 170px; color: var(--bsmi-muted); font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-requirement-score.is-strong strong,
.bsmi-crm-requirement-score.is-good strong { color: var(--bsmi-green); }
.bsmi-crm-requirement-score.is-stretch strong { color: #8b6200; }
.bsmi-crm-requirement-score.is-weak strong,
.bsmi-crm-requirement-score.is-blocked strong { color: var(--bsmi-red); }

.bsmi-crm-requirement-reports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.bsmi-crm-requirement-reports > article {
  min-width: 0;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-requirement-reports > article > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bsmi-crm-requirement-reports header span { color: var(--bsmi-gold-dark); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-requirement-reports h2 { margin: 2px 0 0; font-size: 15px; }
.bsmi-crm-requirement-reports header > strong { font-size: 19px; }
.bsmi-crm-requirement-reports .bsmi-crm-source-bars { margin: 0; }
.bsmi-crm-requirement-reports .is-unmet { border-top: 3px solid var(--bsmi-red); }
.bsmi-crm-requirement-unmet { display: grid; }
.bsmi-crm-requirement-unmet button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bsmi-line);
  border-radius: 0;
}
.bsmi-crm-requirement-unmet button:last-child { border-bottom: 0; }
.bsmi-crm-requirement-unmet span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-requirement-unmet small { color: var(--bsmi-muted); font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-requirement-unmet em { color: var(--bsmi-red); font-size: 10px; font-style: normal; font-weight: 750; white-space: nowrap; }

.bsmi-crm-requirement-rule { padding: 12px; background: #f5f1e8; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-requirement-rule p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 10px; line-height: 1.5; }
.bsmi-crm-requirement-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 18px 14px;
  color: #fff;
  background: var(--bsmi-black);
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 3px;
}
.bsmi-crm-requirement-hero.is-critical { border-top-color: var(--bsmi-red); }
.bsmi-crm-requirement-hero.is-positive { border-top-color: var(--bsmi-green); }
.bsmi-crm-requirement-hero > div { display: grid; gap: 4px; min-width: 0; padding: 14px; border-right: 1px solid #30343b; }
.bsmi-crm-requirement-hero > div:last-child { border-right: 0; }
.bsmi-crm-requirement-hero span,
.bsmi-crm-requirement-hero small { color: #c3c5c8; font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-requirement-hero strong { overflow-wrap: anywhere; font-size: 15px; }
.bsmi-crm-requirement-matches .bsmi-crm-drawer-band-head p { margin: 3px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-requirement-match-list { display: grid; gap: 9px; }
.bsmi-crm-requirement-match {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-left: 3px solid #9fa4aa;
  border-radius: 4px;
}
.bsmi-crm-requirement-match.has-image { grid-template-columns: 112px minmax(0, 1fr); }
.bsmi-crm-requirement-match.is-strong { border-left-color: var(--bsmi-green); }
.bsmi-crm-requirement-match.is-good { border-left-color: #6d987f; }
.bsmi-crm-requirement-match.is-stretch { border-left-color: var(--bsmi-amber); }
.bsmi-crm-requirement-match.is-weak,
.bsmi-crm-requirement-match.is-blocked { border-left-color: var(--bsmi-red); }
.bsmi-crm-requirement-match > img { width: 112px; height: 100%; min-height: 190px; object-fit: cover; }
.bsmi-crm-requirement-match-main { display: grid; gap: 9px; min-width: 0; padding: 12px; }
.bsmi-crm-requirement-match-main header { display: flex; justify-content: space-between; gap: 12px; }
.bsmi-crm-requirement-match-main header > div { min-width: 0; }
.bsmi-crm-requirement-match-main header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-requirement-match-main h4 { margin: 2px 0; font-size: 13px; overflow-wrap: anywhere; }
.bsmi-crm-requirement-match-main header p { margin: 0; color: var(--bsmi-muted); font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-requirement-match-main header > strong { font-size: 24px; line-height: 1; white-space: nowrap; }
.bsmi-crm-requirement-match-main header > strong small { font-size: 10px; }
.bsmi-crm-requirement-match-bar { height: 4px; overflow: hidden; background: #e7e8e8; border-radius: 2px; }
.bsmi-crm-requirement-match-bar i { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-requirement-match.is-strong .bsmi-crm-requirement-match-bar i,
.bsmi-crm-requirement-match.is-good .bsmi-crm-requirement-match-bar i { background: var(--bsmi-green); }
.bsmi-crm-requirement-match.is-weak .bsmi-crm-requirement-match-bar i,
.bsmi-crm-requirement-match.is-blocked .bsmi-crm-requirement-match-bar i { background: var(--bsmi-red); }
.bsmi-crm-requirement-reasons,
.bsmi-crm-requirement-block { display: grid; gap: 4px; padding: 9px; background: #f5f6f5; }
.bsmi-crm-requirement-reasons span,
.bsmi-crm-requirement-reasons small,
.bsmi-crm-requirement-block span { color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.bsmi-crm-requirement-block { background: #fff0f0; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-requirement-block strong { color: var(--bsmi-red); font-size: 9px; text-transform: uppercase; }
.bsmi-crm-requirement-match footer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bsmi-crm-requirement-match footer button,
.bsmi-crm-requirement-match footer a { min-height: 31px; padding: 7px 9px; font-size: 9px; }
.bsmi-crm-requirement-match footer em { margin-right: auto; padding: 5px 7px; color: #fff; font-size: 8px; font-style: normal; font-weight: 750; background: var(--bsmi-black); border-radius: 3px; }
.bsmi-crm-requirement-match footer em.is-rejected { background: var(--bsmi-red); }
.bsmi-crm-requirement-match footer em.is-shortlisted,
.bsmi-crm-requirement-match footer em.is-shared,
.bsmi-crm-requirement-match footer em.is-viewing-booked { background: var(--bsmi-green); }
.bsmi-crm-requirement-history { display: grid; }
.bsmi-crm-requirement-history article { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-requirement-history article:last-child { border-bottom: 0; }
.bsmi-crm-requirement-history i { width: 8px; height: 8px; margin-top: 4px; background: var(--bsmi-gold); border-radius: 50%; }
.bsmi-crm-requirement-history i.is-rejected { background: var(--bsmi-red); }
.bsmi-crm-requirement-history i.is-shortlisted,
.bsmi-crm-requirement-history i.is-shared,
.bsmi-crm-requirement-history i.is-viewing-booked { background: var(--bsmi-green); }
.bsmi-crm-requirement-history span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-requirement-history small { color: var(--bsmi-muted); font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-requirement-decision-summary { display: grid; gap: 5px; padding: 12px; background: #f4f4f2; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-requirement-decision-summary span,
.bsmi-crm-requirement-decision-summary p { margin: 0; color: var(--bsmi-muted); font-size: 10px; line-height: 1.45; }

@media (max-width: 1180px) {
  .bsmi-crm-requirement-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-requirement-filters .is-search { grid-column: span 2; }
}

@media (max-width: 760px) {
  .bsmi-crm-requirement-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-requirement-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-requirement-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-requirement-stages article { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-requirement-stages article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-requirement-stages article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bsmi-crm-requirement-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-requirement-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-requirement-table-wrap { overflow: visible; }
  .bsmi-crm-requirement-table { display: block; min-width: 0; }
  .bsmi-crm-requirement-table thead { display: none; }
  .bsmi-crm-requirement-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-requirement-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-requirement-table td { display: block; min-width: 0 !important; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-requirement-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-requirement-table td:nth-child(1),
  .bsmi-crm-requirement-table td:nth-child(2),
  .bsmi-crm-requirement-table td:nth-child(5),
  .bsmi-crm-requirement-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-requirement-table td:last-child button { width: 100%; }
  .bsmi-crm-requirement-reports { grid-template-columns: 1fr; }
  .bsmi-crm-requirement-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-requirement-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-requirement-hero > div:nth-child(-n+2) { border-bottom: 1px solid #30343b; }
  .bsmi-crm-requirement-match.has-image { grid-template-columns: 1fr; }
  .bsmi-crm-requirement-match > img { width: 100%; height: 150px; min-height: 0; }
  .bsmi-crm-requirement-match-main header > strong { font-size: 20px; }
}

/* Listings and portal publication operations */
.bsmi-crm-portal-distribution { margin: 0 0 14px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution > header { display: flex; min-height: 82px; padding: 16px 18px; align-items: center; justify-content: space-between; gap: 18px; color: #fff; background: #111316; }
.bsmi-crm-portal-distribution > header small { color: #c3a45f; font-size: 8px; font-weight: 850; }
.bsmi-crm-portal-distribution > header h2 { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-portal-distribution > header p { margin: 0; color: #adb1b6; font-size: 9px; }
.bsmi-crm-portal-distribution > header > strong { font-size: 12px; white-space: nowrap; }
.bsmi-crm-portal-distribution-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-profiles article { display: flex; min-width: 0; min-height: 108px; padding: 14px; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-portal-distribution-profiles article:last-child { border-right: 0; }
.bsmi-crm-portal-distribution-profiles span { color: #9a7d42; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-portal-distribution-profiles strong { margin: 6px 0; font-size: 11px; overflow-wrap: anywhere; }
.bsmi-crm-portal-distribution-profiles small { color: #777d84; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-portal-distribution-profiles button { align-self: flex-start; margin-top: auto; padding: 5px 8px; }
.bsmi-crm-portal-distribution-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-kpis > div { min-width: 0; padding: 13px 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-kpis > div:last-child { border-right: 0; }
.bsmi-crm-portal-distribution-kpis span { display: block; color: #777d84; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-portal-distribution-kpis strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.bsmi-crm-portal-distribution-boundary { display: flex; margin: 14px; padding: 12px 14px; align-items: center; gap: 18px; background: #f5f1e7; border-left: 3px solid #b8954d; }
.bsmi-crm-portal-distribution-boundary strong { font-size: 9px; text-transform: uppercase; }
.bsmi-crm-portal-distribution-boundary span { color: #655f52; font-size: 9px; line-height: 1.5; }
.bsmi-crm-portal-distribution-ledger { display: grid; margin: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-ledger > section:first-child { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-ledger section > header { display: flex; padding: 12px 14px; justify-content: space-between; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-ledger article { display: grid; min-height: 54px; padding: 10px 12px; align-items: center; gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-distribution-ledger article:last-child { border-bottom: 0; }
.bsmi-crm-portal-distribution-ledger article div { min-width: 0; }
.bsmi-crm-portal-distribution-ledger article strong, .bsmi-crm-portal-distribution-ledger article small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-portal-distribution-ledger article small { margin-top: 3px; color: #7b8188; font-size: 8px; }
.bsmi-crm-portal-distribution-ledger article > span { padding: 3px 6px; color: #745b22; background: #fbf2d5; font-size: 8px; font-weight: 800; }
.bsmi-crm-portal-distribution-ledger article > span.is-applied { color: #245f4b; background: #e5f0e9; }
.bsmi-crm-portal-distribution-ledger article > span.is-rejected, .bsmi-crm-portal-distribution-ledger article > span.is-failed { color: #8b252b; background: #f7dddd; }
.bsmi-crm-portal-distribution-ledger section > p { padding: 14px; color: #7b8188; }

.bsmi-crm-listing-kpis,
.bsmi-crm-publication-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.bsmi-crm-listing-kpis article,
.bsmi-crm-publication-kpis article {
  display: grid;
  min-height: 98px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-listing-kpis article:first-child,
.bsmi-crm-publication-kpis article:first-child { border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-listing-kpis span,
.bsmi-crm-listing-kpis small,
.bsmi-crm-publication-kpis span,
.bsmi-crm-publication-kpis small { color: var(--bsmi-muted); font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-listing-kpis strong,
.bsmi-crm-publication-kpis strong { align-self: center; font-size: 22px; overflow-wrap: anywhere; }

.bsmi-crm-listing-stages,
.bsmi-crm-publication-stages {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-listing-stages button,
.bsmi-crm-publication-stages button {
  display: grid;
  min-width: 0;
  min-height: 68px;
  padding: 10px;
  color: var(--bsmi-ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  cursor: pointer;
}
.bsmi-crm-listing-stages button:last-child,
.bsmi-crm-publication-stages button:last-child { border-right: 0; }
.bsmi-crm-listing-stages button:hover,
.bsmi-crm-publication-stages button:hover { background: #f6f6f4; }
.bsmi-crm-listing-stages button.is-selected,
.bsmi-crm-publication-stages button.is-selected { box-shadow: inset 0 3px var(--bsmi-gold); }
.bsmi-crm-listing-stages button.is-published,
.bsmi-crm-publication-stages button.is-published { box-shadow: inset 0 3px var(--bsmi-green); }
.bsmi-crm-listing-stages button.is-expired,
.bsmi-crm-publication-stages button.is-rejected { box-shadow: inset 0 3px var(--bsmi-red); }
.bsmi-crm-listing-stages span,
.bsmi-crm-publication-stages span { align-self: center; color: var(--bsmi-muted); font-size: 9px; font-weight: 750; overflow-wrap: anywhere; }
.bsmi-crm-listing-stages strong,
.bsmi-crm-publication-stages strong { align-self: center; font-size: 18px; }

.bsmi-crm-listing-filters,
.bsmi-crm-publication-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(5, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-listing-filters label,
.bsmi-crm-publication-filters label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-listing-filters label > span,
.bsmi-crm-publication-filters label > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-listing-filters input,
.bsmi-crm-listing-filters select,
.bsmi-crm-publication-filters input,
.bsmi-crm-publication-filters select { width: 100%; min-width: 0; height: 36px; padding: 0 9px; background: #fff; border: 1px solid #d3d5d8; border-radius: 3px; font-size: 10px; }

.bsmi-crm-listing-table,
.bsmi-crm-publication-table { min-width: 1120px; }
.bsmi-crm-listing-table td,
.bsmi-crm-publication-table td { vertical-align: top; }
.bsmi-crm-listing-signal,
.bsmi-crm-publication-signal {
  display: inline-flex;
  max-width: 150px;
  padding: 4px 6px;
  color: #32363b;
  font-size: 8px;
  font-weight: 750;
  overflow-wrap: anywhere;
  background: #eceeed;
  border-radius: 3px;
}
.bsmi-crm-listing-signal.is-ready,
.bsmi-crm-publication-signal.is-ready,
.bsmi-crm-listing-publications em.is-ready { color: #155c3c; background: #e6f3ec; }
.bsmi-crm-listing-signal.is-warning,
.bsmi-crm-publication-signal.is-warning { color: #82540d; background: #fff2dc; }
.bsmi-crm-listing-signal.is-danger,
.bsmi-crm-publication-signal.is-danger,
.bsmi-crm-listing-publications em.is-danger { color: #922e2e; background: #fde7e7; }
.bsmi-crm-listing-signal.is-review,
.bsmi-crm-publication-signal.is-review { color: #674f18; background: #f5edda; }
.bsmi-crm-listing-signal.is-history,
.bsmi-crm-publication-signal.is-history { color: #59606a; background: #eceef0; }

.bsmi-crm-listing-reports,
.bsmi-crm-publication-reports {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.bsmi-crm-listing-reports > article,
.bsmi-crm-publication-reports > article {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-listing-reports h3,
.bsmi-crm-publication-reports h3 { margin: 0 0 12px; font-size: 12px; }
.bsmi-crm-listing-report-list { display: grid; gap: 8px; }
.bsmi-crm-listing-report-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; }
.bsmi-crm-listing-report-list > div > span,
.bsmi-crm-listing-report-list > div > strong { min-width: 0; font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-listing-report-list > div > i { grid-column: 1 / -1; height: 3px; overflow: hidden; background: #e9eae9; border-radius: 2px; }
.bsmi-crm-listing-report-list > div > i b { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-listing-report-list button {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 7px 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bsmi-line);
  border-radius: 0;
  cursor: pointer;
}
.bsmi-crm-listing-report-list button span,
.bsmi-crm-listing-report-list button strong { min-width: 0; font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-listing-report-list p { margin: 0; color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-listing-hero,
.bsmi-crm-publication-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 18px 12px;
  overflow: hidden;
  color: #fff;
  background: var(--bsmi-black);
  border-radius: 4px;
}
.bsmi-crm-listing-hero > div,
.bsmi-crm-publication-hero > div { display: grid; gap: 5px; min-width: 0; min-height: 92px; padding: 14px; border-right: 1px solid #303238; }
.bsmi-crm-listing-hero > div:last-child,
.bsmi-crm-publication-hero > div:last-child { border-right: 0; }
.bsmi-crm-listing-hero span,
.bsmi-crm-listing-hero small,
.bsmi-crm-publication-hero span,
.bsmi-crm-publication-hero small { color: #c1c4c8; font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-listing-hero strong,
.bsmi-crm-publication-hero strong { font-size: 15px; overflow-wrap: anywhere; }
.bsmi-crm-listing-hero strong.is-ready,
.bsmi-crm-publication-hero strong.is-ready { color: #7cd1aa; }
.bsmi-crm-listing-hero strong.is-warning,
.bsmi-crm-publication-hero strong.is-warning,
.bsmi-crm-listing-hero strong.is-review { color: #e7bd65; }
.bsmi-crm-listing-hero strong.is-danger,
.bsmi-crm-publication-hero strong.is-danger { color: #f08b8b; }

.bsmi-crm-listing-readiness { display: grid; gap: 5px; margin: 10px 0; }
.bsmi-crm-listing-readiness > div { height: 5px; overflow: hidden; background: #e5e6e5; border-radius: 3px; }
.bsmi-crm-listing-readiness i { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-listing-readiness small { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-listing-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bsmi-crm-listing-checks span { padding: 7px 8px; color: #8c2d2d; font-size: 9px; overflow-wrap: anywhere; background: #fff0f0; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-listing-checks span.is-complete { color: #155c3c; background: #edf7f1; border-left-color: var(--bsmi-green); }
.bsmi-crm-listing-next { display: grid; gap: 3px; margin: 10px 0 0; padding: 9px; background: #f3f1eb; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-listing-next strong { font-size: 9px; text-transform: uppercase; }
.bsmi-crm-listing-next span { color: var(--bsmi-muted); font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-listing-publications { display: grid; }
.bsmi-crm-listing-publications button { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; padding: 10px 0; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--bsmi-line); border-radius: 0; cursor: pointer; }
.bsmi-crm-listing-publications button > span { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-listing-publications strong,
.bsmi-crm-listing-publications small { overflow-wrap: anywhere; }
.bsmi-crm-listing-publications small { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-listing-publications em { align-self: center; padding: 4px 6px; font-size: 8px; font-style: normal; font-weight: 750; background: #eceeed; border-radius: 3px; }
.bsmi-crm-listing-rule,
.bsmi-crm-publication-rule { padding: 11px; background: #f3f1eb; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-listing-rule strong,
.bsmi-crm-publication-rule strong { font-size: 10px; }
.bsmi-crm-listing-rule p,
.bsmi-crm-publication-rule p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-publication-rejection { border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-publication-rejection .bsmi-crm-drawer-band-head > span { padding: 4px 6px; color: #922e2e; font-size: 8px; font-weight: 750; background: #fde7e7; border-radius: 3px; }
.bsmi-crm-publication-rejection .bsmi-crm-drawer-band-head > span.is-ready { color: #155c3c; background: #e6f3ec; }

@media (max-width: 1180px) {
  .bsmi-crm-portal-distribution-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-portal-distribution-profiles article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-portal-distribution-profiles article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-distribution-ledger { grid-template-columns: 1fr; }
  .bsmi-crm-portal-distribution-ledger > section:first-child { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-listing-stages,
  .bsmi-crm-publication-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bsmi-crm-listing-stages button:nth-child(4n),
  .bsmi-crm-publication-stages button:nth-child(4n) { border-right: 0; }
  .bsmi-crm-listing-stages button:nth-child(-n+4),
  .bsmi-crm-publication-stages button:nth-child(-n+4) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-listing-filters,
  .bsmi-crm-publication-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-listing-filters .is-search,
  .bsmi-crm-publication-filters .is-search { grid-column: span 2; }
  .bsmi-crm-listing-reports,
  .bsmi-crm-publication-reports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bsmi-crm-portal-distribution > header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-portal-distribution-profiles, .bsmi-crm-portal-distribution-kpis { grid-template-columns: 1fr; }
  .bsmi-crm-portal-distribution-profiles article, .bsmi-crm-portal-distribution-kpis > div { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-distribution-profiles article:last-child, .bsmi-crm-portal-distribution-kpis > div:last-child { border-bottom: 0; }
  .bsmi-crm-portal-distribution-profiles button { min-height: 44px; }
  .bsmi-crm-portal-distribution-boundary { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bsmi-crm-portal-distribution-ledger article { grid-template-columns: minmax(0, 1fr) auto; }
  .bsmi-crm-portal-distribution-ledger article button { grid-column: 1 / -1; min-height: 44px; }
  .bsmi-crm-listing-kpis,
  .bsmi-crm-publication-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-listing-kpis article,
  .bsmi-crm-publication-kpis article { min-height: 86px; padding: 12px; }
  .bsmi-crm-listing-stages,
  .bsmi-crm-publication-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-listing-stages button:nth-child(2n),
  .bsmi-crm-publication-stages button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-listing-stages button:nth-child(-n+6),
  .bsmi-crm-publication-stages button:nth-child(-n+6) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-listing-filters,
  .bsmi-crm-publication-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-listing-filters .is-search,
  .bsmi-crm-publication-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-listing-table-wrap,
  .bsmi-crm-publication-table-wrap { overflow: visible; }
  .bsmi-crm-listing-table,
  .bsmi-crm-publication-table { display: block; min-width: 0; }
  .bsmi-crm-listing-table thead,
  .bsmi-crm-publication-table thead { display: none; }
  .bsmi-crm-listing-table tbody,
  .bsmi-crm-publication-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-listing-table tr,
  .bsmi-crm-publication-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-listing-table td,
  .bsmi-crm-publication-table td { display: block; min-width: 0 !important; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-listing-table td::before,
  .bsmi-crm-publication-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-listing-table td:nth-child(1),
  .bsmi-crm-listing-table td:nth-child(2),
  .bsmi-crm-listing-table td:nth-child(5),
  .bsmi-crm-listing-table td:last-child,
  .bsmi-crm-publication-table td:nth-child(1),
  .bsmi-crm-publication-table td:nth-child(3),
  .bsmi-crm-publication-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-listing-table td:last-child .bsmi-crm-row-actions,
  .bsmi-crm-publication-table td:last-child .bsmi-crm-row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-listing-table td:last-child button,
  .bsmi-crm-publication-table td:last-child button { width: 100%; }
  .bsmi-crm-listing-reports,
  .bsmi-crm-publication-reports { grid-template-columns: 1fr; }
  .bsmi-crm-listing-hero,
  .bsmi-crm-publication-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-listing-hero > div:nth-child(2),
  .bsmi-crm-publication-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-listing-hero > div:nth-child(-n+2),
  .bsmi-crm-publication-hero > div:nth-child(-n+2) { border-bottom: 1px solid #303238; }
  .bsmi-crm-listing-checks { grid-template-columns: 1fr; }
}

/* Task and follow-up operations */
.bsmi-crm-task-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bsmi-crm-task-kpi {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 105px;
  padding: 15px;
  color: var(--bsmi-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #d1d4d8;
  border-radius: 4px;
  cursor: pointer;
}

.bsmi-crm-task-kpi:hover,
.bsmi-crm-task-kpi.is-active {
  border-top-color: var(--bsmi-gold);
  box-shadow: 0 8px 20px rgba(11, 12, 14, 0.08);
}

.bsmi-crm-task-kpi span,
.bsmi-crm-task-kpi small {
  min-width: 0;
  color: var(--bsmi-muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.bsmi-crm-task-kpi span { font-weight: 750; text-transform: uppercase; }
.bsmi-crm-task-kpi strong { font-size: 25px; line-height: 1; }

.bsmi-crm-task-command {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.bsmi-crm-task-plan,
.bsmi-crm-task-workload,
.bsmi-crm-task-register {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-task-plan > header,
.bsmi-crm-task-workload > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-task-plan h2,
.bsmi-crm-task-workload h2 { margin: 0; font-size: 14px; }
.bsmi-crm-task-plan p,
.bsmi-crm-task-workload p { margin: 3px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-task-plan > header > span,
.bsmi-crm-task-workload > header > span { color: var(--bsmi-gold-dark); font-size: 9px; font-weight: 750; white-space: nowrap; }

.bsmi-crm-task-plan > div { display: grid; }
.bsmi-crm-task-plan article {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto minmax(90px, auto);
  align-items: center;
  gap: 9px;
  min-height: 55px;
  padding: 8px 14px;
  border-bottom: 1px solid #eceef0;
  cursor: pointer;
}
.bsmi-crm-task-plan article:last-child { border-bottom: 0; }
.bsmi-crm-task-plan article:hover { background: #faf9f6; }
.bsmi-crm-task-plan article > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  background: var(--bsmi-black);
  border-radius: 50%;
}
.bsmi-crm-task-plan article > div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-task-plan article strong,
.bsmi-crm-task-plan article small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-task-plan article strong { font-size: 11px; }
.bsmi-crm-task-plan article small,
.bsmi-crm-task-plan article b { color: var(--bsmi-muted); font-size: 9px; font-weight: 500; }
.bsmi-crm-task-plan article em { padding: 4px 6px; font-size: 8px; font-style: normal; font-weight: 750; background: #eef0f2; border-radius: 3px; }
.bsmi-crm-task-plan article em.is-danger { color: #922e2e; background: #fde7e7; }
.bsmi-crm-task-plan article em.is-warning { color: #7d560f; background: #fff2d8; }
.bsmi-crm-task-plan article em.is-good { color: #155c3c; background: #e6f3ec; }

.bsmi-crm-task-workload > div { display: grid; }
.bsmi-crm-task-workload button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 9px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 9px 13px;
  color: var(--bsmi-ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eceef0;
  border-radius: 0;
  cursor: pointer;
}
.bsmi-crm-task-workload button:last-child { border-bottom: 0; }
.bsmi-crm-task-workload button:hover { background: #faf9f6; }
.bsmi-crm-avatar-sm { display: grid; grid-row: span 2; place-items: center; width: 30px; height: 30px; color: #fff; font-size: 9px; font-weight: 750; background: var(--bsmi-black); border-radius: 50%; }
.bsmi-crm-task-workload strong { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-task-workload small { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-task-workload em { grid-column: 3; grid-row: 1 / span 2; padding: 4px 6px; color: var(--bsmi-muted); font-size: 8px; font-style: normal; background: #eef0f2; border-radius: 3px; }
.bsmi-crm-task-workload em.is-risk { color: #922e2e; background: #fde7e7; }

.bsmi-crm-task-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.6fr) repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 11px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-task-filters label { display: grid; gap: 4px; min-width: 0; }
.bsmi-crm-task-filters label > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-task-filters input,
.bsmi-crm-task-filters select { width: 100%; min-width: 0; height: 36px; padding: 7px 9px; color: var(--bsmi-ink); background: #fff; border: 1px solid #d9dce0; border-radius: 3px; }

.bsmi-crm-task-register { overflow: hidden; }
.bsmi-crm-task-register > .bsmi-crm-section-head { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-task-table { min-width: 1060px; }
.bsmi-crm-task-table tr { cursor: pointer; }
.bsmi-crm-task-table tr:hover td { background: #faf9f6; }
.bsmi-crm-task-table td { vertical-align: middle; }
.bsmi-crm-task-table td:first-child { width: 31%; }
.bsmi-crm-task-table td:nth-child(2) { width: 18%; }
.bsmi-crm-task-table td:nth-child(3) { width: 13%; }
.bsmi-crm-task-table td:last-child { width: 90px; }
.bsmi-crm-task-table td > small { display: block; margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-task-cell,
.bsmi-crm-task-due { display: grid; gap: 4px; min-width: 0; }
.bsmi-crm-task-cell strong,
.bsmi-crm-task-cell small { min-width: 0; overflow-wrap: anywhere; }
.bsmi-crm-task-cell strong { font-size: 10px; line-height: 1.35; }
.bsmi-crm-task-cell small,
.bsmi-crm-task-due small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-task-due strong { font-size: 9px; }
.bsmi-crm-task-due.is-danger strong { color: var(--bsmi-red); }
.bsmi-crm-task-due.is-warning strong { color: var(--bsmi-amber); }
.bsmi-crm-task-due.is-good strong { color: var(--bsmi-green); }
.bsmi-crm-task-status,
.bsmi-crm-priority { display: inline-flex; padding: 4px 6px; font-size: 8px; font-weight: 750; background: #eef0f2; border-radius: 3px; }
.bsmi-crm-task-status.is-in-progress { color: #1c5288; background: #e4eff9; }
.bsmi-crm-task-status.is-blocked { color: #922e2e; background: #fde7e7; }
.bsmi-crm-task-status.is-waiting { color: #7d560f; background: #fff2d8; }
.bsmi-crm-task-status.is-completed { color: #155c3c; background: #e6f3ec; }
.bsmi-crm-task-status.is-cancelled { color: #5e6268; background: #eceeed; }
.bsmi-crm-priority.is-urgent { color: #922e2e; background: #fde7e7; }
.bsmi-crm-priority.is-high { color: #7d560f; background: #fff2d8; }
.bsmi-crm-task-alert { color: var(--bsmi-red) !important; font-weight: 750; }
.bsmi-crm-task-control { min-height: 28px; padding: 5px 8px; font-size: 8px; white-space: nowrap; }
.bsmi-crm-task-control.is-complete { color: #155c3c; border-color: #9cc9b2; }

.bsmi-crm-task-hero {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 18px 12px;
  overflow: hidden;
  color: #fff;
  background: var(--bsmi-black);
  border-radius: 4px;
}
.bsmi-crm-task-hero > div { display: grid; gap: 5px; min-width: 0; min-height: 94px; padding: 14px; border-right: 1px solid #303238; }
.bsmi-crm-task-hero > div:last-child { border-right: 0; }
.bsmi-crm-task-hero span,
.bsmi-crm-task-hero small { color: #c1c4c8; font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-task-hero strong { font-size: 14px; overflow-wrap: anywhere; }
.bsmi-crm-task-hero.is-blocked strong:first-of-type { color: #f08b8b; }
.bsmi-crm-task-hero.is-waiting strong:first-of-type { color: #e7bd65; }
.bsmi-crm-task-hero.is-completed strong:first-of-type { color: #7cd1aa; }
.bsmi-crm-task-brief { margin: 4px 0 14px; font-size: 13px; font-weight: 650; line-height: 1.55; }
.bsmi-crm-task-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bsmi-crm-task-evidence span { max-width: 100%; padding: 6px 8px; color: #155c3c; font-size: 9px; overflow-wrap: anywhere; background: #e6f3ec; border-left: 3px solid var(--bsmi-green); }
.bsmi-crm-checkline { display: flex !important; align-items: center; gap: 8px; min-height: 40px; padding: 8px; background: #f4f5f6; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-checkline input { flex: 0 0 auto; width: 16px !important; height: 16px; }
.bsmi-crm-checkline span { color: var(--bsmi-ink) !important; font-size: 10px !important; text-transform: none !important; }
.bsmi-crm-form-note { margin: 0; padding: 9px; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; background: #f3f1eb; border-left: 3px solid var(--bsmi-gold); }

@media (max-width: 1180px) {
  .bsmi-crm-task-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-task-command { grid-template-columns: 1fr; }
  .bsmi-crm-task-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-task-filters .is-search { grid-column: span 2; }
}

@media (max-width: 760px) {
  .bsmi-crm-task-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bsmi-crm-task-kpi { min-height: 90px; padding: 12px; }
  .bsmi-crm-task-kpi strong { font-size: 20px; }
  .bsmi-crm-task-plan article { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .bsmi-crm-task-plan article > b { display: none; }
  .bsmi-crm-task-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-task-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-task-register .bsmi-crm-table-wrap { overflow: visible; }
  .bsmi-crm-task-table { display: block; min-width: 0; }
  .bsmi-crm-task-table thead { display: none; }
  .bsmi-crm-task-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-task-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-task-table td { display: block; width: auto !important; min-width: 0; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-task-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-task-table td:first-child,
  .bsmi-crm-task-table td:nth-child(2),
  .bsmi-crm-task-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-task-control { width: 100%; }
  .bsmi-crm-task-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 13px; }
  .bsmi-crm-task-hero > div:nth-child(2) { border-right: 0; }
  .bsmi-crm-task-hero > div:nth-child(-n+2) { border-bottom: 1px solid #303238; }
}

/* Management intelligence */
.bsmi-crm-report-workspace { min-width: 0; }
.bsmi-crm-report-workspace > .bsmi-crm-page-head > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.bsmi-crm-report-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(135px, 1fr));
  gap: 9px;
  margin-bottom: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-report-controls label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-report-controls label > span { color: var(--bsmi-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-controls input,
.bsmi-crm-report-controls select { width: 100%; min-width: 0; height: 38px; padding: 8px 9px; color: var(--bsmi-ink); background: #fff; border: 1px solid #d6d9dd; border-radius: 3px; }
.bsmi-crm-report-controls .bsmi-crm-report-date { display: none; }
.bsmi-crm-report-controls .bsmi-crm-report-date.is-visible { display: grid; }
.bsmi-crm-report-compare { align-content: end; }
.bsmi-crm-report-compare > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bsmi-crm-report-compare > b { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; font-size: 11px; font-weight: 650; border: 1px solid #d6d9dd; border-radius: 3px; cursor: pointer; }
.bsmi-crm-report-compare > b::before { width: 16px; height: 16px; content: ""; background: #fff; border: 1px solid #aeb3ba; border-radius: 2px; }
.bsmi-crm-report-compare > input:checked + b { color: #5d4b25; background: #f7f1e5; border-color: #c8ae72; }
.bsmi-crm-report-compare > input:checked + b::before { background: var(--bsmi-gold); box-shadow: inset 0 0 0 4px #fff; }
.bsmi-crm-report-saved { grid-column: span 2; }
.bsmi-crm-report-reset,
.bsmi-crm-report-delete-view { align-self: end; height: 38px; white-space: nowrap; }
.bsmi-crm-report-delete-view { color: var(--bsmi-red); border-color: #d9a4a4; }

.bsmi-crm-report-tabs { display: flex; gap: 2px; margin-bottom: 12px; overflow-x: auto; background: #e5e7e9; border: 1px solid #dfe1e4; border-radius: 4px; }
.bsmi-crm-report-tabs button { flex: 1 0 auto; min-height: 40px; padding: 8px 13px; color: #5d626a; font-size: 11px; font-weight: 700; background: transparent; border: 0; border-radius: 3px; }
.bsmi-crm-report-tabs button.is-active { color: #fff; background: var(--bsmi-black); }
.bsmi-crm-report-surface { min-width: 0; }

.bsmi-crm-report-builder {
  display: grid;
  grid-template-columns: minmax(250px, 286px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}
.bsmi-crm-report-builder-controls {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 11px;
  min-width: 0;
  padding: 16px;
  color: #fff;
  background: var(--bsmi-black);
  border: 1px solid #2e3034;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}
.bsmi-crm-report-builder-controls header { display: grid; gap: 4px; padding-bottom: 11px; border-bottom: 1px solid #34363b; }
.bsmi-crm-report-builder-controls header > span,
.bsmi-crm-report-builder-controls > label > span,
.bsmi-crm-report-builder-controls fieldset > legend,
.bsmi-crm-report-builder-sort label > span { color: #c7aa70; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-builder-controls h2 { margin: 0; color: #fff; font-size: 18px; line-height: 1.2; }
.bsmi-crm-report-builder-controls p { margin: 0; color: #b9bdc3; font-size: 10px; line-height: 1.45; }
.bsmi-crm-report-builder-controls > label,
.bsmi-crm-report-builder-sort label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-report-builder-controls select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 8px 9px;
  color: #16181b;
  background: #fff;
  border: 1px solid #d6d9dd;
  border-radius: 3px;
}
.bsmi-crm-report-builder-controls fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.bsmi-crm-report-builder-controls fieldset > legend { margin-bottom: 6px; padding: 0; }
.bsmi-crm-report-builder-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; background: #2b2d31; border: 1px solid #3a3c41; border-radius: 3px; }
.bsmi-crm-report-builder-modes label { min-width: 0; cursor: pointer; }
.bsmi-crm-report-builder-modes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bsmi-crm-report-builder-modes span { display: grid; place-items: center; min-height: 34px; padding: 5px; color: #c8cbd0; font-size: 9px; font-weight: 700; border-radius: 2px; }
.bsmi-crm-report-builder-modes input:checked + span { color: #17191c; background: var(--bsmi-gold); }
.bsmi-crm-report-builder-modes input:focus-visible + span { outline: 2px solid #fff; outline-offset: -2px; }
.bsmi-crm-report-builder-sort { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 8px; }
.bsmi-crm-report-builder-controls > footer { display: grid; gap: 3px; padding-top: 11px; border-top: 1px solid #34363b; }
.bsmi-crm-report-builder-controls > footer strong { color: #fff; font-size: 10px; }
.bsmi-crm-report-builder-controls > footer span { color: #92979e; font-size: 9px; }

.bsmi-crm-report-builder-result { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-report-builder-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 18px; color: #fff; background: var(--bsmi-black); border-bottom: 3px solid var(--bsmi-gold); }
.bsmi-crm-report-builder-head > div:first-child { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-report-builder-head > div:first-child > span { color: #d1b77f; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-builder-head h2 { margin: 0; color: #fff; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-head p { max-width: 720px; margin: 0; color: #b9bdc3; font-size: 10px; line-height: 1.45; }
.bsmi-crm-report-builder-tags { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 270px; }
.bsmi-crm-report-builder-tags span { max-width: 100%; padding: 5px 7px; color: #e7e9ec; font-size: 8px; font-weight: 700; background: #282a2e; border: 1px solid #3a3c41; border-radius: 2px; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: #f4f5f6; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-builder-totals article { display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 98px; padding: 14px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-report-builder-totals article:last-child { border-right: 0; }
.bsmi-crm-report-builder-totals span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-builder-totals strong { min-width: 0; font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-totals small { color: #6d7279; font-size: 9px; }

.bsmi-crm-report-builder-chart,
.bsmi-crm-report-builder-table-section { min-width: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-builder-chart > header,
.bsmi-crm-report-builder-table-section > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-builder-chart > header > div,
.bsmi-crm-report-builder-table-section > header > div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-report-builder-chart h3,
.bsmi-crm-report-builder-table-section h3 { margin: 0; font-size: 13px; }
.bsmi-crm-report-builder-chart p,
.bsmi-crm-report-builder-table-section p { margin: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.4; }
.bsmi-crm-report-builder-chart > header > span,
.bsmi-crm-report-builder-table-section > header > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-report-builder-bars { display: grid; gap: 0; padding: 8px 16px 16px; }
.bsmi-crm-report-builder-bars article { display: grid; grid-template-columns: minmax(105px, .75fr) minmax(140px, 2fr) minmax(96px, .65fr); align-items: center; gap: 7px 12px; min-width: 0; padding: 11px 0; border-bottom: 1px solid #eceef0; }
.bsmi-crm-report-builder-bars article:last-child { border-bottom: 0; }
.bsmi-crm-report-builder-bars article > strong { grid-row: 1 / span 2; min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-bars article > div { height: 9px; overflow: hidden; background: #e8eaec; border-radius: 2px; }
.bsmi-crm-report-builder-bars article > div i { display: block; height: 100%; background: var(--bsmi-gold); border-radius: 2px; }
.bsmi-crm-report-builder-bars article > div.is-secondary i { background: var(--bsmi-green); }
.bsmi-crm-report-builder-bars article > b { min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-bars article > small { min-width: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.35; overflow-wrap: anywhere; }

.bsmi-crm-report-builder-donut { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(260px, 1.28fr); align-items: center; gap: 24px; min-width: 0; padding: 24px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-builder-ring { position: relative; display: grid; place-items: center; justify-self: center; width: min(220px, 100%); aspect-ratio: 1; border-radius: 50%; }
.bsmi-crm-report-builder-ring::before { position: absolute; inset: 26%; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(20, 22, 25, .08); }
.bsmi-crm-report-builder-ring > span { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; width: 46%; text-align: center; }
.bsmi-crm-report-builder-ring strong { max-width: 100%; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-ring small { color: var(--bsmi-muted); font-size: 8px; line-height: 1.3; }
.bsmi-crm-report-builder-legend { display: grid; min-width: 0; }
.bsmi-crm-report-builder-legend article { display: grid; grid-template-columns: 10px minmax(90px, 1fr) minmax(80px, auto); align-items: center; gap: 9px; min-width: 0; padding: 9px 0; border-bottom: 1px solid #eceef0; }
.bsmi-crm-report-builder-legend article:last-child { border-bottom: 0; }
.bsmi-crm-report-builder-legend article > i { width: 10px; height: 10px; border-radius: 2px; }
.bsmi-crm-report-builder-legend article > span { display: grid; gap: 2px; min-width: 0; }
.bsmi-crm-report-builder-legend strong { min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-legend small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-report-builder-legend article > b { min-width: 0; font-size: 9px; text-align: right; overflow-wrap: anywhere; }
.bsmi-crm-report-builder-table-section { border-bottom: 0; }
.bsmi-crm-report-builder-table { min-width: 620px; }
.bsmi-crm-report-builder-table td:first-child { min-width: 150px; }
.bsmi-crm-report-builder-empty { display: grid; justify-items: center; gap: 6px; min-height: 220px; padding: 60px 20px; text-align: center; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-builder-empty h3 { margin: 0; font-size: 14px; }
.bsmi-crm-report-builder-empty p { max-width: 420px; margin: 0; color: var(--bsmi-muted); font-size: 10px; line-height: 1.5; }

.bsmi-crm-report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden; background: var(--bsmi-black); border: 1px solid #26282c; border-radius: 4px; }
.bsmi-crm-report-kpis article { display: grid; align-content: start; gap: 6px; min-width: 0; min-height: 128px; padding: 16px; color: #fff; border-right: 1px solid #303238; border-bottom: 1px solid #303238; }
.bsmi-crm-report-kpis article:nth-child(4n) { border-right: 0; }
.bsmi-crm-report-kpis article:nth-last-child(-n+4) { border-bottom: 0; }
.bsmi-crm-report-kpis small { color: #b9bdc3; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.bsmi-crm-report-kpis strong { min-width: 0; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.bsmi-crm-report-kpis p { min-height: 28px; margin: 0; color: #c8cbd0; font-size: 10px; line-height: 1.4; }
.bsmi-crm-report-kpis span { width: max-content; max-width: 100%; padding: 4px 6px; color: #c4c8ce; font-size: 9px; font-weight: 700; background: #25272b; border-radius: 2px; overflow-wrap: anywhere; }
.bsmi-crm-report-kpis span.is-up { color: #75c89f; background: #193b2e; }
.bsmi-crm-report-kpis span.is-down { color: #ef9f9f; background: #482626; }

.bsmi-crm-report-organization { min-width: 0; margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-report-organization > header,
.bsmi-crm-report-org-table-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.bsmi-crm-report-organization > header { color: #fff; background: var(--bsmi-black); border-bottom: 1px solid #303238; }
.bsmi-crm-report-organization > header > div,
.bsmi-crm-report-org-table-head > div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-report-organization > header span { color: var(--bsmi-gold); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-organization > header h2,
.bsmi-crm-report-org-table-head h3 { margin: 0; font-size: 14px; }
.bsmi-crm-report-organization > header p,
.bsmi-crm-report-org-table-head p { margin: 0; color: #bfc3c8; font-size: 9px; line-height: 1.45; }
.bsmi-crm-report-organization > header > b { flex: 0 0 auto; padding: 5px 7px; color: #f2dfb4; font-size: 9px; background: #292b30; border-radius: 2px; }
.bsmi-crm-report-org-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); min-width: 0; background: #f3f4f4; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-org-cards > article { min-width: 0; padding: 15px 16px; background: #fff; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-report-org-cards > article:last-child { border-right: 0; }
.bsmi-crm-report-org-cards > article > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.bsmi-crm-report-org-cards > article > header > div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-report-org-cards > article > header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-org-cards h3 { min-width: 0; margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.bsmi-crm-report-org-cards header small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-report-org-cards header b { flex: 0 0 auto; padding: 4px 6px; color: #155c3c; font-size: 8px; background: #e6f3ec; border-radius: 2px; }
.bsmi-crm-report-org-cards dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--bsmi-line); }
.bsmi-crm-report-org-cards dl > div { display: grid; gap: 4px; min-width: 0; padding: 9px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-report-org-cards dl > div:last-child { border-right: 0; }
.bsmi-crm-report-org-cards dt { color: var(--bsmi-muted); font-size: 8px; text-transform: uppercase; }
.bsmi-crm-report-org-cards dd { min-width: 0; margin: 0; font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.bsmi-crm-report-org-cards dd small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; font-weight: 500; }
.bsmi-crm-report-org-cards > .bsmi-crm-muted { margin: 0; padding: 24px 16px; }
.bsmi-crm-report-org-table-head { align-items: end; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-org-table-head p { color: var(--bsmi-muted); }
.bsmi-crm-report-org-table-head > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-report-organization-table { min-width: 1160px; }
.bsmi-crm-report-org-empty { margin: 0; padding: 24px 16px; }

.bsmi-crm-report-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-report-insights article { display: grid; gap: 5px; min-width: 0; min-height: 94px; padding: 14px; border-right: 1px solid var(--bsmi-line); border-top: 3px solid #8a9098; }
.bsmi-crm-report-insights article:last-child { border-right: 0; }
.bsmi-crm-report-insights article.is-positive { border-top-color: var(--bsmi-green); }
.bsmi-crm-report-insights article.is-warning { border-top-color: var(--bsmi-gold); }
.bsmi-crm-report-insights article.is-risk { border-top-color: var(--bsmi-red); }
.bsmi-crm-report-insights span,
.bsmi-crm-report-insights small { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-report-insights strong { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.bsmi-crm-report-two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bsmi-crm-report-two-up > .bsmi-crm-section { min-width: 0; margin: 0; }

.bsmi-crm-report-chart { overflow: hidden; }
.bsmi-crm-report-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 10px; min-height: 226px; padding: 20px 18px 12px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-report-bars > div { display: grid; gap: 8px; min-width: 0; text-align: center; }
.bsmi-crm-report-bars > div > span { display: flex; align-items: end; justify-content: center; gap: 3px; height: 150px; border-bottom: 1px solid #d7dadd; }
.bsmi-crm-report-bars b,
.bsmi-crm-report-bars i,
.bsmi-crm-report-bars em { width: 22%; min-height: 2px; border-radius: 2px 2px 0 0; }
.bsmi-crm-report-bars b { background: var(--bsmi-black); }
.bsmi-crm-report-bars i { background: var(--bsmi-gold); }
.bsmi-crm-report-bars em { background: var(--bsmi-green); }
.bsmi-crm-report-bars small { min-width: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.bsmi-crm-report-chart footer { display: flex; gap: 18px; padding: 0 18px 16px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-report-chart footer span { display: flex; align-items: center; gap: 6px; }
.bsmi-crm-report-chart footer i { width: 10px; height: 10px; background: var(--bsmi-black); border-radius: 2px; }
.bsmi-crm-report-chart footer i.is-viewings { background: var(--bsmi-gold); }
.bsmi-crm-report-chart footer i.is-wins { background: var(--bsmi-green); }

.bsmi-crm-report-funnel > div:last-child { display: grid; gap: 10px; padding: 18px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-report-funnel article { display: grid; grid-template-columns: 78px minmax(80px, 1fr) 32px 42px; align-items: center; gap: 9px; }
.bsmi-crm-report-funnel article > span { font-size: 10px; font-weight: 700; }
.bsmi-crm-report-funnel article > div { height: 18px; overflow: hidden; background: #eceef0; border-radius: 2px; }
.bsmi-crm-report-funnel article i { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-report-funnel article:nth-child(1) i,
.bsmi-crm-report-funnel article:nth-child(2) i { background: var(--bsmi-black); }
.bsmi-crm-report-funnel article:last-child i { background: var(--bsmi-green); }
.bsmi-crm-report-funnel article strong { text-align: right; }
.bsmi-crm-report-funnel article small { color: var(--bsmi-muted); text-align: right; }

.bsmi-crm-report-table-section { margin-bottom: 12px; overflow: hidden; }
.bsmi-crm-report-table-section > .bsmi-crm-section-head { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-report-table { width: 100%; min-width: 940px; border-collapse: collapse; }
.bsmi-crm-report-table th { padding: 10px 12px; color: #5f646c; font-size: 9px; font-weight: 750; text-align: left; text-transform: uppercase; background: #f1f2f3; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-table td { min-width: 80px; padding: 11px 12px; font-size: 10px; vertical-align: middle; border-bottom: 1px solid #eceef0; }
.bsmi-crm-report-table tr:last-child td { border-bottom: 0; }
.bsmi-crm-report-table td:first-child { min-width: 180px; }
.bsmi-crm-report-table td > strong,
.bsmi-crm-report-table td > span { display: block; }
.bsmi-crm-report-table td > span { margin-top: 3px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-report-table em { font-style: normal; }
.bsmi-crm-report-table em.is-risk { color: var(--bsmi-red); font-weight: 750; }
.bsmi-crm-report-table td button { display: grid; gap: 3px; width: 100%; padding: 0; text-align: left; background: transparent; border: 0; }
.bsmi-crm-report-table td button span { color: var(--bsmi-muted); font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-report-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bsmi-crm-report-person img { flex: 0 0 auto; width: 32px; height: 32px; object-fit: cover; border-radius: 50%; }
.bsmi-crm-report-person span { display: grid; gap: 2px; min-width: 0; }
.bsmi-crm-report-person strong,
.bsmi-crm-report-person small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-report-person small { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-report-forecast-total { display: grid; justify-items: end; gap: 3px; }
.bsmi-crm-report-forecast-total span { color: var(--bsmi-muted); font-size: 9px; text-transform: uppercase; }
.bsmi-crm-report-forecast-total strong { font-size: 16px; }

.bsmi-crm-report-distribution > div:last-child { display: grid; gap: 12px; padding: 16px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-report-distribution article { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(100px, 1.2fr) 38px; align-items: center; gap: 10px; }
.bsmi-crm-report-distribution article > span { display: grid; gap: 2px; min-width: 0; }
.bsmi-crm-report-distribution article strong { min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-report-distribution article small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-report-distribution article > div { height: 8px; overflow: hidden; background: #eceef0; border-radius: 2px; }
.bsmi-crm-report-distribution article i { display: block; height: 100%; background: var(--bsmi-gold); }
.bsmi-crm-report-distribution article b { font-size: 10px; text-align: right; }

.bsmi-crm-report-schedules { margin-bottom: 12px; overflow: hidden; }
.bsmi-crm-report-schedules > .bsmi-crm-section-head { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-report-schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.bsmi-crm-report-schedule-grid > article { min-width: 0; padding: 13px; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-green); border-radius: 4px; }
.bsmi-crm-report-schedule-grid > article.is-paused { border-left-color: #92979e; }
.bsmi-crm-report-schedule-grid header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.bsmi-crm-report-schedule-grid header div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-report-schedule-grid header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.bsmi-crm-report-schedule-grid h3 { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.bsmi-crm-report-schedule-grid header b { padding: 4px 6px; color: #155c3c; font-size: 8px; background: #e6f3ec; border-radius: 2px; }
.bsmi-crm-report-schedule-grid .is-paused header b { color: #5e6268; background: #eceeed; }
.bsmi-crm-report-schedule-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 13px 0; }
.bsmi-crm-report-schedule-grid dl div { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-report-schedule-grid dt { color: var(--bsmi-muted); font-size: 8px; text-transform: uppercase; }
.bsmi-crm-report-schedule-grid dd { min-width: 0; margin: 0; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-report-schedule-grid dd small { display: block; margin-top: 2px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-report-schedule-grid footer { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid #eceef0; }
.bsmi-crm-report-schedule-grid footer button { min-height: 30px; padding: 5px 8px; font-size: 9px; }
.bsmi-crm-report-schedule-grid footer button:last-child { color: var(--bsmi-red); }
.bsmi-crm-report-form [data-report-schedule-sections][hidden] { display: none; }
.bsmi-crm-report-evidence { display: flex; align-items: start; gap: 10px; margin-bottom: 12px; padding: 11px 13px; color: #525860; font-size: 9px; line-height: 1.45; background: #e9ebed; border-left: 3px solid #7d838b; }
.bsmi-crm-report-evidence strong { flex: 0 0 auto; color: var(--bsmi-ink); }
.bsmi-crm-report-section-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-report-section-checks label { display: flex !important; align-items: center; gap: 8px; min-height: 38px; padding: 8px; background: #f4f5f6; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-report-section-checks input { flex: 0 0 auto; width: 16px !important; height: 16px; }
.bsmi-crm-report-section-checks span { color: var(--bsmi-ink) !important; font-size: 10px !important; text-transform: none !important; }
.bsmi-crm-report-active { align-content: end; }
.bsmi-crm-report-active input { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.bsmi-crm-report-active b { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px; font-size: 10px; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-report-active b::before { width: 16px; height: 16px; content: ""; border: 1px solid #aeb3ba; border-radius: 2px; }
.bsmi-crm-report-active input:checked + b::before { background: var(--bsmi-green); box-shadow: inset 0 0 0 4px #fff; }

@media (max-width: 1180px) {
  .bsmi-crm-report-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-report-builder { grid-template-columns: 240px minmax(0, 1fr); }
  .bsmi-crm-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-report-kpis article:nth-child(4n) { border-right: 1px solid #303238; }
  .bsmi-crm-report-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-report-kpis article:nth-last-child(-n+4) { border-bottom: 1px solid #303238; }
  .bsmi-crm-report-kpis article:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-report-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-report-insights article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-report-insights article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
}

@media (max-width: 820px) {
  .bsmi-crm-report-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-report-saved { grid-column: span 1; }
  .bsmi-crm-report-two-up { grid-template-columns: 1fr; }
  .bsmi-crm-report-schedule-grid { grid-template-columns: 1fr; }
  .bsmi-crm-report-builder { grid-template-columns: 1fr; }
  .bsmi-crm-report-builder-controls { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-report-builder-controls header,
  .bsmi-crm-report-builder-controls fieldset,
  .bsmi-crm-report-builder-controls > footer { grid-column: 1 / -1; }
  .bsmi-crm-report-builder-donut { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 760px) {
  .bsmi-crm-report-workspace > .bsmi-crm-page-head > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .bsmi-crm-report-workspace > .bsmi-crm-page-head > div:last-child button { width: 100%; min-width: 0; }
  .bsmi-crm-report-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px; }
  .bsmi-crm-report-controls label > span { font-size: 8px; }
  .bsmi-crm-report-saved { grid-column: 1 / -1; }
  .bsmi-crm-report-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .bsmi-crm-report-tabs button { min-width: 0; min-height: 46px; padding: 7px 5px; font-size: 9px; line-height: 1.25; white-space: normal; }
  .bsmi-crm-report-kpis article { min-height: 118px; padding: 13px; }
  .bsmi-crm-report-kpis strong { font-size: 18px; }
  .bsmi-crm-report-insights { grid-template-columns: 1fr; }
  .bsmi-crm-report-insights article { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-report-insights article:last-child { border-bottom: 0; }
  .bsmi-crm-report-organization > header,
  .bsmi-crm-report-org-table-head { align-items: stretch; flex-direction: column; gap: 8px; }
  .bsmi-crm-report-organization > header > b,
  .bsmi-crm-report-org-table-head > span { width: max-content; max-width: 100%; }
  .bsmi-crm-report-org-cards { grid-template-columns: 1fr; }
  .bsmi-crm-report-org-cards > article { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-report-org-cards > article:last-child { border-bottom: 0; }
  .bsmi-crm-report-org-cards dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-report-org-cards dl > div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-report-org-cards dl > div:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-report-bars { gap: 5px; min-height: 210px; padding-inline: 10px; }
  .bsmi-crm-report-bars b,
  .bsmi-crm-report-bars i,
  .bsmi-crm-report-bars em { width: 25%; }
  .bsmi-crm-report-funnel article { grid-template-columns: 62px minmax(70px, 1fr) 28px 38px; gap: 6px; }
  .bsmi-crm-report-table-wrap { overflow: visible; }
  .bsmi-crm-report-table { display: block; min-width: 0; }
  .bsmi-crm-report-table thead { display: none; }
  .bsmi-crm-report-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-report-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-report-table td { display: block; min-width: 0; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-report-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 750; text-transform: uppercase; }
  .bsmi-crm-report-table td:first-child { grid-column: 1 / -1; min-width: 0; }
  .bsmi-crm-report-person strong,
  .bsmi-crm-report-person small { white-space: normal; }
  .bsmi-crm-report-distribution article { grid-template-columns: minmax(90px, .9fr) minmax(70px, 1fr) 28px; gap: 7px; }
  .bsmi-crm-report-schedule-grid { padding: 9px; }
  .bsmi-crm-report-schedule-grid dl { grid-template-columns: 1fr; }
  .bsmi-crm-report-section-checks { grid-template-columns: 1fr; }
  .bsmi-crm-report-evidence { display: grid; }
  .bsmi-crm-report-builder-controls { grid-template-columns: 1fr; padding: 14px; }
  .bsmi-crm-report-builder-controls header,
  .bsmi-crm-report-builder-controls fieldset,
  .bsmi-crm-report-builder-controls > footer { grid-column: auto; }
  .bsmi-crm-report-builder-controls select { height: 44px; }
  .bsmi-crm-report-builder-modes span { min-height: 40px; }
  .bsmi-crm-report-builder-sort { grid-template-columns: 1fr; }
  .bsmi-crm-report-builder-head { display: grid; gap: 12px; padding: 15px; }
  .bsmi-crm-report-builder-tags { justify-content: flex-start; max-width: none; }
  .bsmi-crm-report-builder-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-report-builder-totals article { min-height: 92px; padding: 12px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-report-builder-totals article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-report-builder-totals article:last-child { border-bottom: 0; }
  .bsmi-crm-report-builder-bars { padding: 7px 12px 13px; }
  .bsmi-crm-report-builder-bars article { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; }
  .bsmi-crm-report-builder-bars article > strong { grid-column: 1; grid-row: 1; }
  .bsmi-crm-report-builder-bars article > b { grid-column: 2; grid-row: 1; text-align: right; }
  .bsmi-crm-report-builder-bars article > div.is-primary { grid-column: 1 / -1; grid-row: 2; }
  .bsmi-crm-report-builder-bars article > div.is-secondary { grid-column: 1 / -1; grid-row: 3; }
  .bsmi-crm-report-builder-bars article > small { grid-column: 1 / -1; grid-row: 4; }
  .bsmi-crm-report-builder-donut { grid-template-columns: 1fr; gap: 18px; padding: 20px 14px; }
  .bsmi-crm-report-builder-ring { width: min(210px, 70vw); }
  .bsmi-crm-report-builder-legend { width: 100%; }
  .bsmi-crm-report-builder-table { min-width: 0; }
  .bsmi-crm-report-builder-table td:first-child { min-width: 0; }
}

@media print {
  .bsmi-crm-sidebar,
  .bsmi-crm-topbar,
  .bsmi-crm-report-controls,
  .bsmi-crm-report-tabs,
  .bsmi-crm-report-builder-controls,
  .bsmi-crm-report-schedules,
  .bsmi-crm-report-workspace > .bsmi-crm-page-head > div:last-child { display: none !important; }
  .bsmi-crm-app { display: block; background: #fff; }
  .bsmi-crm-workspace,
  .bsmi-crm-content { width: 100%; padding: 0; }
  .bsmi-crm-report-kpis,
  .bsmi-crm-report-insights,
  .bsmi-crm-report-builder-result,
  .bsmi-crm-section { break-inside: avoid; box-shadow: none; }
  .bsmi-crm-report-builder { display: block; }
  .bsmi-crm-report-table-wrap { overflow: visible; }
  .bsmi-crm-report-table { min-width: 0; font-size: 8pt; }
}

/* Brokerage workforce and organization operations. */
.bsmi-crm-workforce-branch {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.bsmi-crm-workforce-branch span {
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bsmi-crm-workforce-branch select {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 3px;
  color: var(--bsmi-ink);
  font: inherit;
  font-size: 11px;
}

.bsmi-crm-workforce-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 48px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
  overflow: hidden;
}

.bsmi-crm-workforce-tabs button {
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  color: #555d66;
  font-size: 10px;
  font-weight: 800;
}

.bsmi-crm-workforce-tabs button:last-child { border-right: 0; }

.bsmi-crm-workforce-tabs button.is-active {
  background: #111418;
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--bsmi-gold);
}

.bsmi-crm-workforce-tabs.has-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bsmi-crm-workforce-tabs.has-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bsmi-crm-workforce-tabs.has-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.bsmi-crm-training-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
  padding: 20px;
  color: #f7f7f4;
  background: #171a18;
  border-top: 3px solid var(--bsmi-gold);
}
.bsmi-crm-training-command small { color: #c9b77c; font-size: 10px; font-weight: 800; }
.bsmi-crm-training-command h2 { margin: 6px 0; color: #fff; font-size: 19px; }
.bsmi-crm-training-command p { max-width: 780px; margin: 0; color: #b8c1bd; line-height: 1.5; }
.bsmi-crm-training-command button { flex: 0 0 auto; }
.bsmi-crm-training-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
  padding: 13px;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-training-filters label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-training-filters label > span { color: var(--bsmi-muted); font-size: 10px; font-weight: 700; }
.bsmi-crm-training-filters > strong { padding: 11px 3px; white-space: nowrap; }
.bsmi-crm-training-list { display: grid; gap: 9px; }
.bsmi-crm-training-list > article {
  display: grid;
  grid-template-columns: 4px minmax(260px, 1.2fr) minmax(260px, 0.85fr) minmax(180px, 0.55fr) auto;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 15px;
  background: var(--bsmi-panel);
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-training-list > article > i { align-self: stretch; background: #657f75; }
.bsmi-crm-training-list > article.is-critical > i { background: #a24640; }
.bsmi-crm-training-list > article.is-warning > i { background: #b58f2c; }
.bsmi-crm-training-list > article.is-attention > i { background: #5f7187; }
.bsmi-crm-training-list article > div { min-width: 0; }
.bsmi-crm-training-list header { display: flex; align-items: center; gap: 8px; }
.bsmi-crm-training-list header span { color: #31584b; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-training-list header em { padding: 3px 6px; font-size: 9px; font-style: normal; font-weight: 750; background: #edf2ef; }
.bsmi-crm-training-list header em.is-critical { color: #8b302b; background: #faeceb; }
.bsmi-crm-training-list header em.is-warning { color: #73570d; background: #fbf3da; }
.bsmi-crm-training-list h3 { margin: 6px 0 3px; font-size: 14px; }
.bsmi-crm-training-list p,
.bsmi-crm-training-list small { margin: 0; color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-training-list article > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.bsmi-crm-training-list dt { color: var(--bsmi-muted); font-size: 9px; text-transform: uppercase; }
.bsmi-crm-training-list dd { margin: 2px 0 0; font-size: 11px; font-weight: 700; }
.bsmi-crm-training-list article > aside { display: grid; gap: 3px; min-width: 0; }
.bsmi-crm-training-list article > aside strong { font-size: 11px; }
.bsmi-crm-training-list article > aside span { color: var(--bsmi-muted); font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-training-list article > footer { display: flex; justify-content: flex-end; gap: 6px; min-width: 132px; }

@media (max-width: 760px) {
  .bsmi-crm-training-command { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-training-command button { width: 100%; }
  .bsmi-crm-training-filters { grid-template-columns: 1fr; }
  .bsmi-crm-training-list,
  .bsmi-crm-training-list > article { min-width: 0; }
  .bsmi-crm-training-list > article { grid-template-columns: 4px minmax(0, 1fr); gap: 11px; }
  .bsmi-crm-training-list article > dl,
  .bsmi-crm-training-list article > aside,
  .bsmi-crm-training-list article > footer { grid-column: 2; min-width: 0; }
  .bsmi-crm-training-list article > footer { justify-content: flex-start; }
  .bsmi-crm-training-list article > footer button { min-width: 0; flex: 1 1 auto; }
}

.bsmi-crm-goals-command {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(620px, 2fr);
  gap: 24px;
  align-items: center;
  min-height: 156px;
  padding: 22px;
  background: #111418;
  border-left: 4px solid var(--bsmi-gold);
  color: #fff;
}

.bsmi-crm-goals-command-title { min-width: 0; }
.bsmi-crm-goals-command-title small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-goals-command-title h2 { margin: 5px 0 7px; color: #fff; font-size: 20px; letter-spacing: 0; }
.bsmi-crm-goals-command-title p { max-width: 560px; margin: 0; color: #c6cbd0; font-size: 9px; line-height: 1.55; }

.bsmi-crm-goals-command dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #363b41;
  border: 1px solid #363b41;
}

.bsmi-crm-goals-command dl div { display: grid; align-content: center; min-width: 0; min-height: 90px; padding: 13px; background: #181c20; }
.bsmi-crm-goals-command dt { color: #9ba3aa; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-goals-command dd { margin: 6px 0 3px; color: #fff; font-size: 16px; font-weight: 850; line-height: 1.2; overflow-wrap: anywhere; }
.bsmi-crm-goals-command dl span { color: #aeb5bb; font-size: 8px; line-height: 1.35; }

.bsmi-crm-goals-head-actions { display: flex; align-items: center; gap: 9px; }
.bsmi-crm-goals-head-actions > span { color: var(--bsmi-muted); font-size: 10px; }
.bsmi-crm-performance-leaderboard { min-width: 1240px; }
.bsmi-crm-performance-leaderboard.is-team { min-width: 1160px; }
.bsmi-crm-performance-leaderboard td > strong,
.bsmi-crm-performance-leaderboard td > small { display: block; }
.bsmi-crm-performance-leaderboard td > strong { color: var(--bsmi-ink); font-size: 10px; }
.bsmi-crm-performance-leaderboard td > small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.35; }

.bsmi-crm-performance-person,
.bsmi-crm-performance-team { display: grid; grid-template-columns: 30px minmax(155px, 1fr); gap: 9px; align-items: center; }
.bsmi-crm-performance-person > b,
.bsmi-crm-performance-team > b { display: grid; width: 28px; height: 28px; place-items: center; background: #111418; border-radius: 50%; color: #fff; font-size: 10px; }
.bsmi-crm-performance-person .bsmi-crm-team-person { grid-template-columns: 34px minmax(125px, 1fr); }
.bsmi-crm-performance-person .bsmi-crm-team-person img { width: 34px; height: 34px; }
.bsmi-crm-performance-team strong,
.bsmi-crm-performance-team small { display: block; }
.bsmi-crm-performance-team strong { font-size: 10px; }
.bsmi-crm-performance-team small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-performance-incentive { display: grid; gap: 3px; min-width: 132px; padding-left: 8px; border-left: 3px solid #7b858e; }
.bsmi-crm-performance-incentive.is-healthy { border-left-color: var(--bsmi-green); }
.bsmi-crm-performance-incentive.is-warning { border-left-color: var(--bsmi-gold); }
.bsmi-crm-performance-incentive strong { color: var(--bsmi-ink); font-size: 10px; }
.bsmi-crm-performance-incentive span,
.bsmi-crm-performance-incentive small { color: var(--bsmi-muted); font-size: 8px; line-height: 1.35; }
.bsmi-crm-performance-empty { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-goals-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: #f2f4f3;
  border-left: 3px solid var(--bsmi-green);
}

.bsmi-crm-goals-method strong { flex: 0 0 auto; color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-goals-method span { color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }

.bsmi-crm-workday {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) minmax(420px, 2fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  padding: 20px;
  background: #111418;
  border-left: 4px solid var(--bsmi-green);
  color: #fff;
}

.bsmi-crm-workday.is-check_out { border-left-color: var(--bsmi-gold); }
.bsmi-crm-workday.is-complete { border-left-color: #73808d; }

.bsmi-crm-workday-person {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.bsmi-crm-workday-person .bsmi-crm-avatar-sm {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--bsmi-gold);
  border-radius: 50%;
  color: #111418;
  font-size: 14px;
  font-weight: 900;
}

.bsmi-crm-workday-person div { min-width: 0; }
.bsmi-crm-workday-person small { color: #c9b98b; font-size: 8px; font-weight: 850; }
.bsmi-crm-workday-person h2 { margin: 3px 0; color: #fff; font-size: 18px; letter-spacing: 0; }
.bsmi-crm-workday-person p { margin: 0; color: #aeb5bd; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }

.bsmi-crm-workday dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: #30343a;
  border: 1px solid #30343a;
}

.bsmi-crm-workday dl div {
  min-width: 0;
  padding: 11px;
  background: #1b1f24;
}

.bsmi-crm-workday dt,
.bsmi-crm-workday dd { margin: 0; }
.bsmi-crm-workday dt { color: #8d969f; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-workday dd { margin-top: 5px; color: #f4f5f6; font-size: 10px; font-weight: 750; overflow-wrap: anywhere; }

.bsmi-crm-workday-actions {
  display: grid;
  gap: 7px;
  min-width: 128px;
}

.bsmi-crm-workday-actions button,
.bsmi-crm-workday-leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #42474f;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.bsmi-crm-workday-actions button:not(.bsmi-crm-primary) { background: transparent; color: #fff; }
.bsmi-crm-workday-leave { background: #2b2414; border-color: #766334; color: #f0d689; }

.bsmi-crm-workforce-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bsmi-crm-workforce-actions button,
.bsmi-crm-organization .bsmi-crm-team-section-head button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--bsmi-line-strong);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.bsmi-crm-workforce-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bsmi-crm-organization-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.bsmi-crm-organization-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 0;
}

.bsmi-crm-organization-brands article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 5px 12px;
  min-width: min(100%, 320px);
  padding: 10px 12px;
  border: 1px solid var(--bsmi-line);
  background: #fff;
}

.bsmi-crm-organization-brands small { color: #8b7436; font-size: 8px; font-weight: 850; }
.bsmi-crm-organization-brands strong { font-size: 11px; }
.bsmi-crm-organization-brands span { grid-column: 1 / 3; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-organization-brands a { grid-column: 3; grid-row: 1 / 3; color: var(--bsmi-ink); font-size: 9px; font-weight: 800; }

.bsmi-crm-organization-branch {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
  overflow: hidden;
}

.bsmi-crm-organization-branch > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: #f7f8f8;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-organization-branch header div { min-width: 0; }
.bsmi-crm-organization-branch small { color: #8b7436; font-size: 8px; font-weight: 850; }
.bsmi-crm-organization-branch h3 { margin: 4px 0; font-size: 16px; letter-spacing: 0; }
.bsmi-crm-organization-branch p { margin: 0; color: var(--bsmi-muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.bsmi-crm-organization-branch header > span { flex: 0 0 auto; align-self: start; padding: 5px 8px; background: #e9f4ed; border: 1px solid #cce1d3; border-radius: 3px; color: #22623a; font-size: 9px; font-weight: 800; }

.bsmi-crm-organization-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-organization-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px;
  border-right: 1px solid var(--bsmi-line);
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-organization-metrics span:last-child { border-right: 0; }
.bsmi-crm-organization-metrics b { color: var(--bsmi-ink); font-size: 17px; }

.bsmi-crm-organization-units {
  display: grid;
  gap: 0;
  padding: 0 14px;
}

.bsmi-crm-organization-units div { padding: 12px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-organization-units div:last-child { border-bottom: 0; }
.bsmi-crm-organization-units strong { display: block; margin-bottom: 3px; font-size: 10px; }

.bsmi-crm-workforce-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.bsmi-crm-workforce-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.bsmi-crm-workforce-table th,
.bsmi-crm-workforce-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--bsmi-line);
  color: var(--bsmi-ink);
  font-size: 10px;
  text-align: left;
  vertical-align: top;
}

.bsmi-crm-workforce-table th {
  background: #f4f5f6;
  color: #68717b;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.bsmi-crm-workforce-table tbody tr:hover { background: #fafbfb; }
.bsmi-crm-workforce-table td strong,
.bsmi-crm-workforce-table td small { display: block; }
.bsmi-crm-workforce-table td small { margin-top: 3px; color: var(--bsmi-muted); font-size: 9px; line-height: 1.4; }

.bsmi-crm-workforce-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  background: #edf4ef;
  border: 1px solid #c9decf;
  border-radius: 3px;
  color: #25613b;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.bsmi-crm-workforce-status.is-warning,
.bsmi-crm-workforce-status.is-renewal-due,
.bsmi-crm-workforce-status.is-pending,
.bsmi-crm-workforce-status.is-field { background: #fff6dd; border-color: #ead69b; color: #745a0b; }
.bsmi-crm-workforce-status.is-critical,
.bsmi-crm-workforce-status.is-action-required,
.bsmi-crm-workforce-status.is-rejected,
.bsmi-crm-workforce-status.is-absent { background: #fff0ef; border-color: #efc7c3; color: #8d2f28; }
.bsmi-crm-workforce-status.is-attention,
.bsmi-crm-workforce-status.is-remote { background: #edf3f8; border-color: #c5d7e5; color: #275f86; }
.bsmi-crm-workforce-status.is-cancelled,
.bsmi-crm-workforce-status.is-rest-day { background: #f1f2f3; border-color: #d8dbde; color: #5f6872; }

.bsmi-crm-workforce-expiry {
  display: block;
  min-width: 100px;
  margin-bottom: 6px;
}

.bsmi-crm-workforce-expiry:last-child { margin-bottom: 0; }
.bsmi-crm-workforce-expiry strong { font-size: 9px; }
.bsmi-crm-workforce-expiry small { color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-organization-form { grid-template-columns: 1fr; }

.bsmi-crm-organization-editor {
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
  overflow: hidden;
}

.bsmi-crm-organization-editor > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: #f4f5f6;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-organization-editor h3,
.bsmi-crm-organization-editor p { margin: 0; }
.bsmi-crm-organization-editor h3 { font-size: 12px; }
.bsmi-crm-organization-editor p { margin-top: 2px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-organization-editor > header button { min-height: 32px; padding: 6px 9px; border: 1px solid var(--bsmi-line-strong); border-radius: 3px; font-size: 9px; font-weight: 800; }

.bsmi-crm-organization-editor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
  padding: 11px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-organization-editor-row:last-child { border-bottom: 0; }
.bsmi-crm-organization-editor-row label { min-width: 0; }
.bsmi-crm-organization-editor-row > button { min-height: 38px; padding: 7px 9px; background: #fff; border: 1px solid #e2b8b3; border-radius: 3px; color: #8d2f28; font-size: 9px; font-weight: 800; }

.bsmi-crm-transfer-scopes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.bsmi-crm-transfer-scopes > span {
  grid-column: 1 / -1;
  color: var(--bsmi-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .bsmi-crm-goals-command { grid-template-columns: 1fr; }
  .bsmi-crm-workday { grid-template-columns: minmax(230px, 1fr) minmax(360px, 1.7fr); }
  .bsmi-crm-workday-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-organization-grid { grid-template-columns: 1fr; }
  .bsmi-crm-organization-editor-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-organization-editor-row > button { width: 100%; }
}

@media (max-width: 760px) {
  .bsmi-crm-organization-brands { display: grid; padding: 9px 9px 0; }
  .bsmi-crm-organization-brands article { min-width: 0; }
  .bsmi-crm-workforce-tabs,
  .bsmi-crm-workforce-tabs.has-5,
  .bsmi-crm-workforce-tabs.has-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-workforce-tabs.has-7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-workforce-tabs button { min-height: 44px; border-bottom: 1px solid var(--bsmi-line); white-space: normal; }
  .bsmi-crm-workforce-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-workforce-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-workforce-tabs.has-5 button:nth-last-child(2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-workforce-tabs.has-5 button:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .bsmi-crm-goals-command { grid-template-columns: 1fr; gap: 15px; min-height: 0; padding: 17px; }
  .bsmi-crm-goals-command-title h2 { font-size: 17px; }
  .bsmi-crm-goals-command dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-goals-command dl div { min-height: 82px; padding: 11px; }
  .bsmi-crm-goals-command dd { font-size: 14px; }
  .bsmi-crm-goals-head-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .bsmi-crm-goals-head-actions button { width: 100%; min-height: 44px; }
  .bsmi-crm-performance-leaderboard,
  .bsmi-crm-performance-leaderboard.is-team { min-width: 0; }
  .bsmi-crm-performance-person,
  .bsmi-crm-performance-team { grid-template-columns: 30px minmax(0, 1fr); }
  .bsmi-crm-goals-method { align-items: flex-start; flex-direction: column; gap: 6px; }
  .bsmi-crm-workforce-branch { width: 100%; }
  .bsmi-crm-workday { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .bsmi-crm-workday dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-workday-actions { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .bsmi-crm-workforce-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-workforce-actions button { width: 100%; }
  .bsmi-crm-workforce-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-organization-grid { padding: 9px; }
  .bsmi-crm-organization-branch > header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-organization-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-workforce-table-wrap { overflow: visible; }
  .bsmi-crm-workforce-table { display: block; min-width: 0; }
  .bsmi-crm-workforce-table thead { display: none; }
  .bsmi-crm-workforce-table tbody { display: grid; gap: 8px; padding: 9px; }
  .bsmi-crm-workforce-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-gold); border-radius: 4px; }
  .bsmi-crm-workforce-table td { display: block; min-width: 0; padding: 8px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-workforce-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 8px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-workforce-table td:first-child { grid-column: 1 / -1; }
  .bsmi-crm-organization-editor-row { grid-template-columns: 1fr; }
  .bsmi-crm-transfer-scopes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Access governance */
.bsmi-crm-workforce-tabs:has([data-workforce-tab="access"]) { grid-template-columns: repeat(7, minmax(0, 1fr)); }

.bsmi-crm-access-governance-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  padding: 20px 22px;
  background: #111418;
  border-left: 4px solid var(--bsmi-gold);
  color: #fff;
}

.bsmi-crm-access-governance-intro > div { min-width: 0; max-width: 760px; }
.bsmi-crm-access-governance-intro small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-access-governance-intro h2 { margin: 5px 0 6px; color: #fff; font-size: 20px; letter-spacing: 0; }
.bsmi-crm-access-governance-intro p { margin: 0; color: #c9ced3; font-size: 10px; line-height: 1.55; }
.bsmi-crm-access-governance-intro > span { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #555d66; border-radius: 3px; color: #fff; font-size: 9px; font-weight: 800; }

.bsmi-crm-access-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.bsmi-crm-access-templates {
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-access-templates > .bsmi-crm-team-section-head { border-bottom: 1px solid var(--bsmi-line); }

.bsmi-crm-access-template-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.bsmi-crm-access-template {
  display: grid;
  grid-template-rows: auto minmax(48px, 1fr) auto;
  min-width: 0;
  min-height: 154px;
  padding: 12px;
  background: #f8f9f9;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #1d5c46;
  border-radius: 4px;
}

.bsmi-crm-access-template header { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.bsmi-crm-access-template header span { color: var(--bsmi-ink); font-size: 10px; font-weight: 850; line-height: 1.35; }
.bsmi-crm-access-template header b { padding: 3px 5px; background: #ece8db; border-radius: 2px; color: #766126; font-size: 7px; }
.bsmi-crm-access-template p { margin: 8px 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }
.bsmi-crm-access-template dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-access-template dl div { min-width: 0; padding-top: 8px; text-align: center; }
.bsmi-crm-access-template dt { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-access-template dd { margin: 2px 0 0; color: var(--bsmi-ink); font-size: 12px; font-weight: 850; }

.bsmi-crm-access-policy-table { min-width: 1180px; }
.bsmi-crm-access-counts { display: grid; grid-template-columns: repeat(2, minmax(54px, 1fr)); gap: 4px; }
.bsmi-crm-access-counts span { padding: 4px 5px; background: #f1f3f3; border-radius: 2px; color: var(--bsmi-muted); font-size: 7px; white-space: nowrap; }
.bsmi-crm-access-counts b { color: var(--bsmi-ink); font-size: 9px; }

.bsmi-crm-drawer:has(.bsmi-crm-access-policy-form) { width: min(980px, calc(100vw - 72px)); }
.bsmi-crm-access-policy-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #f3f5f4; border-left: 3px solid #1d5c46; }
.bsmi-crm-access-policy-context strong { font-size: 10px; }
.bsmi-crm-access-policy-context span { color: var(--bsmi-muted); font-size: 9px; text-align: right; }

.bsmi-crm-access-targets { display: grid; gap: 8px; }
.bsmi-crm-access-targets section { padding: 10px; background: #fafafa; border: 1px solid var(--bsmi-line); }
.bsmi-crm-access-targets section > span { display: block; margin-bottom: 7px; color: var(--bsmi-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-access-targets section > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bsmi-crm-access-targets label,
.bsmi-crm-access-sensitive-grid label { display: flex; align-items: flex-start; flex-direction: row; gap: 8px; min-width: 0; padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-access-targets input,
.bsmi-crm-access-sensitive-grid input { flex: 0 0 auto; width: 15px; min-height: 15px; margin: 1px 0 0; }
.bsmi-crm-access-targets label span { color: var(--bsmi-ink); font-size: 9px; font-weight: 750; }

.bsmi-crm-form .bsmi-crm-access-matrix-fieldset { display: block; padding: 12px; }
.bsmi-crm-access-matrix-fieldset > p { margin: 0 0 9px; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-access-matrix-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--bsmi-line); }
.bsmi-crm-access-matrix { width: 100%; min-width: 660px; border-collapse: collapse; }
.bsmi-crm-access-matrix th,
.bsmi-crm-access-matrix td { height: 35px; padding: 6px 9px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); font-size: 8px; text-align: center; }
.bsmi-crm-access-matrix th:first-child { width: 38%; text-align: left; }
.bsmi-crm-access-matrix thead th { background: #f1f3f3; color: #5f6872; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-access-matrix tbody th { color: var(--bsmi-ink); font-size: 9px; font-weight: 750; }
.bsmi-crm-access-matrix tr:last-child > * { border-bottom: 0; }
.bsmi-crm-access-matrix tr > *:last-child { border-right: 0; }
.bsmi-crm-access-matrix label { display: inline-flex; justify-content: center; min-width: 34px; }
.bsmi-crm-access-matrix input { width: 15px; min-height: 15px; margin: 0; }
.bsmi-crm-access-matrix label span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bsmi-crm-form .bsmi-crm-access-sensitive-fieldset { display: block; }
.bsmi-crm-access-sensitive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-access-sensitive-grid label > span { display: grid; gap: 2px; min-width: 0; }
.bsmi-crm-access-sensitive-grid strong { color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-access-sensitive-grid small { color: var(--bsmi-muted); font-size: 8px; line-height: 1.35; }

@media (max-width: 1180px) {
  .bsmi-crm-access-template-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .bsmi-crm-workforce-tabs:has([data-workforce-tab="access"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-workforce-tabs:has([data-workforce-tab="access"]) button:last-child { grid-column: auto; border-top: 0; }
  .bsmi-crm-access-governance-intro { align-items: flex-start; flex-direction: column; min-height: 0; padding: 17px; }
  .bsmi-crm-access-governance-intro h2 { font-size: 17px; }
  .bsmi-crm-access-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-access-template-grid { grid-template-columns: 1fr; padding: 9px; }
  .bsmi-crm-access-template { min-height: 0; }
  .bsmi-crm-access-policy-table { min-width: 0; }
  .bsmi-crm-access-policy-context { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-access-policy-context span { text-align: left; }
  .bsmi-crm-access-targets section > div,
  .bsmi-crm-access-sensitive-grid { grid-template-columns: 1fr; }
  .bsmi-crm-drawer:has(.bsmi-crm-access-policy-form) { width: 100vw; }
}

/* System Control */
.bsmi-crm-system-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-system-tabs button {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  color: #525b64;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

.bsmi-crm-system-tabs button:last-child { border-right: 0; }
.bsmi-crm-system-tabs button.is-active { background: #131619; color: #fff; box-shadow: inset 0 -3px 0 var(--bsmi-gold); }

.bsmi-crm-system-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 126px;
  padding: 22px 24px;
  background: #101316;
  border-left: 4px solid var(--bsmi-gold);
  color: #fff;
}

.bsmi-crm-system-intro > div { min-width: 0; max-width: 780px; }
.bsmi-crm-system-intro small,
.bsmi-crm-system-section-head small,
.bsmi-crm-system-panel header small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-system-intro h2 { margin: 5px 0 7px; color: #fff; font-size: 21px; letter-spacing: 0; }
.bsmi-crm-system-intro p { margin: 0; color: #c7cdd2; font-size: 10px; line-height: 1.6; }
.bsmi-crm-system-intro > span { flex: 0 0 auto; min-width: 88px; padding: 9px 12px; border: 1px solid #4d555d; border-radius: 4px; color: #fff; font-size: 10px; font-weight: 850; text-align: center; text-transform: uppercase; }
.bsmi-crm-system-intro > span.is-healthy { border-color: #3e765e; background: #183b2e; }
.bsmi-crm-system-intro > span.is-attention { border-color: #9b7a2c; background: #463916; }
.bsmi-crm-system-intro > span.is-critical { border-color: #93433f; background: #481f1c; }

.bsmi-crm-system-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 0; }
.bsmi-crm-system-sub-kpis { margin-top: 0; }

.bsmi-crm-system-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 12px;
  margin-bottom: 12px;
}

.bsmi-crm-system-panel,
.bsmi-crm-system-table-section {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-system-panel > header,
.bsmi-crm-system-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 13px 16px;
  background: #fff;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-system-section-head { margin-bottom: 12px; border-left: 4px solid #1d5c46; }
.bsmi-crm-system-panel header > div,
.bsmi-crm-system-section-head > div { min-width: 0; }
.bsmi-crm-system-panel h3,
.bsmi-crm-system-section-head h2 { margin: 3px 0 0; color: var(--bsmi-ink); font-size: 14px; letter-spacing: 0; }
.bsmi-crm-system-section-head h2 { font-size: 17px; }
.bsmi-crm-system-section-head p { max-width: 760px; margin: 5px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }
.bsmi-crm-system-panel header button,
.bsmi-crm-system-panel header > span,
.bsmi-crm-system-section-head > span { flex: 0 0 auto; }

.bsmi-crm-system-check-list { display: grid; }
.bsmi-crm-system-check-list .bsmi-crm-system-health-check { border: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-system-check-list .bsmi-crm-system-health-check:last-child { border-bottom: 0; }

.bsmi-crm-system-guardrails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.bsmi-crm-system-guardrails div { min-width: 0; min-height: 66px; padding: 12px 14px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-system-guardrails div:nth-child(2n) { border-right: 0; }
.bsmi-crm-system-guardrails div:nth-last-child(-n+2) { border-bottom: 0; }
.bsmi-crm-system-guardrails dt { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-system-guardrails dd { margin: 5px 0 0; color: var(--bsmi-ink); font-size: 11px; font-weight: 850; overflow-wrap: anywhere; }
.bsmi-crm-system-recent { margin-bottom: 12px; }

.bsmi-crm-system-definition-form { display: grid; gap: 12px; }
.bsmi-crm-system-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bsmi-crm-system-definition-grid section { display: grid; grid-template-rows: auto minmax(176px, auto) auto; min-width: 0; padding: 14px; background: #fff; border: 1px solid var(--bsmi-line); border-top: 3px solid #1d5c46; border-radius: 4px; }
.bsmi-crm-system-definition-grid section header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.bsmi-crm-system-definition-grid section h3 { margin: 0; color: var(--bsmi-ink); font-size: 12px; }
.bsmi-crm-system-definition-grid section p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }
.bsmi-crm-system-definition-grid section header span { flex: 0 0 auto; padding: 4px 6px; background: #edf1ef; border-radius: 3px; color: #1d5c46; font-size: 8px; font-weight: 850; }
.bsmi-crm-system-definition-grid textarea { width: 100%; min-height: 176px; padding: 9px; resize: vertical; border: 1px solid #cfd5d3; border-radius: 3px; font-family: inherit; font-size: 9px; line-height: 1.55; }
.bsmi-crm-system-definition-grid section > small { margin-top: 8px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-system-definition-grid section > small b { color: #8a6f20; }
.bsmi-crm-system-definition-form > footer { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-system-definition-form > footer label { flex: 1 1 520px; max-width: 720px; }
.bsmi-crm-system-definition-form > footer label span { display: block; margin-bottom: 4px; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; }
.bsmi-crm-system-definition-form > footer input { width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid #cfd5d3; border-radius: 3px; }

.bsmi-crm-system-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-system-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.bsmi-crm-system-table th,
.bsmi-crm-system-table td { padding: 10px 12px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); color: #333a40; font-size: 8px; line-height: 1.4; text-align: left; vertical-align: middle; }
.bsmi-crm-system-table th:last-child,
.bsmi-crm-system-table td:last-child { border-right: 0; }
.bsmi-crm-system-table tbody tr:last-child td { border-bottom: 0; }
.bsmi-crm-system-table thead th { background: #f1f3f3; color: #5b646d; font-size: 7px; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.bsmi-crm-system-table td strong,
.bsmi-crm-system-table td small { display: block; }
.bsmi-crm-system-table td strong { color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-system-table td small { margin-top: 3px; color: var(--bsmi-muted); }
.bsmi-crm-system-table td code { padding: 3px 5px; background: #eef1f0; border-radius: 2px; color: #1d5c46; font-size: 8px; }
.bsmi-crm-system-rule-table { min-width: 1180px; }
.bsmi-crm-system-audit-table { min-width: 1080px; }
.bsmi-crm-system-empty { padding: 18px; }

.bsmi-crm-system-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 10px 13px;
  background: #f6f3e9;
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-system-notice strong { color: #5e4e21; font-size: 9px; }
.bsmi-crm-system-notice span { color: #766938; font-size: 8px; text-align: right; }

.bsmi-crm-system-health-summary {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  margin-bottom: 12px;
  background: #111418;
  border-left: 4px solid #9b7a2c;
  color: #fff;
}
.bsmi-crm-system-health-summary.is-healthy { border-left-color: #2b7b59; }
.bsmi-crm-system-health-summary.is-critical { border-left-color: #a53c35; }
.bsmi-crm-system-health-summary > div { display: grid; align-content: center; min-width: 230px; padding: 16px 20px; }
.bsmi-crm-system-health-summary > div small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-system-health-summary > div strong { margin-top: 3px; font-size: 20px; }
.bsmi-crm-system-health-summary > div span { margin-top: 3px; color: #bfc5ca; font-size: 8px; }
.bsmi-crm-system-health-summary dl { display: grid; grid-template-columns: repeat(4, minmax(96px, 1fr)); min-width: 55%; margin: 0; border-left: 1px solid #343a40; }
.bsmi-crm-system-health-summary dl div { display: grid; place-content: center; padding: 12px; border-right: 1px solid #343a40; text-align: center; }
.bsmi-crm-system-health-summary dl div:last-child { border-right: 0; }
.bsmi-crm-system-health-summary dt { color: #aeb5bb; font-size: 8px; }
.bsmi-crm-system-health-summary dd { margin: 4px 0 0; font-size: 17px; font-weight: 850; }

.bsmi-crm-system-health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.bsmi-crm-system-health-check { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; min-height: 74px; padding: 11px 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-system-health-check i { width: 8px; height: 8px; background: #b58b24; border-radius: 50%; }
.bsmi-crm-system-health-check.is-healthy i { background: #267653; }
.bsmi-crm-system-health-check.is-critical i { background: #a53c35; }
.bsmi-crm-system-health-check div { min-width: 0; }
.bsmi-crm-system-health-check strong { color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-system-health-check p { margin: 3px 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; }
.bsmi-crm-system-health-check small { color: #8c949a; font-size: 7px; }
.bsmi-crm-system-health-check > span { color: #75601f; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-system-health-check.is-healthy > span { color: #1d6548; }
.bsmi-crm-system-health-check.is-critical > span { color: #91332e; }

/* Security and recovery */
.bsmi-crm-security-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .7fr);
  align-items: stretch;
  min-height: 138px;
  margin-bottom: 12px;
  background: #0f1214;
  border-left: 4px solid var(--bsmi-gold);
  color: #fff;
}
.bsmi-crm-security-hero > div { align-self: center; min-width: 0; padding: 22px 24px; }
.bsmi-crm-security-hero small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-security-hero h2 { margin: 5px 0 7px; color: #fff; font-size: 21px; letter-spacing: 0; }
.bsmi-crm-security-hero p { max-width: 740px; margin: 0; color: #c7cdd2; font-size: 10px; line-height: 1.6; }
.bsmi-crm-security-hero dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid #343a40; }
.bsmi-crm-security-hero dl div { display: grid; align-content: center; min-width: 0; padding: 16px; border-right: 1px solid #343a40; }
.bsmi-crm-security-hero dl div:last-child { border-right: 0; }
.bsmi-crm-security-hero dt { color: #9da5ab; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-security-hero dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #fff; font-size: 12px; font-weight: 850; }
.bsmi-crm-security-kpis { margin-top: 0; }
.bsmi-crm-security-policy { margin-bottom: 12px; }
.bsmi-crm-security-policy-form { display: grid; }
.bsmi-crm-security-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-security-policy-grid fieldset { min-width: 0; margin: 0; padding: 16px; border: 0; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-security-policy-grid fieldset:nth-child(2n) { border-right: 0; }
.bsmi-crm-security-policy-grid fieldset:nth-last-child(-n+2) { border-bottom: 0; }
.bsmi-crm-security-policy-grid legend { padding: 0 0 10px; color: var(--bsmi-ink); font-size: 10px; font-weight: 850; }
.bsmi-crm-security-policy-grid label,
.bsmi-crm-security-policy-form > footer label,
.bsmi-crm-security-recovery-card form label,
.bsmi-crm-security-retention form label,
.bsmi-crm-security-gate form label { display: grid; gap: 4px; min-width: 0; color: #59636b; font-size: 8px; font-weight: 800; }
.bsmi-crm-security-policy-grid input,
.bsmi-crm-security-policy-grid select,
.bsmi-crm-security-policy-grid textarea,
.bsmi-crm-security-policy-form > footer input,
.bsmi-crm-security-recovery-card form input,
.bsmi-crm-security-retention form input,
.bsmi-crm-security-gate form input { width: 100%; min-width: 0; min-height: 36px; padding: 8px 9px; background: #fff; border: 1px solid #cfd5d3; border-radius: 3px; color: var(--bsmi-ink); font: inherit; }
.bsmi-crm-security-policy-grid textarea { min-height: 104px; resize: vertical; }
.bsmi-crm-security-policy-grid fieldset > label + label,
.bsmi-crm-security-policy-grid fieldset > div + label,
.bsmi-crm-security-policy-grid fieldset > label + div { margin-top: 9px; }
.bsmi-crm-security-policy-grid fieldset > small { display: block; margin-top: 7px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }
.bsmi-crm-security-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bsmi-crm-security-role-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.bsmi-crm-security-role-list label { display: flex; align-items: center; flex-direction: row; gap: 7px; min-height: 30px; padding: 6px 8px; background: #f3f5f4; border: 1px solid #e0e4e2; }
.bsmi-crm-security-role-list input { flex: 0 0 auto; width: 14px; min-height: 14px; padding: 0; }
.bsmi-crm-security-policy-form > footer { display: flex; align-items: flex-end; gap: 10px; justify-content: flex-end; padding: 12px 16px; background: #f5f6f5; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-security-policy-form > footer label { flex: 1 1 560px; max-width: 760px; }
.bsmi-crm-security-state { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 8px; border: 1px solid #cfd5d3; border-radius: 3px; color: #535e65; font-size: 8px; font-weight: 850; }
.bsmi-crm-security-state.is-healthy { background: #edf6f1; border-color: #a9cdbb; color: #1f6849; }
.bsmi-crm-security-two-column,
.bsmi-crm-security-recovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.bsmi-crm-security-table { min-width: 780px; }
.bsmi-crm-security-recovery-card { display: grid; align-content: start; }
.bsmi-crm-security-recovery-card > p { min-height: 58px; margin: 0; padding: 13px 16px 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.55; }
.bsmi-crm-security-recovery-card form { display: grid; gap: 9px; padding: 13px 16px 16px; }
.bsmi-crm-security-recovery-card form > div,
.bsmi-crm-security-retention form > div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.bsmi-crm-app .bsmi-crm-danger { background: #89332f; border-color: #89332f; color: #fff; }
.bsmi-crm-app .bsmi-crm-danger:hover { background: #702823; border-color: #702823; }
.bsmi-crm-security-history { display: grid; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-security-history h4 { margin: 0; padding: 10px 16px; background: #f2f4f3; color: #5b646c; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-security-history article { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 9px 16px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-security-history article div { min-width: 0; }
.bsmi-crm-security-history article strong,
.bsmi-crm-security-history article small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-security-history article strong { color: var(--bsmi-ink); font-size: 8px; }
.bsmi-crm-security-history article small { margin-top: 2px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-security-history article > span { flex: 0 0 auto; color: #3d474e; font-size: 7px; font-weight: 800; text-align: right; }
.bsmi-crm-security-history-empty { padding: 0 16px 16px; }
.bsmi-crm-security-retention { margin-bottom: 12px; }
.bsmi-crm-security-retention-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bsmi-crm-security-retention-grid article { display: grid; align-content: center; min-width: 0; min-height: 88px; padding: 12px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-security-retention-grid article:last-child { border-right: 0; }
.bsmi-crm-security-retention-grid small { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-security-retention-grid strong { margin-top: 3px; color: var(--bsmi-ink); font-size: 20px; }
.bsmi-crm-security-retention-grid span { margin-top: 2px; color: #68727a; font-size: 7px; overflow-wrap: anywhere; }
.bsmi-crm-security-retention > form { display: flex; align-items: flex-end; gap: 10px; justify-content: flex-end; padding: 12px 16px; }
.bsmi-crm-security-retention > form > label { flex: 1 1 560px; max-width: 760px; }
.bsmi-crm-security-action-form { padding: 16px; }
.bsmi-crm-drawer:has(.bsmi-crm-security-action-form),
.bsmi-crm-drawer:has(.bsmi-crm-security-enrollment) { width: min(560px, calc(100vw - 72px)); }
.bsmi-crm-security-enrollment { display: grid; }
.bsmi-crm-security-enrollment form { display: grid; gap: 10px; padding: 16px; }
.bsmi-crm-security-setup-key { display: grid; gap: 5px; padding: 16px; background: #111418; color: #fff; }
.bsmi-crm-security-setup-key span { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-security-setup-key strong { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0; }
.bsmi-crm-security-setup-key small { color: #adb5bb; font-size: 8px; }
.bsmi-crm-security-gate { width: min(620px, calc(100vw - 32px)); margin: clamp(34px, 8vh, 92px) auto; background: #fff; border: 1px solid var(--bsmi-line); border-top: 4px solid var(--bsmi-gold); box-shadow: 0 18px 60px rgba(15, 18, 20, .12); }
.bsmi-crm-security-gate > header { padding: 24px 24px 19px; background: #101316; color: #fff; }
.bsmi-crm-security-gate > header small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-security-gate > header h1 { margin: 5px 0 7px; color: #fff; font-size: 22px; letter-spacing: 0; }
.bsmi-crm-security-gate > header p { margin: 0; color: #c7cdd2; font-size: 9px; line-height: 1.55; }
.bsmi-crm-security-gate-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-security-gate-status div { min-width: 0; padding: 12px 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-security-gate-status div:last-child { border-right: 0; }
.bsmi-crm-security-gate-status span,
.bsmi-crm-security-gate-status strong { display: block; overflow-wrap: anywhere; }
.bsmi-crm-security-gate-status span { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-security-gate-status strong { margin-top: 3px; color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-security-gate > form { display: grid; gap: 10px; padding: 18px 24px; }
.bsmi-crm-security-gate > button { margin: 18px 24px; }
.bsmi-crm-security-gate-note { display: block; padding: 0 24px 20px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-security-gate > .bsmi-crm-security-setup-key { margin: 0; }
.bsmi-crm-security-recovery-codes > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 18px 24px; }
.bsmi-crm-security-recovery-codes code { padding: 8px 10px; background: #f1f3f2; border: 1px solid #dce1df; color: var(--bsmi-ink); font-size: 10px; text-align: center; }

.bsmi-crm-drawer:has(.bsmi-crm-system-drawer-form) { width: min(720px, calc(100vw - 72px)); }
.bsmi-crm-system-drawer-form .bsmi-crm-system-rule-toggle { display: flex; align-items: flex-start; flex-direction: row; gap: 9px; padding: 10px; background: #f3f5f4; border-left: 3px solid #1d5c46; }
.bsmi-crm-system-rule-toggle input { flex: 0 0 auto; width: 16px; min-height: 16px; margin-top: 1px; }
.bsmi-crm-system-rule-toggle > span { display: grid; gap: 2px; }
.bsmi-crm-system-rule-toggle strong { color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-system-rule-toggle small { color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-custom-registry-note { margin: 0; padding: 6px 10px; background: #f3f5f4; border-left: 3px solid #1d5c46; color: #53615b; font-size: 8px; }
.bsmi-crm-custom-fields [data-custom-registered] { grid-template-columns: minmax(150px, .8fr) minmax(180px, 1fr) 62px; }
.bsmi-crm-custom-fields [data-custom-registered] > label:first-child { align-content: center; }
.bsmi-crm-custom-fields [data-custom-registered] > label:first-child > span { color: var(--bsmi-ink); font-weight: 850; }
.bsmi-crm-custom-fields [data-custom-registered] > label:first-child small { color: var(--bsmi-muted); font-size: 7px; line-height: 1.35; }
.bsmi-crm-custom-field-type { align-self: center; justify-self: end; padding: 4px 6px; background: #ecefed; border-radius: 2px; color: #53615b; font-size: 7px; font-weight: 800; }
.bsmi-crm-custom-checkbox { display: flex !important; align-items: center; flex-direction: row !important; gap: 7px; min-height: 34px; }
.bsmi-crm-custom-checkbox input { width: 15px !important; min-height: 15px !important; }
.bsmi-crm-custom-checkbox span { margin: 0 !important; }

@media (max-width: 980px) {
  .bsmi-crm-system-overview-grid { grid-template-columns: 1fr; }
  .bsmi-crm-system-health-summary { align-items: stretch; flex-direction: column; }
  .bsmi-crm-system-health-summary dl { min-width: 0; border-top: 1px solid #343a40; border-left: 0; }
  .bsmi-crm-security-hero { grid-template-columns: 1fr; }
  .bsmi-crm-security-hero dl { border-top: 1px solid #343a40; border-left: 0; }
  .bsmi-crm-security-two-column,
  .bsmi-crm-security-recovery-grid { grid-template-columns: 1fr; }
  .bsmi-crm-security-retention-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-security-retention-grid article:nth-child(3n) { border-right: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-system-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-system-tabs button { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-system-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-system-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-system-intro { align-items: flex-start; flex-direction: column; min-height: 0; padding: 17px; }
  .bsmi-crm-system-intro h2 { font-size: 17px; }
  .bsmi-crm-system-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-system-definition-grid,
  .bsmi-crm-system-health-grid { grid-template-columns: 1fr; }
  .bsmi-crm-system-definition-grid section { min-height: 0; }
  .bsmi-crm-system-definition-form > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-system-definition-form > footer label { flex-basis: auto; max-width: none; }
  .bsmi-crm-system-section-head { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-system-notice { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-system-notice span { text-align: left; }
  .bsmi-crm-system-health-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-system-health-summary dl div:nth-child(2) { border-right: 0; }
  .bsmi-crm-system-health-summary dl div:nth-child(-n+2) { border-bottom: 1px solid #343a40; }
  .bsmi-crm-drawer:has(.bsmi-crm-system-drawer-form) { width: 100vw; }
  .bsmi-crm-custom-fields [data-custom-registered] { grid-template-columns: 1fr; }
  .bsmi-crm-custom-field-type { justify-self: start; }
  .bsmi-crm-security-hero > div { padding: 17px; }
  .bsmi-crm-security-hero h2 { font-size: 17px; }
  .bsmi-crm-security-hero dl { grid-template-columns: 1fr; }
  .bsmi-crm-security-hero dl div { border-right: 0; border-bottom: 1px solid #343a40; }
  .bsmi-crm-security-hero dl div:last-child { border-bottom: 0; }
  .bsmi-crm-security-policy-grid { grid-template-columns: 1fr; }
  .bsmi-crm-security-policy-grid fieldset { border-right: 0; border-bottom: 1px solid var(--bsmi-line) !important; }
  .bsmi-crm-security-policy-grid fieldset:last-child { border-bottom: 0 !important; }
  .bsmi-crm-security-policy-form > footer,
  .bsmi-crm-security-retention > form { align-items: stretch; flex-direction: column; }
  .bsmi-crm-security-policy-form > footer label,
  .bsmi-crm-security-retention > form > label { flex-basis: auto; max-width: none; }
  .bsmi-crm-security-retention > header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-security-retention > header > span { max-width: 100%; text-align: left; }
  .bsmi-crm-security-retention-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-security-retention-grid article:nth-child(3n) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-security-retention-grid article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-security-history article { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-security-history article > span { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-security-action-form),
  .bsmi-crm-drawer:has(.bsmi-crm-security-enrollment) { width: 100vw; }
  .bsmi-crm-security-gate { width: calc(100vw - 20px); margin: 16px auto; }
  .bsmi-crm-security-gate-status { grid-template-columns: 1fr; }
  .bsmi-crm-security-gate-status div { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-security-gate-status div:last-child { border-bottom: 0; }
}

.bsmi-crm-intelligence-provider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr);
  min-height: 144px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--bsmi-black);
  border: 1px solid #27292d;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}
.bsmi-crm-intelligence-provider > div { align-content: center; padding: 24px 26px; }
.bsmi-crm-intelligence-provider > div > span { color: #d7bd80; font-size: 9px; font-weight: 900; letter-spacing: 0; }
.bsmi-crm-intelligence-provider h2 { margin: 5px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 600; letter-spacing: 0; }
.bsmi-crm-intelligence-provider p { max-width: 680px; margin: 0; color: #b8bdc5; font-size: 11px; line-height: 1.55; }
.bsmi-crm-intelligence-provider dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid #303238; }
.bsmi-crm-intelligence-provider dl div { display: grid; align-content: center; gap: 7px; min-width: 0; padding: 20px; border-right: 1px solid #303238; }
.bsmi-crm-intelligence-provider dl div:last-child { border-right: 0; }
.bsmi-crm-intelligence-provider dt { color: #9299a3; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-intelligence-provider dd { margin: 0; color: #fff; font-size: 12px; font-weight: 850; }

.bsmi-crm-intelligence-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-intelligence-kpis article { min-width: 0; min-height: 86px; padding: 17px 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-kpis article:last-child { border-right: 0; }
.bsmi-crm-intelligence-kpis span { color: var(--bsmi-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-intelligence-kpis strong { display: block; margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.1; }
.bsmi-crm-intelligence-kpis small { display: block; overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; }

.bsmi-crm-intelligence-tabs { display: flex; overflow-x: auto; margin-bottom: 14px; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; scrollbar-width: thin; }
.bsmi-crm-intelligence-tabs button { display: flex; align-items: center; justify-content: space-between; flex: 1 0 170px; gap: 10px; min-height: 48px; padding: 10px 14px; color: #59616c; background: transparent; border: 0; border-right: 1px solid var(--bsmi-line); cursor: pointer; }
.bsmi-crm-intelligence-tabs button:last-child { border-right: 0; }
.bsmi-crm-intelligence-tabs button span { font-size: 10px; font-weight: 850; }
.bsmi-crm-intelligence-tabs button b { min-width: 24px; padding: 3px 5px; color: #6b717a; background: #eceeef; border-radius: 3px; font-size: 8px; text-align: center; }
.bsmi-crm-intelligence-tabs button.is-active { color: var(--bsmi-ink); box-shadow: inset 0 -3px 0 var(--bsmi-gold); }
.bsmi-crm-intelligence-tabs button.is-active b { color: #fff; background: var(--bsmi-black); }

.bsmi-crm-intelligence-filters { display: grid; grid-template-columns: repeat(3, minmax(170px, 240px)); gap: 10px; margin-bottom: 12px; }
.bsmi-crm-intelligence-filters label { display: grid; gap: 5px; }
.bsmi-crm-intelligence-filters label span { color: var(--bsmi-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-intelligence-filters select { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--bsmi-ink); background: #fff; border: 1px solid #cfd3d8; border-radius: 3px; }
.bsmi-crm-intelligence-list { display: grid; gap: 10px; }
.bsmi-crm-intelligence-card { overflow: hidden; background: #fff; border: 1px solid var(--bsmi-line); border-left: 4px solid #77808a; border-radius: 4px; }
.bsmi-crm-intelligence-card.is-urgent { border-left-color: var(--bsmi-red); }
.bsmi-crm-intelligence-card.is-high { border-left-color: var(--bsmi-amber); }
.bsmi-crm-intelligence-card.is-low { border-left-color: var(--bsmi-green); }
.bsmi-crm-intelligence-card > header { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 18px; padding: 17px 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-card > header > div:first-child { min-width: 0; }
.bsmi-crm-intelligence-priority { display: inline-flex; align-items: center; min-height: 20px; padding: 3px 7px; color: #fff; background: #69717b; border-radius: 2px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.bsmi-crm-intelligence-card.is-urgent .bsmi-crm-intelligence-priority { background: var(--bsmi-red); }
.bsmi-crm-intelligence-card.is-high .bsmi-crm-intelligence-priority { background: var(--bsmi-amber); }
.bsmi-crm-intelligence-card.is-low .bsmi-crm-intelligence-priority { background: var(--bsmi-green); }
.bsmi-crm-intelligence-card h3 { margin: 7px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 600; }
.bsmi-crm-intelligence-card header p { margin: 0; color: var(--bsmi-muted); font-size: 9px; overflow-wrap: anywhere; }
.bsmi-crm-intelligence-score { display: grid; align-content: center; justify-items: end; min-width: 0; }
.bsmi-crm-intelligence-score strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1; }
.bsmi-crm-intelligence-score span { margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-intelligence-score small { margin-top: 2px; color: var(--bsmi-green); font-size: 8px; }
.bsmi-crm-intelligence-action { padding: 15px 18px; background: #f7f5ef; border-bottom: 1px solid #e7e1d2; }
.bsmi-crm-intelligence-action > span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.bsmi-crm-intelligence-action > strong { display: block; margin: 5px 0 4px; font-size: 12px; line-height: 1.4; }
.bsmi-crm-intelligence-action p { margin: 0; color: #626970; font-size: 9px; line-height: 1.5; }
.bsmi-crm-intelligence-card > dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-card > dl div { min-width: 0; padding: 12px 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-card > dl div:last-child { border-right: 0; }
.bsmi-crm-intelligence-card dt { color: var(--bsmi-muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-intelligence-card dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 800; }
.bsmi-crm-intelligence-card details { border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-card summary { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 10px 18px; font-size: 9px; font-weight: 850; cursor: pointer; }
.bsmi-crm-intelligence-card summary span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-intelligence-factors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0 18px 14px; list-style: none; }
.bsmi-crm-intelligence-factors li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 9px 10px; background: #f4f5f6; border-left: 3px solid #858b92; }
.bsmi-crm-intelligence-factors li.is-positive { border-left-color: var(--bsmi-green); }
.bsmi-crm-intelligence-factors li.is-negative { border-left-color: var(--bsmi-red); }
.bsmi-crm-intelligence-factors span { min-width: 0; font-size: 8px; font-weight: 850; }
.bsmi-crm-intelligence-factors b { color: #5d646d; font-size: 8px; }
.bsmi-crm-intelligence-factors li.is-positive b { color: var(--bsmi-green); }
.bsmi-crm-intelligence-factors li.is-negative b { color: var(--bsmi-red); }
.bsmi-crm-intelligence-factors small { grid-column: 1 / -1; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-intelligence-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 18px 16px; }
.bsmi-crm-intelligence-context p { margin: 0; color: #5d646d; font-size: 8px; line-height: 1.5; }
.bsmi-crm-intelligence-context strong { display: block; margin-bottom: 3px; color: var(--bsmi-ink); font-size: 8px; }
.bsmi-crm-intelligence-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 18px; }
.bsmi-crm-intelligence-card > footer > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 750; }
.bsmi-crm-intelligence-card > footer > span.is-created { color: var(--bsmi-green); }
.bsmi-crm-intelligence-card > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.bsmi-crm-intelligence-card > footer button { min-height: 34px; padding: 7px 10px; background: #fff; border: 1px solid #ccd0d5; border-radius: 3px; font-size: 8px; font-weight: 850; cursor: pointer; }
.bsmi-crm-intelligence-card > footer button.bsmi-crm-primary { color: var(--bsmi-black); background: var(--bsmi-gold); border-color: var(--bsmi-gold); }

.bsmi-crm-intelligence-sources table { width: 100%; border-collapse: collapse; }
.bsmi-crm-intelligence-sources th { padding: 9px 10px; color: var(--bsmi-muted); background: #f1f2f3; border-bottom: 1px solid var(--bsmi-line); font-size: 7px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.bsmi-crm-intelligence-sources td { padding: 11px 10px; border-bottom: 1px solid var(--bsmi-line); font-size: 8px; white-space: nowrap; }
.bsmi-crm-intelligence-quality { display: inline-block; min-width: 55px; padding: 4px 6px; color: #fff; background: #6a717a; border-radius: 2px; text-align: center; }
.bsmi-crm-intelligence-quality.is-strong { background: var(--bsmi-green); }
.bsmi-crm-intelligence-quality.is-developing { background: var(--bsmi-amber); }
.bsmi-crm-intelligence-quality.is-weak { background: var(--bsmi-red); }
.bsmi-crm-intelligence-management { background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-intelligence-management > header { padding: 16px 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-management h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.bsmi-crm-intelligence-management header p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-intelligence-management > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsmi-crm-intelligence-management article { min-height: 150px; padding: 18px; border-right: 1px solid var(--bsmi-line); border-top: 3px solid #717982; }
.bsmi-crm-intelligence-management article:last-child { border-right: 0; }
.bsmi-crm-intelligence-management article.is-critical { border-top-color: var(--bsmi-red); }
.bsmi-crm-intelligence-management article.is-warning,
.bsmi-crm-intelligence-management article.is-attention { border-top-color: var(--bsmi-amber); }
.bsmi-crm-intelligence-management article.is-positive { border-top-color: var(--bsmi-green); }
.bsmi-crm-intelligence-management article span { color: var(--bsmi-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-intelligence-management article strong { display: block; margin: 10px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.bsmi-crm-intelligence-management article p { margin: 0; color: #5f6670; font-size: 8px; line-height: 1.55; }
.bsmi-crm-intelligence-audit-list { display: grid; }
.bsmi-crm-intelligence-audit-list article { display: grid; grid-template-columns: minmax(190px, .65fr) minmax(260px, 1fr) 170px; gap: 14px; align-items: center; min-height: 62px; padding: 11px 15px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-intelligence-audit-list article:last-child { border-bottom: 0; }
.bsmi-crm-intelligence-audit-list article div { display: grid; gap: 3px; }
.bsmi-crm-intelligence-audit-list strong { font-size: 9px; }
.bsmi-crm-intelligence-audit-list span,
.bsmi-crm-intelligence-audit-list p,
.bsmi-crm-intelligence-audit-list small { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; }
.bsmi-crm-intelligence-audit-list small { text-align: right; }
.bsmi-crm-intelligence-disclaimer { margin: 12px 0 0; padding: 10px 12px; color: #59616b; background: #f3f1e9; border-left: 3px solid var(--bsmi-gold); font-size: 8px; line-height: 1.5; }

.bsmi-crm-intelligence-draft-result { display: grid; gap: 13px; padding: 16px; }
.bsmi-crm-intelligence-draft-result label { display: grid; gap: 6px; }
.bsmi-crm-intelligence-draft-result label span { color: var(--bsmi-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-intelligence-draft-result input,
.bsmi-crm-intelligence-draft-result textarea { width: 100%; padding: 10px; color: var(--bsmi-ink); background: #fff; border: 1px solid #cfd3d8; border-radius: 3px; line-height: 1.5; resize: vertical; }
.bsmi-crm-intelligence-draft-result footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.bsmi-crm-intelligence-draft-result footer button { min-height: 38px; padding: 8px 12px; border: 1px solid #cfd3d8; border-radius: 3px; font-weight: 800; }

.bsmi-crm-lead-intelligence { position: relative; overflow: hidden; border-left: 4px solid #747c85; }
.bsmi-crm-lead-intelligence.is-urgent { border-left-color: var(--bsmi-red); }
.bsmi-crm-lead-intelligence.is-high { border-left-color: var(--bsmi-amber); }
.bsmi-crm-lead-intelligence.is-low { border-left-color: var(--bsmi-green); }
.bsmi-crm-lead-intelligence .bsmi-crm-drawer-band-head { align-items: center; }
.bsmi-crm-lead-intelligence .bsmi-crm-drawer-band-head > div:first-child { min-width: 0; }
.bsmi-crm-lead-intelligence .bsmi-crm-drawer-band-head > div:first-child > span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.bsmi-crm-lead-intelligence .bsmi-crm-drawer-band-head h3 { margin-top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.bsmi-crm-lead-intelligence > p { margin: 0 0 12px; color: #59616b; font-size: 9px; line-height: 1.55; }
.bsmi-crm-lead-intelligence > ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 13px; padding: 0; list-style: none; }
.bsmi-crm-lead-intelligence > ul li { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 5px 8px; background: #f2f3f4; border-left: 3px solid #777e87; font-size: 8px; }
.bsmi-crm-lead-intelligence > ul li.is-positive { border-left-color: var(--bsmi-green); }
.bsmi-crm-lead-intelligence > ul li.is-negative { border-left-color: var(--bsmi-red); }
.bsmi-crm-lead-intelligence > ul li b { color: #616871; }
.bsmi-crm-lead-intelligence > ul li.is-positive b { color: var(--bsmi-green); }
.bsmi-crm-lead-intelligence > ul li.is-negative b { color: var(--bsmi-red); }
.bsmi-crm-lead-intelligence-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.bsmi-crm-lead-intelligence-actions button { min-height: 36px; padding: 8px 10px; background: #fff; border: 1px solid #ccd0d5; border-radius: 3px; font-size: 8px; font-weight: 850; cursor: pointer; }
.bsmi-crm-lead-intelligence-actions button.bsmi-crm-primary { color: var(--bsmi-black); background: var(--bsmi-gold); border-color: var(--bsmi-gold); }
.bsmi-crm-lead-intelligence > small { display: block; margin-top: 10px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }

@media (max-width: 1100px) {
  .bsmi-crm-intelligence-provider { grid-template-columns: 1fr; }
  .bsmi-crm-intelligence-provider dl { border-top: 1px solid #303238; border-left: 0; }
  .bsmi-crm-intelligence-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-intelligence-kpis article:nth-child(3) { border-right: 0; }
  .bsmi-crm-intelligence-kpis article:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-intelligence-management > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-intelligence-management article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-intelligence-management article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
}

@media (max-width: 700px) {
  .bsmi-crm-intelligence-provider { min-height: 0; margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-intelligence-provider > div { padding: 19px 16px; }
  .bsmi-crm-intelligence-provider h2 { font-size: 21px; }
  .bsmi-crm-intelligence-provider dl { grid-template-columns: 1fr; }
  .bsmi-crm-intelligence-provider dl div { min-height: 58px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid #303238; }
  .bsmi-crm-intelligence-provider dl div:last-child { border-bottom: 0; }
  .bsmi-crm-intelligence-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-intelligence-kpis article { min-height: 90px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-intelligence-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-intelligence-kpis article:nth-child(3) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-intelligence-kpis article:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-intelligence-kpis article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .bsmi-crm-intelligence-tabs { margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-intelligence-tabs button { flex-basis: 150px; min-height: 48px; }
  .bsmi-crm-intelligence-filters { grid-template-columns: 1fr; }
  .bsmi-crm-intelligence-filters select { min-height: 44px; }
  .bsmi-crm-intelligence-card > header { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .bsmi-crm-intelligence-score { justify-items: start; }
  .bsmi-crm-intelligence-action { padding: 14px 15px; }
  .bsmi-crm-intelligence-card > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-intelligence-card > dl div { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-intelligence-card > dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-intelligence-card > dl div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bsmi-crm-intelligence-factors,
  .bsmi-crm-intelligence-context { grid-template-columns: 1fr; padding-inline: 14px; }
  .bsmi-crm-intelligence-card summary { padding-inline: 14px; }
  .bsmi-crm-intelligence-card > footer { align-items: stretch; flex-direction: column; padding: 12px 14px; }
  .bsmi-crm-intelligence-card > footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .bsmi-crm-intelligence-card > footer button { min-height: 44px; }
  .bsmi-crm-intelligence-card > footer button:last-child { grid-column: 1 / -1; }
  .bsmi-crm-intelligence-management > div { grid-template-columns: 1fr; }
  .bsmi-crm-intelligence-management article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-intelligence-management article:last-child { border-bottom: 0; }
  .bsmi-crm-intelligence-audit-list article { grid-template-columns: 1fr; gap: 6px; padding: 13px; }
  .bsmi-crm-intelligence-audit-list small { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-intelligence-draft-form),
  .bsmi-crm-drawer:has(.bsmi-crm-intelligence-draft-result) { width: 100vw; }
  .bsmi-crm-drawer:has(.bsmi-crm-intelligence-draft-form) button,
  .bsmi-crm-drawer:has(.bsmi-crm-intelligence-draft-result) button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-intelligence-draft-form) .bsmi-crm-drawer-head > button,
  .bsmi-crm-drawer:has(.bsmi-crm-intelligence-draft-result) .bsmi-crm-drawer-head > button { min-width: 44px; }
  .bsmi-crm-intelligence-draft-result footer { display: grid; grid-template-columns: 1fr 1fr; }
  .bsmi-crm-intelligence-draft-result footer button { min-height: 44px; }
  .bsmi-crm-lead-intelligence .bsmi-crm-drawer-band-head { align-items: flex-start; }
  .bsmi-crm-lead-intelligence .bsmi-crm-intelligence-score { margin-top: 6px; }
  .bsmi-crm-lead-intelligence-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-lead-intelligence-actions button { min-height: 44px; }
}

.bsmi-crm-share-kind {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-left: 3px solid #787f87;
  background: #f0f2f3;
  color: #3d444b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.bsmi-crm-share-kind.is-room {
  border-left-color: var(--bsmi-gold);
  background: #f8f4e9;
  color: #6d5319;
}

.bsmi-crm-share-table td:nth-child(2) strong,
.bsmi-crm-share-table td:nth-child(2) small,
.bsmi-crm-share-table td:nth-child(5) strong,
.bsmi-crm-share-table td:nth-child(5) small,
.bsmi-crm-share-table td:nth-child(6) strong,
.bsmi-crm-share-table td:nth-child(6) small {
  display: block;
}

.bsmi-crm-share-table td:nth-child(2) {
  min-width: 220px;
}

.bsmi-crm-share-table td:nth-child(2) small,
.bsmi-crm-share-table td:nth-child(5) small,
.bsmi-crm-share-table td:nth-child(6) small {
  margin-top: 3px;
  color: var(--bsmi-muted);
  font-size: 9px;
}

.bsmi-crm-client-room-intro {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #303236;
  border-left: 3px solid var(--bsmi-gold);
  border-radius: 4px;
  background: #151619;
  color: #fff;
}

.bsmi-crm-client-room-intro div,
.bsmi-crm-client-room-intro span,
.bsmi-crm-client-room-intro strong,
.bsmi-crm-client-room-intro small {
  display: block;
  min-width: 0;
}

.bsmi-crm-client-room-intro span {
  color: #d2b65e;
  font-size: 8px;
  font-weight: 800;
}

.bsmi-crm-client-room-intro strong {
  margin: 4px 0 2px;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.bsmi-crm-client-room-intro small {
  color: #aeb3b8;
  font-size: 9px;
}

.bsmi-crm-client-room-intro em {
  padding: 6px 9px;
  border: 1px solid #4c4f53;
  border-radius: 3px;
  color: #d9dde0;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.bsmi-crm-client-room-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}

.bsmi-crm-client-room-options legend {
  padding: 0 6px;
  color: #555d65;
  font-size: 10px;
  font-weight: 800;
}

.bsmi-crm-client-room-options label.is-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 53px;
  padding: 9px;
  border: 1px solid #e1e3e6;
  border-radius: 3px;
  background: #f8f9f9;
}

.bsmi-crm-client-room-options label.is-check.is-disabled {
  opacity: .52;
}

.bsmi-crm-client-room-options label.is-check input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 1px 0 0;
}

.bsmi-crm-client-room-options label.is-check b,
.bsmi-crm-client-room-options label.is-check small {
  display: block;
}

.bsmi-crm-client-room-options label.is-check b {
  overflow-wrap: anywhere;
  color: var(--bsmi-ink);
  font-size: 10px;
}

.bsmi-crm-client-room-options label.is-check small {
  margin-top: 2px;
  color: var(--bsmi-muted);
  font-size: 8px;
}

.bsmi-crm-client-room-options > p {
  grid-column: 1 / -1;
  margin: 4px;
  font-size: 10px;
}

.bsmi-crm-client-room-credentials {
  padding: 12px 13px;
  border-left: 3px solid #277253;
  background: #edf6f2;
  color: #285543;
}

.bsmi-crm-client-room-credentials p {
  margin: 4px 0 0;
  font-size: 10px;
}

.bsmi-crm-client-room-ready {
  align-content: start;
}

.bsmi-crm-client-room-ready > button {
  min-width: 150px;
}

.bsmi-crm-client-room-ready .bsmi-crm-client-room-pin input {
  color: #15171a;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.bsmi-crm-client-room-ready > aside {
  width: 100%;
  padding: 13px;
  border-left: 3px solid var(--bsmi-gold);
  background: #f8f4e9;
  color: #5f4b1d;
  text-align: left;
}

.bsmi-crm-client-room-ready > aside p {
  margin: 3px 0 0;
  color: #715d2e;
  font-size: 10px;
}

@media (max-width: 700px) {
  .bsmi-crm-drawer:has(.bsmi-crm-client-room-form) .bsmi-crm-drawer-head button,
  .bsmi-crm-client-room-form select,
  .bsmi-crm-client-room-form .bsmi-crm-form-actions button {
    min-height: 44px;
  }

  .bsmi-crm-client-room-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .bsmi-crm-client-room-options {
    grid-template-columns: 1fr;
  }

  .bsmi-crm-client-room-options label.is-check {
    min-height: 58px;
  }

  .bsmi-crm-client-room-ready > button,
  .bsmi-crm-client-room-ready .bsmi-crm-share-ready-actions,
  .bsmi-crm-client-room-ready .bsmi-crm-share-ready-actions > * {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 1100px) {
  .bsmi-crm-opportunity-kpis { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
  .bsmi-crm-opportunity-kpis article:nth-child(3) { border-right: 0; }
  .bsmi-crm-opportunity-kpis article:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
}

@media (max-width: 700px) {
  .bsmi-crm-opportunity-tabs { margin-inline: -10px; padding-inline: 10px; background: var(--bsmi-black); border-inline: 0; border-radius: 0; }
  .bsmi-crm-opportunity-tabs button { flex-basis: 142px; min-height: 48px; }
  .bsmi-crm-opportunity-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-opportunity-kpis article { min-height: 90px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-opportunity-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-opportunity-kpis article:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-opportunity-kpis article:last-child { grid-column: 1 / -1; border-top: 1px solid var(--bsmi-line); }
  .bsmi-crm-opportunity-controls { align-items: stretch; flex-direction: column; }
  .bsmi-crm-opportunity-queues { width: 100%; }
  .bsmi-crm-opportunity-queues button { flex: 1 0 max-content; min-height: 44px; }
  .bsmi-crm-opportunity-controls > label { flex-basis: auto; width: 100%; }
  .bsmi-crm-opportunity-controls select { min-height: 44px; }
  .bsmi-crm-opportunity-board { grid-auto-columns: min(84vw, 310px); width: calc(100vw - 24px); margin-right: -12px; min-height: 430px; }
  .bsmi-crm-opportunity-board .bsmi-crm-kanban-column { min-height: 420px; }
  .bsmi-crm-opportunity-board .bsmi-crm-pipeline-card footer button { min-height: 44px; padding: 8px 11px; }
  .bsmi-crm-pipeline-move-form .bsmi-crm-governance-note { margin-inline: 0; }
}

/* Governed Brokerage Document Studio */
.bsmi-crm-document-studio {
  margin-bottom: 14px;
  overflow: hidden;
  color: #fff;
  background: #15171a;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}

.bsmi-crm-document-studio > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid #313338;
}

.bsmi-crm-document-studio > header span { color: var(--bsmi-gold); font-size: 8px; font-weight: 800; letter-spacing: 0; }
.bsmi-crm-document-studio > header h2 { margin: 5px 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; letter-spacing: 0; }
.bsmi-crm-document-studio-counts { display: flex; flex: 0 0 auto; gap: 1px; overflow: hidden; border: 1px solid #35373c; border-radius: 3px; }
.bsmi-crm-document-studio-counts > span { display: grid; min-width: 74px; padding: 8px 10px; color: #9fa3aa; text-align: center; background: #1d1f23; }
.bsmi-crm-document-studio-counts strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }

.bsmi-crm-document-templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #2d2f34; gap: 1px; }
.bsmi-crm-document-template { display: grid; grid-template-rows: auto auto minmax(58px, 1fr) auto; min-width: 0; min-height: 204px; padding: 16px; color: var(--bsmi-ink); background: #fff; }
.bsmi-crm-document-template > header { display: flex; justify-content: space-between; gap: 10px; }
.bsmi-crm-document-template > header span,
.bsmi-crm-document-template > header em { color: var(--bsmi-gold-dark); font-size: 8px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-document-template h3 { margin: 12px 0 7px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
.bsmi-crm-document-template p { margin: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }
.bsmi-crm-document-template > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-document-template > footer small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-document-template > footer button { min-height: 32px; padding: 6px 10px; color: #fff; font-size: 9px; font-weight: 750; background: var(--bsmi-black); border-color: var(--bsmi-black); }
.bsmi-crm-document-template > footer button:disabled { color: #777b82; background: #e2e3e5; border-color: #e2e3e5; }
.bsmi-crm-document-template.is-locked { background: #f2f2f1; }

.bsmi-crm-document-studio > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px 16px; color: #afb2b8; background: #101114; }
.bsmi-crm-document-studio > footer span,
.bsmi-crm-document-studio > footer strong { padding: 4px 7px; font-size: 8px; border: 1px solid #33363b; border-radius: 2px; }
.bsmi-crm-document-studio > footer strong { margin-left: auto; color: var(--bsmi-gold); border-color: #6d5a35; }

.bsmi-crm-drawer:has(.bsmi-crm-document-generation-form),
.bsmi-crm-drawer:has(.bsmi-crm-generated-review-form),
.bsmi-crm-drawer:has(.bsmi-crm-generated-preview) { width: min(760px, calc(100vw - 72px)); }
.bsmi-crm-document-generation-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; gap: 1px; overflow: hidden; color: #fff; background: #313338; border-radius: 3px; }
.bsmi-crm-document-generation-context > div { display: grid; gap: 5px; min-width: 0; padding: 12px; background: #1a1c20; }
.bsmi-crm-document-generation-context span { color: #9fa3aa; font-size: 8px; }
.bsmi-crm-document-generation-context strong { overflow-wrap: anywhere; color: var(--bsmi-gold); font-size: 10px; }
.bsmi-crm-document-generation-context > p { grid-column: 1 / -1; margin: 0; padding: 12px; color: #d6d7da; font-size: 9px; line-height: 1.5; background: #23252a; }
.bsmi-crm-document-generation-guardrail { grid-column: 1 / -1; padding: 12px 14px; background: #f4f0e7; border-left: 3px solid var(--bsmi-gold); border-radius: 3px; }
.bsmi-crm-document-generation-guardrail strong { font-size: 10px; }
.bsmi-crm-document-generation-guardrail p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }

.bsmi-crm-generated-preview { position: relative; margin: 14px 18px 0; padding: 18px; background: #fdfdfc; border: 1px solid #dadbdc; border-top: 3px solid var(--bsmi-gold); border-radius: 3px; box-shadow: 0 5px 18px rgba(18, 20, 24, .07); }
.bsmi-crm-generated-preview > header { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #dfe0e2; }
.bsmi-crm-generated-preview > header div { display: grid; gap: 4px; }
.bsmi-crm-generated-preview > header span,
.bsmi-crm-generated-preview > header small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-generated-preview > header strong { font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-generated-preview pre { max-height: 520px; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #282b30; font: 10px/1.65 Arial, sans-serif; }

.bsmi-crm-generated-history { display: grid; gap: 7px; margin-top: 12px; }
.bsmi-crm-generated-history article { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 9px; background: #f7f7f6; border: 1px solid var(--bsmi-line); border-radius: 3px; }
.bsmi-crm-generated-history article > span { padding: 3px 5px; color: #805d17; font-size: 8px; font-weight: 750; text-align: center; background: #fff0d0; border-radius: 2px; }
.bsmi-crm-generated-history article > span.is-approved { color: var(--bsmi-green); background: #e3f2e9; }
.bsmi-crm-generated-history article > span.is-rejected { color: var(--bsmi-red); background: #f8e5e5; }
.bsmi-crm-generated-history article div { min-width: 0; }
.bsmi-crm-generated-history strong,
.bsmi-crm-generated-history p,
.bsmi-crm-generated-history small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-generated-history strong { font-size: 9px; }
.bsmi-crm-generated-history p { margin: 3px 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; }
.bsmi-crm-generated-history small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-generated-history code { color: #666b72; font-size: 8px; }
.bsmi-crm-document-access button { min-height: 34px; padding: 7px 10px; color: #fff; font-size: 9px; font-weight: 750; background: var(--bsmi-black); border-color: var(--bsmi-black); }

@media (max-width: 1100px) {
  .bsmi-crm-document-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .bsmi-crm-document-studio > header { align-items: flex-start; flex-direction: column; padding: 15px; }
  .bsmi-crm-document-studio > header h2 { font-size: 20px; }
  .bsmi-crm-document-studio-counts { width: 100%; }
  .bsmi-crm-document-studio-counts > span { flex: 1 1 0; min-width: 0; }
  .bsmi-crm-document-templates { grid-template-columns: 1fr; }
  .bsmi-crm-document-template { min-height: 0; }
  .bsmi-crm-document-template > footer button { min-height: 44px; }
  .bsmi-crm-document-studio > footer strong { width: 100%; margin-left: 0; text-align: center; }
  .bsmi-crm-drawer:has(.bsmi-crm-document-generation-form),
  .bsmi-crm-drawer:has(.bsmi-crm-generated-review-form),
  .bsmi-crm-drawer:has(.bsmi-crm-generated-preview) { width: 100vw; }
  .bsmi-crm-document-generation-context { grid-template-columns: 1fr; }
  .bsmi-crm-document-generation-context > p { grid-column: 1; }
  .bsmi-crm-generated-preview { margin-inline: 13px; padding: 14px; }
  .bsmi-crm-generated-preview > header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-generated-preview pre { max-height: 460px; font-size: 9px; }
  .bsmi-crm-generated-history article { grid-template-columns: 1fr; }
  .bsmi-crm-generated-history article > span { justify-self: start; }
  .bsmi-crm-generated-review-form textarea[name="content"] { min-height: 430px; }
  .bsmi-crm-document-access button,
  .bsmi-crm-drawer:has(.bsmi-crm-document-generation-form) button,
  .bsmi-crm-drawer:has(.bsmi-crm-generated-review-form) button,
  .bsmi-crm-drawer:has(.bsmi-crm-generated-preview) button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-document-generation-form) select,
  .bsmi-crm-drawer:has(.bsmi-crm-document-generation-form) input,
  .bsmi-crm-drawer:has(.bsmi-crm-generated-review-form) select,
  .bsmi-crm-drawer:has(.bsmi-crm-generated-review-form) input { min-height: 44px; }
}

/* Mobile Field Desk and installable PWA */
.bsmi-crm-field-install-state {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  color: var(--bsmi-green);
  background: #e9f3ed;
  border: 1px solid #bdd8c9;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
}

.bsmi-crm-field-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 116px;
  padding: 20px 22px;
  color: #fff;
  background: #141518;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px 4px 0 0;
}

.bsmi-crm-field-command-title { min-width: 0; }
.bsmi-crm-field-command-title small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-field-command-title h2 { margin: 6px 0 5px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-field-command-title p { margin: 0; color: #aeb2b8; font-size: 10px; }
.bsmi-crm-field-command-status { display: grid; grid-template-columns: repeat(3, minmax(98px, 1fr)); border: 1px solid #34363b; border-radius: 3px; }
.bsmi-crm-field-command-status > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; padding: 9px 12px; color: #d4d6da; border-right: 1px solid #34363b; font-size: 9px; text-align: center; }
.bsmi-crm-field-command-status > span:last-child { border-right: 0; }
.bsmi-crm-field-command-status i { width: 8px; height: 8px; flex: 0 0 auto; background: var(--bsmi-green); border-radius: 50%; }
.bsmi-crm-field-command-status .is-offline i { background: var(--bsmi-amber); }

.bsmi-crm-field-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 0;
}

.bsmi-crm-field-controls > div { display: flex; flex-wrap: wrap; gap: 8px; }
.bsmi-crm-field-owner { display: grid; gap: 5px; width: min(300px, 100%); }
.bsmi-crm-field-owner span { color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-field-owner select { min-height: 38px; padding: 7px 34px 7px 10px; color: var(--bsmi-ink); background: #fff; border: 1px solid #cfd2d7; border-radius: 3px; }

.bsmi-crm-field-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-field-kpis article { display: grid; gap: 5px; min-width: 0; min-height: 92px; padding: 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-field-kpis article:last-child { border-right: 0; }
.bsmi-crm-field-kpis span { color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-field-kpis strong { overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.bsmi-crm-field-kpis small { color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-field-section {
  margin-top: 14px;
  padding: 0 0 16px;
  background: #fff;
  border-top: 1px solid var(--bsmi-line);
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-field-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-field-section-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-field-section-head p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-field-section-head > span { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-field-empty { margin: 16px 18px 0; padding: 18px; color: var(--bsmi-muted); background: #f6f6f5; border-left: 3px solid #aeb2b8; font-size: 10px; }
.bsmi-crm-field-visit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px 0; }
.bsmi-crm-field-visit { display: grid; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d5d7da; border-top: 3px solid #7b828a; border-radius: 3px; }
.bsmi-crm-field-visit.is-confirmed { border-top-color: var(--bsmi-green); }
.bsmi-crm-field-visit.is-in-progress { border-top-color: var(--bsmi-blue); }
.bsmi-crm-field-visit.is-access-pending,
.bsmi-crm-field-visit.is-feedback-due { border-top-color: var(--bsmi-amber); }
.bsmi-crm-field-visit > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 14px 10px; }
.bsmi-crm-field-visit > header div { min-width: 0; }
.bsmi-crm-field-visit > header small { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-field-visit > header h3 { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.bsmi-crm-field-visit > header > span { flex: 0 0 auto; padding: 4px 6px; color: #59616b; background: #eceeef; border-radius: 2px; font-size: 8px; font-weight: 750; }
.bsmi-crm-field-visit-time { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 14px; background: #f4f4f2; border-block: 1px solid var(--bsmi-line); }
.bsmi-crm-field-visit-time strong { color: var(--bsmi-gold-dark); font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.bsmi-crm-field-visit-time span { overflow-wrap: anywhere; color: #5f6670; font-size: 9px; }
.bsmi-crm-field-stops { display: grid; min-height: 68px; padding: 4px 14px; }
.bsmi-crm-field-stops > span { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; overflow-wrap: anywhere; border-bottom: 1px solid var(--bsmi-line); font-size: 9px; }
.bsmi-crm-field-stops > span:last-child { border-bottom: 0; }
.bsmi-crm-field-stops b { display: grid; width: 22px; height: 22px; place-items: center; color: #fff; background: var(--bsmi-black); border-radius: 50%; font-size: 8px; }
.bsmi-crm-field-stops small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-field-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 14px; background: #f7f7f6; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-field-actions a,
.bsmi-crm-field-actions button { min-height: 34px; padding: 6px 9px; color: var(--bsmi-ink); text-decoration: none; background: #fff; border: 1px solid #cfd2d7; border-radius: 3px; font-size: 9px; font-weight: 750; }
.bsmi-crm-field-actions button.bsmi-crm-primary { color: var(--bsmi-black); background: var(--bsmi-gold); border-color: var(--bsmi-gold); }

.bsmi-crm-field-task-list { display: grid; padding: 0 16px; }
.bsmi-crm-field-task { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: center; min-height: 82px; padding: 13px 3px 13px 14px; border-bottom: 1px solid var(--bsmi-line); border-left: 3px solid #7b828a; }
.bsmi-crm-field-task:last-child { border-bottom: 0; }
.bsmi-crm-field-task.is-urgent { border-left-color: var(--bsmi-red); }
.bsmi-crm-field-task.is-high { border-left-color: var(--bsmi-amber); }
.bsmi-crm-field-task > div { min-width: 0; }
.bsmi-crm-field-task small { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 800; }
.bsmi-crm-field-task h3 { margin: 5px 0; overflow-wrap: anywhere; font-size: 11px; line-height: 1.35; }
.bsmi-crm-field-task p { margin: 0; overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-field-task aside { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; padding-right: 10px; }
.bsmi-crm-field-task aside span { grid-column: 1 / -1; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; }
.bsmi-crm-field-task aside span.is-danger { color: var(--bsmi-red); }
.bsmi-crm-field-task aside span.is-warning { color: var(--bsmi-amber); }
.bsmi-crm-field-task aside strong { font-size: 10px; }
.bsmi-crm-field-task aside button { min-height: 34px; padding: 6px 9px; font-size: 9px; }

.bsmi-crm-field-evidence > form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; }
.bsmi-crm-field-evidence label { display: grid; align-content: start; gap: 6px; min-width: 0; }
.bsmi-crm-field-evidence label > span { color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-field-evidence label.is-note { grid-column: span 2; }
.bsmi-crm-field-evidence input,
.bsmi-crm-field-evidence select,
.bsmi-crm-field-evidence textarea { width: 100%; min-height: 40px; padding: 9px 10px; color: var(--bsmi-ink); background: #fff; border: 1px solid #cfd2d7; border-radius: 3px; font: inherit; }
.bsmi-crm-field-evidence textarea { min-height: 92px; resize: vertical; }
.bsmi-crm-field-evidence input[type="file"] { padding: 7px; }
.bsmi-crm-field-evidence-submit { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.bsmi-crm-field-evidence-submit p { margin: 0 auto 0 0; color: var(--bsmi-red); font-size: 9px; }
.bsmi-crm-field-drafts { margin: 0 18px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-field-drafts > h3 { margin: 14px 0 6px; font-size: 10px; text-transform: uppercase; }
.bsmi-crm-field-drafts article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-field-drafts article > div { min-width: 0; }
.bsmi-crm-field-drafts strong,
.bsmi-crm-field-drafts small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-field-drafts strong { font-size: 10px; }
.bsmi-crm-field-drafts small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-field-drafts p { margin: 5px 0 0; color: #5e646d; font-size: 9px; }

.bsmi-crm-field-offline {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(420px, 1.4fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 18px 20px;
  color: #fff;
  background: #16171a;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 3px;
}
.bsmi-crm-field-offline > div:first-child small { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-field-offline h2 { margin: 6px 0 5px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-field-offline p { margin: 0; color: #aeb2b8; font-size: 8px; }
.bsmi-crm-field-offline dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid #36383d; }
.bsmi-crm-field-offline dl div { padding: 10px; border-right: 1px solid #36383d; }
.bsmi-crm-field-offline dl div:last-child { border-right: 0; }
.bsmi-crm-field-offline dt { color: #969ba2; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-field-offline dd { margin: 5px 0 0; color: #fff; font-size: 9px; font-weight: 750; }
.bsmi-crm-field-offline-actions { display: flex; gap: 7px; justify-content: flex-end; }
.bsmi-crm-field-offline-actions button { min-height: 38px; white-space: nowrap; }

.bsmi-crm-field-native { margin-top: 14px; overflow: hidden; background: #fff; border: 1px solid var(--bsmi-line); border-top: 3px solid var(--bsmi-black); border-radius: 3px; }
.bsmi-crm-field-native > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.bsmi-crm-field-native > header small { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 850; }
.bsmi-crm-field-native > header h2 { margin: 5px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-field-native > header p { margin: 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-field-native-boundary { display: flex; align-items: center; gap: 18px; padding: 11px 18px; background: #f5f0e5; border-block: 1px solid #e5d8ba; }
.bsmi-crm-field-native-boundary strong { flex: 0 0 auto; font-size: 9px; text-transform: uppercase; }
.bsmi-crm-field-native-boundary span { color: #5f6268; font-size: 9px; line-height: 1.45; }
.bsmi-crm-field-native > dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-field-native > dl div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-field-native > dl div:last-child { border-right: 0; }
.bsmi-crm-field-native dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-field-native dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 750; }
.bsmi-crm-field-push-ops { padding: 14px 18px; background: #f7f7f5; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-field-push-ops > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-field-push-ops > header small { color: var(--bsmi-gold-dark); font-size: 7px; font-weight: 850; }
.bsmi-crm-field-push-ops > header h3 { margin: 4px 0 0; font-size: 12px; }
.bsmi-crm-field-push-ops > header > span { padding: 5px 7px; color: var(--bsmi-green); background: #e4f1ea; font-size: 8px; font-weight: 800; }
.bsmi-crm-field-push-ops > header > span.is-pending { color: #76520d; background: #f7edda; }
.bsmi-crm-field-push-ops > dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 12px 0 0; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-field-push-ops > dl div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-field-push-ops > dl div:last-child { border-right: 0; }
.bsmi-crm-field-push-ops > p { margin: 11px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-field-push-evidence { display: grid; margin-top: 10px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-field-push-evidence article { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-field-push-evidence article:last-child { border-bottom: 0; }
.bsmi-crm-field-push-evidence strong, .bsmi-crm-field-push-evidence small { display: block; }
.bsmi-crm-field-push-evidence strong { font-size: 9px; }
.bsmi-crm-field-push-evidence small { margin-top: 2px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-field-push-evidence b { font-size: 8px; }
.bsmi-crm-field-native-tokens { display: grid; padding: 0 18px; }
.bsmi-crm-field-native-tokens > p { margin: 0; padding: 16px 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-field-native-tokens article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-field-native-tokens article:last-child { border-bottom: 0; }
.bsmi-crm-field-native-tokens strong,
.bsmi-crm-field-native-tokens small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-field-native-tokens strong { font-size: 10px; }
.bsmi-crm-field-native-tokens small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-field-native-tokens article > span { padding: 4px 7px; color: var(--bsmi-green); background: #e4f1ea; font-size: 8px; font-weight: 800; }
.bsmi-crm-field-native-tokens article > span.is-revoked,
.bsmi-crm-field-native-tokens article > span.is-expired { color: var(--bsmi-red); background: #f7e4e4; }
.bsmi-crm-native-token-once { display: grid; gap: 12px; padding: 18px; }
.bsmi-crm-native-token-once > strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-native-token-once > p { margin: -8px 0 0; color: var(--bsmi-red); font-size: 10px; }
.bsmi-crm-native-token-once textarea { width: 100%; min-height: 110px; padding: 12px; resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; overflow-wrap: anywhere; }
.bsmi-crm-native-token-once dl { display: grid; gap: 8px; margin: 0; }
.bsmi-crm-native-token-once dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; }
.bsmi-crm-native-token-once dt { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-native-token-once dd { margin: 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }

@media (max-width: 1100px) {
  .bsmi-crm-field-command { grid-template-columns: 1fr; }
  .bsmi-crm-field-command-status { width: 100%; }
  .bsmi-crm-field-offline { grid-template-columns: 1fr; }
  .bsmi-crm-field-offline-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .bsmi-crm-page-head:has(+ .bsmi-crm-field-command) { align-items: flex-start; }
  .bsmi-crm-page-head:has(+ .bsmi-crm-field-command) > div:last-child { width: 100%; }
  .bsmi-crm-page-head:has(+ .bsmi-crm-field-command) button,
  .bsmi-crm-page-head:has(+ .bsmi-crm-field-command) .bsmi-crm-field-install-state { flex: 1 1 130px; min-height: 44px; }
  .bsmi-crm-field-command { margin-inline: -10px; padding: 17px 14px; border-radius: 0; }
  .bsmi-crm-field-command-title h2 { font-size: 20px; }
  .bsmi-crm-field-command-status { grid-template-columns: 1fr; }
  .bsmi-crm-field-command-status > span { min-height: 42px; border-right: 0; border-bottom: 1px solid #34363b; }
  .bsmi-crm-field-command-status > span:last-child { border-bottom: 0; }
  .bsmi-crm-field-controls { align-items: stretch; flex-direction: column; margin-inline: -10px; padding: 12px 14px; border-inline: 0; }
  .bsmi-crm-field-controls > div { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-field-controls button,
  .bsmi-crm-field-owner select { min-height: 44px; }
  .bsmi-crm-field-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-field-kpis article { min-height: 88px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-field-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-field-kpis article:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-field-section { margin-inline: -10px; }
  .bsmi-crm-field-section-head { align-items: flex-start; flex-direction: column; padding: 14px; }
  .bsmi-crm-field-section-head > button { width: 100%; min-height: 44px; }
  .bsmi-crm-field-visit-list { grid-template-columns: 1fr; padding-inline: 10px; }
  .bsmi-crm-field-visit-time { grid-template-columns: auto 1fr; }
  .bsmi-crm-field-visit-time span:last-child { grid-column: 1 / -1; }
  .bsmi-crm-field-stops > span { grid-template-columns: 26px minmax(0, 1fr); }
  .bsmi-crm-field-stops small { grid-column: 2; }
  .bsmi-crm-field-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-field-actions a,
  .bsmi-crm-field-actions button { min-height: 44px; }
  .bsmi-crm-field-task-list { padding-inline: 10px; }
  .bsmi-crm-field-task { grid-template-columns: 1fr; gap: 10px; padding: 13px 10px; }
  .bsmi-crm-field-task aside { grid-template-columns: 1fr auto; padding-right: 0; }
  .bsmi-crm-field-task aside button { min-height: 44px; }
  .bsmi-crm-field-evidence > form { grid-template-columns: 1fr; padding: 14px; }
  .bsmi-crm-field-evidence label.is-note,
  .bsmi-crm-field-evidence-submit { grid-column: 1; }
  .bsmi-crm-field-evidence input,
  .bsmi-crm-field-evidence select { min-height: 44px; }
  .bsmi-crm-field-evidence textarea { min-height: 118px; }
  .bsmi-crm-field-evidence-submit { align-items: stretch; flex-direction: column; }
  .bsmi-crm-field-evidence-submit button { min-height: 44px; }
  .bsmi-crm-field-drafts { margin-inline: 14px; }
  .bsmi-crm-field-drafts article { align-items: stretch; flex-direction: column; }
  .bsmi-crm-field-drafts article button { min-height: 44px; }
  .bsmi-crm-field-offline { margin-inline: -10px; padding: 16px 14px; border-radius: 0; }
  .bsmi-crm-field-offline dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-field-offline dl div { border-bottom: 1px solid #36383d; }
  .bsmi-crm-field-offline dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-field-offline dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-field-offline-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-field-offline-actions button { min-height: 44px; }
  .bsmi-crm-field-native { margin-inline: -10px; border-inline: 0; border-radius: 0; }
  .bsmi-crm-field-native > header { align-items: stretch; flex-direction: column; padding: 15px 14px; }
  .bsmi-crm-field-native > header button { min-height: 44px; }
  .bsmi-crm-field-native-boundary { align-items: flex-start; flex-direction: column; gap: 5px; padding-inline: 14px; }
  .bsmi-crm-field-native > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-field-native > dl div { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-field-native > dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-field-native > dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-field-push-ops { padding-inline: 14px; }
  .bsmi-crm-field-push-ops > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-field-push-ops > dl div { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-field-push-ops > dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-field-native-tokens { padding-inline: 14px; }
  .bsmi-crm-field-native-tokens article { grid-template-columns: minmax(0, 1fr) auto; }
  .bsmi-crm-field-native-tokens article button { grid-column: 1 / -1; min-height: 44px; }
}

/* Data Exchange Operations */
.bsmi-crm-exchange-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.bsmi-crm-exchange-kpis article {
  min-width: 0;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-exchange-kpis span,
.bsmi-crm-exchange-kpis strong,
.bsmi-crm-exchange-kpis small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-exchange-kpis span { color: var(--bsmi-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-exchange-kpis strong { margin-top: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-exchange-kpis small { margin-top: 5px; color: var(--bsmi-muted); font-size: 9px; }

.bsmi-crm-exchange-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 14px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-exchange-tabs button {
  min-height: 40px;
  padding: 8px 16px;
  white-space: nowrap;
  color: #4e545d;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}
.bsmi-crm-exchange-tabs button.is-active { color: #fff; background: var(--bsmi-black); }

.bsmi-crm-exchange-command {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(520px, 1.45fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 20px;
  color: #fff;
  background: #15171a;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}
.bsmi-crm-exchange-command-copy { min-width: 0; }
.bsmi-crm-exchange-command-copy small { color: #d4b66d; font-size: 8px; font-weight: 850; }
.bsmi-crm-exchange-command-copy h2 { margin: 6px 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-exchange-command-copy p { margin: 0; color: #aeb3ba; font-size: 10px; line-height: 1.5; }
.bsmi-crm-exchange-command form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}
.bsmi-crm-exchange-command form label { display: grid; gap: 5px; min-width: 0; }
.bsmi-crm-exchange-command form label > span { color: #bdc1c7; font-size: 8px; font-weight: 800; }
.bsmi-crm-exchange-command form select,
.bsmi-crm-exchange-command form input {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  padding: 8px 9px;
  color: #fff;
  background: #23262a;
  border: 1px solid #454a50;
  border-radius: 3px;
  font-size: 10px;
}
.bsmi-crm-exchange-command form input[type="file"] { padding: 7px; }
.bsmi-crm-exchange-command form button { min-height: 40px; white-space: nowrap; }
.bsmi-crm-exchange-command form > small { grid-column: 1 / -1; color: #8f959d; font-size: 8px; }

.bsmi-crm-exchange-boundary {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(560px, 1.6fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 15px 18px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-exchange-boundary > div small { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 850; }
.bsmi-crm-exchange-boundary > div strong { display: block; margin-top: 5px; font-size: 12px; }
.bsmi-crm-exchange-boundary > div p { margin: 5px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-exchange-boundary dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-exchange-boundary dl div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-boundary dl div:last-child { border-right: 0; }
.bsmi-crm-exchange-boundary dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-exchange-boundary dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 750; }

.bsmi-crm-exchange-latest {
  margin-bottom: 14px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-exchange-latest header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bsmi-crm-exchange-latest header small { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 850; }
.bsmi-crm-exchange-latest h2 { margin: 5px 0 3px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-exchange-latest header p { margin: 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-exchange-latest header > span,
.bsmi-crm-exchange-run-table td > span:first-child {
  padding: 5px 7px;
  color: var(--bsmi-green);
  background: #e8f4ee;
  border-radius: 2px;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
}
.bsmi-crm-exchange-latest header > span.is-warning,
.bsmi-crm-exchange-run-table td > span.is-warning { color: #81560d; background: #f8efdc; }
.bsmi-crm-exchange-latest header > span.is-danger,
.bsmi-crm-exchange-run-table td > span.is-danger { color: #8f2d2d; background: #f6e7e7; }
.bsmi-crm-exchange-latest dl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 15px 0 0; border: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-latest dl div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-latest dl div:last-child { border-right: 0; }
.bsmi-crm-exchange-latest dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-exchange-latest dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 800; }

.bsmi-crm-exchange-profile-table,
.bsmi-crm-exchange-run-table { width: 100%; overflow-x: auto; }
.bsmi-crm-exchange-profile-table table,
.bsmi-crm-exchange-run-table table { width: 100%; border-collapse: collapse; }
.bsmi-crm-exchange-profile-table th,
.bsmi-crm-exchange-run-table th { padding: 9px 10px; color: #5f6670; background: #f5f6f7; border-bottom: 1px solid var(--bsmi-line); text-align: left; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-exchange-profile-table td,
.bsmi-crm-exchange-run-table td { min-width: 90px; padding: 10px; border-bottom: 1px solid var(--bsmi-line); vertical-align: top; font-size: 9px; }
.bsmi-crm-exchange-profile-table td:first-child,
.bsmi-crm-exchange-run-table td:first-child { min-width: 160px; }
.bsmi-crm-exchange-profile-table td strong,
.bsmi-crm-exchange-profile-table td small,
.bsmi-crm-exchange-run-table td strong,
.bsmi-crm-exchange-run-table td small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-exchange-profile-table td small,
.bsmi-crm-exchange-run-table td small { margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-exchange-profile-note,
.bsmi-crm-exchange-run-policy { margin: 14px 16px 16px; padding: 12px 14px; background: #f7f4ed; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-exchange-profile-note strong,
.bsmi-crm-exchange-run-policy strong { font-size: 10px; }
.bsmi-crm-exchange-profile-note p,
.bsmi-crm-exchange-run-policy p { margin: 4px 0 0; color: #5f6267; font-size: 9px; line-height: 1.45; }

.bsmi-crm-exchange-connectors { background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-connectors > .bsmi-crm-section-head { margin: 0; border: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-connectors > div:nth-child(2) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsmi-crm-exchange-connectors article { display: grid; align-content: start; min-width: 0; min-height: 260px; padding: 15px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-connectors article:nth-child(3n) { border-right: 0; }
.bsmi-crm-exchange-connectors article header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bsmi-crm-exchange-connectors article header small { color: var(--bsmi-gold-dark); font-size: 7px; font-weight: 850; }
.bsmi-crm-exchange-connectors article h3 { margin: 5px 0 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-exchange-connectors article header span { color: var(--bsmi-green); font-size: 8px; font-weight: 800; }
.bsmi-crm-exchange-connectors article.is-warning header span { color: var(--bsmi-amber); }
.bsmi-crm-exchange-connectors article.is-danger header span { color: var(--bsmi-red); }
.bsmi-crm-exchange-connectors article > p { margin: 12px 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-exchange-connectors article dl { margin: 0; }
.bsmi-crm-exchange-connectors article dl div { padding: 8px 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-connectors article dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-exchange-connectors article dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.bsmi-crm-exchange-connectors article footer { align-self: end; margin-top: 12px; }
.bsmi-crm-exchange-connectors article footer small { display: block; min-height: 30px; overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-exchange-connectors article footer button { width: 100%; min-height: 36px; margin-top: 8px; }
.bsmi-crm-exchange-disclaimer { margin: 0; padding: 13px 15px; color: #5f6267; background: #f7f4ed; border-top: 1px solid var(--bsmi-line); font-size: 9px; }

.bsmi-crm-catalog-intake-head {
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(440px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 12px;
  padding: 20px;
  color: #fff;
  background: #15171a;
  border-top: 3px solid var(--bsmi-gold);
  border-radius: 4px;
}
.bsmi-crm-catalog-intake-head > div { min-width: 0; }
.bsmi-crm-catalog-intake-head small { color: #d4b66d; font-size: 8px; font-weight: 850; }
.bsmi-crm-catalog-intake-head h2 {
  margin: 6px 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}
.bsmi-crm-catalog-intake-head p { margin: 0; color: #aeb3ba; font-size: 10px; line-height: 1.5; }
.bsmi-crm-catalog-intake-head dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid #41454a;
}
.bsmi-crm-catalog-intake-head dl div { min-width: 0; padding: 11px; border-right: 1px solid #41454a; }
.bsmi-crm-catalog-intake-head dl div:last-child { border-right: 0; }
.bsmi-crm-catalog-intake-head dt { color: #949aa1; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-catalog-intake-head dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 800; }

.bsmi-crm-catalog-intake-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.bsmi-crm-catalog-intake-sources article {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 4px;
}
.bsmi-crm-catalog-intake-sources article:first-child { border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-catalog-intake-sources article:last-child { border-top: 3px solid var(--bsmi-green); }
.bsmi-crm-catalog-intake-sources article header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-catalog-intake-sources article header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 850; }
.bsmi-crm-catalog-intake-sources article header strong { font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 500; }
.bsmi-crm-catalog-intake-sources article h3 { margin: 7px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-catalog-intake-sources article > p { min-height: 42px; margin: 8px 0 12px; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }
.bsmi-crm-catalog-intake-sources article dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 13px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-catalog-intake-sources article dl div { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-catalog-intake-sources article dl div:last-child { border-right: 0; }
.bsmi-crm-catalog-intake-sources article dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-catalog-intake-sources article dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 750; }
.bsmi-crm-catalog-intake-sources article > button { align-self: end; min-height: 38px; }

.bsmi-crm-catalog-intake-boundary {
  margin-bottom: 12px;
  padding: 13px 16px;
  color: #4e4022;
  background: #f7f4ed;
  border: 1px solid #e5dcc7;
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-catalog-intake-boundary strong { font-size: 10px; }
.bsmi-crm-catalog-intake-boundary p { margin: 4px 0 0; font-size: 9px; line-height: 1.5; }

.bsmi-crm-catalog-intake-projects { background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-catalog-intake-projects > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-catalog-intake-projects > header > div { min-width: 0; }
.bsmi-crm-catalog-intake-projects > header > div:last-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.bsmi-crm-catalog-intake-projects > header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-catalog-intake-projects > header p { margin: 5px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-catalog-intake-projects > header span { color: var(--bsmi-muted); font-size: 9px; white-space: nowrap; }
.bsmi-crm-catalog-intake-projects > header span strong { color: var(--bsmi-ink); font-size: 13px; }
.bsmi-crm-catalog-intake-projects > header button { min-height: 36px; }
.bsmi-crm-catalog-intake-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  padding: 13px 18px;
  background: #f7f8f8;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-catalog-intake-search > span { grid-column: 1 / -1; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-catalog-intake-search input { min-width: 0; min-height: 40px; }
.bsmi-crm-catalog-intake-search small { color: var(--bsmi-muted); font-size: 8px; white-space: nowrap; }
.bsmi-crm-catalog-intake-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 560px;
  overflow-y: auto;
}
.bsmi-crm-catalog-intake-results > label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) minmax(125px, .65fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 70px;
  padding: 11px 13px;
  border-right: 1px solid var(--bsmi-line);
  border-bottom: 1px solid var(--bsmi-line);
  cursor: pointer;
}
.bsmi-crm-catalog-intake-results > label:nth-child(2n) { border-right: 0; }
.bsmi-crm-catalog-intake-results > label:hover { background: #faf8f3; }
.bsmi-crm-catalog-intake-results input { width: 17px; height: 17px; accent-color: var(--bsmi-gold-dark); }
.bsmi-crm-catalog-intake-results span,
.bsmi-crm-catalog-intake-results strong,
.bsmi-crm-catalog-intake-results small { display: block; min-width: 0; overflow-wrap: anywhere; }
.bsmi-crm-catalog-intake-results strong { font-size: 10px; }
.bsmi-crm-catalog-intake-results small { margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-catalog-intake-results em { overflow-wrap: anywhere; color: #626970; font-size: 8px; font-style: normal; line-height: 1.45; text-align: right; }
.bsmi-crm-catalog-intake-projects > footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  color: var(--bsmi-muted);
  background: #f7f8f8;
  font-size: 8px;
}
.bsmi-crm-catalog-intake-projects > footer strong { color: #755618; text-align: right; }

.bsmi-crm-drawer:has(.bsmi-crm-catalog-intake-commit) { width: min(820px, 96vw); }
.bsmi-crm-catalog-intake-commit { grid-template-columns: 1fr; }
.bsmi-crm-catalog-intake-stage {
  grid-column: 1 / -1;
  color: #fff;
  background: #15171a;
  border-top: 3px solid var(--bsmi-gold);
}
.bsmi-crm-catalog-intake-stage > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.bsmi-crm-catalog-intake-stage header small { color: #d4b66d; font-size: 8px; font-weight: 850; }
.bsmi-crm-catalog-intake-stage header h3 { margin: 5px 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-catalog-intake-stage header p { margin: 0; overflow-wrap: anywhere; color: #aeb3ba; font-size: 9px; }
.bsmi-crm-catalog-intake-stage header > strong { font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; }
.bsmi-crm-catalog-intake-stage dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid #41454a; }
.bsmi-crm-catalog-intake-stage dl div { min-width: 0; padding: 10px 13px; border-right: 1px solid #41454a; }
.bsmi-crm-catalog-intake-stage dl div:last-child { border-right: 0; }
.bsmi-crm-catalog-intake-stage dt { color: #949aa1; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-catalog-intake-stage dd { margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.bsmi-crm-catalog-intake-stage-list { grid-column: 1 / -1; border: 1px solid var(--bsmi-line); }
.bsmi-crm-catalog-intake-stage-list > header { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; background: #f5f6f7; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-catalog-intake-stage-list > header h3 { margin: 0; font-size: 10px; }
.bsmi-crm-catalog-intake-stage-list > header span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-catalog-intake-stage-list > div { max-height: 330px; overflow-y: auto; }
.bsmi-crm-catalog-intake-stage-list article { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; padding: 11px 13px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-catalog-intake-stage-list article:last-child { border-bottom: 0; }
.bsmi-crm-catalog-intake-stage-list article > span { align-self: start; padding: 4px 5px; color: var(--bsmi-green); background: #e8f4ee; text-align: center; font-size: 7px; font-weight: 850; }
.bsmi-crm-catalog-intake-stage-list article.is-update > span { color: #81560d; background: #f8efdc; }
.bsmi-crm-catalog-intake-stage-list article.is-conflict > span { color: #8f2d2d; background: #f6e7e7; }
.bsmi-crm-catalog-intake-stage-list article strong,
.bsmi-crm-catalog-intake-stage-list article small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-catalog-intake-stage-list article strong { font-size: 10px; }
.bsmi-crm-catalog-intake-stage-list article small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-catalog-intake-stage-list article p { margin: 5px 0 0; color: #555b62; font-size: 8px; }
.bsmi-crm-catalog-intake-stage-list footer { padding: 9px 13px; color: var(--bsmi-muted); background: #f7f8f8; border-top: 1px solid var(--bsmi-line); font-size: 8px; }
.bsmi-crm-catalog-intake-warning {
  grid-column: 1 / -1;
  padding: 12px 14px;
  color: #654f1f;
  background: #f7f4ed;
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-catalog-intake-warning strong { font-size: 10px; }
.bsmi-crm-catalog-intake-warning p { margin: 4px 0 0; font-size: 9px; line-height: 1.45; }
.bsmi-crm-catalog-intake-ack {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid var(--bsmi-line);
  cursor: pointer;
}
.bsmi-crm-catalog-intake-ack input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--bsmi-gold-dark); }
.bsmi-crm-catalog-intake-ack strong,
.bsmi-crm-catalog-intake-ack small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-catalog-intake-ack strong { font-size: 10px; }
.bsmi-crm-catalog-intake-ack small { margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }

.bsmi-crm-catalog-reference-badge {
  display: inline-block;
  margin: 5px 0 0 7px;
  padding: 3px 5px;
  color: #755618;
  background: #f7f0df;
  border: 1px solid #e1d1aa;
  border-radius: 2px;
  font-size: 7px;
  font-weight: 850;
  vertical-align: top;
}
.bsmi-crm-source-unit-badge {
  display: inline-block;
  margin: 5px 0 0 7px;
  padding: 3px 5px;
  color: #285242;
  background: #edf4f1;
  border: 1px solid #bed4ca;
  border-radius: 2px;
  font-size: 7px;
  font-weight: 850;
  vertical-align: top;
}
.bsmi-crm-inventory-readonly {
  display: inline-grid;
  width: 18px;
  height: 18px;
  color: #8a8f95;
  background: #f1f2f3;
  border: 1px solid #d9dcde;
  place-items: center;
}
.bsmi-crm-catalog-reference-note {
  margin: 14px 18px 0;
  padding: 14px 15px;
  background: #f7f4ed;
  border: 1px solid #e5dcc7;
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-catalog-reference-note header { display: flex; justify-content: space-between; gap: 12px; }
.bsmi-crm-catalog-reference-note header span { color: var(--bsmi-gold-dark); font-size: 8px; font-weight: 850; }
.bsmi-crm-catalog-reference-note header strong { font-size: 9px; }
.bsmi-crm-catalog-reference-note p { margin: 7px 0 11px; color: #5f6267; font-size: 9px; line-height: 1.45; }
.bsmi-crm-catalog-reference-note dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #ded4bd; }
.bsmi-crm-catalog-reference-note dl div { min-width: 0; padding: 8px 9px 0 0; }
.bsmi-crm-catalog-reference-note dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-catalog-reference-note dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.bsmi-crm-catalog-reference-actions {
  display: flex;
  margin-top: 12px;
  padding-top: 11px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ded4bd;
}
.bsmi-crm-catalog-reference-actions strong { color: #654f1f; font-size: 9px; }
.bsmi-crm-catalog-reference-actions button { min-height: 36px; }
.bsmi-crm-catalog-reference-action { display: flex; margin: 12px 0 0; padding: 10px 12px; color: #654f1f; background: #f7f4ed; border-left: 3px solid var(--bsmi-gold); align-items: center; justify-content: space-between; gap: 12px; font-size: 9px; line-height: 1.45; }
.bsmi-crm-catalog-reference-action p { margin: 0; }
.bsmi-crm-catalog-reference-action button { flex: none; min-height: 36px; }
.bsmi-crm-reference-unit-boundary {
  grid-column: 1 / -1;
  padding: 14px 16px;
  color: #fff;
  background: #17191c;
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-reference-unit-boundary span,
.bsmi-crm-reference-unit-boundary strong { display: block; overflow-wrap: anywhere; }
.bsmi-crm-reference-unit-boundary span { color: #d4b66d; font-size: 8px; font-weight: 850; }
.bsmi-crm-reference-unit-boundary strong { margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-reference-unit-boundary p { margin: 6px 0 0; color: #bdc1c5; font-size: 9px; line-height: 1.5; }
.bsmi-crm-source-reference > p,
.bsmi-crm-reference-unit-list > p { margin: 0 0 12px; color: #686e74; font-size: 9px; line-height: 1.5; }
.bsmi-crm-source-reference > p.is-missing { color: #8a3b3f; }
.bsmi-crm-source-reference > button,
.bsmi-crm-reference-unit-list > button {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: #272b2f;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-radius: 3px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  text-align: left;
}
.bsmi-crm-reference-unit-list > button + button { margin-top: 7px; }
.bsmi-crm-source-reference > button span,
.bsmi-crm-reference-unit-list > button span { min-width: 0; }
.bsmi-crm-source-reference > button strong,
.bsmi-crm-source-reference > button small,
.bsmi-crm-reference-unit-list > button strong,
.bsmi-crm-reference-unit-list > button small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-source-reference > button strong,
.bsmi-crm-reference-unit-list > button strong { font-size: 9px; }
.bsmi-crm-source-reference > button small,
.bsmi-crm-reference-unit-list > button small { margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-source-reference > button em,
.bsmi-crm-reference-unit-list > button em { font-size: 8px; font-style: normal; font-weight: 800; }

@media (max-width: 760px) {
  .bsmi-crm-catalog-reference-note dl { grid-template-columns: 1fr; }
  .bsmi-crm-catalog-reference-actions,
  .bsmi-crm-catalog-reference-action { align-items: stretch; flex-direction: column; }
  .bsmi-crm-catalog-reference-actions button,
  .bsmi-crm-catalog-reference-action button,
  .bsmi-crm-source-reference > button,
  .bsmi-crm-reference-unit-list > button { min-height: 44px; }
  .bsmi-crm-catalog-reference-actions button,
  .bsmi-crm-catalog-reference-action button { width: 100%; }
  .bsmi-crm-drawer:has([data-reference-unit-form]) .bsmi-crm-drawer-head button,
  [data-reference-unit-form] input,
  [data-reference-unit-form] select,
  [data-reference-unit-form] textarea,
  [data-reference-unit-form] button { min-height: 44px; }
}

.bsmi-crm-drawer:has(.bsmi-crm-exchange-map-form) { width: min(860px, 96vw); }
.bsmi-crm-exchange-map-form { grid-template-columns: 1fr; }
.bsmi-crm-exchange-stage-summary { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, .9fr); gap: 18px; grid-column: 1 / -1; padding: 16px 18px; color: #fff; background: #15171a; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-exchange-stage-summary small { color: #d4b66d; font-size: 8px; font-weight: 850; }
.bsmi-crm-exchange-stage-summary h3 { margin: 6px 0 4px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-exchange-stage-summary p { margin: 0; overflow-wrap: anywhere; color: #aeb3ba; font-size: 9px; }
.bsmi-crm-exchange-stage-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #3e4248; }
.bsmi-crm-exchange-stage-summary dl div { min-width: 0; padding: 9px; border-right: 1px solid #3e4248; border-bottom: 1px solid #3e4248; }
.bsmi-crm-exchange-stage-summary dl div:nth-child(2n) { border-right: 0; }
.bsmi-crm-exchange-stage-summary dl div:nth-last-child(-n + 2) { border-bottom: 0; }
.bsmi-crm-exchange-stage-summary dt { color: #9298a0; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-exchange-stage-summary dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 9px; font-weight: 700; }
.bsmi-crm-exchange-map-form > fieldset { grid-column: 1 / -1; }
.bsmi-crm-exchange-map-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-exchange-map-rule { grid-column: 1 / -1; padding: 10px 12px; background: #f7f4ed; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-exchange-map-rule strong { font-size: 10px; }
.bsmi-crm-exchange-map-rule p { margin: 4px 0 0; color: #5f6267; font-size: 9px; }
.bsmi-crm-exchange-map-fields { display: block !important; padding: 0 !important; overflow: hidden; }
.bsmi-crm-exchange-map-fields > legend { margin-left: 14px; }
.bsmi-crm-exchange-map-head,
.bsmi-crm-exchange-map-row { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(105px, .6fr); gap: 10px; align-items: center; }
.bsmi-crm-exchange-map-head { padding: 8px 12px; color: var(--bsmi-muted); background: #f5f6f7; border-bottom: 1px solid var(--bsmi-line); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-exchange-map-row { min-height: 58px; padding: 8px 12px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-map-row:last-child { border-bottom: 0; }
.bsmi-crm-exchange-map-row label span,
.bsmi-crm-exchange-map-row label small,
.bsmi-crm-exchange-map-row > div strong,
.bsmi-crm-exchange-map-row > div small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-exchange-map-row label span { font-size: 9px; font-weight: 800; }
.bsmi-crm-exchange-map-row label small,
.bsmi-crm-exchange-map-row > div small { margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-exchange-map-row > div strong { font-size: 9px; }
.bsmi-crm-exchange-map-row select,
.bsmi-crm-exchange-map-row input { width: 100%; min-width: 0; min-height: 36px; }
.bsmi-crm-exchange-profile-save { grid-template-columns: minmax(220px, .7fr) minmax(260px, 1.3fr); align-items: center; }
.bsmi-crm-exchange-commit-boundary { grid-column: 1 / -1; padding: 12px 14px; background: #edf7f2; border-left: 3px solid var(--bsmi-green); }
.bsmi-crm-exchange-commit-boundary strong { font-size: 10px; }
.bsmi-crm-exchange-commit-boundary p { margin: 4px 0 0; color: #416453; font-size: 9px; line-height: 1.45; }

.bsmi-crm-exchange-contract { margin: 18px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-contract header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; color: #fff; background: #15171a; border-top: 3px solid var(--bsmi-green); }
.bsmi-crm-exchange-contract.is-warning header { border-top-color: var(--bsmi-amber); }
.bsmi-crm-exchange-contract.is-danger header { border-top-color: var(--bsmi-red); }
.bsmi-crm-exchange-contract header small { color: #d4b66d; font-size: 8px; font-weight: 850; }
.bsmi-crm-exchange-contract header h3 { margin: 5px 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.bsmi-crm-exchange-contract header p { margin: 0; color: #aeb3ba; font-size: 9px; }
.bsmi-crm-exchange-contract header > strong { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.bsmi-crm-exchange-contract > div article { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-exchange-contract > div article > span { align-self: start; padding: 4px 5px; color: var(--bsmi-green); background: #e8f4ee; text-align: center; font-size: 7px; font-weight: 850; }
.bsmi-crm-exchange-contract > div article.is-fail > span { color: #8f2d2d; background: #f6e7e7; }
.bsmi-crm-exchange-contract article strong { font-size: 10px; }
.bsmi-crm-exchange-contract article p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-exchange-contract footer { padding: 13px 15px; background: #f7f4ed; }
.bsmi-crm-exchange-contract footer strong { font-size: 9px; }
.bsmi-crm-exchange-contract footer p { margin: 4px 0 0; color: #5f6267; font-size: 9px; }

@media (max-width: 1180px) {
  .bsmi-crm-exchange-command { grid-template-columns: 1fr; }
  .bsmi-crm-exchange-boundary { grid-template-columns: 1fr; }
  .bsmi-crm-exchange-connectors > div:nth-child(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-exchange-connectors article:nth-child(3n) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-exchange-connectors article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-catalog-intake-head { grid-template-columns: 1fr; }
  .bsmi-crm-catalog-intake-results { grid-template-columns: 1fr; }
  .bsmi-crm-catalog-intake-results > label,
  .bsmi-crm-catalog-intake-results > label:nth-child(2n) { border-right: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-exchange-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-exchange-tabs { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-exchange-tabs button { min-height: 44px; }
  .bsmi-crm-exchange-command { grid-template-columns: 1fr; margin-inline: -10px; padding: 17px 14px; border-radius: 0; }
  .bsmi-crm-exchange-command form { grid-template-columns: 1fr; }
  .bsmi-crm-exchange-command form select,
  .bsmi-crm-exchange-command form input,
  .bsmi-crm-exchange-command form button { min-height: 44px; }
  .bsmi-crm-exchange-boundary { grid-template-columns: 1fr; margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-exchange-boundary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-exchange-boundary dl div { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-exchange-boundary dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-exchange-boundary dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-exchange-latest { margin-inline: -10px; }
  .bsmi-crm-exchange-latest header { flex-direction: column; }
  .bsmi-crm-exchange-latest dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-exchange-latest dl div { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-exchange-latest dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-exchange-latest dl div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bsmi-crm-exchange-profile-table table,
  .bsmi-crm-exchange-profile-table tbody,
  .bsmi-crm-exchange-run-table table,
  .bsmi-crm-exchange-run-table tbody { display: block; }
  .bsmi-crm-exchange-profile-table thead,
  .bsmi-crm-exchange-run-table thead { display: none; }
  .bsmi-crm-exchange-profile-table tr,
  .bsmi-crm-exchange-run-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-exchange-profile-table td,
  .bsmi-crm-exchange-run-table td,
  .bsmi-crm-exchange-profile-table td:first-child,
  .bsmi-crm-exchange-run-table td:first-child { display: block; min-width: 0; padding: 8px 6px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-exchange-profile-table td::before,
  .bsmi-crm-exchange-run-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 800; text-transform: uppercase; }
  .bsmi-crm-exchange-profile-table td:last-child,
  .bsmi-crm-exchange-run-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-exchange-profile-table button,
  .bsmi-crm-exchange-profile-table a,
  .bsmi-crm-exchange-run-table button,
  .bsmi-crm-exchange-run-table a { min-height: 44px; }
  .bsmi-crm-exchange-connectors { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-exchange-connectors > div:nth-child(2) { grid-template-columns: 1fr; }
  .bsmi-crm-exchange-connectors article,
  .bsmi-crm-exchange-connectors article:nth-child(2n),
  .bsmi-crm-exchange-connectors article:nth-child(3n) { min-height: 0; border-right: 0; }
  .bsmi-crm-exchange-connectors article footer button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-exchange-map-form) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-exchange-stage-summary { grid-template-columns: 1fr; padding: 15px 14px; }
  .bsmi-crm-exchange-stage-summary dl { grid-template-columns: 1fr; }
  .bsmi-crm-exchange-stage-summary dl div { border-right: 0; border-bottom: 1px solid #3e4248; }
  .bsmi-crm-exchange-stage-summary dl div:nth-last-child(2) { border-bottom: 1px solid #3e4248; }
  .bsmi-crm-exchange-stage-summary dl div:last-child { border-bottom: 0; }
  .bsmi-crm-exchange-map-controls,
  .bsmi-crm-exchange-profile-save { grid-template-columns: 1fr; }
  .bsmi-crm-drawer:has(.bsmi-crm-exchange-map-form) .bsmi-crm-drawer-head > button,
  .bsmi-crm-exchange-map-controls input,
  .bsmi-crm-exchange-map-controls select,
  .bsmi-crm-exchange-profile-save input:not([type="checkbox"]) { min-width: 44px; min-height: 44px; }
  .bsmi-crm-exchange-map-head { display: none; }
  .bsmi-crm-exchange-map-row { grid-template-columns: 1fr; gap: 7px; padding: 12px 14px; }
  .bsmi-crm-exchange-map-row select,
  .bsmi-crm-exchange-map-row input { min-height: 44px; }
  .bsmi-crm-exchange-map-row > div { padding: 7px 9px; background: #f5f6f7; }
  .bsmi-crm-exchange-map-form .bsmi-crm-form-actions button { min-height: 44px; }
  .bsmi-crm-exchange-contract { margin: 14px 10px; }
  .bsmi-crm-exchange-contract header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-exchange-contract > div article { grid-template-columns: 58px minmax(0, 1fr); }
  .bsmi-crm-catalog-intake-head { grid-template-columns: 1fr; margin-inline: -10px; padding: 17px 14px; border-radius: 0; }
  .bsmi-crm-catalog-intake-head dl { grid-template-columns: 1fr; }
  .bsmi-crm-catalog-intake-head dl div { border-right: 0; border-bottom: 1px solid #41454a; }
  .bsmi-crm-catalog-intake-head dl div:last-child { border-bottom: 0; }
  .bsmi-crm-catalog-intake-sources { grid-template-columns: 1fr; margin-inline: -10px; }
  .bsmi-crm-catalog-intake-sources article { border-inline: 0; border-radius: 0; }
  .bsmi-crm-catalog-intake-sources article > p { min-height: 0; }
  .bsmi-crm-catalog-intake-sources article > button { min-height: 44px; }
  .bsmi-crm-catalog-intake-boundary { margin-inline: -10px; }
  .bsmi-crm-catalog-intake-projects { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-catalog-intake-projects > header { flex-direction: column; padding: 15px 14px; }
  .bsmi-crm-catalog-intake-projects > header > div:last-child { align-items: stretch; justify-content: stretch; width: 100%; }
  .bsmi-crm-catalog-intake-projects > header > div:last-child span { width: 100%; }
  .bsmi-crm-catalog-intake-projects > header button { flex: 1 1 130px; min-height: 44px; }
  .bsmi-crm-catalog-intake-search { grid-template-columns: 1fr; padding: 12px 14px; }
  .bsmi-crm-catalog-intake-search input { min-height: 44px; }
  .bsmi-crm-catalog-intake-results { grid-template-columns: 1fr; max-height: 540px; }
  .bsmi-crm-catalog-intake-results > label { grid-template-columns: 22px minmax(0, 1fr); min-height: 82px; padding: 12px 14px; }
  .bsmi-crm-catalog-intake-results > label em { grid-column: 2; text-align: left; }
  .bsmi-crm-catalog-intake-projects > footer { flex-direction: column; padding: 12px 14px; }
  .bsmi-crm-catalog-intake-projects > footer strong { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-catalog-intake-commit) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-catalog-intake-stage > header { align-items: flex-start; flex-direction: column; padding: 15px 14px; }
  .bsmi-crm-catalog-intake-stage dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-catalog-intake-stage dl div { border-bottom: 1px solid #41454a; }
  .bsmi-crm-catalog-intake-stage dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-catalog-intake-stage dl div:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-catalog-intake-stage-list article { grid-template-columns: 62px minmax(0, 1fr); }
  .bsmi-crm-catalog-intake-commit .bsmi-crm-form-actions button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-catalog-intake-commit) .bsmi-crm-drawer-head > button { min-width: 44px; min-height: 44px; }
  .bsmi-crm-catalog-reference-note { margin-inline: 10px; }
  .bsmi-crm-catalog-reference-note dl { grid-template-columns: 1fr; }
  .bsmi-crm-page-head button[data-crm-view="integrations"] { min-height: 44px; }
}

/* Partner network and referral operations */
.bsmi-crm-partner-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-partner-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  color: #626870;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  font-size: 9px;
  font-weight: 800;
}
.bsmi-crm-partner-tabs button:last-child { border-right: 0; }
.bsmi-crm-partner-tabs button strong { min-width: 24px; color: #8a6c2b; font-size: 11px; text-align: right; }
.bsmi-crm-partner-tabs button.is-selected { color: #fff; background: #17191c; box-shadow: inset 0 3px var(--bsmi-gold); }
.bsmi-crm-partner-tabs button.is-selected strong { color: #d8bc78; }

.bsmi-crm-partner-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) repeat(4, minmax(135px, .65fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-partner-filters label { min-width: 0; }
.bsmi-crm-partner-filters label span { display: block; margin-bottom: 5px; color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-partner-filters input,
.bsmi-crm-partner-filters select { width: 100%; min-width: 0; min-height: 38px; }
.bsmi-crm-partner-workspace { min-height: 320px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-table-wrap,
.bsmi-crm-referral-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-partner-table,
.bsmi-crm-referral-table,
.bsmi-crm-partner-commercial-table { min-width: 980px; }
.bsmi-crm-partner-table td > strong,
.bsmi-crm-partner-table td > span,
.bsmi-crm-partner-table td > small,
.bsmi-crm-referral-table td > strong,
.bsmi-crm-referral-table td > span,
.bsmi-crm-referral-table td > small,
.bsmi-crm-partner-commercial-table td > strong,
.bsmi-crm-partner-commercial-table td > span,
.bsmi-crm-partner-commercial-table td > small { display: block; max-width: 240px; overflow-wrap: anywhere; }
.bsmi-crm-partner-table td > span,
.bsmi-crm-referral-table td > span,
.bsmi-crm-partner-commercial-table td > span { margin-top: 4px; color: #555d65; font-size: 8px; }
.bsmi-crm-partner-table td > small,
.bsmi-crm-referral-table td > small,
.bsmi-crm-partner-commercial-table td > small { margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-partner-table td button,
.bsmi-crm-referral-table td button,
.bsmi-crm-partner-commercial-table td button { min-height: 34px; white-space: nowrap; }

.bsmi-crm-partner-compliance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-partner-compliance-grid > article { min-width: 0; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-compliance-grid > article:nth-child(2n) { border-right: 0; }
.bsmi-crm-partner-compliance-grid article header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 16px 12px; border-top: 3px solid #8f969e; }
.bsmi-crm-partner-compliance-grid article.is-good header { border-top-color: var(--bsmi-green); }
.bsmi-crm-partner-compliance-grid article.is-warning header { border-top-color: var(--bsmi-amber); }
.bsmi-crm-partner-compliance-grid article.is-danger header { border-top-color: var(--bsmi-red); }
.bsmi-crm-partner-compliance-grid header span { color: #8a6c2b; font-size: 7px; font-weight: 850; }
.bsmi-crm-partner-compliance-grid h3 { margin: 4px 0 2px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-partner-compliance-grid header small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-partner-compliance-grid header em { padding: 5px 7px; color: #555d65; background: #eff1f3; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 850; white-space: nowrap; }
.bsmi-crm-partner-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-checks > span { display: grid; grid-template-columns: 22px minmax(0, 1fr); min-width: 0; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-checks > span:nth-child(2n) { border-right: 0; }
.bsmi-crm-partner-checks i { display: grid; grid-row: 1 / 3; place-items: center; align-self: start; width: 18px; height: 18px; color: #fff; background: #8f969e; border-radius: 50%; font-size: 8px; font-style: normal; font-weight: 900; }
.bsmi-crm-partner-checks .is-ready i { background: var(--bsmi-green); }
.bsmi-crm-partner-checks .is-action i { background: var(--bsmi-red); }
.bsmi-crm-partner-checks b { min-width: 0; overflow-wrap: anywhere; font-size: 9px; }
.bsmi-crm-partner-checks small { min-width: 0; margin-top: 3px; overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-partner-checks.is-drawer { margin-top: 12px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-compliance-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; }
.bsmi-crm-partner-compliance-grid footer span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-partner-compliance-grid footer button { min-height: 34px; }

.bsmi-crm-partner-commercial-summary,
.bsmi-crm-partner-hero,
.bsmi-crm-referral-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsmi-crm-partner-commercial-summary { border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-commercial-summary article { min-width: 0; padding: 15px 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-commercial-summary article:last-child { border-right: 0; }
.bsmi-crm-partner-commercial-summary span,
.bsmi-crm-partner-commercial-summary small { display: block; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-partner-commercial-summary strong { display: block; margin: 5px 0 3px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-partner-finance-locked { max-width: 540px; margin: 56px auto; padding: 24px; text-align: center; background: #f7f4ed; border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-partner-finance-locked span { color: #8a6c2b; font-size: 8px; font-weight: 900; }
.bsmi-crm-partner-finance-locked h2 { margin: 8px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-partner-finance-locked p { margin: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }

.bsmi-crm-drawer:has(.bsmi-crm-partner-hero),
.bsmi-crm-drawer:has(.bsmi-crm-referral-hero) { width: min(720px, 96vw); }
.bsmi-crm-partner-hero,
.bsmi-crm-referral-hero { color: #fff; background: #17191c; border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-partner-hero > div,
.bsmi-crm-referral-hero > div { min-width: 0; min-height: 98px; padding: 14px 13px; border-right: 1px solid #383c41; }
.bsmi-crm-partner-hero > div:last-child,
.bsmi-crm-referral-hero > div:last-child { border-right: 0; }
.bsmi-crm-partner-hero span,
.bsmi-crm-partner-hero small,
.bsmi-crm-referral-hero span,
.bsmi-crm-referral-hero small { display: block; overflow-wrap: anywhere; color: #aeb3ba; font-size: 8px; }
.bsmi-crm-partner-hero strong,
.bsmi-crm-referral-hero strong { display: block; margin: 7px 0 5px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-partner-hero strong.is-good,
.bsmi-crm-referral-hero strong.is-good { color: #8dc7aa; }
.bsmi-crm-partner-hero strong.is-warning,
.bsmi-crm-referral-hero strong.is-warning { color: #e5c173; }
.bsmi-crm-partner-hero strong.is-danger,
.bsmi-crm-referral-hero strong.is-danger { color: #ed9696; }
.bsmi-crm-partner-referral-list { border: 1px solid var(--bsmi-line); }
.bsmi-crm-partner-referral-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 12px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--bsmi-line); border-radius: 0; }
.bsmi-crm-partner-referral-list button:last-child { border-bottom: 0; }
.bsmi-crm-partner-referral-list span { min-width: 0; }
.bsmi-crm-partner-referral-list strong,
.bsmi-crm-partner-referral-list small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-partner-referral-list strong { font-size: 9px; }
.bsmi-crm-partner-referral-list small { margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-partner-referral-list em { padding: 4px 6px; color: #555d65; background: #eff1f3; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 850; white-space: nowrap; }
.bsmi-crm-partner-referral-list em.is-good { color: #236b4a; background: #e8f4ee; }
.bsmi-crm-partner-referral-list em.is-warning { color: #81560d; background: #f8efdc; }
.bsmi-crm-partner-referral-list em.is-danger { color: #8f2d2d; background: #f6e7e7; }
.bsmi-crm-referral-timeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 8px 0 2px; }
.bsmi-crm-referral-timeline > div { position: relative; min-width: 0; text-align: center; }
.bsmi-crm-referral-timeline > div::before { position: absolute; top: 7px; left: 0; width: 50%; height: 2px; content: ""; background: #dfe2e5; }
.bsmi-crm-referral-timeline > div::after { position: absolute; top: 7px; right: 0; width: 50%; height: 2px; content: ""; background: #dfe2e5; }
.bsmi-crm-referral-timeline > div:first-child::before,
.bsmi-crm-referral-timeline > div:last-child::after { display: none; }
.bsmi-crm-referral-timeline i { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 auto 8px; background: #dfe2e5; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dfe2e5; }
.bsmi-crm-referral-timeline .is-complete i,
.bsmi-crm-referral-timeline .is-current i { background: var(--bsmi-green); box-shadow: 0 0 0 1px var(--bsmi-green); }
.bsmi-crm-referral-timeline .is-complete::before,
.bsmi-crm-referral-timeline .is-complete::after,
.bsmi-crm-referral-timeline .is-current::before { background: var(--bsmi-green); }
.bsmi-crm-referral-timeline .is-danger i { background: var(--bsmi-red); box-shadow: 0 0 0 1px var(--bsmi-red); }
.bsmi-crm-referral-timeline strong,
.bsmi-crm-referral-timeline small { display: block; overflow-wrap: anywhere; font-size: 7px; }
.bsmi-crm-referral-timeline small { margin-top: 3px; color: var(--bsmi-muted); }
.bsmi-crm-referral-linked-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.bsmi-crm-referral-linked-actions button { min-height: 34px; }
.bsmi-crm-referral-linked-actions span { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-partner-note,
.bsmi-crm-partner-rule { margin: 12px 0 0; padding: 11px 13px; background: #f7f4ed; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-partner-note.is-danger { background: #f8eaea; border-left-color: var(--bsmi-red); }
.bsmi-crm-partner-note strong,
.bsmi-crm-partner-rule strong { font-size: 9px; }
.bsmi-crm-partner-note p,
.bsmi-crm-partner-rule p { margin: 4px 0 0; color: #5f6267; font-size: 8px; line-height: 1.5; }
.bsmi-crm-partner-finance-controls[disabled] { opacity: .78; }
.bsmi-crm-partner-finance-controls[disabled] input,
.bsmi-crm-partner-finance-controls[disabled] select,
.bsmi-crm-partner-finance-controls[disabled] textarea { color: #6d737a; background: #f4f5f6; }

@media (max-width: 1180px) {
  .bsmi-crm-partner-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-partner-filters .is-search { grid-column: span 2; }
}

@media (max-width: 760px) {
  .bsmi-crm-partner-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-content:has(.bsmi-crm-partner-tabs) .bsmi-crm-page-head button { min-height: 44px; }
  .bsmi-crm-partner-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-partner-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-partner-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-partner-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-partner-filters { grid-template-columns: 1fr; margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-partner-filters .is-search { grid-column: auto; }
  .bsmi-crm-partner-filters input,
  .bsmi-crm-partner-filters select { min-height: 44px; }
  .bsmi-crm-partner-workspace { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-partner-table,
  .bsmi-crm-referral-table,
  .bsmi-crm-partner-commercial-table,
  .bsmi-crm-partner-table tbody,
  .bsmi-crm-referral-table tbody,
  .bsmi-crm-partner-commercial-table tbody { display: block; min-width: 0; }
  .bsmi-crm-partner-table thead,
  .bsmi-crm-referral-table thead,
  .bsmi-crm-partner-commercial-table thead { display: none; }
  .bsmi-crm-partner-table tr,
  .bsmi-crm-referral-table tr,
  .bsmi-crm-partner-commercial-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-partner-table td,
  .bsmi-crm-referral-table td,
  .bsmi-crm-partner-commercial-table td { display: block; min-width: 0; padding: 8px 6px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-partner-table td::before,
  .bsmi-crm-referral-table td::before,
  .bsmi-crm-partner-commercial-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 800; text-transform: uppercase; }
  .bsmi-crm-partner-table td:first-child,
  .bsmi-crm-referral-table td:first-child,
  .bsmi-crm-partner-table td:last-child,
  .bsmi-crm-referral-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-partner-table td button,
  .bsmi-crm-referral-table td button,
  .bsmi-crm-partner-commercial-table td button { width: 100%; min-height: 44px; }
  .bsmi-crm-partner-compliance-grid { grid-template-columns: 1fr; }
  .bsmi-crm-partner-compliance-grid > article { border-right: 0; }
  .bsmi-crm-partner-checks { grid-template-columns: 1fr; }
  .bsmi-crm-partner-checks > span { border-right: 0; }
  .bsmi-crm-partner-compliance-grid footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-partner-compliance-grid footer button { min-height: 44px; }
  .bsmi-crm-partner-commercial-summary,
  .bsmi-crm-partner-hero,
  .bsmi-crm-referral-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-partner-commercial-summary article:nth-child(2n),
  .bsmi-crm-partner-hero > div:nth-child(2n),
  .bsmi-crm-referral-hero > div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-partner-commercial-summary article:nth-child(-n+2),
  .bsmi-crm-partner-hero > div:nth-child(-n+2),
  .bsmi-crm-referral-hero > div:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-drawer:has(.bsmi-crm-partner-hero),
  .bsmi-crm-drawer:has(.bsmi-crm-referral-hero) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-referral-timeline { display: block; padding-left: 8px; }
  .bsmi-crm-referral-timeline > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); min-height: 48px; text-align: left; }
  .bsmi-crm-referral-timeline > div::before { top: 0; bottom: auto; left: 7px; width: 2px; height: 50%; }
  .bsmi-crm-referral-timeline > div::after { top: 16px; right: auto; bottom: 0; left: 7px; width: 2px; height: calc(100% - 16px); }
  .bsmi-crm-referral-timeline i { grid-row: auto; margin: 0; }
  .bsmi-crm-referral-timeline strong,
  .bsmi-crm-referral-timeline small { font-size: 8px; }
  .bsmi-crm-referral-linked-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-referral-linked-actions button { min-height: 44px; }
}

/* Commission plans, earnings statements and incentive operations. */
.bsmi-crm-content:has(.bsmi-crm-commission-tabs) { background: #f2f3f4; }
.bsmi-crm-commission-ops-kpis article:first-child { border-top: 3px solid #17191c; }
.bsmi-crm-commission-ops-kpis article:nth-child(2) { border-top: 3px solid var(--bsmi-green); }
.bsmi-crm-commission-ops-kpis article:nth-child(3) { border-top: 3px solid var(--bsmi-amber); }
.bsmi-crm-commission-ops-kpis article:nth-child(4) { border-top: 3px solid var(--bsmi-red); }

.bsmi-crm-commission-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-commission-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  color: #555b62;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  font-size: 9px;
  font-weight: 850;
}
.bsmi-crm-commission-tabs button:last-child { border-right: 0; }
.bsmi-crm-commission-tabs button strong { min-width: 24px; color: #7b8188; font-size: 11px; text-align: right; }
.bsmi-crm-commission-tabs button small { color: #8a6c2b; font-size: 7px; }
.bsmi-crm-commission-tabs button.is-selected { color: #fff; background: #17191c; box-shadow: inset 0 3px var(--bsmi-red); }
.bsmi-crm-commission-tabs button.is-selected strong,
.bsmi-crm-commission-tabs button.is-selected small { color: #f0b7ba; }

.bsmi-crm-commission-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, .55fr)) minmax(260px, 1.35fr);
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-commission-filters label span { display: block; margin-bottom: 5px; color: var(--bsmi-muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-commission-filters input,
.bsmi-crm-commission-filters select { width: 100%; min-height: 38px; }
.bsmi-crm-commission-filters aside { display: grid; align-content: center; gap: 3px; padding: 8px 12px; color: #fff; background: #292c30; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-commission-filters aside strong { font-size: 9px; }
.bsmi-crm-commission-filters aside span { color: #b9bec4; font-size: 8px; line-height: 1.4; }
.bsmi-crm-commission-operations { min-height: 360px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-statement-wrap,
.bsmi-crm-commission-plan-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-commission-statement-table,
.bsmi-crm-commission-plan-table { min-width: 1180px; }
.bsmi-crm-commission-statement-table td > strong,
.bsmi-crm-commission-statement-table td > span,
.bsmi-crm-commission-plan-table td > strong,
.bsmi-crm-commission-plan-table td > span { display: block; max-width: 220px; overflow-wrap: anywhere; }
.bsmi-crm-commission-statement-table td > span,
.bsmi-crm-commission-plan-table td > span { margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-commission-statement-table td button,
.bsmi-crm-commission-plan-table td button { min-height: 34px; white-space: nowrap; }
.bsmi-crm-commission-statement-table strong.is-negative { color: var(--bsmi-red); }
.bsmi-crm-commission-person { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.bsmi-crm-commission-person img { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; filter: grayscale(.25); }
.bsmi-crm-commission-person span { min-width: 0; }
.bsmi-crm-commission-person strong,
.bsmi-crm-commission-person small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-commission-person small { margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; }

.bsmi-crm-commission-simulator { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(460px, 1.22fr); min-height: 500px; }
.bsmi-crm-commission-sim-controls { padding: 20px; color: #fff; background: #191b1e; border-top: 3px solid var(--bsmi-red); }
.bsmi-crm-commission-sim-controls header > span { color: #e1a5a9; font-size: 7px; font-weight: 900; }
.bsmi-crm-commission-sim-controls h2 { margin: 7px 0 5px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-commission-sim-controls header p { margin: 0 0 18px; color: #aeb3b9; font-size: 9px; line-height: 1.5; }
.bsmi-crm-commission-sim-controls > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.bsmi-crm-commission-sim-controls label { min-width: 0; }
.bsmi-crm-commission-sim-controls label:first-child { grid-column: 1 / -1; }
.bsmi-crm-commission-sim-controls label > span { display: block; margin-bottom: 5px; color: #adb2b8; font-size: 7px; font-weight: 800; }
.bsmi-crm-commission-sim-controls input,
.bsmi-crm-commission-sim-controls select { width: 100%; min-width: 0; min-height: 39px; color: #fff; background: #282b2f; border-color: #454a50; }
.bsmi-crm-commission-sim-controls .is-check { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; padding: 8px 0; }
.bsmi-crm-commission-sim-controls .is-check input { width: 17px; min-height: 17px; }
.bsmi-crm-commission-sim-controls .is-check span { margin: 0; color: #fff; font-size: 9px; }
.bsmi-crm-commission-sim-result { padding: 22px; background: #fff; border-top: 3px solid var(--bsmi-amber); }
.bsmi-crm-commission-sim-result.is-eligible { border-top-color: var(--bsmi-green); }
.bsmi-crm-commission-sim-result > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-sim-result > header span { color: #8f1d24; font-size: 7px; font-weight: 900; }
.bsmi-crm-commission-sim-result h3 { margin: 6px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-commission-sim-result header p { margin: 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-sim-result header em { padding: 6px 8px; color: #81560d; background: #f8efdc; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 900; }
.bsmi-crm-commission-sim-result.is-eligible header em { color: #236b4a; background: #e8f4ee; }
.bsmi-crm-commission-sim-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-sim-kpis article { min-width: 0; padding: 15px 13px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-sim-kpis article:nth-child(2n) { border-right: 0; }
.bsmi-crm-commission-sim-kpis span,
.bsmi-crm-commission-sim-kpis small { display: block; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-sim-kpis strong { display: block; margin: 5px 0 3px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-commission-sim-result > aside { margin: 16px 0; padding: 12px 14px; color: #6f4a0a; background: #fff6e5; border-left: 3px solid var(--bsmi-amber); }
.bsmi-crm-commission-sim-result > aside.is-clear { color: #236b4a; background: #eaf5ef; border-left-color: var(--bsmi-green); }
.bsmi-crm-commission-sim-result > aside strong { font-size: 9px; }
.bsmi-crm-commission-sim-result > aside p,
.bsmi-crm-commission-sim-result > aside li { font-size: 8px; line-height: 1.45; }
.bsmi-crm-commission-sim-result > aside p { margin: 4px 0 0; }
.bsmi-crm-commission-sim-result > aside ul { margin: 6px 0 0; padding-left: 17px; }
.bsmi-crm-commission-trace h4 { margin: 0 0 7px; font-size: 9px; }
.bsmi-crm-commission-trace > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 9px 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-trace span,
.bsmi-crm-commission-trace small { min-width: 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-trace strong { font-size: 9px; text-align: right; }
.bsmi-crm-commission-sim-result > footer { margin-top: 16px; padding-top: 12px; color: var(--bsmi-muted); border-top: 1px solid var(--bsmi-line); font-size: 7px; line-height: 1.5; }

.bsmi-crm-commission-exceptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-commission-exceptions article { min-width: 0; padding: 16px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); border-top: 3px solid var(--bsmi-amber); }
.bsmi-crm-commission-exceptions article:nth-child(2n) { border-right: 0; }
.bsmi-crm-commission-exceptions header,
.bsmi-crm-commission-exceptions footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-commission-exceptions header span { color: #8f1d24; font-size: 7px; font-weight: 900; }
.bsmi-crm-commission-exceptions h3 { margin: 5px 0 3px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-commission-exceptions header small,
.bsmi-crm-commission-exceptions footer span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-exceptions header em { color: #81560d; font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; }
.bsmi-crm-commission-exceptions ul { min-height: 42px; margin: 12px 0; padding: 10px 10px 10px 27px; background: #faf7f1; }
.bsmi-crm-commission-exceptions li { margin: 3px 0; color: #5f6267; font-size: 8px; line-height: 1.4; }
.bsmi-crm-commission-exceptions footer { align-items: center; padding-top: 10px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-exceptions footer button { min-height: 34px; white-space: nowrap; }

.bsmi-crm-drawer:has(.bsmi-crm-commission-statement-hero),
.bsmi-crm-drawer:has(.bsmi-crm-commission-plan-hero) { width: min(780px, 96vw); }
.bsmi-crm-commission-statement-hero,
.bsmi-crm-commission-plan-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); color: #fff; background: #191b1e; border-top: 3px solid var(--bsmi-red); }
.bsmi-crm-commission-statement-hero > div,
.bsmi-crm-commission-plan-hero > div { display: grid; align-content: start; min-width: 0; min-height: 100px; padding: 15px 13px; border-right: 1px solid #383c41; }
.bsmi-crm-commission-statement-hero > div:last-child,
.bsmi-crm-commission-plan-hero > div:last-child { border-right: 0; }
.bsmi-crm-commission-statement-hero span,
.bsmi-crm-commission-statement-hero small,
.bsmi-crm-commission-plan-hero span,
.bsmi-crm-commission-plan-hero small { display: block; overflow-wrap: anywhere; color: #aeb3ba; font-size: 8px; }
.bsmi-crm-commission-statement-hero strong,
.bsmi-crm-commission-plan-hero strong { display: block; align-self: center; margin: 7px 0 5px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-commission-statement-lines { border: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-statement-lines article { border-left: 3px solid var(--bsmi-amber); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-statement-lines article:last-child { border-bottom: 0; }
.bsmi-crm-commission-statement-lines article.is-paid,
.bsmi-crm-commission-statement-lines article.is-eligible { border-left-color: var(--bsmi-green); }
.bsmi-crm-commission-statement-lines header,
.bsmi-crm-commission-statement-lines footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 13px; }
.bsmi-crm-commission-statement-lines header span,
.bsmi-crm-commission-statement-lines header small,
.bsmi-crm-commission-statement-lines footer span { display: block; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-statement-lines header strong { display: block; margin: 4px 0; overflow-wrap: anywhere; font-size: 9px; }
.bsmi-crm-commission-statement-lines header em { padding: 4px 6px; color: #81560d; background: #f8efdc; border-radius: 2px; font-size: 8px; font-style: normal; font-weight: 850; }
.bsmi-crm-commission-statement-lines article.is-paid header em,
.bsmi-crm-commission-statement-lines article.is-eligible header em { color: #236b4a; background: #e8f4ee; }
.bsmi-crm-commission-statement-lines article > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f7f8f8; border-block: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-statement-lines article > div > span { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-statement-lines article > div > span:last-child { border-right: 0; }
.bsmi-crm-commission-statement-lines article > div small,
.bsmi-crm-commission-statement-lines article > div strong { display: block; overflow-wrap: anywhere; }
.bsmi-crm-commission-statement-lines article > div small { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-commission-statement-lines article > div strong { margin-top: 4px; font-size: 9px; }
.bsmi-crm-commission-statement-lines article > ul { margin: 0; padding: 10px 12px 10px 30px; color: #81560d; background: #fff8ec; }
.bsmi-crm-commission-statement-lines article > ul li { margin: 2px 0; font-size: 8px; }
.bsmi-crm-commission-statement-lines footer { align-items: center; }
.bsmi-crm-commission-statement-lines footer button { min-height: 32px; white-space: nowrap; }
.bsmi-crm-commission-statement-note,
.bsmi-crm-commission-plan-help,
.bsmi-crm-commission-plan-rule { margin-top: 12px; padding: 11px 13px; background: #f7f4ed; border-left: 3px solid #8a6c2b; }
.bsmi-crm-commission-statement-note p,
.bsmi-crm-commission-plan-help p,
.bsmi-crm-commission-plan-rule p { margin: 4px 0 0; color: #5f6267; font-size: 8px; line-height: 1.5; }
.bsmi-crm-commission-plan-bands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-plan-bands > div { display: grid; min-width: 0; min-height: 115px; padding: 12px; border-right: 1px solid var(--bsmi-line); border-top: 3px solid #6c7279; }
.bsmi-crm-commission-plan-bands > div:last-child { border-right: 0; border-top-color: var(--bsmi-red); }
.bsmi-crm-commission-plan-bands span,
.bsmi-crm-commission-plan-bands small,
.bsmi-crm-commission-plan-bands em { display: block; overflow-wrap: anywhere; font-size: 8px; }
.bsmi-crm-commission-plan-bands small { margin-top: 4px; color: var(--bsmi-muted); }
.bsmi-crm-commission-plan-bands strong { align-self: center; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-commission-plan-bands em { align-self: end; color: #8f1d24; font-style: normal; font-weight: 800; }
.bsmi-crm-commission-flat-rule { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 16px; background: #f5f6f6; border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-commission-flat-rule span,
.bsmi-crm-commission-flat-rule small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-flat-rule strong { grid-row: 1 / 3; grid-column: 2; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-commission-plan-gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-plan-gates > span { display: grid; grid-template-columns: 23px minmax(0, 1fr); min-width: 0; padding: 10px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-plan-gates > span:nth-child(3n) { border-right: 0; }
.bsmi-crm-commission-plan-gates i { display: grid; grid-row: 1 / 3; place-items: center; align-self: start; width: 18px; height: 18px; color: #fff; background: #8f969e; border-radius: 50%; font-size: 8px; font-style: normal; font-weight: 900; }
.bsmi-crm-commission-plan-gates .is-on i { background: var(--bsmi-green); }
.bsmi-crm-commission-plan-gates b,
.bsmi-crm-commission-plan-gates small { display: block; overflow-wrap: anywhere; font-size: 8px; }
.bsmi-crm-commission-plan-gates small { margin-top: 3px; color: var(--bsmi-muted); }
.bsmi-crm-commission-plan-notes > div { margin-top: 10px; padding: 11px 13px; background: #f6f7f7; border-left: 3px solid #6d737a; }
.bsmi-crm-commission-plan-notes span { color: #8f1d24; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.bsmi-crm-commission-plan-notes p { margin: 5px 0 0; color: #555b62; font-size: 9px; line-height: 1.5; }

.bsmi-crm-form .bsmi-crm-commission-tier-editor { grid-column: 1 / -1; padding: 0; border: 1px solid var(--bsmi-line); border-left: 3px solid var(--bsmi-red); }
.bsmi-crm-commission-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; background: #f5f6f6; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-tier-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-commission-tier-head button { min-height: 32px; padding: 5px 9px; font-size: 9px; }
.bsmi-crm-commission-tier-list { display: grid; gap: 8px; padding: 10px; }
.bsmi-crm-commission-tier-row { position: relative; display: grid; grid-template-columns: minmax(140px, 1.2fr) repeat(3, minmax(100px, .7fr)); gap: 9px; padding: 10px 42px 10px 10px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-commission-tier-row label { min-width: 0; }
.bsmi-crm-commission-tier-row input { width: 100%; min-width: 0; }
.bsmi-crm-commission-tier-row [data-commission-tier-remove] { position: absolute; top: 10px; right: 9px; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; color: var(--bsmi-red); background: #fff; border-color: #deb9bb; font-size: 16px; }
.bsmi-crm-commission-plan-help,
.bsmi-crm-commission-plan-rule { grid-column: 1 / -1; }
.bsmi-crm-form [data-commission-plan-form] [hidden] { display: none !important; }

@media (max-width: 1180px) {
  .bsmi-crm-commission-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-commission-filters aside { grid-column: 1 / -1; }
  .bsmi-crm-commission-simulator { grid-template-columns: minmax(280px, .9fr) minmax(390px, 1.1fr); }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-commission-tabs) .bsmi-crm-page-head button { min-height: 44px; }
  .bsmi-crm-commission-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-commission-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-commission-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-commission-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-commission-filters { grid-template-columns: 1fr; margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-commission-filters aside { grid-column: auto; }
  .bsmi-crm-commission-filters input,
  .bsmi-crm-commission-filters select { min-height: 44px; }
  .bsmi-crm-commission-operations { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-commission-statement-table,
  .bsmi-crm-commission-plan-table,
  .bsmi-crm-commission-statement-table tbody,
  .bsmi-crm-commission-plan-table tbody { display: block; min-width: 0; }
  .bsmi-crm-commission-statement-table thead,
  .bsmi-crm-commission-plan-table thead { display: none; }
  .bsmi-crm-commission-statement-table tr,
  .bsmi-crm-commission-plan-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-commission-statement-table td,
  .bsmi-crm-commission-plan-table td { display: block; min-width: 0; padding: 8px 6px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-commission-statement-table td::before,
  .bsmi-crm-commission-plan-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-commission-statement-table td:first-child,
  .bsmi-crm-commission-statement-table td:last-child,
  .bsmi-crm-commission-plan-table td:first-child,
  .bsmi-crm-commission-plan-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-commission-statement-table td button,
  .bsmi-crm-commission-plan-table td button { width: 100%; min-height: 44px; }
  .bsmi-crm-commission-simulator { display: block; }
  .bsmi-crm-commission-sim-controls,
  .bsmi-crm-commission-sim-result { padding: 16px 12px; }
  .bsmi-crm-commission-sim-controls > div { grid-template-columns: 1fr; }
  .bsmi-crm-commission-sim-controls label:first-child,
  .bsmi-crm-commission-sim-controls .is-check { grid-column: auto; }
  .bsmi-crm-commission-sim-controls input,
  .bsmi-crm-commission-sim-controls select { min-height: 44px; }
  .bsmi-crm-commission-sim-kpis { grid-template-columns: 1fr; }
  .bsmi-crm-commission-sim-kpis article { border-right: 0; }
  .bsmi-crm-commission-trace > div { grid-template-columns: minmax(0, 1fr) auto; }
  .bsmi-crm-commission-trace > div small { grid-row: 2; }
  .bsmi-crm-commission-trace > div strong { grid-row: 1 / 3; grid-column: 2; }
  .bsmi-crm-commission-exceptions { grid-template-columns: 1fr; }
  .bsmi-crm-commission-exceptions article { border-right: 0; }
  .bsmi-crm-commission-exceptions footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-commission-exceptions footer button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-commission-statement-hero),
  .bsmi-crm-drawer:has(.bsmi-crm-commission-plan-hero) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-commission-statement-hero,
  .bsmi-crm-commission-plan-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-statement-hero > div:nth-child(2n),
  .bsmi-crm-commission-plan-hero > div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-commission-statement-hero > div:nth-child(-n+2),
  .bsmi-crm-commission-plan-hero > div:nth-child(-n+2) { border-bottom: 1px solid #383c41; }
  .bsmi-crm-commission-statement-lines article > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-statement-lines article > div > span:nth-child(2n) { border-right: 0; }
  .bsmi-crm-commission-statement-lines article > div > span:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-commission-statement-lines footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-commission-statement-lines footer button { min-height: 44px; }
  .bsmi-crm-commission-plan-bands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-plan-bands > div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-commission-plan-bands > div:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-commission-plan-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-commission-plan-gates > span:nth-child(3n) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-commission-plan-gates > span:nth-child(2n) { border-right: 0; }
  .bsmi-crm-commission-tier-head { align-items: stretch; flex-direction: column; }
  .bsmi-crm-commission-tier-head button { min-height: 44px; }
  .bsmi-crm-commission-tier-row { grid-template-columns: 1fr; padding-top: 40px; }
  .bsmi-crm-commission-tier-row input { min-height: 44px; }
}

/* Revenue, receivables and payout operations */
.bsmi-crm-content:has(.bsmi-crm-finance-tabs) { background: #f1f2f3; }
.bsmi-crm-finance-kpis article { position: relative; overflow: hidden; }
.bsmi-crm-finance-kpis article::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; background: #92979d; content: ""; }
.bsmi-crm-finance-kpis article:nth-child(1)::before { background: var(--bsmi-gold); }
.bsmi-crm-finance-kpis article:nth-child(2)::before { background: var(--bsmi-green); }
.bsmi-crm-finance-kpis article:nth-child(3)::before { background: #49515a; }
.bsmi-crm-finance-kpis article:nth-child(4)::before { background: var(--bsmi-red); }
.bsmi-crm-finance-kpis article:nth-child(5)::before { background: var(--bsmi-amber); }

.bsmi-crm-finance-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-finance-tabs button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  color: #626870;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  font-size: 9px;
  font-weight: 850;
}
.bsmi-crm-finance-tabs button:last-child { border-right: 0; }
.bsmi-crm-finance-tabs button strong { min-width: 25px; color: #80672f; font-size: 11px; text-align: right; }
.bsmi-crm-finance-tabs button.is-selected { color: #fff; background: #17191c; box-shadow: inset 0 3px var(--bsmi-gold); }
.bsmi-crm-finance-tabs button.is-selected strong { color: #dfc88f; }

.bsmi-crm-finance-filters {
  display: grid;
  grid-template-columns: minmax(250px, 1.35fr) minmax(150px, .65fr) minmax(150px, .65fr) minmax(260px, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-finance-filters label { min-width: 0; }
.bsmi-crm-finance-filters label span { display: block; margin-bottom: 5px; color: var(--bsmi-muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-finance-filters input,
.bsmi-crm-finance-filters select { width: 100%; min-width: 0; min-height: 38px; }
.bsmi-crm-finance-filters aside { display: grid; align-content: center; gap: 3px; min-width: 0; padding: 8px 12px; color: #fff; background: #292c30; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-finance-filters aside strong { font-size: 9px; }
.bsmi-crm-finance-filters aside span { color: #c1c5ca; font-size: 8px; line-height: 1.45; }
.bsmi-crm-finance-operations { min-height: 360px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-finance-table { min-width: 1060px; }
.bsmi-crm-finance-table td { min-width: 105px; vertical-align: middle; }
.bsmi-crm-finance-table td:first-child { min-width: 155px; }
.bsmi-crm-finance-table td:nth-child(2) { min-width: 180px; }
.bsmi-crm-finance-table td > strong,
.bsmi-crm-finance-table td > span,
.bsmi-crm-finance-table td > em { display: block; max-width: 240px; overflow-wrap: anywhere; }
.bsmi-crm-finance-table td > span { margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.35; }
.bsmi-crm-finance-table td > em { width: max-content; max-width: 100%; margin-top: 6px; }
.bsmi-crm-finance-table td strong.is-overdue { color: var(--bsmi-red); }
.bsmi-crm-finance-table td button { min-height: 34px; white-space: nowrap; }

.bsmi-crm-finance-reconciliation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-finance-ageing,
.bsmi-crm-finance-flow,
.bsmi-crm-finance-exceptions { min-width: 0; }
.bsmi-crm-finance-ageing { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-exceptions { grid-column: 1 / -1; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-ageing > header,
.bsmi-crm-finance-flow > header,
.bsmi-crm-finance-exceptions > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
  padding: 16px 18px;
  color: #fff;
  background: #17191c;
  border-top: 3px solid var(--bsmi-gold);
}
.bsmi-crm-finance-flow > header { border-top-color: #6c747d; }
.bsmi-crm-finance-exceptions > header { min-height: 76px; border-top-color: var(--bsmi-red); }
.bsmi-crm-finance-ageing header span,
.bsmi-crm-finance-flow header span,
.bsmi-crm-finance-exceptions header span { color: #d2b976; font-size: 7px; font-weight: 850; }
.bsmi-crm-finance-ageing header h2,
.bsmi-crm-finance-flow header h2,
.bsmi-crm-finance-exceptions header h2 { margin: 5px 0 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-finance-ageing header small,
.bsmi-crm-finance-flow header small,
.bsmi-crm-finance-exceptions header small { color: #b8bdc3; font-size: 8px; text-align: right; }
.bsmi-crm-finance-ageing > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bsmi-crm-finance-ageing article { min-width: 0; padding: 14px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-ageing article:last-child { border-right: 0; }
.bsmi-crm-finance-ageing article > span,
.bsmi-crm-finance-ageing article > small { display: block; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-finance-ageing article > strong { display: block; min-height: 32px; margin: 5px 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-finance-ageing article > div { height: 4px; margin: 7px 0; overflow: hidden; background: #e6e8ea; }
.bsmi-crm-finance-ageing article i { display: block; height: 100%; background: #4d565f; }
.bsmi-crm-finance-ageing article.is-days1to30 i,
.bsmi-crm-finance-ageing article.is-days31to60 i { background: var(--bsmi-amber); }
.bsmi-crm-finance-ageing article.is-days61to90 i,
.bsmi-crm-finance-ageing article.is-days90plus i { background: var(--bsmi-red); }

.bsmi-crm-finance-flow > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsmi-crm-finance-flow article { min-width: 0; padding: 14px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-flow article:last-child { border-right: 0; }
.bsmi-crm-finance-flow article > strong { display: block; min-height: 26px; font-size: 9px; }
.bsmi-crm-finance-flow article > div { margin-top: 8px; }
.bsmi-crm-finance-flow article > div span { display: block; height: 5px; overflow: hidden; background: #e6e8ea; }
.bsmi-crm-finance-flow article > div i { display: block; height: 100%; background: var(--bsmi-green); }
.bsmi-crm-finance-flow article > div.is-payable i { background: var(--bsmi-red); }
.bsmi-crm-finance-flow article em { display: block; margin-top: 4px; overflow-wrap: anywhere; color: var(--bsmi-muted); font-size: 7px; font-style: normal; }

.bsmi-crm-finance-exceptions > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsmi-crm-finance-exceptions article { display: flex; flex-direction: column; min-width: 0; padding: 15px 16px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); box-shadow: inset 0 3px #8e949b; }
.bsmi-crm-finance-exceptions article:nth-child(3n) { border-right: 0; }
.bsmi-crm-finance-exceptions article.is-danger { box-shadow: inset 0 3px var(--bsmi-red); }
.bsmi-crm-finance-exceptions article.is-warning { box-shadow: inset 0 3px var(--bsmi-amber); }
.bsmi-crm-finance-exceptions article.is-attention { box-shadow: inset 0 3px var(--bsmi-gold); }
.bsmi-crm-finance-exceptions article > span { color: var(--bsmi-muted); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-finance-exceptions article > strong { margin-top: 6px; overflow-wrap: anywhere; font-size: 10px; }
.bsmi-crm-finance-exceptions article p { flex: 1; margin: 7px 0 12px; color: #5c636b; font-size: 8px; line-height: 1.45; }
.bsmi-crm-finance-exceptions article footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-finance-exceptions article footer em { min-width: 0; overflow-wrap: anywhere; color: #30353a; font-size: 9px; font-style: normal; font-weight: 800; }
.bsmi-crm-finance-exceptions article footer button { min-height: 34px; }
.bsmi-crm-finance-clear { margin: 0; padding: 28px 18px; color: var(--bsmi-muted); text-align: center; }

.bsmi-crm-drawer:has(.bsmi-crm-finance-hero) { width: min(760px, 96vw); }
.bsmi-crm-finance-hero { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); color: #fff; background: #17191c; border-top: 3px solid var(--bsmi-gold); }
.bsmi-crm-finance-hero > div { min-width: 0; min-height: 100px; padding: 14px 13px; border-right: 1px solid #383c41; }
.bsmi-crm-finance-hero > div:last-child { border-right: 0; }
.bsmi-crm-finance-hero span,
.bsmi-crm-finance-hero small { display: block; color: #adb3ba; font-size: 8px; }
.bsmi-crm-finance-hero strong { display: block; margin: 7px 0 5px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-finance-position { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-position > span { min-width: 0; padding: 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-position > span:last-child { border-right: 0; }
.bsmi-crm-finance-position small { display: block; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-finance-position strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-finance-allocation-view { margin-top: 12px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-allocation-view article { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 11px 12px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-allocation-view article:last-child { border-bottom: 0; }
.bsmi-crm-finance-allocation-view article > span { min-width: 0; }
.bsmi-crm-finance-allocation-view strong,
.bsmi-crm-finance-allocation-view small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-finance-allocation-view small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-finance-allocation-view em { color: #30353a; font-size: 10px; font-style: normal; font-weight: 850; white-space: nowrap; }
.bsmi-crm-finance-compliance,
.bsmi-crm-finance-correction { border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-finance-compliance { margin-top: 12px; padding: 11px 12px; background: #f6f3eb; }
.bsmi-crm-finance-compliance.is-exception { border-left-color: var(--bsmi-red); }
.bsmi-crm-finance-compliance strong { font-size: 9px; }
.bsmi-crm-finance-compliance p { margin: 4px 0 0; color: #5e6268; font-size: 8px; line-height: 1.45; }

.bsmi-crm-form .bsmi-crm-finance-form-section[hidden] { display: none !important; }
.bsmi-crm-finance-rule { padding: 13px 14px; background: #f6f3eb; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-finance-rule strong { font-size: 9px; }
.bsmi-crm-finance-rule p { margin: 5px 0 0; color: #5d6268; font-size: 8px; line-height: 1.45; }
.bsmi-crm-finance-allocation-editor { grid-column: 1 / -1; min-width: 0; }
.bsmi-crm-finance-allocation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 11px; }
.bsmi-crm-finance-allocation-head p { max-width: 520px; margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }
.bsmi-crm-finance-allocation-head button { min-height: 34px; }
.bsmi-crm-finance-allocation-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-allocation-summary > span { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-allocation-summary > span:last-child { border-right: 0; }
.bsmi-crm-finance-allocation-summary small { display: block; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-finance-allocation-summary strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-finance-allocation-list { display: grid; gap: 8px; margin-top: 10px; }
.bsmi-crm-finance-allocation-list > p { margin: 0; padding: 15px; color: var(--bsmi-muted); text-align: center; background: #f6f7f8; border: 1px dashed #cdd1d5; }
.bsmi-crm-finance-allocation-row { position: relative; display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .55fr) minmax(180px, 1fr) 32px; gap: 8px; align-items: end; min-width: 0; padding: 10px; background: #f7f8f9; border: 1px solid var(--bsmi-line); }
.bsmi-crm-finance-allocation-row label { min-width: 0; }
.bsmi-crm-finance-allocation-row label small { display: block; margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-finance-allocation-row input,
.bsmi-crm-finance-allocation-row select { width: 100%; min-width: 0; }
.bsmi-crm-finance-allocation-row > button { width: 32px; height: 34px; padding: 0; color: var(--bsmi-red); background: #fff; border: 1px solid #e0c7c7; }
.bsmi-crm-finance-allocation-row.is-overallocated { border-color: #d99a9a; box-shadow: inset 3px 0 var(--bsmi-red); }
.bsmi-crm-finance-allocation-error { margin: 9px 0 0; padding: 9px 10px; color: #842b2b; background: #faeeee; border-left: 3px solid var(--bsmi-red); font-size: 8px; font-weight: 750; }

@media (max-width: 1180px) {
  .bsmi-crm-finance-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-finance-filters aside { grid-column: 1 / -1; }
  .bsmi-crm-finance-reconciliation { grid-template-columns: 1fr; }
  .bsmi-crm-finance-ageing { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-finance-exceptions { grid-column: auto; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-finance-tabs) .bsmi-crm-page-head button { min-height: 44px; }
  .bsmi-crm-finance-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-finance-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-finance-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-finance-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-finance-filters { grid-template-columns: 1fr; margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-finance-filters aside { grid-column: auto; }
  .bsmi-crm-finance-filters input,
  .bsmi-crm-finance-filters select { min-height: 44px; }
  .bsmi-crm-finance-operations { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-finance-table,
  .bsmi-crm-finance-table tbody { display: block; min-width: 0; }
  .bsmi-crm-finance-table thead { display: none; }
  .bsmi-crm-finance-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 9px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-finance-table td { display: block; min-width: 0; padding: 8px 6px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-finance-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-finance-table td:first-child,
  .bsmi-crm-finance-table td:nth-child(2),
  .bsmi-crm-finance-table td:last-child { grid-column: 1 / -1; min-width: 0; }
  .bsmi-crm-finance-table td button { width: 100%; min-height: 44px; }
  .bsmi-crm-finance-ageing > header,
  .bsmi-crm-finance-flow > header,
  .bsmi-crm-finance-exceptions > header { flex-direction: column; min-height: 0; padding: 14px 12px; }
  .bsmi-crm-finance-ageing header small,
  .bsmi-crm-finance-flow header small,
  .bsmi-crm-finance-exceptions header small { text-align: left; }
  .bsmi-crm-finance-ageing > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-finance-ageing article { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-finance-ageing article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-finance-ageing article:last-child { grid-column: 1 / -1; }
  .bsmi-crm-finance-flow > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-finance-flow article { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-finance-flow article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-finance-exceptions > div { grid-template-columns: 1fr; }
  .bsmi-crm-finance-exceptions article { border-right: 0; }
  .bsmi-crm-finance-exceptions article footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-finance-exceptions article footer button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-finance-hero) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-finance-hero,
  .bsmi-crm-finance-position { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-finance-hero > div:nth-child(2n),
  .bsmi-crm-finance-position > span:nth-child(2n) { border-right: 0; }
  .bsmi-crm-finance-hero > div:nth-child(-n+2),
  .bsmi-crm-finance-position > span:nth-child(-n+2) { border-bottom: 1px solid #383c41; }
  .bsmi-crm-finance-position > span:nth-child(-n+2) { border-bottom-color: var(--bsmi-line); }
  .bsmi-crm-finance-allocation-view article { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-finance-allocation-view em { white-space: normal; }
  .bsmi-crm-finance-allocation-head { align-items: stretch; flex-direction: column; }
  .bsmi-crm-finance-allocation-head button { min-height: 44px; }
  .bsmi-crm-finance-allocation-summary { grid-template-columns: 1fr; }
  .bsmi-crm-finance-allocation-summary > span { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-finance-allocation-summary > span:last-child { border-bottom: 0; }
  .bsmi-crm-finance-allocation-row { grid-template-columns: 1fr; padding-top: 42px; }
  .bsmi-crm-finance-allocation-row input,
  .bsmi-crm-finance-allocation-row select { min-height: 44px; }
  .bsmi-crm-finance-allocation-row > button { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; }
}

/* Lead Distribution */
.bsmi-crm-distribution-command {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  min-height: 176px;
  margin-bottom: 12px;
  color: #fff;
  background: #111315;
  border: 1px solid #111315;
}
.bsmi-crm-distribution-command > div { align-self: center; max-width: 760px; padding: 28px 30px; }
.bsmi-crm-distribution-command small,
.bsmi-crm-integration-view-head > div > small { color: var(--bsmi-gold); font-size: 9px; font-weight: 850; letter-spacing: 0; }
.bsmi-crm-distribution-command h2 { margin: 7px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; letter-spacing: 0; line-height: 1.05; }
.bsmi-crm-distribution-command p { max-width: 680px; margin: 0; color: #c8cbce; font-size: 12px; line-height: 1.55; }
.bsmi-crm-distribution-command dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid #33373b; }
.bsmi-crm-distribution-command dl > div { display: flex; min-width: 0; padding: 24px 16px; border-right: 1px solid #33373b; flex-direction: column; justify-content: center; }
.bsmi-crm-distribution-command dl > div:last-child { border-right: 0; }
.bsmi-crm-distribution-command dt { color: #9fa3a7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-distribution-command dd { margin: 7px 0 3px; overflow-wrap: anywhere; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.bsmi-crm-distribution-command dl span { color: #aeb2b6; font-size: 9px; line-height: 1.35; }

.bsmi-crm-distribution-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--bsmi-line); background: #fff; }
.bsmi-crm-distribution-kpis article { min-width: 0; min-height: 82px; margin: 0; padding: 14px 16px; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; box-shadow: none; }
.bsmi-crm-distribution-kpis article:last-child { border-right: 0; }
.bsmi-crm-distribution-kpis article span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-distribution-kpis article strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-distribution-kpis article small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-distribution-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-tabs button { display: flex; min-width: 0; min-height: 47px; padding: 0 14px; color: #575d63; background: transparent; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; align-items: center; justify-content: space-between; }
.bsmi-crm-distribution-tabs button:last-child { border-right: 0; }
.bsmi-crm-distribution-tabs button span { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-distribution-tabs button strong { display: grid; width: 24px; height: 24px; margin-left: 8px; color: #5d6267; background: #eceeed; border-radius: 50%; font-size: 9px; place-items: center; }
.bsmi-crm-distribution-tabs button.is-active { color: #fff; background: #191c1f; }
.bsmi-crm-distribution-tabs button.is-active strong { color: #1b1e20; background: var(--bsmi-gold); }

.bsmi-crm-distribution-alert { display: flex; min-height: 82px; margin-bottom: 12px; padding: 16px 18px; background: #f8eeee; border-left: 4px solid #a94747; align-items: center; justify-content: space-between; gap: 18px; }
.bsmi-crm-distribution-alert small { display: block; color: #9b3939; font-size: 8px; font-weight: 850; }
.bsmi-crm-distribution-alert strong { display: block; margin-top: 3px; color: #3b1f1f; font-size: 14px; }
.bsmi-crm-distribution-alert p { margin: 4px 0 0; color: #6f5151; font-size: 10px; line-height: 1.45; }
.bsmi-crm-distribution-alert button { min-width: 112px; min-height: 38px; color: #fff; background: #8f3535; border-color: #8f3535; }

.bsmi-crm-distribution-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; margin-bottom: 12px; border: 1px solid var(--bsmi-line); background: #fff; }
.bsmi-crm-distribution-overview-grid > .bsmi-crm-section { margin: 0; border: 0; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-policy-brief { min-width: 0; padding: 20px; background: #f1f2f2; }
.bsmi-crm-distribution-policy-brief > small { color: #8f6f21; font-size: 8px; font-weight: 850; }
.bsmi-crm-distribution-policy-brief h3 { margin: 7px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.bsmi-crm-distribution-policy-brief > p { margin: 0 0 16px; color: #62676c; font-size: 10px; line-height: 1.5; }
.bsmi-crm-distribution-policy-brief dl { margin: 0 0 16px; border-top: 1px solid #d5d8d9; }
.bsmi-crm-distribution-policy-brief dl > div { display: flex; min-width: 0; padding: 9px 0; border-bottom: 1px solid #d5d8d9; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-distribution-policy-brief dt { color: #777c81; font-size: 9px; }
.bsmi-crm-distribution-policy-brief dd { margin: 0; color: #1d2022; font-size: 9px; font-weight: 800; text-align: right; }
.bsmi-crm-distribution-policy-brief > button { width: 100%; min-height: 37px; }

.bsmi-crm-distribution-roster table,
.bsmi-crm-distribution-table table,
.bsmi-crm-distribution-ledger table { min-width: 880px; }
.bsmi-crm-distribution-roster td strong,
.bsmi-crm-distribution-table td strong,
.bsmi-crm-distribution-ledger td strong { display: block; font-size: 10px; }
.bsmi-crm-distribution-roster td small,
.bsmi-crm-distribution-table td small,
.bsmi-crm-distribution-ledger td small { display: block; max-width: 290px; margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-distribution-availability,
.bsmi-crm-distribution-severity { display: inline-flex; min-height: 21px; padding: 0 8px; font-size: 8px; font-weight: 850; text-transform: uppercase; align-items: center; }
.bsmi-crm-distribution-availability.is-available { color: #1f6746; background: #e5f2eb; }
.bsmi-crm-distribution-availability.is-unavailable { color: #8d3333; background: #f7e9e9; }
.bsmi-crm-distribution-severity.is-critical { color: #8d3333; background: #f7e9e9; }
.bsmi-crm-distribution-severity.is-warning { color: #765711; background: #f7f0dc; }
.bsmi-crm-distribution-severity.is-watch { color: #3e5968; background: #e9eff2; }
.bsmi-crm-distribution-meter { display: block; width: 92px; height: 4px; margin-top: 7px; overflow: hidden; background: #e3e5e6; }
.bsmi-crm-distribution-meter i { display: block; height: 100%; max-width: 100%; background: #2f6b50; }

.bsmi-crm-distribution-policy { margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-policy .bsmi-crm-integration-view-head { margin: 0; border: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-policy .bsmi-crm-integration-view-head > span { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-distribution-policy form { padding: 18px; }
.bsmi-crm-distribution-policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bsmi-crm-distribution-policy-grid > label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-distribution-policy-grid > label > span,
.bsmi-crm-distribution-policy-save label > span { margin-bottom: 5px; color: #4d5257; font-size: 9px; font-weight: 750; }
.bsmi-crm-distribution-policy-grid input,
.bsmi-crm-distribution-policy-grid select,
.bsmi-crm-distribution-policy-save input { width: 100%; min-width: 0; min-height: 38px; }
.bsmi-crm-distribution-policy-grid label.is-check { min-height: 38px; padding: 8px 10px; background: #f4f5f5; border: 1px solid var(--bsmi-line); flex-direction: row; align-items: center; gap: 8px; }
.bsmi-crm-distribution-policy-grid label.is-check input { width: 16px; min-height: 16px; }
.bsmi-crm-distribution-policy-grid label.is-check span { margin: 0; line-height: 1.35; }
.bsmi-crm-distribution-weights { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-weights h3 { margin: 0 0 5px; font-size: 12px; }
.bsmi-crm-distribution-weights p { margin: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-distribution-weights > div:last-child { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bsmi-crm-distribution-weights label { display: grid; grid-template-columns: minmax(0, 1fr) 58px; min-width: 0; padding: 8px 9px; background: #f7f8f8; border: 1px solid var(--bsmi-line); align-items: center; gap: 8px; }
.bsmi-crm-distribution-weights label > span { min-width: 0; overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-distribution-weights label small { display: block; margin-top: 2px; color: var(--bsmi-muted); font-size: 7px; font-weight: 500; }
.bsmi-crm-distribution-weights input { width: 58px; min-height: 34px; }
.bsmi-crm-distribution-policy-save { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bsmi-line); align-items: end; }
.bsmi-crm-distribution-policy-save label { min-width: 0; }
.bsmi-crm-distribution-policy-save button { min-height: 38px; }

.bsmi-crm-distribution-rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.bsmi-crm-distribution-rule-card { min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-distribution-rule-card.is-active { border-top: 3px solid #2f6b50; }
.bsmi-crm-distribution-rule-card.is-paused { border-top: 3px solid #92979b; opacity: .8; }
.bsmi-crm-distribution-rule-card header,
.bsmi-crm-distribution-rule-card footer { display: flex; padding: 11px 12px; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-distribution-rule-card header span { color: var(--bsmi-muted); font-size: 7px; font-weight: 850; }
.bsmi-crm-distribution-rule-card header h3 { margin: 3px 0 0; font-size: 12px; }
.bsmi-crm-distribution-rule-card header em { padding: 4px 7px; color: #315d49; background: #e6f1eb; font-size: 7px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-distribution-rule-card.is-paused header em { color: #666b70; background: #ebeded; }
.bsmi-crm-distribution-rule-route { display: flex; min-width: 0; padding: 10px 12px; background: #f3f4f4; border-block: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-distribution-rule-route strong { font-size: 10px; }
.bsmi-crm-distribution-rule-route span { min-width: 0; overflow: hidden; color: #62676c; font-size: 8px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-distribution-rule-conditions { display: flex; min-height: 66px; padding: 10px 12px; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.bsmi-crm-distribution-rule-conditions span { padding: 4px 6px; color: #4f555a; background: #f4f4f1; border: 1px solid #deded8; font-size: 7px; }
.bsmi-crm-distribution-rule-card footer { border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-rule-card footer small { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-distribution-rule-card footer > div { display: flex; gap: 6px; }

.bsmi-crm-distribution-filterbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-filterbar button { display: flex; min-height: 42px; padding: 0 12px; background: transparent; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; align-items: center; justify-content: space-between; }
.bsmi-crm-distribution-filterbar button:last-child { border-right: 0; }
.bsmi-crm-distribution-filterbar button.is-active { color: #fff; background: #2a2d30; }
.bsmi-crm-distribution-filterbar button span { font-size: 9px; font-weight: 800; }
.bsmi-crm-distribution-filterbar button strong { font-size: 10px; }
.bsmi-crm-distribution-ledger button[data-distribution-lead-open] { padding: 0; color: #1f4f3c; background: transparent; border: 0; font-size: 10px; font-weight: 800; text-align: left; }
.bsmi-crm-distribution-guardrail,
.bsmi-crm-distribution-transfer-boundary { margin-top: 12px; padding: 13px 15px; background: #f2efe6; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-distribution-guardrail strong,
.bsmi-crm-distribution-transfer-boundary strong { display: block; font-size: 10px; }
.bsmi-crm-distribution-guardrail p,
.bsmi-crm-distribution-transfer-boundary p { margin: 4px 0 0; color: #62615a; font-size: 9px; line-height: 1.5; }

.bsmi-crm-distribution-pool { grid-column: 1 / -1; padding: 12px; background: #f5f6f6; border: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-pool > span { font-size: 10px; font-weight: 800; }
.bsmi-crm-distribution-pool > p { margin: 4px 0 10px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-distribution-pool > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-distribution-pool label { display: flex; min-width: 0; padding: 8px; background: #fff; border: 1px solid var(--bsmi-line); align-items: center; gap: 8px; }
.bsmi-crm-distribution-pool label input { width: 15px; height: 15px; flex: 0 0 auto; }
.bsmi-crm-distribution-pool label span { min-width: 0; font-size: 9px; font-weight: 800; }
.bsmi-crm-distribution-pool label small { display: block; margin-top: 2px; overflow: hidden; color: var(--bsmi-muted); font-size: 7px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-distribution-transfer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 12px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-transfer-summary > div { min-width: 0; padding: 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-distribution-transfer-summary > div:last-child { border-right: 0; }
.bsmi-crm-distribution-transfer-summary span { display: block; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-distribution-transfer-summary strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 11px; text-transform: capitalize; }
.bsmi-crm-distribution-transfer-summary strong.is-critical { color: #953b3b; }
.bsmi-crm-distribution-transfer-summary strong.is-warning { color: #7b5d17; }
.bsmi-crm-distribution-reasons { margin: 8px 0 0; padding-left: 18px; }
.bsmi-crm-distribution-reasons li { margin: 5px 0; color: #4f5559; font-size: 9px; line-height: 1.45; }
.bsmi-crm-routing-handoff-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 14px 12px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-routing-handoff-stats > div { min-width: 0; padding: 10px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-routing-handoff-stats > div:last-child { border-right: 0; }
.bsmi-crm-routing-handoff-stats span { display: block; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-routing-handoff-stats strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 10px; }

@media (max-width: 1180px) {
  .bsmi-crm-distribution-command { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-command dl { border-top: 1px solid #33373b; border-left: 0; }
  .bsmi-crm-distribution-overview-grid { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-overview-grid > .bsmi-crm-section { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-distribution-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-distribution-weights { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-distribution-tabs) { padding-inline: 10px; }
  .bsmi-crm-distribution-command { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-distribution-command > div { padding: 22px 16px; }
  .bsmi-crm-distribution-command h2 { font-size: 24px; }
  .bsmi-crm-distribution-command dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-distribution-command dl > div { padding: 14px 9px; }
  .bsmi-crm-distribution-command dd { font-size: 17px; }
  .bsmi-crm-distribution-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-distribution-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-distribution-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-distribution-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-distribution-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-distribution-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-distribution-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-distribution-alert { margin-inline: -10px; align-items: stretch; flex-direction: column; }
  .bsmi-crm-distribution-alert button { width: 100%; min-height: 44px; }
  .bsmi-crm-distribution-overview-grid,
  .bsmi-crm-distribution-policy,
  .bsmi-crm-distribution-filterbar,
  .bsmi-crm-content:has(.bsmi-crm-distribution-tabs) > .bsmi-crm-section { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-distribution-policy-grid { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-policy-grid input,
  .bsmi-crm-distribution-policy-grid select { min-height: 44px; }
  .bsmi-crm-distribution-weights > div:last-child { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-weights input { min-height: 44px; }
  .bsmi-crm-distribution-policy-save { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-policy-save input,
  .bsmi-crm-distribution-policy-save button { min-height: 44px; }
  .bsmi-crm-distribution-rule-list { grid-template-columns: 1fr; padding-inline: 10px; }
  .bsmi-crm-distribution-rule-route { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-distribution-rule-route span { width: 100%; text-align: left; white-space: normal; }
  .bsmi-crm-distribution-rule-card footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-distribution-rule-card footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-distribution-rule-card footer button { min-height: 42px; }
  .bsmi-crm-distribution-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-distribution-filterbar button { min-height: 44px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-distribution-filterbar button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-distribution-filterbar button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-distribution-table table,
  .bsmi-crm-distribution-table tbody,
  .bsmi-crm-distribution-ledger table,
  .bsmi-crm-distribution-ledger tbody { display: block; min-width: 0; }
  .bsmi-crm-distribution-table thead,
  .bsmi-crm-distribution-ledger thead { display: none; }
  .bsmi-crm-distribution-table tr,
  .bsmi-crm-distribution-ledger tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-distribution-table td,
  .bsmi-crm-distribution-ledger td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-distribution-table td::before,
  .bsmi-crm-distribution-ledger td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-distribution-table td:first-child,
  .bsmi-crm-distribution-table td:nth-child(2),
  .bsmi-crm-distribution-table td:last-child,
  .bsmi-crm-distribution-ledger td:nth-child(2),
  .bsmi-crm-distribution-ledger td:nth-child(4),
  .bsmi-crm-distribution-ledger td:nth-child(5) { grid-column: 1 / -1; }
  .bsmi-crm-distribution-table td button { min-height: 42px; }
  .bsmi-crm-distribution-pool > div { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-transfer-summary { grid-template-columns: 1fr; }
  .bsmi-crm-distribution-transfer-summary > div { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-distribution-transfer-summary > div:last-child { border-bottom: 0; }
  .bsmi-crm-routing-handoff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-routing-handoff-stats > div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-routing-handoff-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
}

/* Notifications & Escalations */
.bsmi-crm-notification-command {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  min-height: 176px;
  margin-bottom: 12px;
  color: #fff;
  background: #111315;
  border: 1px solid #111315;
}
.bsmi-crm-notification-command > div { align-self: center; max-width: 760px; padding: 28px 30px; }
.bsmi-crm-notification-command small,
.bsmi-crm-notification-inbox-head small,
.bsmi-crm-notification-manager-note small,
.bsmi-crm-notification-recommendation > small { color: var(--bsmi-gold); font-size: 9px; font-weight: 850; }
.bsmi-crm-notification-command h2 { margin: 7px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 500; line-height: 1.05; }
.bsmi-crm-notification-command p { max-width: 680px; margin: 0; color: #c8cbce; font-size: 12px; line-height: 1.55; }
.bsmi-crm-notification-command dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-left: 1px solid #33373b; }
.bsmi-crm-notification-command dl > div { display: flex; min-width: 0; padding: 24px 16px; border-right: 1px solid #33373b; flex-direction: column; justify-content: center; }
.bsmi-crm-notification-command dl > div:last-child { border-right: 0; }
.bsmi-crm-notification-command dt { color: #9fa3a7; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-notification-command dd { margin: 7px 0 3px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 24px; overflow-wrap: anywhere; }
.bsmi-crm-notification-command dl span { color: #aeb2b6; font-size: 9px; line-height: 1.35; }

.bsmi-crm-notification-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-kpis article { min-width: 0; min-height: 82px; margin: 0; padding: 14px 16px; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; box-shadow: none; }
.bsmi-crm-notification-kpis article:last-child { border-right: 0; }
.bsmi-crm-notification-kpis article span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-notification-kpis article strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-notification-kpis article small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-notification-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-tabs button { display: flex; min-width: 0; min-height: 47px; padding: 0 14px; color: #575d63; background: transparent; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; align-items: center; justify-content: space-between; }
.bsmi-crm-notification-tabs button:last-child { border-right: 0; }
.bsmi-crm-notification-tabs button span { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-notification-tabs button strong { display: grid; width: 24px; height: 24px; margin-left: 8px; color: #5d6267; background: #eceeed; border-radius: 50%; font-size: 9px; place-items: center; }
.bsmi-crm-notification-tabs button.is-active { color: #fff; background: #191c1f; }
.bsmi-crm-notification-tabs button.is-active strong { color: #1b1e20; background: var(--bsmi-gold); }

.bsmi-crm-notification-inbox-head { display: flex; min-height: 76px; padding: 16px 18px; background: #fff; border: 1px solid var(--bsmi-line); border-bottom: 0; align-items: center; justify-content: space-between; gap: 20px; }
.bsmi-crm-notification-inbox-head h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-notification-inbox-head p { margin: 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.45; }
.bsmi-crm-notification-inbox-head > span { padding: 6px 9px; color: #4f5357; background: #eff0f0; font-size: 8px; font-weight: 800; white-space: nowrap; }

.bsmi-crm-notification-filters { display: grid; grid-template-columns: minmax(210px, 1.45fr) repeat(4, minmax(130px, .8fr)); gap: 8px; margin-bottom: 12px; padding: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-filters label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-notification-filters label > span { margin-bottom: 5px; color: #5b6065; font-size: 8px; font-weight: 800; }
.bsmi-crm-notification-filters input,
.bsmi-crm-notification-filters select { width: 100%; min-width: 0; min-height: 38px; }

.bsmi-crm-notification-list { display: grid; gap: 8px; }
.bsmi-crm-notification-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--bsmi-line); border-radius: 4px; }
.bsmi-crm-notification-card.is-unread { border-color: #bca66f; box-shadow: inset 0 0 0 1px rgba(184, 154, 91, .16); }
.bsmi-crm-notification-card.is-snoozed { opacity: .72; }
.bsmi-crm-notification-severity { display: flex; min-width: 0; padding: 14px 10px; background: #f4f5f5; border-right: 1px solid var(--bsmi-line); flex-direction: column; align-items: center; justify-content: center; gap: 9px; }
.bsmi-crm-notification-severity span { font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-notification-severity i { display: block; width: 26px; height: 3px; background: #70777d; }
.bsmi-crm-notification-card.is-critical .bsmi-crm-notification-severity { color: #8f3030; background: #f8eaea; }
.bsmi-crm-notification-card.is-critical .bsmi-crm-notification-severity i { background: #a53b3b; }
.bsmi-crm-notification-card.is-high .bsmi-crm-notification-severity { color: #7a5711; background: #f7f0dc; }
.bsmi-crm-notification-card.is-high .bsmi-crm-notification-severity i { background: #a7791e; }
.bsmi-crm-notification-card.is-medium .bsmi-crm-notification-severity { color: #315c4a; background: #e8f2ed; }
.bsmi-crm-notification-card.is-medium .bsmi-crm-notification-severity i { background: #39745a; }
.bsmi-crm-notification-card.is-low .bsmi-crm-notification-severity { color: #465d6a; background: #eaf0f3; }
.bsmi-crm-notification-card.is-low .bsmi-crm-notification-severity i { background: #567386; }
.bsmi-crm-notification-main { min-width: 0; padding: 13px 15px 12px; }
.bsmi-crm-notification-main > header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-notification-main > header > div { min-width: 0; }
.bsmi-crm-notification-main > header small { color: #8d7134; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-notification-main h3 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.25; }
.bsmi-crm-notification-main > p { max-width: 920px; margin: 7px 0 11px; color: #5e6469; font-size: 10px; line-height: 1.5; }
.bsmi-crm-notification-state { flex: 0 0 auto; padding: 5px 7px; color: #5d6267; background: #eceeed; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-notification-state.is-acknowledged { color: #795710; background: #f7f0db; }
.bsmi-crm-notification-state.is-resolved { color: #236645; background: #e6f2eb; }
.bsmi-crm-notification-meta { display: grid; grid-template-columns: 1.2fr 1fr 1.15fr .7fr; border: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-meta > span { min-width: 0; padding: 8px 9px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-meta > span:last-child { border-right: 0; }
.bsmi-crm-notification-meta small { display: block; color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-notification-meta strong { display: block; margin-top: 3px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-notification-main > footer { display: flex; min-width: 0; margin-top: 10px; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-notification-evidence-preview { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.bsmi-crm-notification-evidence-preview span { max-width: 320px; padding: 4px 6px; overflow: hidden; color: #60656a; background: #f3f4f4; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-notification-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.bsmi-crm-notification-actions button { min-height: 31px; padding: 0 9px; font-size: 8px; }

.bsmi-crm-notification-boundary,
.bsmi-crm-notification-resolution-boundary { margin-top: 12px; padding: 13px 15px; background: #f2efe6; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-notification-boundary strong,
.bsmi-crm-notification-resolution-boundary strong { display: block; font-size: 10px; }
.bsmi-crm-notification-boundary p,
.bsmi-crm-notification-resolution-boundary p { margin: 4px 0 0; color: #62615a; font-size: 9px; line-height: 1.5; }

.bsmi-crm-notification-table table { min-width: 900px; }
.bsmi-crm-notification-table td > strong { display: block; font-size: 10px; }
.bsmi-crm-notification-table td > small { display: block; max-width: 290px; margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-notification-table-severity { display: inline-flex; min-height: 22px; padding: 0 8px; font-size: 8px; font-weight: 850; text-transform: uppercase; align-items: center; }
.bsmi-crm-notification-table-severity.is-critical { color: #8e3434; background: #f7e8e8; }
.bsmi-crm-notification-table-severity.is-high { color: #765711; background: #f7f0dc; }
.bsmi-crm-notification-table-severity.is-medium { color: #286046; background: #e8f2ed; }
.bsmi-crm-notification-table-severity.is-low { color: #465d6a; background: #eaf0f3; }

.bsmi-crm-notification-capabilities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-capabilities article { min-width: 0; min-height: 108px; padding: 13px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-capabilities article:last-child { border-right: 0; }
.bsmi-crm-notification-capabilities article header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bsmi-crm-notification-capabilities article header span { min-width: 0; font-size: 9px; font-weight: 850; }
.bsmi-crm-notification-capabilities article header strong { flex: 0 0 auto; padding: 4px 5px; color: #666b70; background: #eceeed; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-notification-capabilities article.is-live header strong,
.bsmi-crm-notification-capabilities article.is-available header strong { color: #216444; background: #e5f1ea; }
.bsmi-crm-notification-capabilities article p { margin: 10px 0 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-notification-deliveries { display: grid; }
.bsmi-crm-notification-deliveries article { display: grid; grid-template-columns: 1fr 1fr minmax(240px, 1.4fr) auto; min-width: 0; padding: 11px 14px; border-top: 1px solid var(--bsmi-line); align-items: center; gap: 14px; }
.bsmi-crm-notification-deliveries article > div { min-width: 0; }
.bsmi-crm-notification-deliveries article span { display: block; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-notification-deliveries article strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 9px; }
.bsmi-crm-notification-deliveries article p { min-width: 0; margin: 0; color: #575d62; font-size: 8px; line-height: 1.45; }
.bsmi-crm-notification-deliveries article time { color: var(--bsmi-muted); font-size: 8px; white-space: nowrap; }

.bsmi-crm-notification-policy,
.bsmi-crm-notification-preferences { margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-policy .bsmi-crm-integration-view-head,
.bsmi-crm-notification-preferences .bsmi-crm-integration-view-head { margin: 0; border: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-policy .bsmi-crm-integration-view-head > span,
.bsmi-crm-notification-preferences .bsmi-crm-integration-view-head > span { color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-notification-policy form,
.bsmi-crm-notification-preferences form { padding: 16px; }
.bsmi-crm-notification-policy-switches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-notification-policy-switches > label { display: flex; min-width: 0; min-height: 66px; padding: 10px; background: #f6f7f7; border: 1px solid var(--bsmi-line); align-items: flex-start; gap: 9px; }
.bsmi-crm-notification-policy-switches input { width: 16px; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.bsmi-crm-notification-policy-switches span { min-width: 0; }
.bsmi-crm-notification-policy-switches strong { display: block; font-size: 9px; }
.bsmi-crm-notification-policy-switches small { display: block; margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-notification-policy-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-notification-policy-values label { display: grid; grid-template-columns: minmax(0, 1fr) 92px; min-width: 0; padding: 7px 8px; background: #f7f8f8; border: 1px solid var(--bsmi-line); align-items: center; gap: 8px; }
.bsmi-crm-notification-policy-values label > span { min-width: 0; font-size: 8px; font-weight: 800; }
.bsmi-crm-notification-policy-values label small { display: block; margin-top: 2px; color: var(--bsmi-muted); font-size: 7px; font-weight: 500; }
.bsmi-crm-notification-policy-values input { width: 92px; min-height: 34px; }
.bsmi-crm-notification-policy-save { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bsmi-line); align-items: end; }
.bsmi-crm-notification-policy-save label { min-width: 0; }
.bsmi-crm-notification-policy-save label > span { display: block; margin-bottom: 5px; color: #4d5257; font-size: 9px; font-weight: 750; }
.bsmi-crm-notification-policy-save input { width: 100%; min-height: 38px; }
.bsmi-crm-notification-policy-save button { min-height: 38px; }
.bsmi-crm-notification-manager-note { margin-bottom: 12px; padding: 20px; color: #fff; background: #222528; border-left: 4px solid var(--bsmi-gold); }
.bsmi-crm-notification-manager-note h2 { margin: 5px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-notification-manager-note p { margin: 0; color: #c6c9cc; font-size: 9px; line-height: 1.5; }

.bsmi-crm-notification-preference-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; }
.bsmi-crm-notification-preference-layout > div:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 8px; }
.bsmi-crm-notification-preference-layout > div:first-child label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-notification-preference-layout > div:first-child label span { margin-bottom: 5px; color: #53585d; font-size: 8px; font-weight: 800; }
.bsmi-crm-notification-preference-layout input,
.bsmi-crm-notification-preference-layout select { width: 100%; min-width: 0; min-height: 38px; }
.bsmi-crm-notification-preference-layout fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.bsmi-crm-notification-preference-layout legend { margin-bottom: 7px; font-size: 9px; font-weight: 850; }
.bsmi-crm-notification-category-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-notification-category-checks label { display: flex; min-width: 0; min-height: 64px; padding: 9px; background: #f6f7f7; border: 1px solid var(--bsmi-line); align-items: flex-start; gap: 8px; }
.bsmi-crm-notification-category-checks input { width: 15px; height: 15px; flex: 0 0 auto; }
.bsmi-crm-notification-category-checks span { min-width: 0; }
.bsmi-crm-notification-category-checks strong { display: block; font-size: 8px; }
.bsmi-crm-notification-category-checks small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.35; }
.bsmi-crm-notification-preference-save { display: flex; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; gap: 14px; }
.bsmi-crm-notification-preference-save p { margin: 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-notification-preference-save button { min-height: 38px; }

.bsmi-crm-notification-drawer-hero { display: flex; min-width: 0; margin-bottom: 12px; padding: 18px; color: #fff; background: #232629; border-left: 4px solid #777; align-items: flex-start; justify-content: space-between; gap: 18px; }
.bsmi-crm-notification-drawer-hero.is-critical { background: #492323; border-left-color: #c65d5d; }
.bsmi-crm-notification-drawer-hero.is-high { background: #4a3c1f; border-left-color: #c89a3e; }
.bsmi-crm-notification-drawer-hero.is-medium { background: #244235; border-left-color: #64a283; }
.bsmi-crm-notification-drawer-hero.is-low { background: #2a3e49; border-left-color: #7398aa; }
.bsmi-crm-notification-drawer-hero span { color: #ddd; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-notification-drawer-hero h3 { margin: 7px 0 0; max-width: 520px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.bsmi-crm-notification-drawer-hero > strong { flex: 0 0 auto; padding: 7px 8px; color: #1a1c1e; background: var(--bsmi-gold); font-size: 8px; text-transform: uppercase; }
.bsmi-crm-notification-recommendation { background: #16181a; }
.bsmi-crm-notification-recommendation h3 { margin: 6px 0 5px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; line-height: 1.3; }
.bsmi-crm-notification-recommendation p { color: #bfc2c5; }
.bsmi-crm-notification-evidence { margin: 8px 0 0; padding: 0; list-style: none; }
.bsmi-crm-notification-evidence li { position: relative; margin: 6px 0; padding: 7px 8px 7px 20px; color: #4e5459; background: #f5f6f6; border: 1px solid var(--bsmi-line); font-size: 9px; line-height: 1.4; }
.bsmi-crm-notification-evidence li::before { position: absolute; top: 11px; left: 8px; width: 5px; height: 5px; background: var(--bsmi-gold-dark); content: ""; }
.bsmi-crm-notification-resolution-context { margin-bottom: 12px; padding: 13px 15px; background: #1d2022; }
.bsmi-crm-notification-resolution-context span { display: block; color: var(--bsmi-gold); font-size: 8px; font-weight: 850; }
.bsmi-crm-notification-resolution-context strong { display: block; margin-top: 5px; color: #fff; font-size: 11px; line-height: 1.45; }

@media (max-width: 1180px) {
  .bsmi-crm-notification-command { grid-template-columns: 1fr; }
  .bsmi-crm-notification-command dl { border-top: 1px solid #33373b; border-left: 0; }
  .bsmi-crm-notification-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-notification-filters .is-search { grid-column: span 2; }
  .bsmi-crm-notification-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-notification-capabilities article:nth-child(3n) { border-right: 0; }
  .bsmi-crm-notification-capabilities article:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-notification-policy-switches,
  .bsmi-crm-notification-policy-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-notification-preference-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-notification-tabs) { padding-inline: 10px; }
  .bsmi-crm-notification-command { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-notification-command > div { padding: 22px 16px; }
  .bsmi-crm-notification-command h2 { font-size: 24px; }
  .bsmi-crm-notification-command dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-notification-command dl > div { padding: 14px 8px; }
  .bsmi-crm-notification-command dd { font-size: 18px; }
  .bsmi-crm-notification-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-notification-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-notification-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-notification-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-notification-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-notification-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-notification-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-notification-inbox-head,
  .bsmi-crm-notification-filters,
  .bsmi-crm-content:has(.bsmi-crm-notification-tabs) > .bsmi-crm-section,
  .bsmi-crm-notification-capabilities,
  .bsmi-crm-notification-policy,
  .bsmi-crm-notification-preferences,
  .bsmi-crm-notification-manager-note { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-notification-inbox-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-notification-filters { grid-template-columns: 1fr; }
  .bsmi-crm-notification-filters .is-search { grid-column: auto; }
  .bsmi-crm-notification-filters input,
  .bsmi-crm-notification-filters select { min-height: 44px; }
  .bsmi-crm-notification-card { grid-template-columns: 1fr; }
  .bsmi-crm-notification-severity { min-height: 34px; padding: 7px 12px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); flex-direction: row; justify-content: flex-start; }
  .bsmi-crm-notification-severity i { width: 18px; }
  .bsmi-crm-notification-main { padding: 12px; }
  .bsmi-crm-notification-main > header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .bsmi-crm-notification-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-notification-meta > span:nth-child(2n) { border-right: 0; }
  .bsmi-crm-notification-meta > span:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-notification-main > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-notification-evidence-preview span { max-width: 100%; white-space: normal; }
  .bsmi-crm-notification-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-notification-actions button { min-height: 44px; padding-inline: 5px; }
  .bsmi-crm-notification-table table,
  .bsmi-crm-notification-table tbody { display: block; min-width: 0; }
  .bsmi-crm-notification-table thead { display: none; }
  .bsmi-crm-notification-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-notification-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-notification-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-notification-table td:nth-child(2),
  .bsmi-crm-notification-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-notification-table td button { min-height: 44px; }
  .bsmi-crm-notification-capabilities { grid-template-columns: 1fr; }
  .bsmi-crm-notification-capabilities article,
  .bsmi-crm-notification-capabilities article:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-notification-capabilities article:last-child { border-bottom: 0; }
  .bsmi-crm-notification-deliveries article { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-notification-deliveries article p,
  .bsmi-crm-notification-deliveries article time { grid-column: 1 / -1; }
  .bsmi-crm-notification-policy-switches,
  .bsmi-crm-notification-policy-values,
  .bsmi-crm-notification-category-checks { grid-template-columns: 1fr; }
  .bsmi-crm-notification-policy-switches > label { min-height: 72px; }
  .bsmi-crm-notification-policy-values label { grid-template-columns: minmax(0, 1fr) 100px; }
  .bsmi-crm-notification-policy-values input { width: 100px; min-height: 44px; }
  .bsmi-crm-notification-policy-save { grid-template-columns: 1fr; }
  .bsmi-crm-notification-policy-save input,
  .bsmi-crm-notification-policy-save button,
  .bsmi-crm-notification-preference-layout input,
  .bsmi-crm-notification-preference-layout select,
  .bsmi-crm-notification-preference-save button { min-height: 44px; }
  .bsmi-crm-notification-preference-layout > div:first-child { grid-template-columns: 1fr; }
  .bsmi-crm-notification-preference-save { align-items: stretch; flex-direction: column; }
  .bsmi-crm-drawer:has(.bsmi-crm-notification-drawer-hero),
  .bsmi-crm-drawer:has(.bsmi-crm-notification-resolution-context) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-notification-drawer-hero { flex-direction: column; }
}

/* Nurture Automation */
.bsmi-crm-nurture-command {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(390px, .8fr);
  min-width: 0;
  margin-bottom: 12px;
  color: #fff;
  background: #141619;
  border: 1px solid #2d3034;
}

.bsmi-crm-nurture-command > div {
  align-self: center;
  max-width: 790px;
  padding: 28px 30px;
}

.bsmi-crm-nurture-command small,
.bsmi-crm-nurture-view-head small,
.bsmi-crm-nurture-guardrails > div > small {
  color: var(--bsmi-gold);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.bsmi-crm-nurture-command h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.08;
}

.bsmi-crm-nurture-command p {
  max-width: 700px;
  margin: 0;
  color: #c7cacf;
  font-size: 10px;
  line-height: 1.6;
}

.bsmi-crm-nurture-command dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid #33373b;
}

.bsmi-crm-nurture-command dl > div {
  display: flex;
  min-width: 0;
  padding: 24px 14px;
  border-right: 1px solid #33373b;
  flex-direction: column;
  justify-content: center;
}

.bsmi-crm-nurture-command dl > div:last-child { border-right: 0; }
.bsmi-crm-nurture-command dt { color: #a4a8ad; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-nurture-command dd { margin: 7px 0 3px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.bsmi-crm-nurture-command dl span { color: #afb3b8; font-size: 8px; line-height: 1.4; }

.bsmi-crm-nurture-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-nurture-kpis article {
  min-width: 0;
  min-height: 82px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  box-shadow: none;
}

.bsmi-crm-nurture-kpis article:last-child { border-right: 0; }
.bsmi-crm-nurture-kpis article span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-nurture-kpis article strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-nurture-kpis article small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-nurture-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-nurture-tabs button {
  display: flex;
  min-width: 0;
  min-height: 47px;
  padding: 0 14px;
  color: #575d63;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  align-items: center;
  justify-content: space-between;
}

.bsmi-crm-nurture-tabs button:last-child { border-right: 0; }
.bsmi-crm-nurture-tabs button span { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-nurture-tabs button strong { display: grid; width: 24px; height: 24px; margin-left: 8px; color: #5d6267; background: #eceeed; border-radius: 50%; font-size: 9px; place-items: center; }
.bsmi-crm-nurture-tabs button.is-active { color: #fff; background: #191c1f; }
.bsmi-crm-nurture-tabs button.is-active strong { color: #1b1e20; background: var(--bsmi-gold); }

.bsmi-crm-nurture-view-head {
  display: flex;
  min-width: 0;
  min-height: 74px;
  margin-bottom: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bsmi-crm-nurture-view-head > div { min-width: 0; }
.bsmi-crm-nurture-view-head h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-nurture-view-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-nurture-view-head > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 9px; }
.bsmi-crm-nurture-view-head > button { flex: 0 0 auto; min-height: 36px; }

.bsmi-crm-nurture-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, .7fr));
  margin-bottom: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  gap: 8px;
}

.bsmi-crm-nurture-filters label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-nurture-filters label > span { margin-bottom: 4px; color: #585e64; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-nurture-filters input,
.bsmi-crm-nurture-filters select { width: 100%; min-width: 0; min-height: 38px; }

.bsmi-crm-nurture-table table,
.bsmi-crm-nurture-ledger table { min-width: 980px; }
.bsmi-crm-nurture-table td > strong,
.bsmi-crm-nurture-ledger td > strong { display: block; font-size: 10px; }
.bsmi-crm-nurture-table td > small,
.bsmi-crm-nurture-ledger td > small { display: block; max-width: 310px; margin-top: 4px; color: var(--bsmi-muted); font-size: 8px; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-nurture-table td > button,
.bsmi-crm-nurture-ledger td > button { padding: 0; color: #735b27; background: transparent; border: 0; font-size: 10px; font-weight: 800; text-align: left; }
.bsmi-crm-nurture-table td:last-child > button { min-height: 32px; padding: 0 10px; color: #fff; background: #202326; border: 1px solid #202326; }

.bsmi-crm-nurture-progress { display: block; width: 100%; max-width: 210px; height: 3px; margin-top: 7px; overflow: hidden; background: #e7e9ea; }
.bsmi-crm-nurture-progress i { display: block; height: 100%; background: var(--bsmi-gold-dark); }
.bsmi-crm-nurture-status,
.bsmi-crm-nurture-event-status { display: inline-flex; min-height: 22px; padding: 0 7px; color: #555b60; background: #eceeed; font-size: 7px; font-weight: 850; text-transform: uppercase; align-items: center; }
.bsmi-crm-nurture-status.is-active,
.bsmi-crm-nurture-event-status.is-completed { color: #236545; background: #e5f1ea; }
.bsmi-crm-nurture-status.is-paused { color: #755712; background: #f7f0dc; }
.bsmi-crm-nurture-status.is-blocked,
.bsmi-crm-nurture-event-status.is-blocked { color: #8d3434; background: #f7e8e8; }
.bsmi-crm-nurture-status.is-exited { color: #465d6a; background: #eaf0f3; }
.bsmi-crm-nurture-event-status.is-awaiting-human-action { color: #795710; background: #f7f0db; }

.bsmi-crm-nurture-boundary,
.bsmi-crm-nurture-form-boundary {
  margin-top: 12px;
  padding: 13px 15px;
  background: #f2efe6;
  border-left: 3px solid var(--bsmi-gold);
}
.bsmi-crm-nurture-boundary strong,
.bsmi-crm-nurture-form-boundary strong { display: block; font-size: 10px; }
.bsmi-crm-nurture-boundary p,
.bsmi-crm-nurture-form-boundary p { margin: 4px 0 0; color: #62615a; font-size: 9px; line-height: 1.5; }

.bsmi-crm-nurture-sequences { display: grid; gap: 9px; }
.bsmi-crm-nurture-sequence { min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); border-left: 4px solid #8d9297; border-radius: 4px; }
.bsmi-crm-nurture-sequence.is-active { border-left-color: var(--bsmi-green); }
.bsmi-crm-nurture-sequence.is-draft { border-left-color: var(--bsmi-gold); }
.bsmi-crm-nurture-sequence.is-paused { border-left-color: var(--bsmi-amber); }
.bsmi-crm-nurture-sequence > header { display: grid; grid-template-columns: minmax(0, 1fr) 240px; min-width: 0; padding: 15px 16px; border-bottom: 1px solid var(--bsmi-line); gap: 20px; }
.bsmi-crm-nurture-sequence > header > div { min-width: 0; }
.bsmi-crm-nurture-sequence > header span { color: var(--bsmi-gold-dark); font-size: 7px; font-weight: 850; }
.bsmi-crm-nurture-sequence h3 { margin: 4px 0; font-size: 13px; overflow-wrap: anywhere; }
.bsmi-crm-nurture-sequence > header p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }
.bsmi-crm-nurture-sequence > header dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-sequence > header dl > div { min-width: 0; padding: 8px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-sequence > header dl > div:last-child { border-right: 0; }
.bsmi-crm-nurture-sequence dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-nurture-sequence dd { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
.bsmi-crm-nurture-sequence-contract { display: grid; grid-template-columns: 1.25fr 1fr 1fr .6fr; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-sequence-contract > span { min-width: 0; padding: 9px 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-sequence-contract > span:last-child { border-right: 0; }
.bsmi-crm-nurture-sequence-contract small { display: block; color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-nurture-sequence-contract strong { display: block; margin-top: 3px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-nurture-filter-chips { display: flex; padding: 9px 12px 3px; flex-wrap: wrap; gap: 5px; }
.bsmi-crm-nurture-filter-chips span { padding: 4px 6px; color: #5d6267; background: #f1f2f2; font-size: 7px; }
.bsmi-crm-nurture-step-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 9px 12px 12px; list-style: none; gap: 7px; }
.bsmi-crm-nurture-step-line li { display: grid; grid-template-columns: 24px minmax(0, 1fr); min-width: 0; min-height: 54px; padding: 8px; background: #f7f8f8; border: 1px solid var(--bsmi-line); align-items: start; gap: 8px; }
.bsmi-crm-nurture-step-line li > span { display: grid; width: 24px; height: 24px; color: #fff; background: #25282b; font-size: 8px; place-items: center; }
.bsmi-crm-nurture-step-line li div { min-width: 0; }
.bsmi-crm-nurture-step-line strong { display: block; font-size: 9px; line-height: 1.3; }
.bsmi-crm-nurture-step-line small { display: block; margin-top: 4px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.35; }
.bsmi-crm-nurture-sequence > footer { display: flex; min-width: 0; padding: 9px 12px; border-top: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-nurture-sequence > footer > small { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-nurture-sequence > footer > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.bsmi-crm-nurture-sequence > footer button { min-height: 32px; padding-inline: 10px; font-size: 8px; }

.bsmi-crm-nurture-ledger td > span:not(.bsmi-crm-nurture-event-status) { display: block; max-width: 360px; color: #51575c; font-size: 8px; line-height: 1.45; }
.bsmi-crm-nurture-event-status { margin-top: 5px; }

.bsmi-crm-nurture-capabilities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-capabilities article { min-width: 0; min-height: 108px; padding: 13px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-capabilities article:last-child { border-right: 0; }
.bsmi-crm-nurture-capabilities article header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bsmi-crm-nurture-capabilities article header span { min-width: 0; font-size: 9px; font-weight: 850; }
.bsmi-crm-nurture-capabilities article header strong { flex: 0 0 auto; padding: 4px 5px; color: #666b70; background: #eceeed; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-nurture-capabilities article.is-live header strong { color: #216444; background: #e5f1ea; }
.bsmi-crm-nurture-capabilities article.is-review-only header strong { color: #795710; background: #f7f0db; }
.bsmi-crm-nurture-capabilities article p { margin: 10px 0 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }

.bsmi-crm-nurture-guardrails { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-guardrails > div { padding: 18px; background: #1c1f22; }
.bsmi-crm-nurture-guardrails > div h2 { margin: 6px 0 5px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-nurture-guardrails > div p { margin: 0; color: #c1c5c9; font-size: 8px; line-height: 1.5; }
.bsmi-crm-nurture-guardrails dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.bsmi-crm-nurture-guardrails dl > div { position: relative; min-width: 0; min-height: 78px; padding: 12px 72px 12px 13px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-guardrails dt { font-size: 9px; font-weight: 800; }
.bsmi-crm-nurture-guardrails dd { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }
.bsmi-crm-nurture-guardrails dl span { position: absolute; top: 12px; right: 10px; padding: 4px 5px; color: #236545; background: #e5f1ea; font-size: 6px; font-weight: 850; text-transform: uppercase; }

.bsmi-crm-nurture-sequence-form { min-width: 0; }
.bsmi-crm-nurture-exits,
.bsmi-crm-nurture-step-builder { min-width: 0; margin: 0 0 12px; padding: 14px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-exits legend,
.bsmi-crm-nurture-step-builder legend { padding: 0 5px; font-size: 10px; font-weight: 800; }
.bsmi-crm-nurture-exits > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.bsmi-crm-nurture-exits label { display: flex; min-width: 0; min-height: 44px; padding: 8px; background: #f6f7f7; border: 1px solid var(--bsmi-line); align-items: center; gap: 8px; }
.bsmi-crm-nurture-exits input { width: 16px; height: 16px; flex: 0 0 auto; }
.bsmi-crm-nurture-exits span { font-size: 8px; font-weight: 750; }
.bsmi-crm-nurture-check { display: flex !important; min-width: 0; min-height: 58px; padding: 9px; background: #f5f6f6; border: 1px solid var(--bsmi-line); align-items: flex-start; flex-direction: row !important; gap: 8px; }
.bsmi-crm-nurture-check input { width: 16px !important; height: 16px; margin-top: 1px; flex: 0 0 auto; }
.bsmi-crm-nurture-check span { min-width: 0; }
.bsmi-crm-nurture-check strong { display: block; font-size: 8px; }
.bsmi-crm-nurture-check small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.35; }
.bsmi-crm-nurture-step-builder-head { display: flex; min-width: 0; margin-bottom: 9px; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-nurture-step-builder-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-nurture-step-builder-head button { min-height: 36px; }
.bsmi-crm-nurture-step-builder [data-nurture-step-list] { display: grid; gap: 8px; }
.bsmi-crm-nurture-step-editor { min-width: 0; background: #f7f8f8; border: 1px solid var(--bsmi-line); }
.bsmi-crm-nurture-step-editor > header { display: flex; min-height: 36px; padding: 7px 9px; background: #26292c; align-items: center; justify-content: space-between; }
.bsmi-crm-nurture-step-editor > header span { color: var(--bsmi-gold); font-size: 7px; font-weight: 850; }
.bsmi-crm-nurture-step-editor > header button { min-height: 26px; padding-inline: 7px; color: #fff; background: transparent; border-color: #555a5f; font-size: 7px; }
.bsmi-crm-nurture-step-editor > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; gap: 8px; }
.bsmi-crm-nurture-step-editor label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-nurture-step-editor label.is-wide { grid-column: 1 / -1; }
.bsmi-crm-nurture-step-editor label > span { margin-bottom: 4px; color: #53595f; font-size: 7px; font-weight: 750; }
.bsmi-crm-nurture-step-editor input:not([type="checkbox"]),
.bsmi-crm-nurture-step-editor select,
.bsmi-crm-nurture-step-editor textarea { width: 100%; min-width: 0; }

.bsmi-crm-nurture-drawer-hero { display: flex; min-width: 0; margin-bottom: 12px; padding: 18px; color: #fff; background: #222528; border-left: 4px solid var(--bsmi-gold); align-items: flex-start; justify-content: space-between; gap: 18px; }
.bsmi-crm-nurture-drawer-hero.is-active { border-left-color: #4f9872; }
.bsmi-crm-nurture-drawer-hero.is-blocked { background: #492323; border-left-color: #c65d5d; }
.bsmi-crm-nurture-drawer-hero.is-paused { background: #4a3c1f; border-left-color: #c89a3e; }
.bsmi-crm-nurture-drawer-hero span { color: var(--bsmi-gold); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-nurture-drawer-hero h3 { margin: 7px 0 0; max-width: 520px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; line-height: 1.25; }
.bsmi-crm-nurture-drawer-hero p { margin: 5px 0 0; color: #c8cbd0; font-size: 8px; }
.bsmi-crm-nurture-drawer-hero > strong { display: grid; width: 42px; height: 42px; color: #1a1c1e; background: var(--bsmi-gold); font-family: Georgia, "Times New Roman", serif; font-size: 14px; place-items: center; }
.bsmi-crm-nurture-drawer-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.bsmi-crm-nurture-drawer-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--bsmi-line); align-items: center; gap: 9px; }
.bsmi-crm-nurture-drawer-steps li > span { display: grid; width: 28px; height: 28px; color: #fff; background: #777d82; font-size: 8px; place-items: center; }
.bsmi-crm-nurture-drawer-steps li.is-complete > span { background: var(--bsmi-green); }
.bsmi-crm-nurture-drawer-steps li.is-current > span { color: #1a1c1e; background: var(--bsmi-gold); }
.bsmi-crm-nurture-drawer-steps li div { min-width: 0; }
.bsmi-crm-nurture-drawer-steps strong { display: block; font-size: 9px; }
.bsmi-crm-nurture-drawer-steps small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-nurture-drawer-steps em { color: var(--bsmi-muted); font-size: 7px; font-style: normal; text-transform: uppercase; }
.bsmi-crm-nurture-drawer-events { display: grid; margin-top: 8px; }
.bsmi-crm-nurture-drawer-events article { display: grid; grid-template-columns: 130px minmax(0, 1fr); min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--bsmi-line); gap: 10px; }
.bsmi-crm-nurture-drawer-events time { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-nurture-drawer-events strong { font-size: 8px; }
.bsmi-crm-nurture-drawer-events p { margin: 3px 0 0; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }

@media (max-width: 1180px) {
  .bsmi-crm-nurture-command { grid-template-columns: 1fr; }
  .bsmi-crm-nurture-command dl { border-top: 1px solid #33373b; border-left: 0; }
  .bsmi-crm-nurture-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-nurture-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-nurture-capabilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-nurture-capabilities article:nth-child(3n) { border-right: 0; }
  .bsmi-crm-nurture-capabilities article:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-nurture-guardrails { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-nurture-tabs) { padding-inline: 10px; }
  .bsmi-crm-nurture-command { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-nurture-command > div { padding: 22px 16px; }
  .bsmi-crm-nurture-command h2 { font-size: 24px; }
  .bsmi-crm-nurture-command dl > div { padding: 14px 8px; }
  .bsmi-crm-nurture-command dd { font-size: 18px; }
  .bsmi-crm-nurture-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-nurture-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-nurture-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-nurture-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-nurture-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-nurture-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-nurture-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-nurture-view-head,
  .bsmi-crm-nurture-filters,
  .bsmi-crm-content:has(.bsmi-crm-nurture-tabs) > .bsmi-crm-section,
  .bsmi-crm-nurture-capabilities,
  .bsmi-crm-nurture-guardrails { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-nurture-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-nurture-view-head > button { width: 100%; min-height: 44px; }
  .bsmi-crm-nurture-filters { grid-template-columns: 1fr; }
  .bsmi-crm-nurture-filters .is-search { grid-column: auto; }
  .bsmi-crm-nurture-filters input,
  .bsmi-crm-nurture-filters select { min-height: 44px; }
  .bsmi-crm-nurture-table table,
  .bsmi-crm-nurture-table tbody,
  .bsmi-crm-nurture-ledger table,
  .bsmi-crm-nurture-ledger tbody { display: block; min-width: 0; }
  .bsmi-crm-nurture-table thead,
  .bsmi-crm-nurture-ledger thead { display: none; }
  .bsmi-crm-nurture-table tr,
  .bsmi-crm-nurture-ledger tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-nurture-table td,
  .bsmi-crm-nurture-ledger td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-nurture-table td::before,
  .bsmi-crm-nurture-ledger td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-nurture-table td:nth-child(2),
  .bsmi-crm-nurture-table td:last-child,
  .bsmi-crm-nurture-ledger td:nth-child(2),
  .bsmi-crm-nurture-ledger td:nth-child(5) { grid-column: 1 / -1; }
  .bsmi-crm-nurture-table td:last-child > button { width: 100%; min-height: 44px; }
  .bsmi-crm-nurture-sequence { margin-inline: -10px; border-right: 0; border-radius: 0; }
  .bsmi-crm-nurture-sequence > header { grid-template-columns: 1fr; padding: 14px 12px; }
  .bsmi-crm-nurture-sequence-contract { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-nurture-sequence-contract > span:nth-child(2n) { border-right: 0; }
  .bsmi-crm-nurture-sequence-contract > span:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-nurture-step-line { grid-template-columns: 1fr; }
  .bsmi-crm-nurture-sequence > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-nurture-sequence > footer > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-nurture-sequence > footer button { min-height: 44px; }
  .bsmi-crm-nurture-capabilities { grid-template-columns: 1fr; }
  .bsmi-crm-nurture-capabilities article,
  .bsmi-crm-nurture-capabilities article:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-nurture-capabilities article:last-child { border-bottom: 0; }
  .bsmi-crm-nurture-guardrails dl { grid-template-columns: 1fr; }
  .bsmi-crm-nurture-guardrails dl > div { border-right: 0; }
  .bsmi-crm-nurture-exits > div,
  .bsmi-crm-nurture-step-editor > div { grid-template-columns: 1fr; }
  .bsmi-crm-nurture-step-editor label.is-wide { grid-column: auto; }
  .bsmi-crm-nurture-step-builder-head { align-items: stretch; flex-direction: column; }
  .bsmi-crm-nurture-step-builder-head button,
  .bsmi-crm-nurture-sequence-form button,
  .bsmi-crm-nurture-sequence-form input:not([type="checkbox"]),
  .bsmi-crm-nurture-sequence-form select,
  .bsmi-crm-nurture-sequence-form textarea,
  .bsmi-crm-nurture-step-editor input:not([type="checkbox"]),
  .bsmi-crm-nurture-step-editor select,
  .bsmi-crm-nurture-step-editor textarea { min-height: 44px; }
  .bsmi-crm-nurture-step-editor > header { min-height: 54px; }
  .bsmi-crm-nurture-step-editor > header button { min-height: 44px; }
  .bsmi-crm-drawer:has(.bsmi-crm-nurture-drawer-hero),
  .bsmi-crm-drawer:has(.bsmi-crm-nurture-sequence-form) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-nurture-drawer-hero { flex-direction: column; }
  .bsmi-crm-nurture-drawer-events article { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-app .bsmi-crm-content:has(.bsmi-crm-message-tabs) > .bsmi-crm-page-head button { min-height: 44px; }
  .bsmi-crm-app .bsmi-crm-message-view-head > button { min-height: 44px; }
  .bsmi-crm-app .bsmi-crm-message-tabs button { min-height: 48px; padding: 0 14px; border-width: 0 1px 1px 0; border-color: var(--bsmi-line); border-radius: 0; }
  .bsmi-crm-app .bsmi-crm-message-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-app .bsmi-crm-message-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-app .bsmi-crm-message-tabs button:last-child { grid-column: auto; border-right: 0; border-bottom: 0; }
}

/* KYC and AML Operations */
.bsmi-crm-aml-command {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, .8fr);
  min-width: 0;
  margin-bottom: 12px;
  color: #fff;
  background: #121416;
  border: 1px solid #2f3235;
}

.bsmi-crm-aml-command > div {
  align-self: center;
  max-width: 830px;
  padding: 28px 30px;
}

.bsmi-crm-aml-command > div > small,
.bsmi-crm-aml-view-head small,
.bsmi-crm-aml-restricted > small {
  color: var(--bsmi-gold);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.bsmi-crm-aml-command h2 {
  margin: 7px 0 9px;
  max-width: 720px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.1;
}

.bsmi-crm-aml-command p {
  max-width: 760px;
  margin: 0;
  color: #c2c6ca;
  font-size: 9px;
  line-height: 1.65;
}

.bsmi-crm-aml-command dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid #34383b;
}

.bsmi-crm-aml-command dl > div {
  display: flex;
  min-width: 0;
  padding: 24px 13px;
  border-right: 1px solid #34383b;
  flex-direction: column;
  justify-content: center;
}

.bsmi-crm-aml-command dl > div:last-child { border-right: 0; }
.bsmi-crm-aml-command dt { color: #9ca1a6; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-aml-command dd { margin: 7px 0 3px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.bsmi-crm-aml-command dl small { color: #adb2b6; font-size: 7px; line-height: 1.4; }

.bsmi-crm-aml-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-kpis article {
  min-width: 0;
  min-height: 82px;
  padding: 14px 16px;
  border-right: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-kpis article:last-child { border-right: 0; }
.bsmi-crm-aml-kpis span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-aml-kpis strong { display: block; margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-aml-kpis small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-aml-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-tabs button {
  display: flex;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  color: #565c62;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bsmi-crm-aml-tabs button:last-child { border-right: 0; }
.bsmi-crm-aml-tabs button span { min-width: 0; overflow: hidden; font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-aml-tabs button strong { display: grid; width: 24px; height: 24px; flex: 0 0 24px; color: #5c6267; background: #eceeed; border-radius: 50%; font-size: 8px; place-items: center; }
.bsmi-crm-aml-tabs button.is-active { color: #fff; background: #1a1d20; }
.bsmi-crm-aml-tabs button.is-active strong { color: #1b1d1f; background: var(--bsmi-gold); }

.bsmi-crm-aml-view-head {
  display: flex;
  min-width: 0;
  min-height: 75px;
  margin-bottom: 8px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.bsmi-crm-aml-view-head > div { min-width: 0; }
.bsmi-crm-aml-view-head h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.bsmi-crm-aml-view-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-aml-view-head > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-aml-view-head > button { flex: 0 0 auto; min-height: 36px; }

.bsmi-crm-aml-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(150px, .7fr));
  margin-bottom: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  gap: 8px;
}

.bsmi-crm-aml-filters.is-screening { grid-template-columns: minmax(260px, 1fr) minmax(190px, .35fr); }
.bsmi-crm-aml-filters.is-reporting { grid-template-columns: minmax(220px, .4fr) minmax(180px, 1fr); }
.bsmi-crm-aml-filters label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-aml-filters label > span { margin-bottom: 4px; color: #5a6066; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-aml-filters input,
.bsmi-crm-aml-filters select { width: 100%; min-width: 0; min-height: 37px; }
.bsmi-crm-aml-filter-note { display: flex; min-width: 0; min-height: 37px; align-self: end; align-items: center; justify-content: flex-end; gap: 7px; }
.bsmi-crm-aml-filter-note strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-aml-filter-note span { color: var(--bsmi-muted); font-size: 8px; }

.bsmi-crm-aml-table-section {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-table { min-width: 1040px; table-layout: fixed; }
.bsmi-crm-aml-table th { color: #676d72; background: #f5f6f6; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-aml-table th:nth-child(1) { width: 14%; }
.bsmi-crm-aml-table th:nth-child(2) { width: 15%; }
.bsmi-crm-aml-table th:nth-child(3) { width: 11%; }
.bsmi-crm-aml-table th:last-child { width: 74px; }
.bsmi-crm-aml-table td { min-width: 0; vertical-align: middle; }
.bsmi-crm-aml-table td > strong:not(.bsmi-crm-aml-score) { display: block; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-aml-table td > span { display: block; margin-top: 3px; overflow: hidden; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; text-overflow: ellipsis; }
.bsmi-crm-aml-table td > strong.is-overdue { color: var(--bsmi-red); }
.bsmi-crm-aml-table td:last-child button { min-width: 54px; min-height: 31px; padding-inline: 8px; font-size: 8px; }

.bsmi-crm-aml-pill {
  display: inline-flex;
  max-width: 100%;
  min-height: 23px;
  margin: 2px 4px 2px 0;
  padding: 4px 7px;
  color: #555b61;
  background: #eceeed;
  border-radius: 3px;
  align-items: center;
  font-size: 7px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.bsmi-crm-aml-pill.is-clear { color: #1e6745; background: #e4f1e9; }
.bsmi-crm-aml-pill.is-attention { color: #7b5711; background: #f7efd8; }
.bsmi-crm-aml-pill.is-high { color: #8e3d26; background: #f7e9e2; }
.bsmi-crm-aml-pill.is-critical { color: #8f2d32; background: #f7e3e4; }
.bsmi-crm-aml-pill.is-muted { color: #596167; background: #edf0f1; }

.bsmi-crm-aml-score {
  display: inline-grid;
  width: 31px;
  height: 31px;
  margin-right: 4px;
  color: #fff;
  background: #697178;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 500;
  place-items: center;
}

.bsmi-crm-aml-score.is-clear { background: var(--bsmi-green); }
.bsmi-crm-aml-score.is-attention { background: var(--bsmi-amber); }
.bsmi-crm-aml-score.is-high { background: #ad5734; }
.bsmi-crm-aml-score.is-critical { background: var(--bsmi-red); }

.bsmi-crm-aml-progress { position: relative; width: 100%; max-width: 94px; height: 4px; margin-bottom: 5px; overflow: hidden; background: #e4e6e7; }
.bsmi-crm-aml-progress i { display: block; width: var(--aml-progress); height: 100%; background: var(--bsmi-green); }
.bsmi-crm-aml-empty { margin: 0; padding: 28px 16px; color: var(--bsmi-muted); font-size: 9px; text-align: center; }

.bsmi-crm-aml-notice {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  margin-bottom: 8px;
  padding: 12px 14px;
  background: #f3f0e7;
  border-left: 3px solid var(--bsmi-gold);
  align-items: center;
  gap: 12px;
}

.bsmi-crm-aml-notice.is-restricted { color: #fff; background: #272326; border-left-color: #b55252; }
.bsmi-crm-aml-notice strong { font-size: 9px; }
.bsmi-crm-aml-notice p { margin: 0; color: inherit; font-size: 8px; line-height: 1.5; opacity: .82; }

.bsmi-crm-aml-restricted {
  min-height: 320px;
  padding: 44px 36px;
  color: #fff;
  background: #1b1d20;
  border-left: 5px solid var(--bsmi-gold);
}

.bsmi-crm-aml-restricted h2 { max-width: 600px; margin: 10px 0 9px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-aml-restricted p { max-width: 680px; margin: 0; color: #c4c8cc; font-size: 9px; line-height: 1.6; }

.bsmi-crm-aml-control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-control-band { min-width: 0; padding: 17px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-control-band:last-child { border-right: 0; }
.bsmi-crm-aml-control-band > header h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-aml-control-band > header p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-aml-control-list { display: grid; margin-top: 12px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-control-list > div { display: grid; grid-template-columns: 8px minmax(0, 1fr); padding: 9px 0; border-bottom: 1px solid var(--bsmi-line); align-items: start; gap: 9px; }
.bsmi-crm-aml-control-list i { width: 7px; height: 7px; margin-top: 3px; background: #81878d; border-radius: 50%; }
.bsmi-crm-aml-control-list i.is-pass { background: var(--bsmi-green); }
.bsmi-crm-aml-control-list i.is-blocked { background: var(--bsmi-red); }
.bsmi-crm-aml-control-list i.is-neutral { background: var(--bsmi-gold); }
.bsmi-crm-aml-control-list span { min-width: 0; }
.bsmi-crm-aml-control-list strong { display: block; font-size: 8px; }
.bsmi-crm-aml-control-list small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; }
.bsmi-crm-aml-risk-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-risk-scale > div { min-width: 0; padding: 12px 8px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-risk-scale > div:last-child { border-right: 0; }
.bsmi-crm-aml-risk-scale strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-aml-risk-scale span { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; overflow-wrap: anywhere; }
.bsmi-crm-aml-control-copy { margin: 12px 0 0; color: #565d63; font-size: 8px; line-height: 1.6; }

.bsmi-crm-aml-policy {
  min-width: 0;
  margin-bottom: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-policy > header { display: flex; min-width: 0; margin-bottom: 12px; align-items: center; justify-content: space-between; gap: 14px; }
.bsmi-crm-aml-policy h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-aml-policy header p { margin: 4px 0 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-aml-policy > header button { min-height: 36px; }
.bsmi-crm-aml-policy > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bsmi-crm-aml-policy label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-aml-policy label.is-wide { grid-column: 1 / -1; }
.bsmi-crm-aml-policy label > span { margin-bottom: 4px; color: #555c62; font-size: 7px; font-weight: 800; }
.bsmi-crm-aml-policy input:not([type="checkbox"]),
.bsmi-crm-aml-policy textarea { width: 100%; min-width: 0; }
.bsmi-crm-aml-policy label.is-check { min-height: 38px; padding: 9px; background: #f6f7f7; border: 1px solid var(--bsmi-line); align-items: center; flex-direction: row; gap: 8px; }
.bsmi-crm-aml-policy label.is-check input { width: 16px; height: 16px; flex: 0 0 auto; }
.bsmi-crm-aml-policy label.is-check span { margin: 0; }

.bsmi-crm-aml-events {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-aml-events > .bsmi-crm-section-head { margin: 0; border: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-events > div:last-child { display: grid; }
.bsmi-crm-aml-events article { display: grid; grid-template-columns: 135px 170px 150px minmax(0, 1fr) 130px; min-width: 0; padding: 9px 12px; border-bottom: 1px solid var(--bsmi-line); align-items: center; gap: 9px; }
.bsmi-crm-aml-events article:last-child { border-bottom: 0; }
.bsmi-crm-aml-events time,
.bsmi-crm-aml-events span,
.bsmi-crm-aml-events p,
.bsmi-crm-aml-events code { min-width: 0; margin: 0; overflow: hidden; color: var(--bsmi-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-aml-events strong { min-width: 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-aml-events code { padding: 4px 5px; color: #41474c; background: #f0f1f1; }

.bsmi-crm-aml-form { min-width: 0; }
.bsmi-crm-aml-form-note { margin: 0 0 12px; padding: 11px 13px; color: #5f594c; background: #f3f0e7; border-left: 3px solid var(--bsmi-gold); font-size: 8px; line-height: 1.5; }
.bsmi-crm-aml-factor-fieldset,
.bsmi-crm-aml-flag-fieldset,
.bsmi-crm-aml-evidence-fieldset,
.bsmi-crm-aml-hold-fieldset { min-width: 0; margin: 0 0 12px; padding: 14px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-factor-fieldset legend,
.bsmi-crm-aml-flag-fieldset legend,
.bsmi-crm-aml-evidence-fieldset legend,
.bsmi-crm-aml-hold-fieldset legend { padding: 0 5px; font-size: 10px; font-weight: 850; }
.bsmi-crm-aml-factor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-aml-factor-grid label,
.bsmi-crm-aml-flag-fieldset > label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-aml-factor-grid span,
.bsmi-crm-aml-flag-fieldset > label > span { margin-bottom: 4px; color: #555c62; font-size: 7px; font-weight: 800; }
.bsmi-crm-aml-factor-fieldset > p { margin: 9px 0 0; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-aml-flag-fieldset > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 9px; gap: 6px; }
.bsmi-crm-aml-flag-fieldset > div label,
.bsmi-crm-aml-hold-fieldset > label { display: flex; min-width: 0; min-height: 37px; padding: 8px; background: #f6f7f7; border: 1px solid var(--bsmi-line); align-items: center; gap: 8px; }
.bsmi-crm-aml-flag-fieldset input[type="checkbox"],
.bsmi-crm-aml-hold-fieldset input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; }
.bsmi-crm-aml-flag-fieldset label span,
.bsmi-crm-aml-hold-fieldset label span { min-width: 0; font-size: 8px; }
.bsmi-crm-aml-evidence-fieldset > div { display: grid; gap: 7px; }
.bsmi-crm-aml-evidence-fieldset > div > div { display: grid; grid-template-columns: minmax(140px, .65fr) minmax(220px, 1fr); gap: 7px; }
.bsmi-crm-aml-evidence-fieldset label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-aml-evidence-fieldset label span { margin-bottom: 4px; color: #555c62; font-size: 7px; font-weight: 800; }

.bsmi-crm-aml-case-drawer { min-width: 0; }
.bsmi-crm-aml-case-banner { display: flex; min-width: 0; margin-bottom: 8px; padding: 18px; color: #fff; background: #1c1f22; border-left: 4px solid var(--bsmi-gold); align-items: flex-start; justify-content: space-between; gap: 18px; }
.bsmi-crm-aml-case-banner > div { min-width: 0; }
.bsmi-crm-aml-case-banner small { color: var(--bsmi-gold); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-aml-case-banner h3 { margin: 6px 0 4px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.bsmi-crm-aml-case-banner p { max-width: 530px; margin: 0; color: #c4c8cb; font-size: 8px; line-height: 1.5; }
.bsmi-crm-aml-case-banner > div:last-child { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 3px; }
.bsmi-crm-aml-case-actions { display: flex; margin-bottom: 8px; padding: 9px; background: #fff; border: 1px solid var(--bsmi-line); flex-wrap: wrap; gap: 6px; }
.bsmi-crm-aml-case-actions button { min-height: 34px; }
.bsmi-crm-aml-no-tip { display: grid; grid-template-columns: 120px minmax(0, 1fr); margin-bottom: 8px; padding: 10px 12px; color: #fff; background: #35282a; border-left: 3px solid #b85353; align-items: center; gap: 10px; }
.bsmi-crm-aml-no-tip strong { font-size: 8px; }
.bsmi-crm-aml-no-tip p { margin: 0; color: #ddd1d2; font-size: 7px; line-height: 1.4; }
.bsmi-crm-aml-case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-case-facts > div { min-width: 0; padding: 10px 11px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-case-facts dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-aml-case-facts dd { margin: 4px 0 0; overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-aml-drawer-section { margin-bottom: 8px; padding: 13px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-drawer-section.is-restricted { border-left: 3px solid #ad5151; }
.bsmi-crm-aml-drawer-section > header { display: flex; min-width: 0; margin-bottom: 9px; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-aml-drawer-section h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-aml-drawer-section > header span { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-aml-chip-list,
.bsmi-crm-aml-flag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.bsmi-crm-aml-chip-list span { padding: 5px 7px; color: #4e555b; background: #eceeed; font-size: 7px; }
.bsmi-crm-aml-flag-list { margin-top: 7px; }
.bsmi-crm-aml-flag-list span { padding: 5px 7px; color: #7f421f; background: #f6e9df; font-size: 7px; }
.bsmi-crm-aml-evidence-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-evidence-list > div { min-width: 0; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-evidence-list strong { display: block; font-size: 8px; text-transform: capitalize; }
.bsmi-crm-aml-evidence-list small { display: block; margin-top: 3px; overflow: hidden; color: var(--bsmi-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-aml-mini-list { display: grid; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-mini-list > div { min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-aml-mini-list strong { display: inline-block; margin-right: 7px; font-size: 8px; }
.bsmi-crm-aml-mini-list > div > span { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-aml-decision-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bsmi-crm-aml-decision-rail button { min-width: 0; min-height: 38px; font-size: 8px; }
.bsmi-crm-aml-decision-rail button:nth-last-child(2) { color: var(--bsmi-red); border-color: #d6a1a3; }
.bsmi-crm-aml-decision-summary { display: grid; grid-template-columns: auto 1fr; margin-bottom: 12px; padding: 11px; background: #f5f6f6; border: 1px solid var(--bsmi-line); align-items: center; gap: 7px 12px; }
.bsmi-crm-aml-decision-summary > span { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }

@media (max-width: 1180px) {
  .bsmi-crm-aml-command { grid-template-columns: 1fr; }
  .bsmi-crm-aml-command dl { border-top: 1px solid #34383b; border-left: 0; }
  .bsmi-crm-aml-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-filters > label:first-child { grid-column: 1 / -1; }
  .bsmi-crm-aml-control-grid { grid-template-columns: 1fr; }
  .bsmi-crm-aml-control-band { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-aml-control-band:last-child { border-bottom: 0; }
  .bsmi-crm-aml-policy > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-events article { grid-template-columns: 120px 150px 130px minmax(0, 1fr); }
  .bsmi-crm-aml-events code { display: none; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-aml-tabs) { padding-inline: 10px; }
  .bsmi-crm-content:has(.bsmi-crm-aml-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-aml-command,
  .bsmi-crm-aml-kpis,
  .bsmi-crm-aml-tabs,
  .bsmi-crm-aml-view-head,
  .bsmi-crm-aml-filters,
  .bsmi-crm-aml-notice,
  .bsmi-crm-aml-table-section,
  .bsmi-crm-aml-control-grid,
  .bsmi-crm-aml-policy,
  .bsmi-crm-aml-events,
  .bsmi-crm-aml-restricted { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-aml-command > div { padding: 22px 16px; }
  .bsmi-crm-aml-command h2 { font-size: 24px; }
  .bsmi-crm-aml-command dl > div { padding: 14px 8px; }
  .bsmi-crm-aml-command dd { font-size: 19px; }
  .bsmi-crm-aml-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-aml-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-aml-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-aml-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-aml-tabs button:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .bsmi-crm-aml-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-aml-view-head > button { width: 100%; min-height: 44px; }
  .bsmi-crm-aml-filters,
  .bsmi-crm-aml-filters.is-screening,
  .bsmi-crm-aml-filters.is-reporting { grid-template-columns: 1fr; }
  .bsmi-crm-aml-filters > label:first-child { grid-column: auto; }
  .bsmi-crm-aml-filters input,
  .bsmi-crm-aml-filters select { min-height: 44px; }
  .bsmi-crm-aml-filter-note { justify-content: flex-start; }
  .bsmi-crm-aml-notice,
  .bsmi-crm-aml-no-tip { grid-template-columns: 1fr; }
  .bsmi-crm-aml-table,
  .bsmi-crm-aml-table tbody { display: block; min-width: 0; }
  .bsmi-crm-aml-table thead { display: none; }
  .bsmi-crm-aml-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-aml-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-aml-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-aml-table td:nth-child(1),
  .bsmi-crm-aml-table td:nth-child(2),
  .bsmi-crm-aml-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-aml-table td:last-child button { width: 100%; min-height: 44px; }
  .bsmi-crm-aml-control-band { padding: 15px 12px; }
  .bsmi-crm-aml-risk-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-risk-scale > div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-aml-risk-scale > div:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-aml-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-aml-policy > header button { min-height: 44px; }
  .bsmi-crm-aml-policy > div { grid-template-columns: 1fr; }
  .bsmi-crm-aml-policy label.is-wide { grid-column: auto; }
  .bsmi-crm-aml-policy input:not([type="checkbox"]),
  .bsmi-crm-aml-policy textarea { min-height: 44px; }
  .bsmi-crm-aml-events article { grid-template-columns: 1fr; padding: 11px 12px; gap: 4px; }
  .bsmi-crm-aml-events time,
  .bsmi-crm-aml-events span,
  .bsmi-crm-aml-events p,
  .bsmi-crm-aml-events strong { white-space: normal; }
  .bsmi-crm-drawer:has(.bsmi-crm-aml-form),
  .bsmi-crm-drawer:has(.bsmi-crm-aml-case-drawer) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-aml-factor-grid,
  .bsmi-crm-aml-flag-fieldset > div { grid-template-columns: 1fr; }
  .bsmi-crm-aml-evidence-fieldset > div > div { grid-template-columns: 1fr; }
  .bsmi-crm-aml-form input:not([type="checkbox"]),
  .bsmi-crm-aml-form select,
  .bsmi-crm-aml-form textarea,
  .bsmi-crm-aml-form button { min-height: 44px; }
  .bsmi-crm-aml-case-banner { flex-direction: column; }
  .bsmi-crm-aml-case-banner > div:last-child { justify-content: flex-start; }
  .bsmi-crm-aml-case-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-case-actions button { min-height: 44px; }
  .bsmi-crm-aml-case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-evidence-list { grid-template-columns: 1fr; }
  .bsmi-crm-aml-decision-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-aml-decision-rail button { min-height: 44px; }
}

@media (max-width: 430px) {
  .bsmi-crm-aml-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-aml-table td { grid-column: auto !important; }
  .bsmi-crm-aml-case-actions,
  .bsmi-crm-aml-case-facts,
  .bsmi-crm-aml-decision-rail { grid-template-columns: 1fr; }
}

/* Portal Lead Intake */
.bsmi-crm-portal-intake-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
  min-width: 0;
  margin-bottom: 8px;
  color: #fff;
  background: #151719;
  border-left: 5px solid #a71930;
}

.bsmi-crm-portal-intake-command > div { min-width: 0; padding: 23px 25px; }
.bsmi-crm-portal-intake-command > div > small { color: #dcad60; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-intake-command h2 { margin: 7px 0 6px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.bsmi-crm-portal-intake-command p { max-width: 660px; margin: 0; color: #c6c9cc; font-size: 8px; line-height: 1.55; }
.bsmi-crm-portal-intake-command dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0; border-left: 1px solid #34373a; }
.bsmi-crm-portal-intake-command dl > div { min-width: 0; padding: 20px 14px; border-right: 1px solid #34373a; }
.bsmi-crm-portal-intake-command dl > div:last-child { border-right: 0; }
.bsmi-crm-portal-intake-command dt { color: #aeb3b7; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-portal-intake-command dd { margin: 7px 0 4px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.bsmi-crm-portal-intake-command dl small { display: block; color: #dcad60; font-size: 7px; line-height: 1.35; }

.bsmi-crm-portal-intake-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-intake-kpis article { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-intake-kpis article:last-child { border-right: 0; }
.bsmi-crm-portal-intake-kpis span { display: block; color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-portal-intake-kpis strong { display: block; margin: 5px 0 2px; color: #151719; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-portal-intake-kpis small { display: block; overflow: hidden; color: #6d747a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }

.bsmi-crm-portal-intake-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-intake-tabs button { display: flex; min-width: 0; min-height: 42px; padding: 8px 11px; color: #4b5156; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; align-items: center; justify-content: space-between; gap: 8px; }
.bsmi-crm-portal-intake-tabs button:last-child { border-right: 0; }
.bsmi-crm-portal-intake-tabs button span { overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-portal-intake-tabs button strong { min-width: 24px; padding: 4px 5px; color: #676e73; background: #eef0ef; font-size: 7px; text-align: center; }
.bsmi-crm-portal-intake-tabs button.is-active { color: #fff; background: #202326; box-shadow: inset 0 -3px #a71930; }
.bsmi-crm-portal-intake-tabs button.is-active strong { color: #1c2023; background: #fff; }

.bsmi-crm-portal-intake-view-head { display: flex; min-width: 0; margin-bottom: 8px; padding: 15px 17px; background: #fff; border: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; gap: 20px; }
.bsmi-crm-portal-intake-view-head > div { min-width: 0; }
.bsmi-crm-portal-intake-view-head small { color: #a71930; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-intake-view-head h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-portal-intake-view-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-portal-intake-view-head > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 7px; }

.bsmi-crm-portal-intake-filters { display: grid; grid-template-columns: minmax(210px, 1.7fr) repeat(5, minmax(105px, .7fr)) minmax(86px, .45fr); min-width: 0; margin-bottom: 8px; padding: 10px; background: #f7f8f7; border: 1px solid var(--bsmi-line); gap: 7px; }
.bsmi-crm-portal-intake-filters label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-portal-intake-filters label > span { margin-bottom: 4px; color: #62696e; font-size: 7px; font-weight: 800; }
.bsmi-crm-portal-intake-filters input,
.bsmi-crm-portal-intake-filters select { width: 100%; min-width: 0; min-height: 36px; }
.bsmi-crm-portal-intake-filter-count { display: flex; min-width: 0; padding: 6px 8px; background: #202326; align-items: center; flex-direction: column; justify-content: center; }
.bsmi-crm-portal-intake-filter-count strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-portal-intake-filter-count span { color: #c9cdcf; font-size: 6px; text-align: center; }

.bsmi-crm-portal-intake-table-section { min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-intake-table,
.bsmi-crm-portal-match-table { min-width: 960px; }
.bsmi-crm-portal-intake-table th,
.bsmi-crm-portal-match-table th { color: #5f666b; background: #f1f3f2; font-size: 7px; }
.bsmi-crm-portal-intake-table td,
.bsmi-crm-portal-match-table td { vertical-align: top; }
.bsmi-crm-portal-intake-table td > strong,
.bsmi-crm-portal-match-table td > strong { display: block; max-width: 220px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-portal-intake-table td > span,
.bsmi-crm-portal-intake-table td > small,
.bsmi-crm-portal-match-table td > span { display: block; max-width: 240px; margin-top: 3px; overflow: hidden; color: var(--bsmi-muted); font-size: 7px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-portal-intake-table td > .bsmi-crm-portal-pill,
.bsmi-crm-portal-match-table td > .bsmi-crm-portal-pill { display: inline-flex; margin-top: 5px; }
.bsmi-crm-portal-intake-table td:last-child button,
.bsmi-crm-portal-match-table td:last-child button { min-height: 32px; padding: 6px 10px; }
.bsmi-crm-portal-intake-empty { margin: 0; padding: 25px; color: var(--bsmi-muted); font-size: 8px; text-align: center; }

.bsmi-crm-portal-pill { display: inline-flex; max-width: 100%; min-height: 21px; padding: 4px 7px; font-size: 7px; font-style: normal; font-weight: 850; line-height: 1.3; align-items: center; overflow-wrap: anywhere; }
.bsmi-crm-portal-pill.is-clear { color: #275c48; background: #def0e8; }
.bsmi-crm-portal-pill.is-attention { color: #705220; background: #f5e9c9; }
.bsmi-crm-portal-pill.is-high { color: #8a4b20; background: #f5e2d5; }
.bsmi-crm-portal-pill.is-critical { color: #852d3b; background: #f4dfe3; }
.bsmi-crm-portal-pill.is-muted { color: #596166; background: #e9eceb; }

.bsmi-crm-portal-connectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; gap: 8px; }
.bsmi-crm-portal-connectors article { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--bsmi-line); border-top: 3px solid #202326; }
.bsmi-crm-portal-connectors article > header { display: flex; min-width: 0; margin-bottom: 12px; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bsmi-crm-portal-connectors article small { color: #a71930; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-connectors h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-portal-connectors dl,
.bsmi-crm-portal-endpoint dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; margin: 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-connectors dl > div,
.bsmi-crm-portal-endpoint dl > div { min-width: 0; padding: 9px 9px 9px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-connectors dt,
.bsmi-crm-portal-endpoint dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-portal-connectors dd,
.bsmi-crm-portal-endpoint dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 8px; font-weight: 750; line-height: 1.45; }
.bsmi-crm-portal-endpoint { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); min-width: 0; padding: 16px; color: #fff; background: #202326; border-left: 4px solid #dcad60; align-items: center; gap: 20px; }
.bsmi-crm-portal-endpoint small { display: block; color: #dcad60; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-endpoint strong { display: block; margin: 6px 0 4px; overflow-wrap: anywhere; font-size: 9px; }
.bsmi-crm-portal-endpoint span { color: #c3c8cb; font-size: 7px; }
.bsmi-crm-portal-endpoint dl { border-top-color: #44484b; }
.bsmi-crm-portal-endpoint dl > div { border-bottom-color: #44484b; }
.bsmi-crm-portal-endpoint dt { color: #aeb5b9; }

.bsmi-crm-portal-exceptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 8px; }
.bsmi-crm-portal-exceptions article { min-width: 0; padding: 15px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid #a71930; }
.bsmi-crm-portal-exceptions article > header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bsmi-crm-portal-exceptions header > div { min-width: 0; }
.bsmi-crm-portal-exceptions header small { color: #7b3c46; font-size: 7px; font-weight: 800; }
.bsmi-crm-portal-exceptions h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-portal-exceptions article > p { min-height: 34px; margin: 10px 0; color: #555d62; font-size: 8px; line-height: 1.55; }
.bsmi-crm-portal-exceptions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-exceptions dl > div { min-width: 0; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-exceptions dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-portal-exceptions dd { margin: 3px 0 0; overflow: hidden; font-size: 8px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-portal-exceptions footer { display: flex; margin-top: 11px; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.bsmi-crm-portal-exceptions footer button { min-height: 34px; }

.bsmi-crm-portal-control-grid { display: grid; grid-template-columns: minmax(290px, .82fr) minmax(0, 1.18fr); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-control-band { min-width: 0; padding: 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-control-band > header,
.bsmi-crm-portal-policy > header,
.bsmi-crm-portal-events > header { display: flex; min-width: 0; margin-bottom: 11px; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-portal-control-band h3,
.bsmi-crm-portal-policy h3,
.bsmi-crm-portal-events h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-portal-control-band header span,
.bsmi-crm-portal-policy header span,
.bsmi-crm-portal-events header span { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-portal-control-list { display: grid; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-control-list > div { display: grid; grid-template-columns: 8px minmax(0, 1fr); padding: 8px 0; border-bottom: 1px solid var(--bsmi-line); align-items: start; gap: 9px; }
.bsmi-crm-portal-control-list i { width: 7px; height: 7px; margin-top: 3px; background: #868c91; border-radius: 50%; }
.bsmi-crm-portal-control-list i.is-pass { background: var(--bsmi-green); }
.bsmi-crm-portal-control-list i.is-blocked { background: var(--bsmi-red); }
.bsmi-crm-portal-control-list i.is-neutral { background: #c28d34; }
.bsmi-crm-portal-control-list strong { display: block; font-size: 8px; }
.bsmi-crm-portal-control-list small { display: block; margin-top: 3px; color: var(--bsmi-muted); font-size: 7px; line-height: 1.45; }
.bsmi-crm-portal-policy { min-width: 0; padding: 16px; }
.bsmi-crm-portal-policy > header button { min-height: 36px; }
.bsmi-crm-portal-policy > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.bsmi-crm-portal-policy label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-portal-policy label.is-wide { grid-column: 1 / -1; }
.bsmi-crm-portal-policy label > span { margin-bottom: 4px; color: #5d6469; font-size: 7px; font-weight: 800; }
.bsmi-crm-portal-policy input:not([type="checkbox"]),
.bsmi-crm-portal-policy textarea { width: 100%; min-width: 0; }
.bsmi-crm-portal-policy label.is-check { min-height: 38px; padding: 9px; background: #f5f6f6; border: 1px solid var(--bsmi-line); align-items: center; flex-direction: row; gap: 8px; }
.bsmi-crm-portal-policy label.is-check input { width: 16px; height: 16px; flex: 0 0 auto; }
.bsmi-crm-portal-policy label.is-check span { margin: 0; }
.bsmi-crm-portal-policy.is-readonly dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-policy.is-readonly dl > div { min-width: 0; padding: 10px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-policy.is-readonly dt { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-portal-policy.is-readonly dd { margin: 4px 0 0; font-size: 8px; font-weight: 800; }

.bsmi-crm-portal-events { min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-events > header { margin: 0; padding: 13px 15px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-events > header small { color: #a71930; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-events > div { display: grid; }
.bsmi-crm-portal-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) 135px; min-width: 0; padding: 9px 13px; border-bottom: 1px solid var(--bsmi-line); align-items: start; gap: 10px; }
.bsmi-crm-portal-events article:last-child { border-bottom: 0; }
.bsmi-crm-portal-events article > i { width: 7px; height: 7px; margin-top: 3px; background: #a71930; border-radius: 50%; }
.bsmi-crm-portal-events article > div { min-width: 0; }
.bsmi-crm-portal-events article strong { display: inline-block; margin-right: 7px; font-size: 8px; }
.bsmi-crm-portal-events article span { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-portal-events article p { margin: 3px 0 0; overflow: hidden; color: #60676c; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-portal-events time { color: var(--bsmi-muted); font-size: 7px; text-align: right; }

.bsmi-crm-portal-record { min-width: 0; }
.bsmi-crm-portal-record > header { display: flex; min-width: 0; margin-bottom: 8px; padding: 18px; color: #fff; background: #1b1e20; border-left: 4px solid #a71930; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bsmi-crm-portal-record > header > div { min-width: 0; }
.bsmi-crm-portal-record > header small { color: #dcad60; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-record > header h3 { margin: 6px 0 4px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.bsmi-crm-portal-record > header p { margin: 0; color: #c5c9cb; font-size: 8px; }
.bsmi-crm-portal-record > header > div:last-child { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.bsmi-crm-portal-record-actions { display: flex; margin-bottom: 8px; padding: 9px; background: #fff; border: 1px solid var(--bsmi-line); flex-wrap: wrap; gap: 6px; }
.bsmi-crm-portal-record-actions button { min-height: 34px; }
.bsmi-crm-portal-record-message,
.bsmi-crm-portal-record-resolution { margin-bottom: 8px; padding: 13px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-record-message small { color: #a71930; font-size: 7px; font-weight: 850; }
.bsmi-crm-portal-record-message p,
.bsmi-crm-portal-record-resolution p { margin: 7px 0 0; color: #50575c; font-size: 8px; line-height: 1.6; white-space: pre-wrap; }
.bsmi-crm-portal-record-resolution { border-left: 3px solid #dcad60; }
.bsmi-crm-portal-record-resolution strong { font-size: 8px; }
.bsmi-crm-portal-record-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0 0 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-record-facts > div { min-width: 0; padding: 10px 11px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-portal-record-facts dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-portal-record-facts dd { margin: 4px 0 0; overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-portal-form-note { margin: 0 0 12px; padding: 11px 13px; color: #5f594c; background: #f3f0e7; border-left: 3px solid #dcad60; font-size: 8px; line-height: 1.5; }
.bsmi-crm-portal-match-summary { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr); margin-bottom: 12px; padding: 11px; background: #f5f6f6; border: 1px solid var(--bsmi-line); align-items: center; gap: 8px 12px; }
.bsmi-crm-portal-match-summary > span { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-portal-match-summary > strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .bsmi-crm-portal-intake-command { grid-template-columns: 1fr; }
  .bsmi-crm-portal-intake-command dl { border-top: 1px solid #34373a; border-left: 0; }
  .bsmi-crm-portal-intake-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-portal-intake-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-portal-control-grid { grid-template-columns: 1fr; }
  .bsmi-crm-portal-control-band { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-endpoint { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-portal-intake-tabs) { padding-inline: 10px; }
  .bsmi-crm-content:has(.bsmi-crm-portal-intake-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-portal-intake-command,
  .bsmi-crm-portal-intake-kpis,
  .bsmi-crm-portal-intake-tabs,
  .bsmi-crm-portal-intake-view-head,
  .bsmi-crm-portal-intake-filters,
  .bsmi-crm-portal-intake-table-section,
  .bsmi-crm-portal-connectors,
  .bsmi-crm-portal-endpoint,
  .bsmi-crm-portal-exceptions,
  .bsmi-crm-portal-control-grid,
  .bsmi-crm-portal-events { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-portal-intake-command > div { padding: 22px 16px; }
  .bsmi-crm-portal-intake-command h2 { font-size: 24px; }
  .bsmi-crm-portal-intake-command dl > div { padding: 14px 8px; }
  .bsmi-crm-portal-intake-command dd { font-size: 19px; }
  .bsmi-crm-portal-intake-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-portal-intake-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-portal-intake-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-intake-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-portal-intake-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-intake-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-portal-intake-tabs button:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .bsmi-crm-portal-intake-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-portal-intake-filters { grid-template-columns: 1fr; }
  .bsmi-crm-portal-intake-filters .is-search { grid-column: auto; }
  .bsmi-crm-portal-intake-filters input,
  .bsmi-crm-portal-intake-filters select { min-height: 44px; }
  .bsmi-crm-portal-intake-filter-count { min-height: 44px; }
  .bsmi-crm-portal-intake-table,
  .bsmi-crm-portal-intake-table tbody,
  .bsmi-crm-portal-match-table,
  .bsmi-crm-portal-match-table tbody { display: block; min-width: 0; }
  .bsmi-crm-portal-intake-table thead,
  .bsmi-crm-portal-match-table thead { display: none; }
  .bsmi-crm-portal-intake-table tr,
  .bsmi-crm-portal-match-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-intake-table td,
  .bsmi-crm-portal-match-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-portal-intake-table td::before,
  .bsmi-crm-portal-match-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-portal-intake-table td:first-child,
  .bsmi-crm-portal-intake-table td:nth-child(2),
  .bsmi-crm-portal-intake-table td:last-child,
  .bsmi-crm-portal-match-table td:first-child,
  .bsmi-crm-portal-match-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-portal-intake-table td > strong,
  .bsmi-crm-portal-intake-table td > span,
  .bsmi-crm-portal-intake-table td > small,
  .bsmi-crm-portal-match-table td > strong,
  .bsmi-crm-portal-match-table td > span { max-width: none; white-space: normal; }
  .bsmi-crm-portal-intake-table td:last-child button,
  .bsmi-crm-portal-match-table td:last-child button { width: 100%; min-height: 44px; }
  .bsmi-crm-portal-connectors,
  .bsmi-crm-portal-exceptions { grid-template-columns: 1fr; gap: 0; }
  .bsmi-crm-portal-connectors article,
  .bsmi-crm-portal-exceptions article { border-right: 0; border-left-width: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-portal-connectors article { border-top-width: 0; }
  .bsmi-crm-portal-connectors article:first-child { border-top: 3px solid #202326; }
  .bsmi-crm-portal-endpoint { padding: 15px 12px; }
  .bsmi-crm-portal-control-band,
  .bsmi-crm-portal-policy { padding: 15px 12px; }
  .bsmi-crm-portal-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-portal-policy > header button { min-height: 44px; }
  .bsmi-crm-portal-policy > div { grid-template-columns: 1fr; }
  .bsmi-crm-portal-policy label.is-wide { grid-column: auto; }
  .bsmi-crm-portal-policy input:not([type="checkbox"]),
  .bsmi-crm-portal-policy textarea { min-height: 44px; }
  .bsmi-crm-portal-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-portal-events time { grid-column: 2; text-align: left; }
  .bsmi-crm-portal-events article p { white-space: normal; }
  .bsmi-crm-drawer:has(.bsmi-crm-portal-form),
  .bsmi-crm-drawer:has(.bsmi-crm-portal-record) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-portal-form input,
  .bsmi-crm-portal-form select,
  .bsmi-crm-portal-form textarea,
  .bsmi-crm-portal-form button { min-height: 44px; }
  .bsmi-crm-portal-record > header { flex-direction: column; }
  .bsmi-crm-portal-record > header > div:last-child { justify-content: flex-start; }
  .bsmi-crm-portal-record-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-portal-record-actions button { min-height: 44px; }
  .bsmi-crm-portal-record-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .bsmi-crm-portal-intake-table tr,
  .bsmi-crm-portal-match-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-portal-intake-table td,
  .bsmi-crm-portal-match-table td { grid-column: auto !important; }
  .bsmi-crm-portal-record-facts,
  .bsmi-crm-portal-connectors dl,
  .bsmi-crm-portal-endpoint dl,
  .bsmi-crm-portal-exceptions dl,
  .bsmi-crm-portal-policy.is-readonly dl { grid-template-columns: 1fr; }
}

/* Lead capture operations */
.bsmi-crm-acq-command {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(390px, .85fr);
  min-width: 0;
  margin-bottom: 8px;
  color: #fff;
  background: #17191b;
  border-top: 4px solid #a71930;
}
.bsmi-crm-acq-command > div { min-width: 0; padding: 23px 25px; }
.bsmi-crm-acq-command > div > small { color: #dcad60; font-size: 7px; font-weight: 850; }
.bsmi-crm-acq-command h2 { margin: 7px 0 6px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; }
.bsmi-crm-acq-command p { max-width: 700px; margin: 0; color: #c9cdcf; font-size: 8px; line-height: 1.55; }
.bsmi-crm-acq-command dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin: 0; border-left: 1px solid #34373a; }
.bsmi-crm-acq-command dl > div { min-width: 0; padding: 20px 14px; border-right: 1px solid #34373a; }
.bsmi-crm-acq-command dl > div:last-child { border-right: 0; }
.bsmi-crm-acq-command dt { color: #aeb3b7; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-acq-command dd { margin: 7px 0 4px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.bsmi-crm-acq-command dl small { display: block; color: #dcad60; font-size: 7px; line-height: 1.35; }

.bsmi-crm-acq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-kpis article { min-width: 0; padding: 13px 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-kpis article:last-child { border-right: 0; }
.bsmi-crm-acq-kpis span { display: block; color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-acq-kpis strong { display: block; margin: 5px 0 2px; color: #151719; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-acq-kpis small { display: block; overflow: hidden; color: #6d747a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }

.bsmi-crm-acq-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-tabs button { display: flex; min-width: 0; min-height: 42px; padding: 8px 11px; color: #4b5156; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; align-items: center; justify-content: space-between; gap: 8px; }
.bsmi-crm-acq-tabs button:last-child { border-right: 0; }
.bsmi-crm-acq-tabs button span { overflow: hidden; font-size: 8px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-tabs button strong { min-width: 24px; padding: 4px 5px; color: #676e73; background: #eef0ef; font-size: 7px; text-align: center; }
.bsmi-crm-acq-tabs button.is-active { color: #fff; background: #202326; box-shadow: inset 0 -3px #a71930; }
.bsmi-crm-acq-tabs button.is-active strong { color: #1c2023; background: #fff; }

.bsmi-crm-acq-view-head { display: flex; min-width: 0; margin-bottom: 8px; padding: 15px 17px; background: #fff; border: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; gap: 20px; }
.bsmi-crm-acq-view-head > div { min-width: 0; }
.bsmi-crm-acq-view-head small { color: #a71930; font-size: 7px; font-weight: 850; }
.bsmi-crm-acq-view-head h2 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-acq-view-head p { margin: 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.5; }
.bsmi-crm-acq-view-head > span { flex: 0 0 auto; color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-acq-view-head > button { flex: 0 0 auto; min-height: 36px; }

.bsmi-crm-acq-filters { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(4, minmax(110px, .75fr)) minmax(86px, .45fr); min-width: 0; margin-bottom: 8px; padding: 10px; background: #f7f8f7; border: 1px solid var(--bsmi-line); gap: 7px; }
.bsmi-crm-acq-filters label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-acq-filters label > span { margin-bottom: 4px; color: #62696e; font-size: 7px; font-weight: 800; }
.bsmi-crm-acq-filters input,
.bsmi-crm-acq-filters select { width: 100%; min-width: 0; min-height: 36px; }
.bsmi-crm-acq-filter-count { display: flex; min-width: 0; padding: 6px 8px; background: #202326; align-items: center; flex-direction: column; justify-content: center; }
.bsmi-crm-acq-filter-count strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-acq-filter-count span { color: #c9cdcf; font-size: 6px; text-align: center; }

.bsmi-crm-acq-table-section { min-width: 0; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-table { table-layout: fixed; min-width: 980px; }
.bsmi-crm-acq-table th { color: #666d72; font-size: 7px; }
.bsmi-crm-acq-table td { vertical-align: middle; }
.bsmi-crm-acq-table td > strong,
.bsmi-crm-acq-table td > span,
.bsmi-crm-acq-table td > small { display: block; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-table td > span { margin-top: 3px; color: #5f666b; font-size: 7px; }
.bsmi-crm-acq-table td > small { margin-top: 2px; color: #92989c; font-size: 6px; }
.bsmi-crm-acq-table td > .bsmi-crm-acq-pill { display: inline-block; max-width: 100%; }
.bsmi-crm-acq-table td:last-child button { min-width: 58px; padding-inline: 9px; }
.bsmi-crm-acq-empty { margin: 0; padding: 25px; color: var(--bsmi-muted); font-size: 8px; text-align: center; }

.bsmi-crm-acq-pill { display: inline-flex; min-height: 20px; padding: 4px 7px; color: #5f666b; background: #eceeed; border: 1px solid #dde0de; border-radius: 2px; align-items: center; font-size: 6px; font-style: normal; font-weight: 850; line-height: 1; white-space: nowrap; }
.bsmi-crm-acq-pill.is-clear { color: #27604c; background: #e4f1eb; border-color: #c9dfd4; }
.bsmi-crm-acq-pill.is-attention { color: #75520d; background: #fff2d2; border-color: #ead59c; }
.bsmi-crm-acq-pill.is-high { color: #8b3b16; background: #fbe8dd; border-color: #e8c6b5; }
.bsmi-crm-acq-pill.is-critical { color: #8b172b; background: #f7e2e6; border-color: #e7bfc7; }

.bsmi-crm-acq-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; gap: 8px; }
.bsmi-crm-acq-sources article { min-width: 0; padding: 15px; background: #fff; border: 1px solid var(--bsmi-line); border-top: 3px solid #202326; }
.bsmi-crm-acq-sources article:nth-child(3n+2) { border-top-color: #a71930; }
.bsmi-crm-acq-sources article:nth-child(3n) { border-top-color: #c49a4a; }
.bsmi-crm-acq-sources header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bsmi-crm-acq-sources header > div { min-width: 0; }
.bsmi-crm-acq-sources header small { color: #a71930; font-size: 6px; font-weight: 850; }
.bsmi-crm-acq-sources h3 { margin: 4px 0 0; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-sources > article > p { min-height: 25px; margin: 10px 0; color: #686f74; font-size: 7px; line-height: 1.55; }
.bsmi-crm-acq-sources dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-sources dl > div { min-width: 0; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-sources dt { color: #8a9094; font-size: 6px; }
.bsmi-crm-acq-sources dd { margin: 3px 0 0; overflow: hidden; color: #303437; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-sources footer { display: flex; min-width: 0; padding-top: 11px; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-acq-sources footer span { overflow: hidden; color: #6d7479; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-sources footer button { min-height: 30px; }

.bsmi-crm-acq-endpoint { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); min-width: 0; margin-bottom: 8px; padding: 16px 18px; color: #fff; background: #202326; border-left: 4px solid #a71930; align-items: center; gap: 20px; }
.bsmi-crm-acq-endpoint > div { min-width: 0; }
.bsmi-crm-acq-endpoint small { display: block; color: #dcad60; font-size: 6px; font-weight: 850; }
.bsmi-crm-acq-endpoint strong { display: block; margin: 5px 0 3px; overflow: hidden; color: #fff; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-endpoint span { color: #c5c9cc; font-size: 7px; }
.bsmi-crm-acq-endpoint dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.bsmi-crm-acq-endpoint dl > div { padding-left: 12px; border-left: 1px solid #45494c; }
.bsmi-crm-acq-endpoint dt { color: #9fa5a9; font-size: 6px; }
.bsmi-crm-acq-endpoint dd { margin: 4px 0 0; color: #fff; font-size: 7px; }

.bsmi-crm-acq-reception { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-reception-commands { min-width: 0; padding: 18px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-reception-commands header small,
.bsmi-crm-acq-reception-sla > small,
.bsmi-crm-acq-recent header small { color: #a71930; font-size: 6px; font-weight: 850; }
.bsmi-crm-acq-reception-commands h3,
.bsmi-crm-acq-recent h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-acq-reception-commands > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 15px 0 11px; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-reception-commands > div button { display: flex; min-width: 0; min-height: 78px; padding: 12px; color: #222628; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; align-items: flex-start; flex-direction: column; justify-content: center; text-align: left; }
.bsmi-crm-acq-reception-commands > div button:last-child { border-right: 0; }
.bsmi-crm-acq-reception-commands > div button:hover { color: #fff; background: #202326; }
.bsmi-crm-acq-reception-commands button strong { font-size: 9px; }
.bsmi-crm-acq-reception-commands button span { margin-top: 4px; color: #767d82; font-size: 6px; line-height: 1.35; }
.bsmi-crm-acq-reception-commands button:hover span { color: #d0d3d5; }
.bsmi-crm-acq-reception-commands > p { margin: 0; color: #72797e; font-size: 7px; }
.bsmi-crm-acq-reception-sla { padding: 18px; background: #f3f4f3; }
.bsmi-crm-acq-reception-sla ol { margin: 12px 0 0; padding: 0; list-style: none; }
.bsmi-crm-acq-reception-sla li { display: grid; grid-template-columns: 74px minmax(0, 1fr); padding: 9px 0; border-top: 1px solid #d9dcda; gap: 10px; }
.bsmi-crm-acq-reception-sla li strong { font-size: 8px; }
.bsmi-crm-acq-reception-sla li span { color: #6f767b; font-size: 7px; }
.bsmi-crm-acq-recent { min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-recent > header { display: flex; padding: 14px 16px; border-bottom: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; }
.bsmi-crm-acq-recent > header span { color: var(--bsmi-muted); font-size: 7px; }
.bsmi-crm-acq-recent > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-acq-recent > div > button { display: flex; min-width: 0; min-height: 62px; padding: 11px 14px; color: #25292c; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); border-radius: 0; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.bsmi-crm-acq-recent > div > button:nth-child(2n) { border-right: 0; }
.bsmi-crm-acq-recent button > span { min-width: 0; }
.bsmi-crm-acq-recent button > span strong,
.bsmi-crm-acq-recent button > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-recent button > span small { margin-top: 4px; color: #71787d; font-size: 7px; }

.bsmi-crm-acq-google-boundary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-width: 0; margin-bottom: 8px; padding: 14px 16px; background: #fff7f4; border: 1px solid #ead4ca; border-left: 4px solid #a71930; align-items: center; gap: 16px; }
.bsmi-crm-acq-google-boundary strong { color: #8d1a2d; font-size: 9px; }
.bsmi-crm-acq-google-boundary p { margin: 0; color: #605b58; font-size: 7px; line-height: 1.45; }
.bsmi-crm-acq-google-boundary span { color: #7a716d; font-size: 6px; white-space: nowrap; }
.bsmi-crm-acq-google-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-google-kpis article { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-google-kpis article:last-child { border-right: 0; }
.bsmi-crm-acq-google-kpis span { color: #6b7277; font-size: 7px; }
.bsmi-crm-acq-google-kpis strong { display: block; margin: 5px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-acq-google-kpis small { color: #8b9195; font-size: 6px; }
.bsmi-crm-acq-google-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .5fr); min-width: 0; margin-bottom: 8px; gap: 8px; }
.bsmi-crm-acq-google-chart,
.bsmi-crm-acq-google-route { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-google-chart header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bsmi-crm-acq-google-chart header small,
.bsmi-crm-acq-google-route > small,
.bsmi-crm-acq-metric-table header small { color: #a71930; font-size: 6px; font-weight: 850; }
.bsmi-crm-acq-google-chart h3,
.bsmi-crm-acq-google-route h3,
.bsmi-crm-acq-metric-table h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-acq-google-chart header > span { overflow: hidden; color: #747b80; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-google-bars { display: flex; height: 210px; min-width: 0; margin-top: 16px; padding: 10px 0 0; border-bottom: 1px solid #cfd3d1; align-items: stretch; gap: 7px; }
.bsmi-crm-acq-google-bars > div { display: grid; min-width: 0; flex: 1; grid-template-rows: minmax(0, 1fr) 15px; }
.bsmi-crm-acq-google-bars .is-bars { display: flex; min-height: 0; align-items: flex-end; justify-content: center; gap: 1px; }
.bsmi-crm-acq-google-bars .is-bars i { display: block; width: 20%; min-height: 3px; }
.bsmi-crm-acq-google-bars i.is-web,
.bsmi-crm-acq-google-chart footer i.is-web { background: #202326; }
.bsmi-crm-acq-google-bars i.is-call,
.bsmi-crm-acq-google-chart footer i.is-call { background: #a71930; }
.bsmi-crm-acq-google-bars i.is-direction,
.bsmi-crm-acq-google-chart footer i.is-direction { background: #c49a4a; }
.bsmi-crm-acq-google-bars i.is-conversation,
.bsmi-crm-acq-google-chart footer i.is-conversation { background: #3b7769; }
.bsmi-crm-acq-google-bars small { overflow: hidden; padding-top: 4px; color: #83898d; font-size: 5px; text-align: center; text-overflow: clip; white-space: nowrap; }
.bsmi-crm-acq-google-chart footer { display: flex; padding-top: 11px; align-items: center; gap: 13px; }
.bsmi-crm-acq-google-chart footer span { display: inline-flex; color: #687075; font-size: 6px; align-items: center; gap: 4px; }
.bsmi-crm-acq-google-chart footer i { width: 8px; height: 8px; }
.bsmi-crm-acq-google-route ol { margin: 14px 0 0; padding: 0; list-style: none; }
.bsmi-crm-acq-google-route li { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--bsmi-line); align-items: center; gap: 9px; }
.bsmi-crm-acq-google-route li > span { display: flex; width: 22px; height: 22px; color: #fff; background: #202326; align-items: center; justify-content: center; font-size: 7px; }
.bsmi-crm-acq-google-route li strong,
.bsmi-crm-acq-google-route li small { display: block; }
.bsmi-crm-acq-google-route li strong { font-size: 8px; }
.bsmi-crm-acq-google-route li small { margin-top: 3px; color: #777e83; font-size: 6px; }
.bsmi-crm-acq-metric-table { min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-metric-table > header { display: flex; padding: 14px 16px; border-bottom: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; }
.bsmi-crm-acq-metric-table header > span { color: #72797e; font-size: 7px; }
.bsmi-crm-acq-metric-table table { min-width: 840px; }

.bsmi-crm-acq-exceptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; margin-bottom: 8px; gap: 8px; }
.bsmi-crm-acq-exceptions article { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--bsmi-line); border-left: 3px solid #a71930; }
.bsmi-crm-acq-exceptions header { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bsmi-crm-acq-exceptions header > div { min-width: 0; }
.bsmi-crm-acq-exceptions header small { display: block; overflow: hidden; color: #8a515b; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-exceptions h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-acq-exceptions > article > p { min-height: 30px; margin: 11px 0; color: #5d6469; font-size: 7px; line-height: 1.5; }
.bsmi-crm-acq-exceptions dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.bsmi-crm-acq-exceptions dl > div { min-width: 0; padding: 8px 8px 8px 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-exceptions dt { color: #8d9397; font-size: 6px; }
.bsmi-crm-acq-exceptions dd { margin: 3px 0 0; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-exceptions footer { display: flex; padding-top: 12px; justify-content: flex-end; gap: 7px; }

.bsmi-crm-acq-control-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .7fr); min-width: 0; margin-bottom: 8px; gap: 8px; }
.bsmi-crm-acq-control-band,
.bsmi-crm-acq-policy { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-control-band > header,
.bsmi-crm-acq-policy > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-acq-control-band h3,
.bsmi-crm-acq-policy h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-acq-control-band header span,
.bsmi-crm-acq-policy header span { color: #777e83; font-size: 6px; }
.bsmi-crm-acq-control-band > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.bsmi-crm-acq-control-band article { display: grid; grid-template-columns: 10px minmax(0, 1fr); min-width: 0; padding: 10px 10px 10px 0; border-top: 1px solid var(--bsmi-line); align-items: start; gap: 8px; }
.bsmi-crm-acq-control-band article > i { width: 7px; height: 7px; margin-top: 2px; background: #91979b; border-radius: 50%; }
.bsmi-crm-acq-control-band article > i.is-pass { background: #3b7769; }
.bsmi-crm-acq-control-band article > i.is-blocked { background: #a71930; }
.bsmi-crm-acq-control-band article > i.is-neutral { background: #c49a4a; }
.bsmi-crm-acq-control-band article strong,
.bsmi-crm-acq-control-band article small { display: block; }
.bsmi-crm-acq-control-band article strong { font-size: 8px; }
.bsmi-crm-acq-control-band article small { margin-top: 3px; color: #747b80; font-size: 6px; line-height: 1.4; }
.bsmi-crm-acq-policy > header button { min-height: 30px; }
.bsmi-crm-acq-policy > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 8px; }
.bsmi-crm-acq-policy label { display: flex; min-width: 0; flex-direction: column; }
.bsmi-crm-acq-policy label > span { margin-bottom: 4px; color: #636a6f; font-size: 7px; font-weight: 800; }
.bsmi-crm-acq-policy label.is-check { min-height: 36px; padding: 8px; border: 1px solid var(--bsmi-line); flex-direction: row; align-items: center; gap: 8px; }
.bsmi-crm-acq-policy label.is-check span { margin: 0; }
.bsmi-crm-acq-policy label.is-wide { grid-column: 1 / -1; }
.bsmi-crm-acq-policy p[data-form-message] { margin: 8px 0 0; font-size: 7px; }
.bsmi-crm-acq-policy.is-readonly dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0 0; }
.bsmi-crm-acq-policy.is-readonly dl > div { padding: 9px; border: 1px solid var(--bsmi-line); border-right: 0; }
.bsmi-crm-acq-policy.is-readonly dl > div:last-child { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-policy.is-readonly dt { color: #7a8185; font-size: 6px; }
.bsmi-crm-acq-policy.is-readonly dd { margin: 4px 0 0; font-size: 8px; }
.bsmi-crm-acq-events { min-width: 0; margin-bottom: 8px; background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-events > header { display: flex; padding: 14px 16px; border-bottom: 1px solid var(--bsmi-line); align-items: center; justify-content: space-between; }
.bsmi-crm-acq-events header small { color: #a71930; font-size: 6px; font-weight: 850; }
.bsmi-crm-acq-events h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 500; }
.bsmi-crm-acq-events header span { color: #747b80; font-size: 7px; }
.bsmi-crm-acq-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) 115px; min-width: 0; padding: 10px 16px; border-bottom: 1px solid var(--bsmi-line); align-items: start; gap: 10px; }
.bsmi-crm-acq-events article > i { width: 6px; height: 6px; margin-top: 3px; background: #a71930; border-radius: 50%; }
.bsmi-crm-acq-events article > div { min-width: 0; }
.bsmi-crm-acq-events article strong,
.bsmi-crm-acq-events article span,
.bsmi-crm-acq-events article p { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bsmi-crm-acq-events article strong { font-size: 8px; }
.bsmi-crm-acq-events article span { margin-top: 3px; color: #a71930; font-size: 6px; }
.bsmi-crm-acq-events article p { margin: 3px 0 0; color: #6c7378; font-size: 7px; }
.bsmi-crm-acq-events time { color: #8a9094; font-size: 6px; text-align: right; }

.bsmi-crm-acq-form-note { grid-column: 1 / -1; margin: 0; padding: 9px 10px; color: #5f666b; background: #f3f4f3; border-left: 3px solid #c49a4a; font-size: 7px; line-height: 1.45; }
.bsmi-crm-acq-source-flags { display: flex; grid-column: 1 / -1; min-width: 0; padding: 9px; background: #f3f4f3; gap: 6px; flex-wrap: wrap; }
.bsmi-crm-acq-source-flags span { padding: 5px 7px; color: #51585d; background: #fff; border: 1px solid var(--bsmi-line); font-size: 6px; }
.bsmi-crm-acq-record { padding: 16px; }
.bsmi-crm-acq-record > header { display: flex; min-width: 0; padding-bottom: 15px; border-bottom: 1px solid var(--bsmi-line); align-items: flex-start; justify-content: space-between; gap: 16px; }
.bsmi-crm-acq-record > header > div { min-width: 0; }
.bsmi-crm-acq-record > header > div:last-child { display: flex; gap: 6px; }
.bsmi-crm-acq-record header small { color: #a71930; font-size: 7px; font-weight: 850; }
.bsmi-crm-acq-record h3 { margin: 5px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; }
.bsmi-crm-acq-record header p { margin: 0; color: #6e757a; font-size: 8px; }
.bsmi-crm-acq-record-actions { display: flex; padding: 12px 0; gap: 7px; }
.bsmi-crm-acq-record-message { padding: 13px; background: #f5f6f5; border-left: 3px solid #202326; }
.bsmi-crm-acq-record-message small { color: #a71930; font-size: 6px; font-weight: 850; }
.bsmi-crm-acq-record-message p { margin: 7px 0 0; color: #3f4447; font-size: 8px; line-height: 1.6; }
.bsmi-crm-acq-record-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 13px 0; }
.bsmi-crm-acq-record-facts > div { min-width: 0; padding: 10px 9px 10px 0; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-acq-record-facts dt { color: #8a9094; font-size: 6px; }
.bsmi-crm-acq-record-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 8px; }
.bsmi-crm-acq-record-resolution { padding: 12px; color: #701325; background: #f8e8eb; border: 1px solid #e7c5cc; }
.bsmi-crm-acq-record-resolution strong { font-size: 8px; }
.bsmi-crm-acq-record-resolution p { margin: 5px 0 0; font-size: 7px; line-height: 1.5; }

@media (max-width: 1120px) {
  .bsmi-crm-acq-command { grid-template-columns: 1fr; }
  .bsmi-crm-acq-command dl { border-top: 1px solid #34373a; border-left: 0; }
  .bsmi-crm-acq-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-acq-filters .is-search { grid-column: 1 / -1; }
  .bsmi-crm-acq-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-acq-control-grid,
  .bsmi-crm-acq-google-grid { grid-template-columns: 1fr; }
  .bsmi-crm-acq-reception { grid-template-columns: 1fr; }
  .bsmi-crm-acq-reception-commands { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-acq-endpoint { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-acq-tabs) { padding-inline: 10px; }
  .bsmi-crm-content:has(.bsmi-crm-acq-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-acq-command,
  .bsmi-crm-acq-kpis,
  .bsmi-crm-acq-tabs,
  .bsmi-crm-acq-view-head,
  .bsmi-crm-acq-filters,
  .bsmi-crm-acq-table-section,
  .bsmi-crm-acq-sources,
  .bsmi-crm-acq-endpoint,
  .bsmi-crm-acq-reception,
  .bsmi-crm-acq-recent,
  .bsmi-crm-acq-google-boundary,
  .bsmi-crm-acq-google-kpis,
  .bsmi-crm-acq-google-grid,
  .bsmi-crm-acq-metric-table,
  .bsmi-crm-acq-exceptions,
  .bsmi-crm-acq-control-grid,
  .bsmi-crm-acq-events { margin-inline: -10px; border-inline: 0; }
  .bsmi-crm-acq-command > div { padding: 22px 16px; }
  .bsmi-crm-acq-command h2 { font-size: 24px; }
  .bsmi-crm-acq-command dl > div { padding: 14px 8px; }
  .bsmi-crm-acq-command dd { font-size: 19px; }
  .bsmi-crm-acq-kpis,
  .bsmi-crm-acq-google-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-acq-kpis article:nth-child(2n),
  .bsmi-crm-acq-google-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-acq-kpis article:nth-child(-n+2),
  .bsmi-crm-acq-google-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-acq-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-acq-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-acq-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-acq-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-acq-view-head,
  .bsmi-crm-acq-google-boundary { align-items: flex-start; grid-template-columns: 1fr; flex-direction: column; gap: 8px; }
  .bsmi-crm-acq-google-boundary { display: grid; }
  .bsmi-crm-acq-google-boundary span { white-space: normal; }
  .bsmi-crm-acq-filters { grid-template-columns: 1fr; }
  .bsmi-crm-acq-filters .is-search { grid-column: auto; }
  .bsmi-crm-acq-filters input,
  .bsmi-crm-acq-filters select { min-height: 44px; }
  .bsmi-crm-acq-filter-count { min-height: 44px; }
  .bsmi-crm-acq-table,
  .bsmi-crm-acq-table tbody { display: block; min-width: 0; }
  .bsmi-crm-acq-table thead { display: none; }
  .bsmi-crm-acq-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-acq-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-acq-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-acq-table td:first-child,
  .bsmi-crm-acq-table td:nth-child(2),
  .bsmi-crm-acq-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-acq-table td > strong,
  .bsmi-crm-acq-table td > span,
  .bsmi-crm-acq-table td > small { max-width: none; white-space: normal; }
  .bsmi-crm-acq-table td:last-child button { width: 100%; min-height: 44px; }
  .bsmi-crm-acq-sources,
  .bsmi-crm-acq-exceptions { grid-template-columns: 1fr; gap: 0; }
  .bsmi-crm-acq-sources article,
  .bsmi-crm-acq-exceptions article { border-right: 0; border-left-width: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-acq-reception-commands > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-acq-reception-commands > div button { min-height: 72px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-acq-reception-commands > div button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-acq-recent > div { grid-template-columns: 1fr; }
  .bsmi-crm-acq-recent > div > button { border-right: 0; }
  .bsmi-crm-acq-google-chart,
  .bsmi-crm-acq-google-route,
  .bsmi-crm-acq-control-band,
  .bsmi-crm-acq-policy { padding: 15px 12px; }
  .bsmi-crm-acq-google-bars { height: 180px; gap: 3px; }
  .bsmi-crm-acq-google-bars > div:nth-child(-n+4) { display: none; }
  .bsmi-crm-acq-control-band > div,
  .bsmi-crm-acq-policy > div { grid-template-columns: 1fr; }
  .bsmi-crm-acq-policy label.is-wide { grid-column: auto; }
  .bsmi-crm-acq-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-acq-policy > header button { min-height: 44px; }
  .bsmi-crm-acq-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-acq-events time { grid-column: 2; text-align: left; }
  .bsmi-crm-acq-events article p { white-space: normal; }
  .bsmi-crm-drawer:has(.bsmi-crm-acq-form),
  .bsmi-crm-drawer:has(.bsmi-crm-acq-record) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-acq-form input,
  .bsmi-crm-acq-form select,
  .bsmi-crm-acq-form textarea,
  .bsmi-crm-acq-form button { min-height: 44px; }
  .bsmi-crm-acq-record > header { flex-direction: column; }
  .bsmi-crm-acq-record > header > div:last-child { justify-content: flex-start; }
  .bsmi-crm-acq-record-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-acq-record-actions button { min-height: 44px; }
  .bsmi-crm-acq-record-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .bsmi-crm-acq-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-acq-table td { grid-column: auto !important; }
  .bsmi-crm-acq-command dl,
  .bsmi-crm-acq-sources dl,
  .bsmi-crm-acq-exceptions dl,
  .bsmi-crm-acq-record-facts,
  .bsmi-crm-acq-policy.is-readonly dl { grid-template-columns: 1fr; }
  .bsmi-crm-acq-google-chart footer { align-items: flex-start; flex-direction: column; }
}

/* E-Signature Operations */
.bsmi-crm-esign-command,
.bsmi-crm-esign-command *,
.bsmi-crm-esign-workspace,
.bsmi-crm-esign-workspace *,
.bsmi-crm-esign-record,
.bsmi-crm-esign-record *,
.bsmi-crm-esign-form,
.bsmi-crm-esign-form * {
  box-sizing: border-box;
  min-width: 0;
  letter-spacing: 0;
}

.bsmi-crm-esign-command {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .65fr);
  margin-bottom: 12px;
  color: #fff;
  background: #101113;
  border: 1px solid #292c30;
}

.bsmi-crm-esign-command > div {
  padding: 24px 28px;
}

.bsmi-crm-esign-command > div:last-child {
  display: flex;
  border-left: 1px solid #313439;
  flex-direction: column;
  justify-content: center;
}

.bsmi-crm-esign-command small,
.bsmi-crm-esign-view-head small,
.bsmi-crm-esign-events header small {
  color: #c7a45b;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}

.bsmi-crm-esign-command strong {
  display: block;
  margin: 7px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.12;
}

.bsmi-crm-esign-command p {
  max-width: 780px;
  margin: 0;
  color: #c4c7cb;
  font-size: 10px;
  line-height: 1.6;
}

.bsmi-crm-esign-command > div:last-child > small {
  max-width: 320px;
  margin-top: 10px;
  color: #aeb2b7;
  text-transform: none;
}

.bsmi-crm-esign-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  align-items: center;
  border: 1px solid #d5d8dc;
  border-radius: 3px;
  color: #565c64;
  background: #f6f7f8;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.bsmi-crm-esign-pill.is-clear { color: #1f6149; background: #eef7f3; border-color: #b7d8ca; }
.bsmi-crm-esign-pill.is-attention { color: #765617; background: #fbf5e7; border-color: #ddc68b; }
.bsmi-crm-esign-pill.is-high { color: #8f272d; background: #fbeff0; border-color: #dfb7ba; }
.bsmi-crm-esign-pill.is-muted { color: #59606a; background: #f1f2f3; border-color: #d2d5d8; }

.bsmi-crm-esign-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-esign-kpis article {
  min-height: 92px;
  padding: 16px 18px;
  border-right: 1px solid var(--bsmi-line);
}

.bsmi-crm-esign-kpis article:last-child { border-right: 0; }
.bsmi-crm-esign-kpis span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-esign-kpis strong { display: block; margin: 5px 0 4px; color: #15171a; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-esign-kpis small { color: #777d85; font-size: 8px; }

.bsmi-crm-esign-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-bottom: 0;
}

.bsmi-crm-esign-tabs button {
  display: flex;
  min-height: 50px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  color: #535961;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}

.bsmi-crm-esign-tabs button:last-child { border-right: 0; }
.bsmi-crm-esign-tabs button strong { min-width: 24px; padding: 3px 6px; border-radius: 2px; color: #6a7078; background: #f0f1f2; font-size: 8px; text-align: center; }
.bsmi-crm-esign-tabs button.is-active { color: #111214; background: #f8f5ef; box-shadow: inset 0 -3px #b89a5b; }
.bsmi-crm-esign-tabs button.is-active strong { color: #fff; background: #17191d; }

.bsmi-crm-esign-workspace {
  background: #fff;
  border: 1px solid var(--bsmi-line);
}

.bsmi-crm-esign-view-head {
  display: flex;
  min-height: 78px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-esign-view-head h2 {
  margin: 4px 0 3px;
  color: #17191d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.15;
}

.bsmi-crm-esign-view-head p { max-width: 790px; margin: 0; color: #70767e; font-size: 9px; line-height: 1.5; }
.bsmi-crm-esign-view-head > span { color: #777d85; font-size: 8px; white-space: nowrap; }

.bsmi-crm-esign-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, .65fr)) minmax(100px, .45fr);
  padding: 12px 14px;
  gap: 8px;
  background: #f7f8f8;
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-esign-filters label { display: flex; gap: 4px; flex-direction: column; }
.bsmi-crm-esign-filters label > span { color: #686f77; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-esign-filters input,
.bsmi-crm-esign-filters select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d8dbde; border-radius: 3px; color: #202226; background: #fff; font-size: 9px; }
.bsmi-crm-esign-filter-count { display: flex; min-height: 36px; padding: 5px 10px; align-self: end; justify-content: center; border-left: 2px solid #b89a5b; background: #ece7dc; flex-direction: column; }
.bsmi-crm-esign-filter-count strong { color: #181a1d; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-esign-filter-count span { color: #686158; font-size: 7px; text-transform: uppercase; }

.bsmi-crm-esign-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-esign-table { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: fixed; }
.bsmi-crm-esign-table th { padding: 9px 10px; color: #777d85; background: #fbfbfb; border-bottom: 1px solid var(--bsmi-line); font-size: 7px; font-weight: 850; text-align: left; text-transform: uppercase; }
.bsmi-crm-esign-table th:nth-child(1) { width: 17%; }
.bsmi-crm-esign-table th:nth-child(2) { width: 19%; }
.bsmi-crm-esign-table th:nth-child(3) { width: 14%; }
.bsmi-crm-esign-table th:nth-child(4) { width: 13%; }
.bsmi-crm-esign-table th:nth-child(5) { width: 11%; }
.bsmi-crm-esign-table th:nth-child(6) { width: 11%; }
.bsmi-crm-esign-table th:nth-child(7) { width: 15%; }
.bsmi-crm-esign-table td { padding: 11px 10px; vertical-align: top; border-bottom: 1px solid #eceeef; color: #3d4249; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-esign-table tr:last-child td { border-bottom: 0; }
.bsmi-crm-esign-table td > strong,
.bsmi-crm-esign-table td > span,
.bsmi-crm-esign-table td > small { display: block; margin-bottom: 4px; }
.bsmi-crm-esign-table td > strong { color: #1b1d21; font-size: 9px; }
.bsmi-crm-esign-table td > span { color: #686f77; line-height: 1.35; }
.bsmi-crm-esign-table td > small { color: #9499a0; font-size: 7px; }
.bsmi-crm-esign-table .bsmi-crm-esign-pill { margin-top: 5px; }

.bsmi-crm-esign-progress { width: 100%; height: 5px; margin: 3px 0 7px; overflow: hidden; background: #e5e7e9; border-radius: 1px; }
.bsmi-crm-esign-progress span { display: block; height: 100%; max-width: 100%; background: #b89a5b; }
.bsmi-crm-esign-row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.bsmi-crm-esign-row-actions button,
.bsmi-crm-esign-record-actions button,
.bsmi-crm-esign-document-link { min-height: 32px; padding: 6px 9px; border: 1px solid #ccd0d4; border-radius: 3px; color: #25282d; background: #fff; font-size: 8px; font-weight: 800; }

.bsmi-crm-esign-empty { margin: 0; padding: 28px 20px; color: #7a8088; font-size: 9px; text-align: center; }

.bsmi-crm-esign-approval-list,
.bsmi-crm-esign-provider-grid,
.bsmi-crm-esign-exceptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bsmi-crm-esign-approval-list > article,
.bsmi-crm-esign-provider-grid > article,
.bsmi-crm-esign-exceptions > article {
  padding: 18px;
  border-right: 1px solid var(--bsmi-line);
  border-bottom: 1px solid var(--bsmi-line);
}

.bsmi-crm-esign-approval-list > article:nth-child(2n),
.bsmi-crm-esign-provider-grid > article:nth-child(2n),
.bsmi-crm-esign-exceptions > article:nth-child(2n) { border-right: 0; }
.bsmi-crm-esign-approval-list article > header,
.bsmi-crm-esign-provider-grid article > header,
.bsmi-crm-esign-exceptions article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bsmi-crm-esign-approval-list h3,
.bsmi-crm-esign-provider-grid h3,
.bsmi-crm-esign-exceptions h3 { margin: 4px 0; color: #1c1e22; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.bsmi-crm-esign-approval-list header small,
.bsmi-crm-esign-provider-grid header small,
.bsmi-crm-esign-exceptions header small { color: #9a7d42; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-esign-approval-list header p,
.bsmi-crm-esign-provider-grid > article > p,
.bsmi-crm-esign-exceptions > article > p { margin: 3px 0 12px; color: #6f757d; font-size: 9px; line-height: 1.5; }
.bsmi-crm-esign-approval-list dl,
.bsmi-crm-esign-provider-grid dl,
.bsmi-crm-esign-exceptions dl,
.bsmi-crm-esign-record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; border: 1px solid #e3e5e7; }
.bsmi-crm-esign-approval-list dl > div,
.bsmi-crm-esign-provider-grid dl > div,
.bsmi-crm-esign-exceptions dl > div,
.bsmi-crm-esign-record-facts > div { padding: 9px; border-right: 1px solid #eceeef; border-bottom: 1px solid #eceeef; overflow-wrap: anywhere; }
.bsmi-crm-esign-approval-list dt,
.bsmi-crm-esign-provider-grid dt,
.bsmi-crm-esign-exceptions dt,
.bsmi-crm-esign-record-facts dt { color: #898f96; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-esign-approval-list dd,
.bsmi-crm-esign-provider-grid dd,
.bsmi-crm-esign-exceptions dd,
.bsmi-crm-esign-record-facts dd { margin: 3px 0 0; color: #31353a; font-size: 8px; line-height: 1.4; }
.bsmi-crm-esign-approval-list footer,
.bsmi-crm-esign-provider-grid footer,
.bsmi-crm-esign-exceptions footer { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 7px; flex-wrap: wrap; }
.bsmi-crm-esign-approval-list footer button,
.bsmi-crm-esign-provider-grid footer button,
.bsmi-crm-esign-exceptions footer button { min-height: 34px; padding: 6px 10px; border: 1px solid #ccd0d4; border-radius: 3px; color: #26292d; background: #fff; font-size: 8px; font-weight: 800; }
.bsmi-crm-esign-provider-grid footer > span { color: #858b93; font-size: 7px; }

.bsmi-crm-esign-signer-board > article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(150px, .35fr);
  min-height: 78px;
  padding: 12px 18px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-esign-signer-board > article:last-child { border-bottom: 0; }
.bsmi-crm-esign-order { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border: 1px solid #c5ad7b; border-radius: 50%; color: #765c28; background: #f8f3e8; font-size: 9px; font-weight: 850; flex: 0 0 auto; }
.bsmi-crm-esign-signer-board h3 { margin: 2px 0; color: #1b1d21; font-size: 11px; }
.bsmi-crm-esign-signer-board p { margin: 0 0 4px; color: #737982; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-esign-signer-board button { padding: 0; border: 0; color: #80672f; background: transparent; font-size: 8px; font-weight: 800; text-align: left; }
.bsmi-crm-esign-signer-board aside { display: flex; align-items: flex-end; gap: 6px; flex-direction: column; }
.bsmi-crm-esign-signer-board aside > span { color: #858b92; font-size: 7px; text-align: right; }

.bsmi-crm-esign-control-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); }
.bsmi-crm-esign-control-band,
.bsmi-crm-esign-policy { padding: 18px; }
.bsmi-crm-esign-control-band { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-esign-control-band > header,
.bsmi-crm-esign-policy > header,
.bsmi-crm-esign-events > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-esign-control-band h3,
.bsmi-crm-esign-policy h3,
.bsmi-crm-esign-events h3 { margin: 0; color: #1b1d21; font-size: 12px; }
.bsmi-crm-esign-control-band > header span,
.bsmi-crm-esign-policy > header span,
.bsmi-crm-esign-events > header > span { color: #7c8289; font-size: 7px; }
.bsmi-crm-esign-control-band > div { margin-top: 12px; border-top: 1px solid #e4e6e8; }
.bsmi-crm-esign-control-band > div > article { display: grid; grid-template-columns: 12px minmax(0, 1fr); padding: 9px 0; gap: 9px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-esign-control-band article i { width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: #b9bec4; }
.bsmi-crm-esign-control-band article i.is-pass { background: #2d6b55; }
.bsmi-crm-esign-control-band article i.is-blocked { background: #a8272d; }
.bsmi-crm-esign-control-band article i.is-neutral { background: #b89a5b; }
.bsmi-crm-esign-control-band article strong,
.bsmi-crm-esign-control-band article small { display: block; }
.bsmi-crm-esign-control-band article strong { color: #292c31; font-size: 8px; }
.bsmi-crm-esign-control-band article small { margin-top: 3px; color: #7c828a; font-size: 7px; line-height: 1.45; }
.bsmi-crm-esign-control-band > footer { margin-top: 14px; padding-top: 12px; border-top: 2px solid #b89a5b; }
.bsmi-crm-esign-control-band footer dl { margin: 0 0 10px; }
.bsmi-crm-esign-control-band footer button { min-height: 36px; padding: 7px 10px; border: 1px solid #1b1d21; border-radius: 3px; color: #fff; background: #1b1d21; font-size: 8px; font-weight: 800; }

.bsmi-crm-esign-policy { background: #f7f7f6; }
.bsmi-crm-esign-policy > header button { min-height: 34px; padding: 6px 10px; border: 1px solid #1b1d21; border-radius: 3px; color: #fff; background: #1b1d21; font-size: 8px; font-weight: 800; }
.bsmi-crm-esign-policy > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; gap: 9px; }
.bsmi-crm-esign-policy label { display: flex; gap: 4px; flex-direction: column; }
.bsmi-crm-esign-policy label > span { color: #656c74; font-size: 7px; font-weight: 800; }
.bsmi-crm-esign-policy input,
.bsmi-crm-esign-policy textarea { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d4d7da; border-radius: 3px; background: #fff; font-size: 9px; }
.bsmi-crm-esign-policy label.is-check { display: flex; min-height: 38px; padding: 8px; align-items: center; border: 1px solid #dedfe1; background: #fff; flex-direction: row; }
.bsmi-crm-esign-policy label.is-check input { width: 16px; min-height: 16px; margin: 0; }
.bsmi-crm-esign-policy label.is-wide { grid-column: 1 / -1; }
.bsmi-crm-esign-policy [data-form-message] { color: #596069; font-size: 8px; }

.bsmi-crm-esign-events { padding: 18px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-esign-events > div { margin-top: 12px; border-top: 1px solid #e2e4e6; }
.bsmi-crm-esign-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) minmax(130px, .25fr); padding: 10px 0; align-items: start; gap: 10px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-esign-events article > i { width: 7px; height: 7px; margin-top: 3px; border: 1px solid #b89a5b; border-radius: 50%; background: #fff; }
.bsmi-crm-esign-events article strong,
.bsmi-crm-esign-events article span,
.bsmi-crm-esign-events article p { display: block; }
.bsmi-crm-esign-events article strong { color: #24272b; font-size: 8px; }
.bsmi-crm-esign-events article span { margin-top: 2px; color: #8b7446; font-size: 7px; }
.bsmi-crm-esign-events article p { margin: 3px 0 0; color: #737981; font-size: 7px; line-height: 1.45; }
.bsmi-crm-esign-events aside { display: flex; align-items: flex-end; flex-direction: column; }
.bsmi-crm-esign-events time,
.bsmi-crm-esign-events aside small { color: #8d9299; font-size: 7px; text-align: right; }

.bsmi-crm-drawer:has(.bsmi-crm-esign-record),
.bsmi-crm-drawer:has(.bsmi-crm-esign-form),
.bsmi-crm-drawer:has(.bsmi-crm-esign-secret) { width: min(760px, 100vw); }
.bsmi-crm-esign-record { padding: 18px; }
.bsmi-crm-esign-record > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-esign-record > header h3 { margin: 4px 0; color: #181a1e; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-esign-record > header p { margin: 0; color: #70767e; font-size: 9px; line-height: 1.5; }
.bsmi-crm-esign-record-actions { display: flex; margin: 15px 0; gap: 7px; flex-wrap: wrap; }
.bsmi-crm-esign-record-progress { padding: 12px; background: #f4f1ea; border-left: 3px solid #b89a5b; }
.bsmi-crm-esign-record-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-esign-record-progress span { color: #71684f; font-size: 8px; }
.bsmi-crm-esign-record-progress strong { color: #26282c; font-size: 9px; }
.bsmi-crm-esign-record-signers,
.bsmi-crm-esign-record-events,
.bsmi-crm-esign-record-exception { margin-top: 14px; padding: 13px; border: 1px solid #e0e2e4; }
.bsmi-crm-esign-record-signers > header,
.bsmi-crm-esign-record-events > header { display: flex; align-items: center; justify-content: space-between; }
.bsmi-crm-esign-record-signers h4,
.bsmi-crm-esign-record-events h4 { margin: 0; font-size: 10px; }
.bsmi-crm-esign-record-signers header span,
.bsmi-crm-esign-record-events header span { color: #858b92; font-size: 7px; }
.bsmi-crm-esign-record-signers article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px 0; align-items: center; gap: 9px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-esign-record-signers article:last-child { border-bottom: 0; }
.bsmi-crm-esign-record-signers strong,
.bsmi-crm-esign-record-signers small { display: block; }
.bsmi-crm-esign-record-signers strong { font-size: 9px; }
.bsmi-crm-esign-record-signers small { margin-top: 2px; color: #777d85; font-size: 7px; overflow-wrap: anywhere; }
.bsmi-crm-esign-record-exception { border-left: 3px solid #a8272d; background: #fcf5f5; }
.bsmi-crm-esign-record-exception strong { color: #85262b; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-esign-record-exception p { margin: 5px 0 0; color: #6d4a4d; font-size: 8px; line-height: 1.5; }
.bsmi-crm-esign-record-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) 130px; padding: 9px 0; gap: 8px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-esign-record-events article > i { width: 6px; height: 6px; margin-top: 3px; border-radius: 50%; background: #b89a5b; }
.bsmi-crm-esign-record-events article strong,
.bsmi-crm-esign-record-events article small { display: block; }
.bsmi-crm-esign-record-events article strong { font-size: 8px; }
.bsmi-crm-esign-record-events article small { margin-top: 2px; color: #7c828a; font-size: 7px; }
.bsmi-crm-esign-record-events time { color: #8a9097; font-size: 7px; text-align: right; }
.bsmi-crm-esign-document-link { width: 100%; margin-top: 14px; }

.bsmi-crm-esign-form .is-wide { grid-column: 1 / -1; }
.bsmi-crm-esign-form-note { grid-column: 1 / -1; margin: 0; padding: 10px; color: #665b42; background: #f5f1e8; border-left: 3px solid #b89a5b; font-size: 8px; line-height: 1.5; }
.bsmi-crm-esign-signer-editor { grid-column: 1 / -1; padding: 12px; border: 1px solid #dfe1e3; }
.bsmi-crm-esign-signer-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-esign-signer-editor > header strong,
.bsmi-crm-esign-signer-editor > header span { display: block; }
.bsmi-crm-esign-signer-editor > header strong { font-size: 9px; }
.bsmi-crm-esign-signer-editor > header span { margin-top: 2px; color: #7f858c; font-size: 7px; }
.bsmi-crm-esign-signer-editor > header button { min-height: 34px; padding: 6px 9px; border: 1px solid #cdd0d4; border-radius: 3px; background: #fff; font-size: 8px; font-weight: 800; }
.bsmi-crm-esign-signer-row { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)) 34px; margin-top: 10px; align-items: end; gap: 7px; }
.bsmi-crm-esign-signer-row > button { width: 34px; min-height: 34px; padding: 0; border: 1px solid #d8b9bc; border-radius: 3px; color: #8c2c32; background: #fff5f5; font-size: 17px; }
.bsmi-crm-esign-decision-summary { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr); border: 1px solid #dedfe1; }
.bsmi-crm-esign-decision-summary span,
.bsmi-crm-esign-decision-summary strong { padding: 8px 9px; border-bottom: 1px solid #eceeef; overflow-wrap: anywhere; }
.bsmi-crm-esign-decision-summary span { color: #858b92; background: #f7f7f7; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-esign-decision-summary strong { color: #292c31; font-size: 8px; }
.bsmi-crm-esign-handoff-warning { grid-column: 1 / -1; padding: 12px; color: #fff; background: #202226; border-left: 3px solid #c7a45b; }
.bsmi-crm-esign-handoff-warning strong { font-size: 9px; }
.bsmi-crm-esign-handoff-warning p { margin: 5px 0 0; color: #c8cbd0; font-size: 8px; line-height: 1.5; }
.bsmi-crm-esign-secret { padding: 20px; }
.bsmi-crm-esign-secret > strong { display: block; font-size: 10px; text-transform: uppercase; }
.bsmi-crm-esign-secret code { display: block; margin: 12px 0; padding: 14px; border: 1px solid #d6d9dc; background: #f5f6f7; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.bsmi-crm-esign-secret p { color: #6d737b; font-size: 9px; line-height: 1.5; }

@media (max-width: 1120px) {
  .bsmi-crm-esign-command { grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr); }
  .bsmi-crm-esign-filters { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(130px, .65fr)); }
  .bsmi-crm-esign-filter-count { grid-column: auto; }
  .bsmi-crm-esign-control-grid { grid-template-columns: 1fr; }
  .bsmi-crm-esign-control-band { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-esign-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-esign-command { grid-template-columns: 1fr; }
  .bsmi-crm-esign-command > div { padding: 18px 15px; }
  .bsmi-crm-esign-command > div:last-child { border-top: 1px solid #313439; border-left: 0; }
  .bsmi-crm-esign-command strong { font-size: 23px; }
  .bsmi-crm-esign-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-esign-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-esign-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-esign-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-esign-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-esign-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-esign-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-esign-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-esign-view-head > span { white-space: normal; }
  .bsmi-crm-esign-filters { grid-template-columns: 1fr; }
  .bsmi-crm-esign-filters input,
  .bsmi-crm-esign-filters select,
  .bsmi-crm-esign-filter-count { min-height: 44px; }
  .bsmi-crm-esign-table,
  .bsmi-crm-esign-table tbody { display: block; min-width: 0; }
  .bsmi-crm-esign-table thead { display: none; }
  .bsmi-crm-esign-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-esign-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-esign-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-esign-table td:first-child,
  .bsmi-crm-esign-table td:nth-child(2),
  .bsmi-crm-esign-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-esign-row-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-esign-row-actions button { width: 100%; min-height: 44px; }
  .bsmi-crm-esign-approval-list,
  .bsmi-crm-esign-provider-grid,
  .bsmi-crm-esign-exceptions { grid-template-columns: 1fr; }
  .bsmi-crm-esign-approval-list > article,
  .bsmi-crm-esign-provider-grid > article,
  .bsmi-crm-esign-exceptions > article { border-right: 0; }
  .bsmi-crm-esign-signer-board > article { grid-template-columns: 34px minmax(0, 1fr); }
  .bsmi-crm-esign-signer-board aside { grid-column: 2; align-items: flex-start; }
  .bsmi-crm-esign-signer-board aside > span { text-align: left; }
  .bsmi-crm-esign-control-band,
  .bsmi-crm-esign-policy,
  .bsmi-crm-esign-events { padding: 15px 12px; }
  .bsmi-crm-esign-policy > div { grid-template-columns: 1fr; }
  .bsmi-crm-esign-policy label.is-wide { grid-column: auto; }
  .bsmi-crm-esign-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-esign-policy > header button { min-height: 44px; }
  .bsmi-crm-esign-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-esign-events aside { grid-column: 2; align-items: flex-start; }
  .bsmi-crm-esign-events time,
  .bsmi-crm-esign-events aside small { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-esign-record),
  .bsmi-crm-drawer:has(.bsmi-crm-esign-form),
  .bsmi-crm-drawer:has(.bsmi-crm-esign-secret) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-esign-record > header { flex-direction: column; }
  .bsmi-crm-esign-record-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-esign-record-actions button,
  .bsmi-crm-esign-document-link { min-height: 44px; }
  .bsmi-crm-esign-record-facts,
  .bsmi-crm-esign-approval-list dl,
  .bsmi-crm-esign-provider-grid dl,
  .bsmi-crm-esign-exceptions dl { grid-template-columns: 1fr; }
  .bsmi-crm-esign-record-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-esign-record-events time { grid-column: 2; text-align: left; }
  .bsmi-crm-esign-form input,
  .bsmi-crm-esign-form select,
  .bsmi-crm-esign-form textarea,
  .bsmi-crm-esign-form button { min-height: 44px; }
  .bsmi-crm-esign-signer-row { grid-template-columns: 34px minmax(0, 1fr) 44px; align-items: center; }
  .bsmi-crm-esign-signer-row label { grid-column: 2 / -1; }
  .bsmi-crm-esign-signer-row > .bsmi-crm-esign-order { grid-row: 1; grid-column: 1; }
  .bsmi-crm-esign-signer-row > button { width: 44px; grid-row: 1; grid-column: 3; }
  .bsmi-crm-esign-decision-summary { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .bsmi-crm-esign-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-esign-table td { grid-column: auto !important; }
  .bsmi-crm-esign-kpis article { padding: 14px 12px; }
  .bsmi-crm-esign-kpis strong { font-size: 21px; }
  .bsmi-crm-esign-record-signers article { grid-template-columns: 34px minmax(0, 1fr); }
  .bsmi-crm-esign-record-signers article .bsmi-crm-esign-pill { grid-column: 2; }
}

/* Client Service Operations */
.bsmi-crm-service-command,
.bsmi-crm-service-command *,
.bsmi-crm-service-workspace,
.bsmi-crm-service-workspace *,
.bsmi-crm-service-record,
.bsmi-crm-service-record *,
.bsmi-crm-service-form,
.bsmi-crm-service-form * {
  box-sizing: border-box;
  min-width: 0;
  letter-spacing: 0;
}

.bsmi-crm-service-command {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(430px, .7fr);
  margin-bottom: 12px;
  color: #fff;
  background: #111214;
  border: 1px solid #2d3034;
}

.bsmi-crm-service-command > div { padding: 25px 28px; }
.bsmi-crm-service-command > div:first-child { border-right: 1px solid #34373b; }
.bsmi-crm-service-command small,
.bsmi-crm-service-view-head small,
.bsmi-crm-service-events header small {
  color: #c7a45b;
  font-size: 8px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}
.bsmi-crm-service-command h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.12;
}
.bsmi-crm-service-command p { max-width: 760px; margin: 0; color: #c5c8cc; font-size: 10px; line-height: 1.6; }
.bsmi-crm-service-command dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.bsmi-crm-service-command dl > div { display: flex; min-height: 100%; padding: 19px 16px; justify-content: center; border-right: 1px solid #34373b; flex-direction: column; }
.bsmi-crm-service-command dl > div:last-child { border-right: 0; }
.bsmi-crm-service-command dt { color: #aeb2b7; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-service-command dd { margin: 5px 0 3px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 23px; }
.bsmi-crm-service-command dl small { color: #b7aa8d; font-size: 7px; font-weight: 600; text-transform: none; }

.bsmi-crm-service-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 8px;
  align-items: center;
  border: 1px solid #d4d7da;
  border-radius: 3px;
  color: #555c64;
  background: #f5f6f7;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.bsmi-crm-service-pill.is-clear { color: #205f49; background: #eef7f3; border-color: #b8d9ca; }
.bsmi-crm-service-pill.is-attention { color: #765717; background: #fbf5e7; border-color: #ddc68b; }
.bsmi-crm-service-pill.is-critical { color: #922a30; background: #fbeff0; border-color: #dfb7ba; }
.bsmi-crm-service-pill.is-muted { color: #59606a; background: #f1f2f3; border-color: #d2d5d8; }
.bsmi-crm-service-pill.is-neutral { color: #4b5159; background: #f6f7f8; border-color: #d8dbde; }

.bsmi-crm-service-kpis,
.bsmi-crm-service-outcome-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-service-kpis article,
.bsmi-crm-service-outcome-kpis article { min-height: 92px; padding: 16px 18px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-service-kpis article:last-child,
.bsmi-crm-service-outcome-kpis article:last-child { border-right: 0; }
.bsmi-crm-service-kpis span,
.bsmi-crm-service-outcome-kpis span { display: block; color: var(--bsmi-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-service-kpis strong,
.bsmi-crm-service-outcome-kpis strong { display: block; margin: 5px 0 4px; color: #15171a; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-service-kpis small,
.bsmi-crm-service-outcome-kpis small { color: #777d85; font-size: 8px; }

.bsmi-crm-service-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-bottom: 0;
}
.bsmi-crm-service-tabs button {
  display: flex;
  min-height: 50px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  color: #535961;
  background: #fff;
  font-size: 9px;
  font-weight: 800;
}
.bsmi-crm-service-tabs button:last-child { border-right: 0; }
.bsmi-crm-service-tabs button strong { min-width: 24px; padding: 3px 6px; border-radius: 2px; color: #6a7078; background: #f0f1f2; font-size: 8px; text-align: center; }
.bsmi-crm-service-tabs button.is-active { color: #111214; background: #f8f5ef; box-shadow: inset 0 -3px #b89a5b; }
.bsmi-crm-service-tabs button.is-active strong { color: #fff; background: #17191d; }

.bsmi-crm-service-workspace { background: #fff; border: 1px solid var(--bsmi-line); }
.bsmi-crm-service-view-head { display: flex; min-height: 78px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-service-view-head h2 { margin: 4px 0 3px; color: #17191d; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500; line-height: 1.15; }
.bsmi-crm-service-view-head p { max-width: 790px; margin: 0; color: #70767e; font-size: 9px; line-height: 1.5; }
.bsmi-crm-service-view-head > span { color: #777d85; font-size: 8px; white-space: nowrap; }

.bsmi-crm-service-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) repeat(4, minmax(120px, .65fr)) minmax(92px, .4fr);
  padding: 12px 14px;
  gap: 8px;
  background: #f7f8f8;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-service-filters label { display: flex; gap: 4px; flex-direction: column; }
.bsmi-crm-service-filters label > span { color: #686f77; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-service-filters input,
.bsmi-crm-service-filters select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d8dbde; border-radius: 3px; color: #202226; background: #fff; font-size: 9px; }
.bsmi-crm-service-filter-count { display: flex; min-height: 36px; padding: 5px 10px; align-self: end; justify-content: center; border-left: 2px solid #b89a5b; background: #ece7dc; flex-direction: column; }
.bsmi-crm-service-filter-count strong { color: #181a1d; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; }
.bsmi-crm-service-filter-count span { color: #686158; font-size: 7px; text-transform: uppercase; }

.bsmi-crm-service-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-service-table { width: 100%; min-width: 1200px; border-collapse: collapse; table-layout: fixed; }
.bsmi-crm-service-table th { padding: 9px 10px; color: #777d85; background: #fbfbfb; border-bottom: 1px solid var(--bsmi-line); font-size: 7px; font-weight: 850; text-align: left; text-transform: uppercase; }
.bsmi-crm-service-table th:nth-child(1) { width: 16%; }
.bsmi-crm-service-table th:nth-child(2) { width: 17%; }
.bsmi-crm-service-table th:nth-child(3) { width: 12%; }
.bsmi-crm-service-table th:nth-child(4) { width: 13%; }
.bsmi-crm-service-table th:nth-child(5) { width: 18%; }
.bsmi-crm-service-table th:nth-child(6) { width: 11%; }
.bsmi-crm-service-table th:nth-child(7) { width: 13%; }
.bsmi-crm-service-table td { padding: 11px 10px; vertical-align: top; border-bottom: 1px solid #eceeef; color: #3d4249; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-service-table tr:last-child td { border-bottom: 0; }
.bsmi-crm-service-table tr.is-critical td:first-child { box-shadow: inset 3px 0 #a92d33; }
.bsmi-crm-service-table tr.is-attention td:first-child { box-shadow: inset 3px 0 #c19b4c; }
.bsmi-crm-service-table td > strong,
.bsmi-crm-service-table td > span,
.bsmi-crm-service-table td > small { display: block; margin-bottom: 4px; }
.bsmi-crm-service-table td > strong { color: #1b1d21; font-size: 9px; }
.bsmi-crm-service-table td > span { color: #686f77; line-height: 1.35; }
.bsmi-crm-service-table td > small { color: #9499a0; font-size: 7px; }
.bsmi-crm-service-table td > small.is-escalated { color: #922a30; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-service-table .bsmi-crm-service-pill { margin: 4px 0; }
.bsmi-crm-service-row-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.bsmi-crm-service-row-actions button,
.bsmi-crm-service-record-actions button { min-height: 32px; padding: 6px 9px; border: 1px solid #ccd0d4; border-radius: 3px; color: #25282d; background: #fff; font-size: 8px; font-weight: 800; }
.bsmi-crm-service-empty { margin: 0; padding: 28px 20px; color: #7a8088; font-size: 9px; text-align: center; }

.bsmi-crm-service-mini-kpis,
.bsmi-crm-service-renewal-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f7f7f6; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-service-mini-kpis article,
.bsmi-crm-service-renewal-strip > div { display: flex; min-height: 62px; padding: 12px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-service-mini-kpis article:last-child,
.bsmi-crm-service-renewal-strip > div:last-child { border-right: 0; }
.bsmi-crm-service-mini-kpis strong,
.bsmi-crm-service-renewal-strip strong { color: #1d1f23; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-service-mini-kpis span,
.bsmi-crm-service-renewal-strip span { color: #747a82; font-size: 8px; text-transform: uppercase; }

.bsmi-crm-service-maintenance-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #f7f7f6;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-service-maintenance-kpis article { min-height: 76px; padding: 14px 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-service-maintenance-kpis article:last-child { border-right: 0; }
.bsmi-crm-service-maintenance-kpis span,
.bsmi-crm-service-maintenance-kpis strong,
.bsmi-crm-service-maintenance-kpis small { display: block; }
.bsmi-crm-service-maintenance-kpis span { color: #737980; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-service-maintenance-kpis strong { margin: 5px 0 3px; color: #1c1e22; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.bsmi-crm-service-maintenance-kpis small { color: #898f96; font-size: 7px; line-height: 1.4; }
.bsmi-crm-service-maintenance-table { min-width: 1340px; }
.bsmi-crm-service-maintenance-table th:nth-child(1) { width: 17%; }
.bsmi-crm-service-maintenance-table th:nth-child(2) { width: 16%; }
.bsmi-crm-service-maintenance-table th:nth-child(3) { width: 16%; }
.bsmi-crm-service-maintenance-table th:nth-child(4) { width: 17%; }
.bsmi-crm-service-maintenance-table th:nth-child(5) { width: 15%; }
.bsmi-crm-service-maintenance-table th:nth-child(6) { width: 19%; }
.bsmi-crm-service-maintenance-table td:last-child .bsmi-crm-service-row-actions { margin-top: 8px; }

.bsmi-crm-service-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-service-case-grid > article { padding: 18px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-service-case-grid > article:nth-child(2n) { border-right: 0; }
.bsmi-crm-service-case-grid > article > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bsmi-crm-service-case-grid header small { color: #9a7d42; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-service-case-grid h3 { margin: 4px 0; color: #1c1e22; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.bsmi-crm-service-case-grid header p { margin: 3px 0 0; color: #6f757d; font-size: 8px; line-height: 1.5; }
.bsmi-crm-service-stage { height: 5px; margin: 14px 0 12px; overflow: hidden; background: #e5e7e9; }
.bsmi-crm-service-stage span { display: block; height: 100%; max-width: 100%; background: #b89a5b; }
.bsmi-crm-service-case-grid.is-complaint .bsmi-crm-service-stage span { background: #a92d33; }
.bsmi-crm-service-case-grid dl,
.bsmi-crm-service-record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; border: 1px solid #e3e5e7; }
.bsmi-crm-service-case-grid dl > div,
.bsmi-crm-service-record-facts > div { padding: 9px; border-right: 1px solid #eceeef; border-bottom: 1px solid #eceeef; overflow-wrap: anywhere; }
.bsmi-crm-service-case-grid dt,
.bsmi-crm-service-record-facts dt { color: #898f96; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-service-case-grid dd,
.bsmi-crm-service-record-facts dd { margin: 3px 0 0; color: #31353a; font-size: 8px; line-height: 1.4; }
.bsmi-crm-service-case-grid > article > footer { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bsmi-crm-service-case-grid > article > footer > span { color: #7b8189; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-service-case-grid footer > div { display: flex; gap: 5px; flex-wrap: wrap; }
.bsmi-crm-service-case-grid footer button { min-height: 34px; padding: 6px 10px; border: 1px solid #ccd0d4; border-radius: 3px; color: #26292d; background: #fff; font-size: 8px; font-weight: 800; }
.bsmi-crm-service-complaint-note { display: flex; min-height: 48px; padding: 12px 18px; align-items: center; justify-content: space-between; gap: 12px; color: #74242a; background: #fcf3f3; border-bottom: 1px solid #e2c4c7; border-left: 4px solid #a92d33; }
.bsmi-crm-service-complaint-note strong { font-size: 9px; }
.bsmi-crm-service-complaint-note span { color: #81585b; font-size: 8px; }

.bsmi-crm-service-outcome-kpis { margin: 0; border: 0; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-service-outcome-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-service-outcome-grid > div { padding: 18px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-service-outcome-grid > div:last-child { border-right: 0; }
.bsmi-crm-service-outcome-grid > div > header { display: flex; margin-bottom: 12px; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-service-outcome-grid h3 { margin: 0; color: #1b1d21; font-size: 12px; }
.bsmi-crm-service-outcome-grid header span { color: #7c8289; font-size: 7px; }
.bsmi-crm-service-outcome-grid article { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(140px, 1fr) 36px; padding: 8px 0; align-items: center; gap: 10px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-service-outcome-grid article strong,
.bsmi-crm-service-outcome-grid article span { display: block; }
.bsmi-crm-service-outcome-grid article strong { color: #31353a; font-size: 8px; }
.bsmi-crm-service-outcome-grid article span,
.bsmi-crm-service-outcome-grid article small { color: #858b92; font-size: 7px; }
.bsmi-crm-service-bar { height: 6px; overflow: hidden; background: #e7e8e9; }
.bsmi-crm-service-bar span { display: block; height: 100%; max-width: 100%; background: #b89a5b; }

.bsmi-crm-service-control-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); }
.bsmi-crm-service-control-band,
.bsmi-crm-service-policy { padding: 18px; }
.bsmi-crm-service-control-band { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-service-control-band > header,
.bsmi-crm-service-policy > header,
.bsmi-crm-service-events > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-service-control-band h3,
.bsmi-crm-service-policy h3,
.bsmi-crm-service-events h3 { margin: 0; color: #1b1d21; font-size: 12px; }
.bsmi-crm-service-control-band > header span,
.bsmi-crm-service-policy > header span,
.bsmi-crm-service-events > header > span { color: #7c8289; font-size: 7px; }
.bsmi-crm-service-control-band > div { margin-top: 12px; border-top: 1px solid #e4e6e8; }
.bsmi-crm-service-control-band > div > article { display: grid; grid-template-columns: 12px minmax(0, 1fr); padding: 9px 0; gap: 9px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-service-control-band article i { width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: #b9bec4; }
.bsmi-crm-service-control-band article i.is-pass { background: #2d6b55; }
.bsmi-crm-service-control-band article i.is-blocked { background: #a8272d; }
.bsmi-crm-service-control-band article strong,
.bsmi-crm-service-control-band article small { display: block; }
.bsmi-crm-service-control-band article strong { color: #292c31; font-size: 8px; }
.bsmi-crm-service-control-band article small { margin-top: 3px; color: #7c828a; font-size: 7px; line-height: 1.45; }

.bsmi-crm-service-policy { background: #f7f7f6; }
.bsmi-crm-service-policy > header button { min-height: 34px; padding: 6px 10px; border: 1px solid #1b1d21; border-radius: 3px; color: #fff; background: #1b1d21; font-size: 8px; font-weight: 800; }
.bsmi-crm-service-policy-basics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; gap: 8px; }
.bsmi-crm-service-policy label { display: flex; gap: 4px; flex-direction: column; }
.bsmi-crm-service-policy label > span { color: #656c74; font-size: 7px; font-weight: 800; }
.bsmi-crm-service-policy input,
.bsmi-crm-service-policy textarea { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #d4d7da; border-radius: 3px; background: #fff; font-size: 9px; }
.bsmi-crm-service-policy label.is-check { display: flex; min-height: 38px; padding: 8px; align-items: center; border: 1px solid #dedfe1; background: #fff; flex-direction: row; }
.bsmi-crm-service-policy label.is-check input { width: 16px; min-height: 16px; margin: 0; }
.bsmi-crm-service-policy > label.is-wide { display: flex; margin-top: 10px; }
.bsmi-crm-service-policy [data-form-message] { color: #596069; font-size: 8px; }
.bsmi-crm-service-sla-editor { margin-top: 12px; border: 1px solid #dfe1e3; background: #fff; }
.bsmi-crm-service-sla-editor > header,
.bsmi-crm-service-sla-editor > div { display: grid; grid-template-columns: minmax(100px, .7fr) repeat(2, minmax(120px, 1fr)); padding: 7px 9px; align-items: center; gap: 8px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-service-sla-editor > header { color: #7b8188; background: #f2f3f4; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-service-sla-editor > div:last-child { border-bottom: 0; }
.bsmi-crm-service-sla-editor strong { color: #2e3237; font-size: 8px; }
.bsmi-crm-service-sla-editor label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bsmi-crm-service-events { padding: 18px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-service-events > div { margin-top: 12px; border-top: 1px solid #e2e4e6; }
.bsmi-crm-service-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) minmax(130px, .25fr); padding: 10px 0; align-items: start; gap: 10px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-service-events article > i { width: 7px; height: 7px; margin-top: 3px; border: 1px solid #b89a5b; border-radius: 50%; background: #fff; }
.bsmi-crm-service-events article strong,
.bsmi-crm-service-events article span,
.bsmi-crm-service-events article p { display: block; }
.bsmi-crm-service-events article strong { color: #24272b; font-size: 8px; }
.bsmi-crm-service-events article span { margin-top: 2px; color: #8b7446; font-size: 7px; }
.bsmi-crm-service-events article p { margin: 3px 0 0; color: #737981; font-size: 7px; line-height: 1.45; }
.bsmi-crm-service-events aside { display: flex; align-items: flex-end; flex-direction: column; }
.bsmi-crm-service-events time,
.bsmi-crm-service-events aside small { color: #8d9299; font-size: 7px; text-align: right; }

.bsmi-crm-drawer:has(.bsmi-crm-service-record),
.bsmi-crm-drawer:has(.bsmi-crm-service-form) { width: min(790px, 100vw); }
.bsmi-crm-service-record { padding: 18px; }
.bsmi-crm-service-record > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-service-record > header h3 { margin: 4px 0; color: #181a1e; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-service-record > header p { margin: 0; color: #70767e; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.bsmi-crm-service-record-actions { display: flex; margin: 15px 0; gap: 7px; flex-wrap: wrap; }
.bsmi-crm-service-sla-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; padding: 12px; align-items: center; gap: 12px; background: #f4f1ea; border-left: 3px solid #b89a5b; }
.bsmi-crm-service-sla-card > div { padding-right: 12px; border-right: 1px solid #d8cfbc; }
.bsmi-crm-service-sla-card span,
.bsmi-crm-service-sla-card strong,
.bsmi-crm-service-sla-card small { display: block; }
.bsmi-crm-service-sla-card span { color: #71684f; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-service-sla-card strong { margin: 3px 0; color: #26282c; font-size: 10px; }
.bsmi-crm-service-sla-card small { color: #7e755f; font-size: 7px; }
.bsmi-crm-service-next,
.bsmi-crm-service-escalation,
.bsmi-crm-service-resolution,
.bsmi-crm-service-record-events { margin-top: 14px; padding: 13px; border: 1px solid #e0e2e4; }
.bsmi-crm-service-next { border-left: 3px solid #b89a5b; background: #f8f6f1; }
.bsmi-crm-service-next small,
.bsmi-crm-service-next strong,
.bsmi-crm-service-next span { display: block; }
.bsmi-crm-service-next small { color: #8b7446; font-size: 7px; font-weight: 850; }
.bsmi-crm-service-next strong { margin: 5px 0; color: #22252a; font-size: 10px; }
.bsmi-crm-service-next span { color: #737981; font-size: 8px; }
.bsmi-crm-service-escalation { border-left: 3px solid #a8272d; background: #fcf5f5; }
.bsmi-crm-service-escalation strong { color: #85262b; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-service-escalation p,
.bsmi-crm-service-resolution p { margin: 5px 0; color: #6d4a4d; font-size: 8px; line-height: 1.5; }
.bsmi-crm-service-escalation span,
.bsmi-crm-service-resolution span { color: #858b92; font-size: 7px; }
.bsmi-crm-service-resolution { border-left: 3px solid #2d6b55; background: #f2f8f5; }
.bsmi-crm-service-resolution strong { color: #205f49; font-size: 9px; }
.bsmi-crm-service-resolution p { color: #4d665d; }
.bsmi-crm-service-maintenance-record { margin-top: 14px; padding: 13px; border: 1px solid #d8d3c7; border-left: 3px solid #b89a5b; background: #faf8f3; }
.bsmi-crm-service-maintenance-record > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-service-maintenance-record header small { display: block; color: #8b7446; font-size: 7px; font-weight: 850; }
.bsmi-crm-service-maintenance-record h4 { margin: 3px 0 0; color: #1f2125; font-size: 12px; }
.bsmi-crm-service-maintenance-record dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; border: 1px solid #e2ded4; background: #fff; }
.bsmi-crm-service-maintenance-record dl > div { padding: 9px; border-right: 1px solid #ece8de; border-bottom: 1px solid #ece8de; overflow-wrap: anywhere; }
.bsmi-crm-service-maintenance-record dt { color: #878078; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-service-maintenance-record dd { margin: 3px 0 0; color: #31353a; font-size: 8px; line-height: 1.45; }
.bsmi-crm-service-record-events > header { display: flex; align-items: center; justify-content: space-between; }
.bsmi-crm-service-record-events h4 { margin: 0; font-size: 10px; }
.bsmi-crm-service-record-events header span { color: #858b92; font-size: 7px; }
.bsmi-crm-service-record-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) 130px; padding: 9px 0; gap: 8px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-service-record-events article > i { width: 6px; height: 6px; margin-top: 3px; border-radius: 50%; background: #b89a5b; }
.bsmi-crm-service-record-events article strong,
.bsmi-crm-service-record-events article small { display: block; }
.bsmi-crm-service-record-events article strong { font-size: 8px; }
.bsmi-crm-service-record-events article small { margin-top: 2px; color: #7c828a; font-size: 7px; }
.bsmi-crm-service-record-events time { color: #8a9097; font-size: 7px; text-align: right; }
.bsmi-crm-service-form .is-wide { grid-column: 1 / -1; }
.bsmi-crm-service-form label.is-check { display: flex; min-height: 42px; padding: 9px; align-items: center; border: 1px solid #dfe1e3; background: #f8f8f8; flex-direction: row; }
.bsmi-crm-service-form label.is-check input { width: 17px; min-height: 17px; margin: 0 8px 0 0; }
.bsmi-crm-service-form [data-service-maintenance-create][hidden] { display: none !important; }
.bsmi-crm-service-form-note { grid-column: 1 / -1; margin: 0; padding: 10px; color: #665b42; background: #f5f1e8; border-left: 3px solid #b89a5b; font-size: 8px; line-height: 1.5; }

@media (max-width: 1180px) {
  .bsmi-crm-service-command { grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); }
  .bsmi-crm-service-filters { grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(125px, .65fr)); }
  .bsmi-crm-service-control-grid { grid-template-columns: 1fr; }
  .bsmi-crm-service-control-band { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-maintenance-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-service-maintenance-kpis article:nth-child(3n) { border-right: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-service-tabs) > .bsmi-crm-page-head > div:last-child { display: grid; width: 100%; grid-template-columns: 1fr; }
  .bsmi-crm-content:has(.bsmi-crm-service-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-service-command { grid-template-columns: 1fr; }
  .bsmi-crm-service-command > div { padding: 18px 15px; }
  .bsmi-crm-service-command > div:first-child { border-right: 0; border-bottom: 1px solid #34373b; }
  .bsmi-crm-service-command h2 { font-size: 23px; }
  .bsmi-crm-service-command dl > div { min-height: 74px; padding: 12px 10px; }
  .bsmi-crm-service-command dd { font-size: 20px; }
  .bsmi-crm-service-kpis,
  .bsmi-crm-service-outcome-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-service-kpis article:nth-child(2n),
  .bsmi-crm-service-outcome-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-service-kpis article:nth-child(-n+2),
  .bsmi-crm-service-outcome-kpis article:nth-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-service-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-service-tabs button:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .bsmi-crm-service-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-service-view-head > span { white-space: normal; }
  .bsmi-crm-service-filters { grid-template-columns: 1fr; }
  .bsmi-crm-service-filters input,
  .bsmi-crm-service-filters select,
  .bsmi-crm-service-filter-count { min-height: 44px; }
  .bsmi-crm-service-table,
  .bsmi-crm-service-table tbody { display: block; min-width: 0; }
  .bsmi-crm-service-table thead { display: none; }
  .bsmi-crm-service-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-service-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-service-table td:first-child,
  .bsmi-crm-service-table td:nth-child(2),
  .bsmi-crm-service-table td:nth-child(5),
  .bsmi-crm-service-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-service-row-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-service-row-actions button { width: 100%; min-height: 44px; }
  .bsmi-crm-service-case-grid,
  .bsmi-crm-service-outcome-grid { grid-template-columns: 1fr; }
  .bsmi-crm-service-case-grid > article,
  .bsmi-crm-service-outcome-grid > div { border-right: 0; }
  .bsmi-crm-service-mini-kpis,
  .bsmi-crm-service-renewal-strip { grid-template-columns: 1fr; }
  .bsmi-crm-service-maintenance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-service-maintenance-kpis article:nth-child(3n) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-maintenance-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-service-maintenance-kpis article:last-child { grid-column: 1 / -1; border-right: 0; }
  .bsmi-crm-service-mini-kpis article,
  .bsmi-crm-service-renewal-strip > div { min-height: 54px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-complaint-note { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-service-outcome-grid article { grid-template-columns: minmax(120px, .8fr) minmax(90px, 1fr) 32px; }
  .bsmi-crm-service-control-band,
  .bsmi-crm-service-policy,
  .bsmi-crm-service-events { padding: 15px 12px; }
  .bsmi-crm-service-policy-basics { grid-template-columns: 1fr; }
  .bsmi-crm-service-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-service-policy > header button { min-height: 44px; }
  .bsmi-crm-service-sla-editor > header { display: none; }
  .bsmi-crm-service-sla-editor > div { grid-template-columns: 1fr 1fr; }
  .bsmi-crm-service-sla-editor > div strong { grid-column: 1 / -1; }
  .bsmi-crm-service-sla-editor label > span { position: static; width: auto; height: auto; clip: auto; }
  .bsmi-crm-service-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-service-events aside { grid-column: 2; align-items: flex-start; }
  .bsmi-crm-service-events time,
  .bsmi-crm-service-events aside small { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-service-record),
  .bsmi-crm-drawer:has(.bsmi-crm-service-form) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-service-record > header { flex-direction: column; }
  .bsmi-crm-service-record-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-service-record-actions button { min-height: 44px; }
  .bsmi-crm-service-sla-card { grid-template-columns: 1fr; }
  .bsmi-crm-service-sla-card > div { padding-right: 0; padding-bottom: 8px; border-right: 0; border-bottom: 1px solid #d8cfbc; }
  .bsmi-crm-service-record-facts,
  .bsmi-crm-service-case-grid dl,
  .bsmi-crm-service-maintenance-record dl { grid-template-columns: 1fr; }
  .bsmi-crm-service-record-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-service-record-events time { grid-column: 2; text-align: left; }
  .bsmi-crm-service-form input,
  .bsmi-crm-service-form select,
  .bsmi-crm-service-form textarea,
  .bsmi-crm-service-form button { min-height: 44px; }
}

@media (max-width: 430px) {
  .bsmi-crm-service-command dl { grid-template-columns: 1fr; }
  .bsmi-crm-service-command dl > div { border-right: 0; border-bottom: 1px solid #34373b; }
  .bsmi-crm-service-command dl > div:last-child { border-bottom: 0; }
  .bsmi-crm-service-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-service-table td { grid-column: auto !important; }
  .bsmi-crm-service-kpis article,
  .bsmi-crm-service-outcome-kpis article { padding: 14px 12px; }
  .bsmi-crm-service-kpis strong,
  .bsmi-crm-service-outcome-kpis strong { font-size: 21px; }
  .bsmi-crm-service-maintenance-kpis { grid-template-columns: 1fr; }
  .bsmi-crm-service-maintenance-kpis article,
  .bsmi-crm-service-maintenance-kpis article:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-service-maintenance-kpis article:last-child { border-bottom: 0; }
  .bsmi-crm-service-case-grid > article > header { flex-direction: column; }
  .bsmi-crm-service-case-grid footer > div { display: grid; width: 100%; grid-template-columns: 1fr; }
  .bsmi-crm-service-case-grid footer button { width: 100%; min-height: 44px; }
  .bsmi-crm-service-outcome-grid article { grid-template-columns: 1fr 34px; }
  .bsmi-crm-service-outcome-grid article > div:first-child { grid-column: 1 / -1; }
}

/* Dubai regulatory operations */
.bsmi-crm-regulatory,
.bsmi-crm-regulatory *,
.bsmi-crm-reg-record,
.bsmi-crm-reg-record *,
.bsmi-crm-reg-form,
.bsmi-crm-reg-form * { box-sizing: border-box; }

.bsmi-crm-regulatory { color: #202226; }
.bsmi-crm-reg-command { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .72fr); overflow: hidden; color: #fff; background: #111316; border-top: 3px solid #b99a58; }
.bsmi-crm-reg-command > div { min-width: 0; padding: 24px 28px; border-right: 1px solid #34373b; }
.bsmi-crm-reg-command small { color: #d4b875; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-reg-command h2 { max-width: 720px; margin: 7px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; line-height: 1.08; }
.bsmi-crm-reg-command p { max-width: 760px; margin: 0; color: #aeb3ba; font-size: 9px; line-height: 1.55; }
.bsmi-crm-reg-command dl { display: grid; min-width: 0; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsmi-crm-reg-command dl > div { display: flex; min-width: 0; min-height: 118px; padding: 18px 14px; justify-content: center; border-right: 1px solid #34373b; flex-direction: column; }
.bsmi-crm-reg-command dl > div:last-child { border-right: 0; }
.bsmi-crm-reg-command dt { color: #8f959d; font-size: 7px; font-weight: 800; line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
.bsmi-crm-reg-command dd { margin: 7px 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 27px; }

.bsmi-crm-reg-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border: 1px solid var(--bsmi-line); border-top: 0; }
.bsmi-crm-reg-tabs button { display: flex; min-width: 0; min-height: 46px; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 8px; color: #6d737b; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; font-size: 8px; font-weight: 800; cursor: pointer; }
.bsmi-crm-reg-tabs button:last-child { border-right: 0; }
.bsmi-crm-reg-tabs button span { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.bsmi-crm-reg-tabs button strong { min-width: 25px; padding: 3px 6px; color: #626871; background: #eef0f1; border-radius: 2px; font-size: 8px; text-align: center; }
.bsmi-crm-reg-tabs button.is-active { color: #17191d; background: #f8f6f1; box-shadow: inset 0 -3px #b99a58; }
.bsmi-crm-reg-tabs button.is-active strong { color: #fff; background: #17191d; }
.bsmi-crm-reg-workspace { background: #fff; border: 1px solid var(--bsmi-line); border-top: 0; }

.bsmi-crm-reg-view-head { display: flex; min-height: 78px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-view-head > div { min-width: 0; }
.bsmi-crm-reg-view-head small { color: #9a7d42; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-reg-view-head h2 { margin: 4px 0; color: #1b1d21; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-reg-view-head p { margin: 0; color: #767c84; font-size: 8px; line-height: 1.45; }
.bsmi-crm-reg-view-head > span { color: #858b92; font-size: 7px; white-space: nowrap; }

.bsmi-crm-reg-pill { display: inline-flex; min-height: 22px; padding: 4px 7px; align-items: center; border: 1px solid #d7dade; border-radius: 2px; color: #5c626a; background: #f4f5f6; font-size: 7px; font-style: normal; font-weight: 850; line-height: 1; white-space: nowrap; }
.bsmi-crm-reg-pill.is-critical { color: #8b252b; background: #fcf2f2; border-color: #e3bfc2; }
.bsmi-crm-reg-pill.is-attention { color: #745b22; background: #fbf7ea; border-color: #ddce9e; }
.bsmi-crm-reg-pill.is-clear { color: #205d48; background: #eef7f2; border-color: #bfd9cc; }
.bsmi-crm-reg-pill.is-waived { color: #2d5179; background: #eff5fb; border-color: #c3d3e4; }

.bsmi-crm-reg-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-kpis article { display: flex; min-width: 0; min-height: 82px; padding: 15px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-reg-kpis article:last-child { border-right: 0; }
.bsmi-crm-reg-kpis span { color: #7c828a; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-reg-kpis strong { margin: 4px 0; color: #1d1f23; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-reg-kpis small { color: #92979d; font-size: 7px; }
.bsmi-crm-reg-kpis article.is-critical { background: #fcf4f4; box-shadow: inset 3px 0 #a8272d; }
.bsmi-crm-reg-kpis article.is-critical strong { color: #91272d; }
.bsmi-crm-reg-kpis article.is-clear { background: #f2f8f5; box-shadow: inset 3px 0 #2d6b55; }
.bsmi-crm-reg-kpis article.is-clear strong { color: #245f4b; }

.bsmi-crm-reg-gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f6f7f7; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-gates > div { display: flex; min-width: 0; min-height: 76px; padding: 14px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-reg-gates > div:last-child { border-right: 0; }
.bsmi-crm-reg-gates small { color: #9a7d42; font-size: 7px; font-weight: 850; }
.bsmi-crm-reg-gates strong { margin: 4px 0; color: #26292d; font-size: 10px; }
.bsmi-crm-reg-gates span { color: #777d84; font-size: 7px; line-height: 1.4; }

.bsmi-crm-reg-filters { display: grid; padding: 12px 14px; align-items: end; gap: 8px; grid-template-columns: minmax(230px, 1.25fr) repeat(4, minmax(125px, .68fr)) 82px; background: #fafafa; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-filters label { display: flex; min-width: 0; gap: 4px; flex-direction: column; }
.bsmi-crm-reg-filters label > span { color: #737981; font-size: 7px; font-weight: 800; }
.bsmi-crm-reg-filters input,
.bsmi-crm-reg-filters select { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; color: #30343a; background: #fff; border: 1px solid #d6d9dc; border-radius: 3px; font-size: 8px; }
.bsmi-crm-reg-filter-count { display: flex; min-width: 0; min-height: 36px; padding: 5px 8px; align-items: center; justify-content: center; color: #fff; background: #191b1f; border-radius: 3px; flex-direction: column; }
.bsmi-crm-reg-filter-count strong { font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-reg-filter-count span { color: #adb2b8; font-size: 6px; text-transform: uppercase; }

.bsmi-crm-reg-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-reg-table { width: 100%; min-width: 1050px; border-collapse: collapse; table-layout: fixed; }
.bsmi-crm-reg-table th { padding: 8px 10px; color: #7a8088; background: #f2f3f4; border-bottom: 1px solid var(--bsmi-line); font-size: 7px; text-align: left; text-transform: uppercase; }
.bsmi-crm-reg-table th:nth-child(1) { width: 25%; }
.bsmi-crm-reg-table th:nth-child(2) { width: 16%; }
.bsmi-crm-reg-table th:nth-child(3) { width: 14%; }
.bsmi-crm-reg-table th:nth-child(4) { width: 14%; }
.bsmi-crm-reg-table th:nth-child(5) { width: 12%; }
.bsmi-crm-reg-table th:nth-child(6) { width: 19%; }
.bsmi-crm-reg-table td { min-width: 0; padding: 11px 10px; vertical-align: middle; border-bottom: 1px solid #e7e9ea; color: #31353a; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-reg-table td > strong,
.bsmi-crm-reg-table td > small { display: block; }
.bsmi-crm-reg-table td > small { margin-top: 4px; color: #838990; font-size: 7px; line-height: 1.35; }
.bsmi-crm-reg-case-title { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 9px; }
.bsmi-crm-reg-case-title > i { width: 4px; min-height: 46px; background: #aeb3b8; }
.bsmi-crm-reg-case-title > i.is-critical { background: #a8272d; }
.bsmi-crm-reg-case-title > i.is-attention { background: #b99a58; }
.bsmi-crm-reg-case-title small,
.bsmi-crm-reg-case-title strong { display: block; }
.bsmi-crm-reg-case-title small { color: #9a7d42; font-size: 7px; font-weight: 800; }
.bsmi-crm-reg-case-title strong { margin: 4px 0 6px; color: #22252a; font-size: 9px; line-height: 1.3; }
.bsmi-crm-reg-case-title em { display: flex; gap: 4px; flex-wrap: wrap; }
.bsmi-crm-reg-evidence-meter { display: grid; grid-template-columns: minmax(55px, 1fr) 35px; align-items: center; gap: 5px; }
.bsmi-crm-reg-evidence-meter > span { height: 5px; overflow: hidden; background: #e2e4e6; }
.bsmi-crm-reg-evidence-meter > span i { display: block; height: 100%; background: #b99a58; }
.bsmi-crm-reg-evidence-meter strong { color: #34383d; font-size: 8px; text-align: right; }
.bsmi-crm-reg-evidence-meter small { grid-column: 1 / -1; color: #858b92; font-size: 7px; }
.bsmi-crm-reg-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.bsmi-crm-reg-row-actions button,
.bsmi-crm-reg-record-actions button,
.bsmi-crm-reg-record-evidence header button { min-height: 32px; padding: 6px 8px; color: #25282d; background: #fff; border: 1px solid #ccd0d4; border-radius: 3px; font-size: 7px; font-weight: 850; cursor: pointer; }
.bsmi-crm-reg-empty { margin: 0; padding: 28px 18px; color: #7d838b; font-size: 9px; text-align: center; }

.bsmi-crm-reg-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f7f7f6; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-strip.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsmi-crm-reg-strip > div { display: flex; min-height: 62px; padding: 12px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-reg-strip > div:last-child { border-right: 0; }
.bsmi-crm-reg-strip span { color: #777d84; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-reg-strip strong { margin-top: 3px; color: #1e2024; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }

.bsmi-crm-reg-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-people > article { display: grid; min-width: 0; padding: 16px; align-items: center; gap: 10px; grid-template-columns: 38px minmax(0, 1fr) auto; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-people > article:last-child { border-right: 0; }
.bsmi-crm-reg-person-mark { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: #fff; background: #17191d; border-bottom: 3px solid #b99a58; font-family: Georgia, "Times New Roman", serif; font-size: 13px; }
.bsmi-crm-reg-people article > div:nth-child(2) { min-width: 0; }
.bsmi-crm-reg-people strong,
.bsmi-crm-reg-people span,
.bsmi-crm-reg-people small { display: block; overflow-wrap: anywhere; }
.bsmi-crm-reg-people strong { color: #22252a; font-size: 9px; }
.bsmi-crm-reg-people span { margin: 2px 0; color: #767c84; font-size: 7px; }
.bsmi-crm-reg-people small { color: #987d46; font-size: 7px; }
.bsmi-crm-reg-people dl { display: none; margin: 0; }
.bsmi-crm-reg-people button { grid-column: 2 / -1; min-height: 32px; color: #202328; background: #fff; border: 1px solid #ccd0d4; border-radius: 3px; font-size: 7px; font-weight: 850; }

.bsmi-crm-reg-expiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-reg-expiry-group { min-width: 0; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-expiry-group:nth-child(2n) { border-right: 0; }
.bsmi-crm-reg-expiry-group > header { display: flex; min-height: 52px; padding: 10px 14px; align-items: center; justify-content: space-between; gap: 10px; background: #f3f4f4; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-expiry-group.is-expired > header { background: #fbf0f1; box-shadow: inset 4px 0 #a8272d; }
.bsmi-crm-reg-expiry-group.is-seven > header { background: #fbf6e9; box-shadow: inset 4px 0 #b99a58; }
.bsmi-crm-reg-expiry-group > header small { display: block; color: #696f77; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-reg-expiry-group > header strong { display: block; color: #1e2024; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-reg-expiry-group > header > span { color: #858b92; font-size: 7px; }
.bsmi-crm-reg-expiry-group > div > article { display: grid; min-width: 0; min-height: 64px; padding: 10px 12px; align-items: center; gap: 8px; grid-template-columns: 62px 6px minmax(0, 1fr) auto auto; border-bottom: 1px solid #eaebec; }
.bsmi-crm-reg-expiry-group > div > article:last-child { border-bottom: 0; }
.bsmi-crm-reg-expiry-group time { color: #33373c; font-size: 8px; font-weight: 850; }
.bsmi-crm-reg-expiry-group article > i { width: 5px; height: 5px; border-radius: 50%; background: #b99a58; }
.bsmi-crm-reg-expiry-group article > div { min-width: 0; }
.bsmi-crm-reg-expiry-group article small,
.bsmi-crm-reg-expiry-group article strong,
.bsmi-crm-reg-expiry-group article span { display: block; overflow-wrap: anywhere; }
.bsmi-crm-reg-expiry-group article small { color: #977b43; font-size: 7px; }
.bsmi-crm-reg-expiry-group article strong { margin: 3px 0; color: #292c30; font-size: 8px; }
.bsmi-crm-reg-expiry-group article span { color: #858b92; font-size: 7px; }
.bsmi-crm-reg-expiry-group article button { min-height: 30px; padding: 5px 8px; color: #292c30; background: #fff; border: 1px solid #d0d3d6; border-radius: 3px; font-size: 7px; font-weight: 850; }
.bsmi-crm-reg-expiry-group > div > p { margin: 0; padding: 20px 14px; color: #878d94; font-size: 8px; }

.bsmi-crm-reg-controls { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); }
.bsmi-crm-reg-control-band,
.bsmi-crm-reg-policy { min-width: 0; padding: 18px; }
.bsmi-crm-reg-control-band { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-control-band > header,
.bsmi-crm-reg-policy > header,
.bsmi-crm-reg-ledger > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-reg-control-band h3,
.bsmi-crm-reg-policy h3,
.bsmi-crm-reg-ledger h3 { margin: 0; color: #1b1d21; font-size: 12px; }
.bsmi-crm-reg-control-band > header span,
.bsmi-crm-reg-policy > header span,
.bsmi-crm-reg-ledger > header > span { color: #7c8289; font-size: 7px; }
.bsmi-crm-reg-control-band > div { margin-top: 12px; border-top: 1px solid #e4e6e8; }
.bsmi-crm-reg-control-band article { display: grid; grid-template-columns: 12px minmax(0, 1fr); padding: 9px 0; gap: 9px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-reg-control-band article i { width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: #b9bec4; }
.bsmi-crm-reg-control-band article i.is-pass { background: #2d6b55; }
.bsmi-crm-reg-control-band article i.is-blocked { background: #a8272d; }
.bsmi-crm-reg-control-band article strong,
.bsmi-crm-reg-control-band article small { display: block; }
.bsmi-crm-reg-control-band article strong { color: #292c31; font-size: 8px; }
.bsmi-crm-reg-control-band article small { margin-top: 3px; color: #7c828a; font-size: 7px; line-height: 1.45; }
.bsmi-crm-reg-policy { background: #f7f7f6; }
.bsmi-crm-reg-policy > header button { min-height: 34px; padding: 6px 10px; color: #fff; background: #1b1d21; border: 1px solid #1b1d21; border-radius: 3px; font-size: 8px; font-weight: 850; }
.bsmi-crm-reg-policy-grid { display: grid; margin-top: 14px; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-reg-policy label { display: flex; min-width: 0; gap: 4px; flex-direction: column; }
.bsmi-crm-reg-policy label > span { color: #656c74; font-size: 7px; font-weight: 800; }
.bsmi-crm-reg-policy input,
.bsmi-crm-reg-policy textarea { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; background: #fff; border: 1px solid #d4d7da; border-radius: 3px; font-size: 9px; }
.bsmi-crm-reg-policy label.is-check { display: flex; min-height: 38px; padding: 8px; align-items: center; background: #fff; border: 1px solid #dedfe1; flex-direction: row; }
.bsmi-crm-reg-policy label.is-check input { width: 16px; min-height: 16px; margin: 0; }
.bsmi-crm-reg-policy > label.is-wide { margin-top: 10px; }
.bsmi-crm-reg-policy [data-form-message] { color: #596069; font-size: 8px; }
.bsmi-crm-reg-ledger { padding: 18px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-reg-ledger > div { margin-top: 12px; border-top: 1px solid #e2e4e6; }
.bsmi-crm-reg-ledger article { display: grid; grid-template-columns: 8px minmax(0, 1fr) minmax(130px, .25fr); padding: 10px 0; align-items: start; gap: 10px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-reg-ledger article > i { width: 7px; height: 7px; margin-top: 3px; background: #fff; border: 1px solid #b99a58; border-radius: 50%; }
.bsmi-crm-reg-ledger article strong,
.bsmi-crm-reg-ledger article span,
.bsmi-crm-reg-ledger article p { display: block; }
.bsmi-crm-reg-ledger article strong { color: #24272b; font-size: 8px; }
.bsmi-crm-reg-ledger article span { margin-top: 2px; color: #8b7446; font-size: 7px; }
.bsmi-crm-reg-ledger article p { margin: 3px 0 0; color: #737981; font-size: 7px; line-height: 1.45; }
.bsmi-crm-reg-ledger aside { display: flex; align-items: flex-end; flex-direction: column; }
.bsmi-crm-reg-ledger time,
.bsmi-crm-reg-ledger aside small { color: #8d9299; font-size: 7px; text-align: right; }

.bsmi-crm-drawer:has(.bsmi-crm-reg-record),
.bsmi-crm-drawer:has(.bsmi-crm-reg-form) { width: min(820px, 100vw); }
.bsmi-crm-reg-record { padding: 18px; }
.bsmi-crm-reg-record > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-reg-record > header h3 { margin: 4px 0; color: #181a1e; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-reg-record > header p { margin: 0; color: #70767e; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.bsmi-crm-reg-record-actions { display: flex; margin: 15px 0; gap: 7px; flex-wrap: wrap; }
.bsmi-crm-reg-record-health { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 13px; align-items: center; gap: 18px; background: #f5f2eb; border-left: 3px solid #b99a58; }
.bsmi-crm-reg-record-health > div > span,
.bsmi-crm-reg-record-health > div > strong { display: block; }
.bsmi-crm-reg-record-health > div > span { color: #73684f; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-reg-record-health > div > strong { margin: 4px 0; color: #25282c; font-size: 12px; }
.bsmi-crm-reg-record-health > div > div { height: 6px; overflow: hidden; background: #ded8ca; }
.bsmi-crm-reg-record-health > div > div i { display: block; height: 100%; background: #b99a58; }
.bsmi-crm-reg-record-health aside { display: flex; align-items: flex-end; gap: 5px; flex-direction: column; }
.bsmi-crm-reg-record-health aside small { color: #7d7460; font-size: 7px; }
.bsmi-crm-reg-record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; border: 1px solid #e3e5e7; }
.bsmi-crm-reg-record-facts > div { min-width: 0; padding: 9px; border-right: 1px solid #eceeef; border-bottom: 1px solid #eceeef; overflow-wrap: anywhere; }
.bsmi-crm-reg-record-facts dt { color: #898f96; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-reg-record-facts dd { margin: 3px 0 0; color: #31353a; font-size: 8px; line-height: 1.4; }
.bsmi-crm-reg-next,
.bsmi-crm-reg-escalation,
.bsmi-crm-reg-record-evidence,
.bsmi-crm-reg-record-decision,
.bsmi-crm-reg-record-events { margin-top: 14px; padding: 13px; border: 1px solid #e0e2e4; }
.bsmi-crm-reg-next { background: #f8f6f1; border-left: 3px solid #b99a58; }
.bsmi-crm-reg-next small,
.bsmi-crm-reg-next strong,
.bsmi-crm-reg-next span { display: block; }
.bsmi-crm-reg-next small { color: #8b7446; font-size: 7px; font-weight: 850; }
.bsmi-crm-reg-next strong { margin: 5px 0; color: #22252a; font-size: 10px; }
.bsmi-crm-reg-next span { color: #737981; font-size: 8px; }
.bsmi-crm-reg-escalation { background: #fcf5f5; border-left: 3px solid #a8272d; }
.bsmi-crm-reg-escalation strong { color: #85262b; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-reg-escalation p { margin: 5px 0; color: #6d4a4d; font-size: 8px; line-height: 1.5; }
.bsmi-crm-reg-escalation span { color: #858b92; font-size: 7px; }
.bsmi-crm-reg-record-evidence > header,
.bsmi-crm-reg-record-decision > header,
.bsmi-crm-reg-record-events > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-reg-record-evidence h4,
.bsmi-crm-reg-record-events h4 { margin: 0; color: #202328; font-size: 10px; }
.bsmi-crm-reg-record-evidence header span,
.bsmi-crm-reg-record-events header span { color: #858b92; font-size: 7px; }
.bsmi-crm-reg-record-evidence article { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; padding: 10px 0; align-items: center; gap: 9px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-reg-record-evidence article:last-child { border-bottom: 0; }
.bsmi-crm-reg-record-evidence article > i { width: 8px; height: 8px; border-radius: 50%; background: #aeb3b8; }
.bsmi-crm-reg-record-evidence article > i.is-critical { background: #a8272d; }
.bsmi-crm-reg-record-evidence article > i.is-attention { background: #b99a58; }
.bsmi-crm-reg-record-evidence article > i.is-clear { background: #2d6b55; }
.bsmi-crm-reg-record-evidence article strong,
.bsmi-crm-reg-record-evidence article small { display: block; }
.bsmi-crm-reg-record-evidence article strong { color: #2b2e33; font-size: 8px; }
.bsmi-crm-reg-record-evidence article small { margin-top: 3px; color: #7b8189; font-size: 7px; }
.bsmi-crm-reg-record-decision { background: #f2f7fb; border-left: 3px solid #557a9f; }
.bsmi-crm-reg-record-decision p { margin: 8px 0; color: #4f6173; font-size: 8px; line-height: 1.5; }
.bsmi-crm-reg-record-decision > span { color: #778694; font-size: 7px; }
.bsmi-crm-reg-record-events article { display: grid; grid-template-columns: 8px minmax(0, 1fr) 130px; padding: 9px 0; gap: 8px; border-bottom: 1px solid #eceeef; }
.bsmi-crm-reg-record-events article > i { width: 6px; height: 6px; margin-top: 3px; background: #b99a58; border-radius: 50%; }
.bsmi-crm-reg-record-events article strong,
.bsmi-crm-reg-record-events article small { display: block; }
.bsmi-crm-reg-record-events article strong { font-size: 8px; }
.bsmi-crm-reg-record-events article small { margin-top: 2px; color: #7c828a; font-size: 7px; }
.bsmi-crm-reg-record-events time { color: #8a9097; font-size: 7px; text-align: right; }
.bsmi-crm-reg-form .is-wide { grid-column: 1 / -1; }
.bsmi-crm-reg-form-note { grid-column: 1 / -1; margin: 0; padding: 10px; color: #665b42; background: #f5f1e8; border-left: 3px solid #b99a58; font-size: 8px; line-height: 1.5; }
.bsmi-crm-reg-decision-check { grid-column: 1 / -1; display: flex; min-height: 52px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 14px; background: #f1f3f4; border-left: 3px solid #b99a58; }
.bsmi-crm-reg-decision-check strong { color: #25282c; font-size: 10px; }
.bsmi-crm-reg-decision-check span { color: #737981; font-size: 8px; }

@media (max-width: 1180px) {
  .bsmi-crm-reg-command { grid-template-columns: minmax(0, 1fr) minmax(330px, .68fr); }
  .bsmi-crm-reg-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-reg-tabs button:nth-child(3n) { border-right: 0; }
  .bsmi-crm-reg-tabs button:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-reg-filters { grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, .65fr)); }
  .bsmi-crm-reg-filter-count { grid-column: auto; }
  .bsmi-crm-reg-controls { grid-template-columns: 1fr; }
  .bsmi-crm-reg-control-band { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-reg-people { grid-template-columns: 1fr; }
  .bsmi-crm-reg-people > article { border-right: 0; border-bottom: 1px solid var(--bsmi-line); grid-template-columns: 38px minmax(0, 1fr) auto auto; }
  .bsmi-crm-reg-people > article:last-child { border-bottom: 0; }
  .bsmi-crm-reg-people dl { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 10px; }
  .bsmi-crm-reg-people dt { color: #858b92; font-size: 6px; text-transform: uppercase; }
  .bsmi-crm-reg-people dd { margin: 3px 0 0; color: #30343a; font-size: 7px; }
  .bsmi-crm-reg-people button { grid-column: auto; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-reg-tabs) > .bsmi-crm-page-head > div:last-child { display: grid; width: 100%; grid-template-columns: 1fr; }
  .bsmi-crm-content:has(.bsmi-crm-reg-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-reg-command { grid-template-columns: 1fr; }
  .bsmi-crm-reg-command > div { padding: 19px 15px; border-right: 0; border-bottom: 1px solid #34373b; }
  .bsmi-crm-reg-command h2 { font-size: 24px; }
  .bsmi-crm-reg-command dl > div { min-height: 72px; padding: 12px 10px; }
  .bsmi-crm-reg-command dd { font-size: 20px; }
  .bsmi-crm-reg-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-reg-tabs button { min-height: 48px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-reg-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-reg-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-reg-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-reg-view-head > span { white-space: normal; }
  .bsmi-crm-reg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-reg-kpis article { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-reg-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-reg-kpis article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bsmi-crm-reg-gates,
  .bsmi-crm-reg-strip,
  .bsmi-crm-reg-strip.is-four { grid-template-columns: 1fr; }
  .bsmi-crm-reg-gates > div,
  .bsmi-crm-reg-strip > div { min-height: 56px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-reg-gates > div:last-child,
  .bsmi-crm-reg-strip > div:last-child { border-bottom: 0; }
  .bsmi-crm-reg-filters { grid-template-columns: 1fr; }
  .bsmi-crm-reg-filters input,
  .bsmi-crm-reg-filters select,
  .bsmi-crm-reg-filter-count { min-height: 44px; }
  .bsmi-crm-reg-table,
  .bsmi-crm-reg-table tbody { display: block; min-width: 0; }
  .bsmi-crm-reg-table thead { display: none; }
  .bsmi-crm-reg-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 10px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-reg-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-reg-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-reg-table td:first-child,
  .bsmi-crm-reg-table td:nth-child(2),
  .bsmi-crm-reg-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-reg-row-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-reg-row-actions button { width: 100%; min-height: 44px; }
  .bsmi-crm-reg-people > article { grid-template-columns: 38px minmax(0, 1fr) auto; }
  .bsmi-crm-reg-people dl { display: none; }
  .bsmi-crm-reg-people button { grid-column: 2 / -1; min-height: 44px; }
  .bsmi-crm-reg-expiry { grid-template-columns: 1fr; }
  .bsmi-crm-reg-expiry-group { border-right: 0; }
  .bsmi-crm-reg-expiry-group > div > article { grid-template-columns: 58px 6px minmax(0, 1fr) auto; }
  .bsmi-crm-reg-expiry-group article .bsmi-crm-reg-pill { grid-column: 3; justify-self: start; }
  .bsmi-crm-reg-expiry-group article button { grid-column: 4; grid-row: 1 / span 2; min-height: 44px; }
  .bsmi-crm-reg-control-band,
  .bsmi-crm-reg-policy,
  .bsmi-crm-reg-ledger { padding: 15px 12px; }
  .bsmi-crm-reg-policy-grid { grid-template-columns: 1fr; }
  .bsmi-crm-reg-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-reg-policy > header button { min-height: 44px; }
  .bsmi-crm-reg-ledger article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-reg-ledger aside { grid-column: 2; align-items: flex-start; }
  .bsmi-crm-reg-ledger time,
  .bsmi-crm-reg-ledger aside small { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-reg-record),
  .bsmi-crm-drawer:has(.bsmi-crm-reg-form) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-reg-record > header { flex-direction: column; }
  .bsmi-crm-reg-record-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-reg-record-actions button { min-height: 44px; }
  .bsmi-crm-reg-record-health { grid-template-columns: 1fr; }
  .bsmi-crm-reg-record-health aside { align-items: flex-start; }
  .bsmi-crm-reg-record-facts { grid-template-columns: 1fr; }
  .bsmi-crm-reg-record-evidence > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-reg-record-evidence header button { min-height: 44px; }
  .bsmi-crm-reg-record-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-reg-record-events time { grid-column: 2; text-align: left; }
  .bsmi-crm-reg-decision-check { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-reg-form input,
  .bsmi-crm-reg-form select,
  .bsmi-crm-reg-form textarea,
  .bsmi-crm-reg-form button { min-height: 44px; }
}

@media (max-width: 430px) {
  .bsmi-crm-reg-command dl { grid-template-columns: 1fr; }
  .bsmi-crm-reg-command dl > div { border-right: 0; border-bottom: 1px solid #34373b; }
  .bsmi-crm-reg-command dl > div:last-child { border-bottom: 0; }
  .bsmi-crm-reg-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-reg-table td { grid-column: auto !important; }
  .bsmi-crm-reg-people > article { grid-template-columns: 38px minmax(0, 1fr); }
  .bsmi-crm-reg-people .bsmi-crm-reg-pill { grid-column: 2; justify-self: start; }
  .bsmi-crm-reg-expiry-group > div > article { grid-template-columns: 52px 6px minmax(0, 1fr); }
  .bsmi-crm-reg-expiry-group article .bsmi-crm-reg-pill { grid-column: 3; }
  .bsmi-crm-reg-expiry-group article button { grid-column: 3; grid-row: auto; width: 100%; }
  .bsmi-crm-reg-record-evidence article { grid-template-columns: 10px minmax(0, 1fr); }
  .bsmi-crm-reg-record-evidence article .bsmi-crm-reg-pill { grid-column: 2; justify-self: start; }
}

/* Mortgage and conveyancing operations */
.bsmi-crm-conveyancing,
.bsmi-crm-conveyancing *,
.bsmi-crm-conv-drawer,
.bsmi-crm-conv-drawer *,
.bsmi-crm-conv-form,
.bsmi-crm-conv-form * { box-sizing: border-box; }

.bsmi-crm-conveyancing { color: #202226; }
.bsmi-crm-conv-command { display: grid; overflow: hidden; grid-template-columns: minmax(0, 1fr) minmax(400px, .74fr); color: #fff; background: #101215; border-top: 3px solid #c3a45f; }
.bsmi-crm-conv-command > div { min-width: 0; padding: 25px 29px; border-right: 1px solid #34373b; }
.bsmi-crm-conv-command small { color: #d8bd7c; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-conv-command h2 { max-width: 760px; margin: 7px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; line-height: 1.08; }
.bsmi-crm-conv-command p { max-width: 790px; margin: 0; color: #adb2b9; font-size: 9px; line-height: 1.55; }
.bsmi-crm-conv-command dl { display: grid; min-width: 0; margin: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsmi-crm-conv-command dl > div { display: flex; min-width: 0; min-height: 122px; padding: 18px 14px; justify-content: center; border-right: 1px solid #34373b; flex-direction: column; }
.bsmi-crm-conv-command dl > div:last-child { border-right: 0; }
.bsmi-crm-conv-command dt { color: #8f959d; font-size: 7px; font-weight: 800; line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
.bsmi-crm-conv-command dd { margin: 7px 0 0; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 26px; overflow-wrap: anywhere; }

.bsmi-crm-conv-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--bsmi-line); border-top: 0; }
.bsmi-crm-conv-tabs button { display: flex; min-width: 0; min-height: 47px; padding: 8px 10px; align-items: center; justify-content: space-between; gap: 8px; color: #686e76; background: #fff; border: 0; border-right: 1px solid var(--bsmi-line); border-radius: 0; font-size: 8px; font-weight: 800; cursor: pointer; }
.bsmi-crm-conv-tabs button:last-child { border-right: 0; }
.bsmi-crm-conv-tabs button span { min-width: 0; text-align: left; overflow-wrap: anywhere; }
.bsmi-crm-conv-tabs button strong { min-width: 25px; padding: 3px 6px; color: #626871; background: #eef0f1; border-radius: 2px; font-size: 8px; text-align: center; }
.bsmi-crm-conv-tabs button.is-active { color: #17191d; background: #f9f7f2; box-shadow: inset 0 -3px #c3a45f; }
.bsmi-crm-conv-tabs button.is-active strong { color: #fff; background: #17191d; }
.bsmi-crm-conv-workspace { background: #fff; border: 1px solid var(--bsmi-line); border-top: 0; }

.bsmi-crm-conv-view-head { display: flex; min-height: 80px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-view-head > div { min-width: 0; }
.bsmi-crm-conv-view-head small { color: #9a7d42; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-conv-view-head h2 { margin: 4px 0; color: #1b1d21; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-conv-view-head p { margin: 0; color: #747a82; font-size: 8px; line-height: 1.48; }
.bsmi-crm-conv-view-head > span { color: #858b92; font-size: 7px; white-space: nowrap; }

.bsmi-crm-conv-pill { display: inline-flex; min-height: 22px; padding: 4px 7px; align-items: center; border: 1px solid #d7dade; border-radius: 2px; color: #5c626a; background: #f4f5f6; font-size: 7px; font-style: normal; font-weight: 850; line-height: 1; white-space: nowrap; }
.bsmi-crm-conv-pill.is-critical { color: #8b252b; background: #fcf2f2; border-color: #e3bfc2; }
.bsmi-crm-conv-pill.is-attention { color: #745b22; background: #fbf7ea; border-color: #ddce9e; }
.bsmi-crm-conv-pill.is-clear { color: #205d48; background: #eef7f2; border-color: #bfd9cc; }

.bsmi-crm-conv-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-kpis article { display: flex; min-width: 0; min-height: 84px; padding: 15px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-conv-kpis article:last-child { border-right: 0; }
.bsmi-crm-conv-kpis span { color: #7c828a; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-conv-kpis strong { margin: 4px 0; color: #1d1f23; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; }
.bsmi-crm-conv-kpis small { color: #92979d; font-size: 7px; }
.bsmi-crm-conv-kpis article.is-critical { background: #fcf4f4; box-shadow: inset 3px 0 #a8272d; }
.bsmi-crm-conv-kpis article.is-critical strong { color: #91272d; }
.bsmi-crm-conv-kpis article.is-clear { background: #f2f8f5; box-shadow: inset 3px 0 #2d6b55; }
.bsmi-crm-conv-kpis article.is-clear strong { color: #245f4b; }

.bsmi-crm-conv-stage-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #f6f7f7; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-stage-board article { position: relative; min-width: 0; min-height: 66px; padding: 12px 15px 16px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-stage-board article:last-child { border-right: 0; }
.bsmi-crm-conv-stage-board span { display: block; min-height: 19px; color: #71777f; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-conv-stage-board strong { display: block; color: #23262a; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-conv-stage-board i { position: absolute; bottom: 0; left: 0; height: 3px; background: #c3a45f; }

.bsmi-crm-conv-filters { display: grid; padding: 12px 14px; align-items: end; gap: 8px; grid-template-columns: minmax(230px, 1.25fr) repeat(4, minmax(125px, .68fr)) 82px; background: #fafafa; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-filters label { display: flex; min-width: 0; gap: 4px; flex-direction: column; }
.bsmi-crm-conv-filters label > span { color: #737981; font-size: 7px; font-weight: 800; }
.bsmi-crm-conv-filters input,
.bsmi-crm-conv-filters select { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; color: #30343a; background: #fff; border: 1px solid #d6d9dc; border-radius: 3px; font-size: 8px; }
.bsmi-crm-conv-filter-count { display: flex; min-width: 0; min-height: 36px; padding: 5px 8px; align-items: center; justify-content: center; color: #fff; background: #191b1f; border-radius: 3px; flex-direction: column; }
.bsmi-crm-conv-filter-count strong { font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-weight: 500; }
.bsmi-crm-conv-filter-count span { color: #adb2b8; font-size: 6px; text-transform: uppercase; }

.bsmi-crm-conv-table-wrap { width: 100%; overflow-x: auto; }
.bsmi-crm-conv-table { width: 100%; min-width: 1240px; border-collapse: collapse; table-layout: fixed; }
.bsmi-crm-conv-table th { padding: 8px 10px; color: #7a8088; background: #f2f3f4; border-bottom: 1px solid var(--bsmi-line); font-size: 7px; text-align: left; text-transform: uppercase; }
.bsmi-crm-conv-table th:nth-child(1) { width: 22%; }
.bsmi-crm-conv-table th:nth-child(2) { width: 16%; }
.bsmi-crm-conv-table th:nth-child(3) { width: 14%; }
.bsmi-crm-conv-table th:nth-child(4) { width: 13%; }
.bsmi-crm-conv-table th:nth-child(5) { width: 15%; }
.bsmi-crm-conv-table th:nth-child(6) { width: 9%; }
.bsmi-crm-conv-table th:nth-child(7) { width: 11%; }
.bsmi-crm-conv-table td { min-width: 0; padding: 11px 10px; vertical-align: middle; border-bottom: 1px solid #e7e9ea; color: #31353a; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-conv-table td > strong,
.bsmi-crm-conv-table td > span,
.bsmi-crm-conv-table td > small { display: block; }
.bsmi-crm-conv-table td > span { margin-top: 3px; color: #60666e; font-size: 7px; }
.bsmi-crm-conv-table td > small { margin-top: 4px; color: #838990; font-size: 7px; line-height: 1.35; }
.bsmi-crm-conv-case-title { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 9px; }
.bsmi-crm-conv-case-title > i { width: 4px; min-height: 52px; background: #aeb3b8; }
.bsmi-crm-conv-case-title > i.is-critical { background: #a8272d; }
.bsmi-crm-conv-case-title > i.is-attention { background: #c3a45f; }
.bsmi-crm-conv-case-title small,
.bsmi-crm-conv-case-title strong { display: block; }
.bsmi-crm-conv-case-title small { color: #94773e; font-size: 7px; font-weight: 800; }
.bsmi-crm-conv-case-title strong { margin: 4px 0 6px; color: #22252a; font-size: 9px; line-height: 1.3; }
.bsmi-crm-conv-case-title em { display: flex; gap: 4px; flex-wrap: wrap; }
.bsmi-crm-conv-progress { height: 5px; margin-top: 7px; overflow: hidden; background: #e2e4e6; }
.bsmi-crm-conv-progress span { display: block; height: 100%; background: #c3a45f; }
.bsmi-crm-conv-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.bsmi-crm-conv-row-actions button,
.bsmi-crm-conv-drawer footer button { min-height: 32px; padding: 6px 8px; color: #25282d; background: #fff; border: 1px solid #ccd0d4; border-radius: 3px; font-size: 7px; font-weight: 850; cursor: pointer; }
.bsmi-crm-conv-empty { margin: 0; padding: 28px 18px; color: #7d838b; font-size: 9px; text-align: center; }

.bsmi-crm-conv-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f7f7f6; border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-strip.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsmi-crm-conv-strip > div { display: flex; min-height: 64px; padding: 12px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-conv-strip > div:last-child { border-right: 0; }
.bsmi-crm-conv-strip span { color: #777d84; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-conv-strip strong { margin-top: 3px; color: #1e2024; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }
.bsmi-crm-conv-boundary { display: flex; min-height: 54px; padding: 12px 18px; align-items: center; gap: 12px; color: #5f553f; background: #f8f4ea; border-bottom: 1px solid #e5dac1; }
.bsmi-crm-conv-boundary strong { font-size: 8px; text-transform: uppercase; }
.bsmi-crm-conv-boundary span { font-size: 8px; line-height: 1.45; }

.bsmi-crm-conv-transfer-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-transfer-board article { display: flex; min-height: 82px; padding: 14px 18px; justify-content: center; border-right: 1px solid var(--bsmi-line); flex-direction: column; }
.bsmi-crm-conv-transfer-board article:last-child { border-right: 0; }
.bsmi-crm-conv-transfer-board span { color: #777d84; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-conv-transfer-board strong { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.bsmi-crm-conv-transfer-board small { color: #8c9198; font-size: 7px; }
.bsmi-crm-conv-appointment-list > article { display: grid; min-width: 0; min-height: 72px; padding: 12px 16px; align-items: center; gap: 14px; grid-template-columns: 145px minmax(0, 1fr) auto; border-bottom: 1px solid #e8eaeb; }
.bsmi-crm-conv-appointment-list time { color: #92753e; font-size: 8px; font-weight: 850; }
.bsmi-crm-conv-appointment-list article > div { min-width: 0; }
.bsmi-crm-conv-appointment-list small,
.bsmi-crm-conv-appointment-list strong,
.bsmi-crm-conv-appointment-list span { display: block; overflow-wrap: anywhere; }
.bsmi-crm-conv-appointment-list small { color: #8d9298; font-size: 7px; }
.bsmi-crm-conv-appointment-list strong { margin: 3px 0; color: #26292d; font-size: 9px; }
.bsmi-crm-conv-appointment-list span { color: #71777f; font-size: 8px; }
.bsmi-crm-conv-appointment-list aside { display: flex; align-items: center; gap: 8px; }
.bsmi-crm-conv-appointment-list button { min-height: 34px; padding: 6px 10px; color: #fff; background: #1b1d21; border: 1px solid #1b1d21; border-radius: 3px; font-size: 8px; font-weight: 850; }

.bsmi-crm-conv-partner-grid { display: grid; padding: 14px; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f5f6f6; }
.bsmi-crm-conv-partner-grid > article { min-width: 0; padding: 15px; background: #fff; border: 1px solid #dfe2e4; border-top: 3px solid #1a1c20; border-radius: 4px; }
.bsmi-crm-conv-partner-grid article > header,
.bsmi-crm-conv-partner-grid article > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-conv-partner-grid header > span { color: #967a42; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-conv-partner-grid h3 { margin: 13px 0; color: #202328; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.bsmi-crm-conv-partner-grid dl { margin: 0; border-top: 1px solid #e8eaeb; }
.bsmi-crm-conv-partner-grid dl > div { display: grid; padding: 8px 0; align-items: center; grid-template-columns: 1fr auto; border-bottom: 1px solid #eceeef; }
.bsmi-crm-conv-partner-grid dt { color: #777d85; font-size: 7px; }
.bsmi-crm-conv-partner-grid dd { margin: 0; color: #2d3035; font-size: 8px; font-weight: 850; text-align: right; }
.bsmi-crm-conv-partner-grid footer { margin-top: 12px; color: #7d838a; font-size: 7px; }
.bsmi-crm-mortgage-sync-profile { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--bsmi-line); background:#111316; color:#fff; }
.bsmi-crm-mortgage-sync-profile > div { min-width:0; padding:17px 18px; border-right:1px solid #303237; }
.bsmi-crm-mortgage-sync-profile > div:last-child { border-right:0; }
.bsmi-crm-mortgage-sync-profile span,.bsmi-crm-mortgage-sync-profile small { display:block; color:#a9adb3; font-size:8px; }
.bsmi-crm-mortgage-sync-profile span { color:#c1a66b; font-weight:800; text-transform:uppercase; }
.bsmi-crm-mortgage-sync-profile strong { display:block; margin:6px 0; font-size:13px; overflow-wrap:anywhere; }
.bsmi-crm-mortgage-sync-boundary { margin:14px; }
.bsmi-crm-mortgage-sync-events { margin:14px; border:1px solid var(--bsmi-line); background:#fff; }
.bsmi-crm-mortgage-sync-events > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 17px; border-bottom:1px solid var(--bsmi-line); }
.bsmi-crm-mortgage-sync-events > header small { color:#a08449; font-weight:800; }
.bsmi-crm-mortgage-sync-events > header h3 { margin:3px 0 0; font-size:17px; }
.bsmi-crm-mortgage-sync-events > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-mortgage-sync-events article { min-width:0; padding:16px; border-right:1px solid var(--bsmi-line); border-bottom:1px solid var(--bsmi-line); }
.bsmi-crm-mortgage-sync-events article > div { display:grid; gap:4px; }
.bsmi-crm-mortgage-sync-events article > div > span { justify-self:start; padding:3px 7px; background:#fff0c9; color:#765500; font-size:8px; font-weight:800; }
.bsmi-crm-mortgage-sync-events article > div > span.is-accepted { background:#deebdf; color:#225f31; }
.bsmi-crm-mortgage-sync-events article > div > span.is-rejected { background:#f7dddd; color:#8c2424; }
.bsmi-crm-mortgage-sync-events article > div small { color:#7a7f85; overflow-wrap:anywhere; }
.bsmi-crm-mortgage-sync-events dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:14px 0; }
.bsmi-crm-mortgage-sync-events dt { color:#7a7f85; font-size:8px; }
.bsmi-crm-mortgage-sync-events dd { margin:3px 0 0; font-weight:750; overflow-wrap:anywhere; }
.bsmi-crm-mortgage-sync-events article > p { padding:9px; background:#f5f6f6; color:#565b61; font-size:11px; }
.bsmi-crm-mortgage-sync-events article footer { margin-top:10px; }

.bsmi-crm-conv-control-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); }
.bsmi-crm-conv-control-band,
.bsmi-crm-conv-policy { min-width: 0; padding: 18px; }
.bsmi-crm-conv-control-band { border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-control-band > header,
.bsmi-crm-conv-policy > header,
.bsmi-crm-conv-events > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-conv-control-band h3,
.bsmi-crm-conv-policy h3,
.bsmi-crm-conv-events h3 { margin: 0; color: #1b1d21; font-size: 12px; }
.bsmi-crm-conv-control-band > header span,
.bsmi-crm-conv-policy > header span,
.bsmi-crm-conv-events > header > span { color: #7c8289; font-size: 7px; }
.bsmi-crm-conv-control-band > div { margin-top: 12px; border-top: 1px solid #e4e6e8; }
.bsmi-crm-conv-control-band article { display: grid; padding: 9px 0; gap: 9px; grid-template-columns: 12px minmax(0, 1fr); border-bottom: 1px solid #eceeef; }
.bsmi-crm-conv-control-band article i { width: 9px; height: 9px; margin-top: 2px; border-radius: 50%; background: #b9bec4; }
.bsmi-crm-conv-control-band article i.is-pass { background: #2d6b55; }
.bsmi-crm-conv-control-band article i.is-blocked { background: #a8272d; }
.bsmi-crm-conv-control-band article strong,
.bsmi-crm-conv-control-band article small { display: block; }
.bsmi-crm-conv-control-band article strong { color: #292c31; font-size: 8px; }
.bsmi-crm-conv-control-band article small { margin-top: 3px; color: #7c828a; font-size: 7px; line-height: 1.45; }
.bsmi-crm-conv-policy { background: #f7f7f6; }
.bsmi-crm-conv-policy > header button { min-height: 34px; padding: 6px 10px; color: #fff; background: #1b1d21; border: 1px solid #1b1d21; border-radius: 3px; font-size: 8px; font-weight: 850; }
.bsmi-crm-conv-policy-grid { display: grid; margin-top: 14px; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-conv-policy label { display: flex; min-width: 0; gap: 4px; flex-direction: column; }
.bsmi-crm-conv-policy label > span { color: #656c74; font-size: 7px; font-weight: 800; }
.bsmi-crm-conv-policy input,
.bsmi-crm-conv-policy textarea { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; background: #fff; border: 1px solid #d4d7da; border-radius: 3px; font-size: 9px; }
.bsmi-crm-conv-policy label.is-check { min-height: 38px; padding: 8px; align-items: center; background: #fff; border: 1px solid #dedfe1; flex-direction: row; }
.bsmi-crm-conv-policy label.is-check input { width: 16px; min-height: 16px; margin: 0; }
.bsmi-crm-conv-policy > label.is-wide { margin-top: 10px; }
.bsmi-crm-conv-policy [data-form-message] { color: #596069; font-size: 8px; }
.bsmi-crm-conv-events { padding: 18px; border-top: 1px solid var(--bsmi-line); }
.bsmi-crm-conv-events > div { margin-top: 12px; border-top: 1px solid #e2e4e6; }
.bsmi-crm-conv-events article { display: grid; padding: 10px 0; align-items: start; gap: 10px; grid-template-columns: 8px minmax(0, 1fr) minmax(130px, .25fr); border-bottom: 1px solid #eceeef; }
.bsmi-crm-conv-events article > i { width: 7px; height: 7px; margin-top: 3px; background: #fff; border: 1px solid #c3a45f; border-radius: 50%; }
.bsmi-crm-conv-events article strong,
.bsmi-crm-conv-events article span,
.bsmi-crm-conv-events article p { display: block; }
.bsmi-crm-conv-events article strong { color: #24272b; font-size: 8px; }
.bsmi-crm-conv-events article span { margin-top: 2px; color: #8b7446; font-size: 7px; }
.bsmi-crm-conv-events article p { margin: 3px 0 0; color: #737981; font-size: 7px; line-height: 1.45; }
.bsmi-crm-conv-events aside { display: flex; align-items: flex-end; flex-direction: column; }
.bsmi-crm-conv-events time,
.bsmi-crm-conv-events aside small { color: #8d9299; font-size: 7px; text-align: right; }

.bsmi-crm-drawer:has(.bsmi-crm-conv-drawer),
.bsmi-crm-drawer:has(.bsmi-crm-conv-form) { width: min(900px, 100vw); }
.bsmi-crm-conv-drawer { padding: 18px; }
.bsmi-crm-conv-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.bsmi-crm-conv-drawer > header h2 { margin: 4px 0; color: #181a1e; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-conv-drawer > header p { margin: 0; color: #70767e; font-size: 9px; line-height: 1.5; white-space: pre-wrap; }
.bsmi-crm-conv-timeline { display: grid; margin: 18px 0; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.bsmi-crm-conv-timeline > div { position: relative; min-width: 0; padding: 18px 3px 0; color: #8a9097; border-top: 2px solid #dfe2e4; font-size: 6px; font-weight: 800; text-align: center; text-transform: uppercase; }
.bsmi-crm-conv-timeline i { position: absolute; top: -5px; left: calc(50% - 4px); width: 8px; height: 8px; background: #fff; border: 2px solid #c7cbd0; border-radius: 50%; }
.bsmi-crm-conv-timeline .is-done { color: #376d5b; border-color: #4a806d; }
.bsmi-crm-conv-timeline .is-done i { background: #2d6b55; border-color: #2d6b55; }
.bsmi-crm-conv-timeline .is-current { color: #7f6327; border-color: #c3a45f; }
.bsmi-crm-conv-timeline .is-current i { background: #c3a45f; border-color: #c3a45f; }
.bsmi-crm-conv-drawer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #e1e3e5; }
.bsmi-crm-conv-drawer-grid > div { min-width: 0; padding: 13px; border-right: 1px solid #e6e8e9; }
.bsmi-crm-conv-drawer-grid > div:last-child { border-right: 0; }
.bsmi-crm-conv-drawer-grid h3 { margin: 0 0 8px; color: #8d713b; font-size: 8px; text-transform: uppercase; }
.bsmi-crm-conv-drawer-grid dl { margin: 0; }
.bsmi-crm-conv-drawer-grid dl > div { padding: 6px 0; border-top: 1px solid #eceeef; }
.bsmi-crm-conv-drawer-grid dt { color: #858b92; font-size: 6px; text-transform: uppercase; }
.bsmi-crm-conv-drawer-grid dd { margin: 2px 0 0; color: #2f3338; font-size: 8px; overflow-wrap: anywhere; }
.bsmi-crm-conv-next { display: grid; margin-top: 14px; padding: 13px; align-items: center; gap: 18px; grid-template-columns: minmax(0, 1fr) auto; background: #f8f5ed; border-left: 3px solid #c3a45f; }
.bsmi-crm-conv-next small,
.bsmi-crm-conv-next strong,
.bsmi-crm-conv-next span { display: block; }
.bsmi-crm-conv-next small { color: #8b7446; font-size: 7px; font-weight: 850; }
.bsmi-crm-conv-next strong { margin: 5px 0; color: #22252a; font-size: 10px; }
.bsmi-crm-conv-next span { color: #737981; font-size: 8px; }
.bsmi-crm-conv-next aside { text-align: right; }
.bsmi-crm-conv-next aside strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-conv-evidence { margin-top: 14px; padding: 13px; border: 1px solid #e0e2e4; }
.bsmi-crm-conv-evidence > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bsmi-crm-conv-evidence header small { color: #90743e; font-size: 7px; font-weight: 850; }
.bsmi-crm-conv-evidence h3 { margin: 3px 0 0; color: #202328; font-size: 10px; }
.bsmi-crm-conv-evidence header > span { color: #858b92; font-size: 7px; }
.bsmi-crm-conv-evidence > div { margin-top: 9px; border-top: 1px solid #eceeef; }
.bsmi-crm-conv-evidence article { display: grid; padding: 10px 0; align-items: center; gap: 9px; grid-template-columns: 10px minmax(0, 1fr) auto; border-bottom: 1px solid #eceeef; }
.bsmi-crm-conv-evidence article > i { width: 8px; height: 8px; border-radius: 50%; background: #aeb3b8; }
.bsmi-crm-conv-evidence article > i.is-critical { background: #a8272d; }
.bsmi-crm-conv-evidence article > i.is-attention { background: #c3a45f; }
.bsmi-crm-conv-evidence article > i.is-clear { background: #2d6b55; }
.bsmi-crm-conv-evidence article strong,
.bsmi-crm-conv-evidence article span,
.bsmi-crm-conv-evidence article small { display: block; }
.bsmi-crm-conv-evidence article strong { color: #2b2e33; font-size: 8px; }
.bsmi-crm-conv-evidence article span,
.bsmi-crm-conv-evidence article small { margin-top: 3px; color: #7b8189; font-size: 7px; }
.bsmi-crm-conv-evidence aside { display: flex; align-items: flex-end; gap: 4px; flex-direction: column; }
.bsmi-crm-conv-drawer > footer { display: flex; margin-top: 16px; align-items: center; justify-content: space-between; gap: 12px; }
.bsmi-crm-conv-drawer > footer > div { display: flex; gap: 6px; flex-wrap: wrap; }
.bsmi-crm-conv-drawer > footer > small { max-width: 330px; color: #7f858c; font-size: 7px; line-height: 1.45; text-align: right; }
.bsmi-crm-conv-form .is-wide { grid-column: 1 / -1; }
.bsmi-crm-conv-form-note { grid-column: 1 / -1; margin: 0; padding: 10px; color: #665b42; background: #f5f1e8; border-left: 3px solid #c3a45f; font-size: 8px; line-height: 1.5; }
.bsmi-crm-conv-decision-check { grid-column: 1 / -1; display: flex; min-height: 54px; padding: 10px 12px; align-items: center; justify-content: space-between; gap: 14px; background: #f1f3f4; border-left: 3px solid #c3a45f; }
.bsmi-crm-conv-decision-check strong { color: #25282c; font-size: 10px; }
.bsmi-crm-conv-decision-check span { color: #737981; font-size: 8px; }

@media (max-width: 1180px) {
  .bsmi-crm-conv-command { grid-template-columns: minmax(0, 1fr) minmax(340px, .68fr); }
  .bsmi-crm-conv-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-conv-tabs button:nth-child(3n) { border-right: 0; }
  .bsmi-crm-conv-tabs button:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-tabs button:nth-child(n+4):nth-child(-n+6) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-filters { grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(120px, .65fr)); }
  .bsmi-crm-conv-control-grid { grid-template-columns: 1fr; }
  .bsmi-crm-conv-control-band { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-mortgage-sync-profile { grid-template-columns:1fr; }
  .bsmi-crm-mortgage-sync-profile > div { border-right:0; border-bottom:1px solid #303237; }
}

@media (max-width: 760px) {
  .bsmi-crm-content:has(.bsmi-crm-conv-tabs) > .bsmi-crm-page-head > div:last-child { display: grid; width: 100%; grid-template-columns: 1fr; }
  .bsmi-crm-content:has(.bsmi-crm-conv-tabs) > .bsmi-crm-page-head button { width: 100%; min-height: 44px; }
  .bsmi-crm-conv-command { grid-template-columns: 1fr; }
  .bsmi-crm-conv-command > div { padding: 19px 15px; border-right: 0; border-bottom: 1px solid #34373b; }
  .bsmi-crm-conv-command h2 { font-size: 24px; }
  .bsmi-crm-conv-command dl > div { min-height: 72px; padding: 12px 10px; }
  .bsmi-crm-conv-command dd { font-size: 20px; }
  .bsmi-crm-conv-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-conv-tabs button { min-height: 48px; border-right: 1px solid var(--bsmi-line); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-conv-tabs button:nth-last-child(-n+2) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-tabs button:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .bsmi-crm-conv-view-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bsmi-crm-conv-view-head > span { white-space: normal; }
  .bsmi-crm-conv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-conv-kpis article { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-kpis article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-conv-kpis article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .bsmi-crm-conv-stage-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-conv-stage-board article:nth-child(2n) { border-right: 0; }
  .bsmi-crm-conv-stage-board article { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-strip,
  .bsmi-crm-conv-strip.is-four,
  .bsmi-crm-conv-transfer-board { grid-template-columns: 1fr; }
  .bsmi-crm-conv-strip > div,
  .bsmi-crm-conv-transfer-board article { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-boundary { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-conv-filters { grid-template-columns: 1fr; }
  .bsmi-crm-conv-filters input,
  .bsmi-crm-conv-filters select,
  .bsmi-crm-conv-filter-count { min-height: 44px; }
  .bsmi-crm-conv-table,
  .bsmi-crm-conv-table tbody { display: block; min-width: 0; }
  .bsmi-crm-conv-table thead { display: none; }
  .bsmi-crm-conv-table tr { display: grid; padding: 8px 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-conv-table td { display: block; min-width: 0; padding: 7px 5px; border: 0; overflow-wrap: anywhere; }
  .bsmi-crm-conv-table td::before { display: block; margin-bottom: 4px; color: var(--bsmi-muted); content: attr(data-label); font-size: 7px; font-weight: 850; text-transform: uppercase; }
  .bsmi-crm-conv-table td:first-child,
  .bsmi-crm-conv-table td:nth-child(2),
  .bsmi-crm-conv-table td:nth-child(5),
  .bsmi-crm-conv-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-conv-row-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-conv-row-actions button { width: 100%; min-height: 44px; }
  .bsmi-crm-conv-appointment-list > article { grid-template-columns: 1fr; }
  .bsmi-crm-conv-appointment-list aside { align-items: stretch; flex-direction: column; }
  .bsmi-crm-conv-appointment-list button { min-height: 44px; }
  .bsmi-crm-conv-partner-grid { grid-template-columns: 1fr; padding: 10px; }
  .bsmi-crm-mortgage-sync-events { margin:10px; }
  .bsmi-crm-mortgage-sync-events > div { grid-template-columns:1fr; }
  .bsmi-crm-mortgage-sync-events article { border-right:0; }
  .bsmi-crm-conv-control-band,
  .bsmi-crm-conv-policy,
  .bsmi-crm-conv-events { padding: 15px 12px; }
  .bsmi-crm-conv-policy-grid { grid-template-columns: 1fr; }
  .bsmi-crm-conv-policy > header { align-items: stretch; flex-direction: column; }
  .bsmi-crm-conv-policy > header button { min-height: 44px; }
  .bsmi-crm-conv-events article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-conv-events aside { grid-column: 2; align-items: flex-start; }
  .bsmi-crm-conv-events time,
  .bsmi-crm-conv-events aside small { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-conv-drawer),
  .bsmi-crm-drawer:has(.bsmi-crm-conv-form) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-conv-drawer > header { flex-direction: column; }
  .bsmi-crm-conv-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .bsmi-crm-conv-drawer-grid { grid-template-columns: 1fr; }
  .bsmi-crm-conv-drawer-grid > div { border-right: 0; border-bottom: 1px solid #e6e8e9; }
  .bsmi-crm-conv-next { grid-template-columns: 1fr; }
  .bsmi-crm-conv-next aside { text-align: left; }
  .bsmi-crm-conv-evidence > header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-conv-drawer > footer { align-items: stretch; flex-direction: column; }
  .bsmi-crm-conv-drawer > footer > div { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-conv-drawer > footer button { min-height: 44px; }
  .bsmi-crm-conv-drawer > footer > small { max-width: none; text-align: left; }
  .bsmi-crm-conv-decision-check { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-conv-form input,
  .bsmi-crm-conv-form select,
  .bsmi-crm-conv-form textarea,
  .bsmi-crm-conv-form button { min-height: 44px; }
}

@media (max-width: 430px) {
  .bsmi-crm-conv-command dl { grid-template-columns: 1fr; }
  .bsmi-crm-conv-command dl > div { border-right: 0; border-bottom: 1px solid #34373b; }
  .bsmi-crm-conv-command dl > div:last-child { border-bottom: 0; }
  .bsmi-crm-conv-table tr { grid-template-columns: 1fr; }
  .bsmi-crm-conv-table td { grid-column: auto !important; }
  .bsmi-crm-conv-evidence article { grid-template-columns: 10px minmax(0, 1fr); }
  .bsmi-crm-conv-evidence article aside { grid-column: 2; align-items: flex-start; }
}
.bsmi-crm-lead-decision-brief{margin:14px 0;padding:18px;border:1px solid #c9d3cf;background:#f6f9f7}.bsmi-crm-lead-decision-brief header,.bsmi-crm-lead-decision-brief article header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.bsmi-crm-lead-decision-brief header small{color:#46635a;font-weight:800}.bsmi-crm-lead-decision-brief header h3{margin:3px 0 0}.bsmi-crm-lead-decision-brief header>span{color:#fff;background:#1d3b32;padding:5px 8px;font-size:11px;font-weight:700}.bsmi-crm-lead-decision-brief>p{font-size:15px;line-height:1.55}.bsmi-crm-lead-decision-brief dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.bsmi-crm-lead-decision-brief dl>div{padding:10px;background:#fff;border-left:3px solid #b59b5b}.bsmi-crm-lead-decision-brief dt{font-size:11px;color:#65736e;text-transform:uppercase}.bsmi-crm-lead-decision-brief dd{margin:4px 0 0;font-weight:650;line-height:1.35}.bsmi-crm-lead-decision-brief footer{font-size:11px;color:#65736e;border-top:1px solid #dce4e1;padding-top:10px}.bsmi-crm-lead-call-briefs{display:grid;gap:9px}.bsmi-crm-lead-call-briefs article{padding:12px;border:1px solid #d9e0dd;background:#fff}.bsmi-crm-lead-call-briefs article header{display:flex;justify-content:space-between;gap:10px}.bsmi-crm-lead-call-briefs article header span,.bsmi-crm-lead-call-briefs article small{font-size:11px;color:#65736e}.bsmi-crm-lead-call-briefs article p{margin:8px 0;line-height:1.4}@media(max-width:640px){.bsmi-crm-lead-decision-brief dl{grid-template-columns:1fr}.bsmi-crm-lead-call-briefs article header{display:block}.bsmi-crm-lead-call-briefs article header span{display:block;margin-top:3px}}
.bsmi-crm-uptime-monitor>p{max-width:850px;line-height:1.55}.bsmi-crm-uptime-monitor>label{display:block;margin:18px 0}.bsmi-crm-uptime-monitor>label span{display:block;margin-bottom:6px;color:#62686a;font-size:11px;font-weight:700;text-transform:uppercase}.bsmi-crm-uptime-monitor>label input{box-sizing:border-box;width:100%;min-height:42px;padding:9px 11px;border:1px solid #cfd3d2;background:#f7f8f7}.bsmi-crm-uptime-contract{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #dedfdd}.bsmi-crm-uptime-contract article{min-width:0;padding:14px;border-right:1px solid #dedfdd}.bsmi-crm-uptime-contract article:last-child{border-right:0}.bsmi-crm-uptime-contract strong,.bsmi-crm-uptime-contract span{display:block}.bsmi-crm-uptime-contract span{margin-top:5px;color:#646b69;font-size:12px;line-height:1.45;overflow-wrap:anywhere}.bsmi-crm-uptime-monitor>aside{margin-top:14px;padding:13px;border-left:3px solid #b99451;background:#f7f5ef}.bsmi-crm-uptime-monitor>aside p{margin:4px 0 0;line-height:1.5}@media(max-width:800px){.bsmi-crm-uptime-contract{grid-template-columns:1fr 1fr}.bsmi-crm-uptime-contract article:nth-child(2){border-right:0}.bsmi-crm-uptime-contract article:nth-child(-n+2){border-bottom:1px solid #dedfdd}}@media(max-width:480px){.bsmi-crm-uptime-contract{grid-template-columns:1fr}.bsmi-crm-uptime-contract article{border-right:0;border-bottom:1px solid #dedfdd}.bsmi-crm-uptime-contract article:nth-child(2){border-bottom:1px solid #dedfdd}.bsmi-crm-uptime-contract article:last-child{border-bottom:0}}
.bsmi-crm-system-docs>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dedfdd}.bsmi-crm-system-docs>div>a{min-width:0;padding:16px;color:#17191d;text-decoration:none;border-right:1px solid #dedfdd;border-bottom:1px solid #dedfdd}.bsmi-crm-system-docs>div>a:nth-child(2n){border-right:0}.bsmi-crm-system-docs>div>a:nth-last-child(-n+2){border-bottom:0}.bsmi-crm-system-docs>div>a:hover{background:#f7f5ef}.bsmi-crm-system-docs strong,.bsmi-crm-system-docs span{display:block}.bsmi-crm-system-docs span{margin-top:6px;color:#62686a;font-size:12px;line-height:1.5}@media(max-width:600px){.bsmi-crm-system-docs>div{grid-template-columns:1fr}.bsmi-crm-system-docs>div>a{border-right:0;border-bottom:1px solid #dedfdd!important}.bsmi-crm-system-docs>div>a:last-child{border-bottom:0!important}}
.bsmi-crm-custom-module-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:16px}.bsmi-crm-custom-module-layout>nav{display:flex;flex-direction:column;gap:6px}.bsmi-crm-custom-module-layout>nav button{box-sizing:border-box;width:100%;padding:13px;text-align:left;border:1px solid #d8dbda;background:#fff}.bsmi-crm-custom-module-layout>nav button.is-active{color:#fff;border-color:#17211e;background:#17211e}.bsmi-crm-custom-module-layout>nav strong,.bsmi-crm-custom-module-layout>nav span{display:block}.bsmi-crm-custom-module-layout>nav span{margin-top:4px;font-size:11px;opacity:.72}.bsmi-crm-custom-module-layout>section{min-width:0;padding:18px;border:1px solid #d8dbda;background:#fff}.bsmi-crm-custom-module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.bsmi-crm-custom-module-head small{color:#567067;font-weight:800}.bsmi-crm-custom-module-head h3{margin:3px 0;font-size:22px}.bsmi-crm-custom-module-head p{margin:0;color:#626967}.bsmi-crm-custom-module-head>div:last-child{display:flex;gap:8px}.bsmi-crm-custom-module-fields{display:grid;gap:8px;margin-bottom:10px}.bsmi-crm-custom-module-fields>[data-system-custom-module-field]{display:grid;grid-template-columns:1fr 1.35fr 140px 1.25fr 105px auto;gap:7px;align-items:center}.bsmi-crm-custom-module-fields input,.bsmi-crm-custom-module-fields select{box-sizing:border-box;width:100%;min-width:0;min-height:40px}.bsmi-crm-custom-module-fields label{display:flex;align-items:center;gap:6px}.bsmi-crm-custom-module-fields label input{width:auto;min-height:0}.bsmi-crm-custom-module-table td{white-space:normal;overflow-wrap:anywhere}@media(max-width:1000px){.bsmi-crm-custom-module-layout{grid-template-columns:1fr}.bsmi-crm-custom-module-layout>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.bsmi-crm-custom-module-fields>[data-system-custom-module-field]{grid-template-columns:1fr 1fr}.bsmi-crm-custom-module-fields>[data-system-custom-module-field]>*{min-width:0}}@media(max-width:600px){.bsmi-crm-custom-module-layout>nav{grid-template-columns:1fr}.bsmi-crm-custom-module-layout>section{padding:12px}.bsmi-crm-custom-module-head{flex-direction:column}.bsmi-crm-custom-module-head>div:last-child{width:100%;display:grid;grid-template-columns:1fr 1fr}.bsmi-crm-custom-module-fields>[data-system-custom-module-field]{grid-template-columns:1fr}.bsmi-crm-custom-module-fields>[data-system-custom-module-field]>button{min-height:40px}}

/* Internal Support Desk */
.bsmi-crm-support-command{display:flex;min-width:0;margin-bottom:8px;padding:22px 24px;align-items:center;justify-content:space-between;gap:24px;color:#fff;background:#171b1a;border-left:4px solid var(--bsmi-gold)}
.bsmi-crm-support-command>div{min-width:0}.bsmi-crm-support-command small{color:#c9b77c;font-size:9px;font-weight:850}.bsmi-crm-support-command h2{margin:5px 0;color:#fff;font-size:20px}.bsmi-crm-support-command p{max-width:820px;margin:0;color:#bdc5c2;line-height:1.5}.bsmi-crm-support-command>span{flex:0 0 auto;padding:8px 11px;border:1px solid #4a504e;color:#fff;font-size:9px;font-weight:800;text-transform:uppercase}
.bsmi-crm-support-kpis{margin-bottom:8px}.bsmi-crm-support-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(125px,.7fr)) 80px;min-width:0;margin-bottom:8px;padding:10px;background:#f7f8f7;border:1px solid var(--bsmi-line);gap:7px}.bsmi-crm-support-filters label{display:flex;min-width:0;gap:4px;flex-direction:column}.bsmi-crm-support-filters label>span{color:var(--bsmi-muted);font-size:8px;font-weight:800;text-transform:uppercase}.bsmi-crm-support-filters input,.bsmi-crm-support-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:36px}.bsmi-crm-support-filters>strong{display:flex;min-width:0;padding:7px;color:#fff;background:#202423;align-items:center;justify-content:center;font-size:9px}
.bsmi-crm-support-list{display:grid;min-width:0;gap:8px}.bsmi-crm-support-list>article{display:grid;min-width:0;padding:13px 14px;background:#fff;border:1px solid var(--bsmi-line);grid-template-columns:4px minmax(0,1.5fr) minmax(240px,.75fr) minmax(155px,.45fr) auto;align-items:center;gap:14px}.bsmi-crm-support-list>article>i{align-self:stretch;background:#6b8179}.bsmi-crm-support-list>article.is-critical>i{background:#a24640}.bsmi-crm-support-list>article.is-warning>i{background:#b58f2c}.bsmi-crm-support-list article>div,.bsmi-crm-support-list article>aside{min-width:0}.bsmi-crm-support-list header{display:flex;min-width:0;align-items:center;gap:8px;flex-wrap:wrap}.bsmi-crm-support-list header span{color:#31584b;font-size:8px;font-weight:850;text-transform:uppercase}.bsmi-crm-support-list header em{padding:3px 6px;background:#eef2f0;font-size:8px;font-style:normal;font-weight:800}.bsmi-crm-support-list header em.is-critical{color:#8b302b;background:#faeceb}.bsmi-crm-support-list header em.is-warning{color:#73570d;background:#fbf3da}.bsmi-crm-support-list h3{margin:5px 0 3px;font-size:13px}.bsmi-crm-support-list p,.bsmi-crm-support-list aside span{margin:0;color:var(--bsmi-muted);font-size:9px;overflow-wrap:anywhere}.bsmi-crm-support-list dl{display:grid;min-width:0;margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bsmi-crm-support-list dt{color:var(--bsmi-muted);font-size:7px;text-transform:uppercase}.bsmi-crm-support-list dd{margin:2px 0 0;font-size:9px;font-weight:750}.bsmi-crm-support-list aside{display:grid;gap:3px}.bsmi-crm-support-list article>footer{display:flex;min-width:128px;justify-content:flex-end;gap:6px}.bsmi-crm-support-boundary{margin-top:8px;padding:14px 16px;background:#f8f4e9;border-left:3px solid var(--bsmi-gold)}.bsmi-crm-support-boundary p{margin:4px 0 0;color:#64645d;line-height:1.5}.bsmi-crm-support-timeline{display:grid;gap:0}.bsmi-crm-support-timeline article{display:grid;grid-template-columns:8px minmax(0,1fr);gap:10px;padding:11px 0;border-bottom:1px solid var(--bsmi-line)}.bsmi-crm-support-timeline article>i{width:8px;height:8px;margin-top:4px;background:#31584b}.bsmi-crm-support-timeline article p{margin:3px 0;line-height:1.45}.bsmi-crm-support-timeline article small{color:var(--bsmi-muted);font-size:9px}
@media(max-width:900px){.bsmi-crm-support-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.bsmi-crm-support-filters .is-search{grid-column:1/-1}.bsmi-crm-support-list>article{grid-template-columns:4px minmax(0,1fr) minmax(220px,.7fr)}.bsmi-crm-support-list article>aside,.bsmi-crm-support-list article>footer{grid-column:2/4}.bsmi-crm-support-list article>footer{justify-content:flex-start}}
@media(max-width:760px){.bsmi-crm-support-command{align-items:flex-start;flex-direction:column;padding:17px}.bsmi-crm-support-command>span{width:100%;box-sizing:border-box;text-align:center}.bsmi-crm-support-filters{grid-template-columns:1fr}.bsmi-crm-support-filters .is-search{grid-column:auto}.bsmi-crm-support-list>article{grid-template-columns:4px minmax(0,1fr);gap:11px}.bsmi-crm-support-list article>dl,.bsmi-crm-support-list article>aside,.bsmi-crm-support-list article>footer{grid-column:2;min-width:0}.bsmi-crm-support-list article>footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.bsmi-crm-support-list article>footer button{min-width:0}.bsmi-crm-support-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bsmi-crm-support-tabs{display:flex;margin-bottom:8px;border-bottom:1px solid var(--bsmi-line);gap:2px}.bsmi-crm-support-tabs button{min-height:42px;padding:0 16px;border:0;border-bottom:3px solid transparent;background:transparent;font-weight:800}.bsmi-crm-support-tabs button.is-active{border-bottom-color:var(--bsmi-gold);color:#171b1a}.bsmi-crm-support-tabs span{margin-left:5px;padding:2px 6px;background:#e8ebe9;font-size:8px}.bsmi-crm-help-hero{display:grid;margin-bottom:8px;padding:24px;color:#fff;background:#171b1a;border-left:4px solid var(--bsmi-gold);grid-template-columns:minmax(0,1fr) 210px;align-items:center;gap:28px}.bsmi-crm-help-hero small{color:#c9b77c;font-size:9px;font-weight:850}.bsmi-crm-help-hero h2{margin:5px 0;color:#fff;font-size:22px}.bsmi-crm-help-hero p{max-width:760px;margin:0;color:#bdc5c2;line-height:1.5}.bsmi-crm-help-hero>div:last-child{display:grid;gap:5px}.bsmi-crm-help-hero>div:last-child strong{font-size:28px}.bsmi-crm-help-hero>div:last-child span{color:#bdc5c2;font-size:9px}.bsmi-crm-help-hero i{height:5px;background:#3b403e}.bsmi-crm-help-hero i b{display:block;height:100%;background:var(--bsmi-gold)}.bsmi-crm-help-tools{display:flex;margin-bottom:8px;padding:11px 13px;background:#f7f8f7;border:1px solid var(--bsmi-line);align-items:end;justify-content:space-between;gap:16px}.bsmi-crm-help-tools label{display:grid;width:min(520px,100%);gap:4px}.bsmi-crm-help-tools label span{color:var(--bsmi-muted);font-size:8px;font-weight:800;text-transform:uppercase}.bsmi-crm-help-tools input{min-height:38px}.bsmi-crm-help-tools>div{text-align:right}.bsmi-crm-help-tools strong,.bsmi-crm-help-tools span{display:block}.bsmi-crm-help-tools>div span{color:var(--bsmi-muted);font-size:8px}.bsmi-crm-help-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bsmi-crm-help-grid article{display:flex;min-width:0;min-height:215px;padding:16px;background:#fff;border:1px solid var(--bsmi-line);border-top:3px solid #707975;flex-direction:column}.bsmi-crm-help-grid article.is-complete{border-top-color:#31584b}.bsmi-crm-help-grid header,.bsmi-crm-help-grid footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.bsmi-crm-help-grid header span{color:#31584b;font-size:8px;font-weight:850;text-transform:uppercase}.bsmi-crm-help-grid header em{color:var(--bsmi-muted);font-size:8px;font-style:normal}.bsmi-crm-help-grid h3{margin:16px 0 7px;font-size:14px}.bsmi-crm-help-grid p{margin:0 0 18px;color:var(--bsmi-muted);font-size:9px;line-height:1.55}.bsmi-crm-help-grid footer{margin-top:auto}.bsmi-crm-help-grid footer span{font-size:8px;font-weight:800}.bsmi-crm-help-grid footer span.is-completed{color:#31584b}.bsmi-crm-help-player{display:grid;gap:14px}.bsmi-crm-help-screen{min-height:230px;padding:28px;color:#fff;background:#171b1a;border-left:4px solid var(--bsmi-gold)}.bsmi-crm-help-screen span{color:#c9b77c;font-size:9px;font-weight:850}.bsmi-crm-help-screen h3{margin:44px 0 8px;color:#fff;font-size:23px}.bsmi-crm-help-screen p{max-width:560px;color:#bdc5c2;line-height:1.55}.bsmi-crm-help-player ol{display:grid;margin:0;padding:0;list-style:none;gap:6px}.bsmi-crm-help-player li{display:grid;padding:10px;border:1px solid var(--bsmi-line);grid-template-columns:26px 1fr;align-items:center;gap:10px}.bsmi-crm-help-player li span{display:grid;width:24px;height:24px;background:#eef0ef;place-items:center;font-size:9px}.bsmi-crm-help-player li.is-current{border-color:var(--bsmi-gold)}.bsmi-crm-help-player li.is-current span,.bsmi-crm-help-player li.is-done span{color:#fff;background:#31584b}.bsmi-crm-help-player aside{padding:13px;background:#f8f4e9;border-left:3px solid var(--bsmi-gold)}.bsmi-crm-help-player aside p{margin:4px 0 0;line-height:1.5}.bsmi-crm-support-boundary button{margin-top:10px}
@media(max-width:1100px){.bsmi-crm-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.bsmi-crm-support-tabs button{flex:1;min-width:0;padding:0 8px}.bsmi-crm-help-hero{grid-template-columns:1fr;padding:18px;gap:18px}.bsmi-crm-help-tools{align-items:stretch;flex-direction:column}.bsmi-crm-help-tools>div{text-align:left}.bsmi-crm-help-grid{grid-template-columns:1fr}.bsmi-crm-help-grid article{min-height:190px}.bsmi-crm-help-screen{min-height:210px;padding:20px}.bsmi-crm-help-screen h3{margin-top:35px;font-size:20px}}
.bsmi-crm-inventory-modes{display:flex;margin-bottom:8px;border-bottom:1px solid var(--bsmi-line);gap:2px}.bsmi-crm-inventory-modes button{min-height:40px;padding:0 15px;border:0;border-bottom:3px solid transparent;background:transparent;font-weight:800}.bsmi-crm-inventory-modes button.is-active{border-bottom-color:var(--bsmi-gold)}.bsmi-crm-inventory-calendar-head{display:flex;padding:17px 19px;color:#fff;background:#171b1a;border-left:4px solid var(--bsmi-gold);align-items:center;justify-content:space-between;gap:18px}.bsmi-crm-inventory-calendar-head small{color:#c9b77c;font-size:8px;font-weight:850}.bsmi-crm-inventory-calendar-head h2{margin:4px 0;color:#fff;font-size:20px}.bsmi-crm-inventory-calendar-head p{margin:0;color:#bdc5c2;font-size:9px}.bsmi-crm-inventory-calendar-head>div:last-child{display:flex;gap:6px}.bsmi-crm-inventory-calendar-head button{display:grid;width:38px;height:38px;padding:0;border:1px solid #4a504e;color:#fff;background:#252a28;place-items:center;font-size:17px}.bsmi-crm-inventory-calendar-layout{display:grid;margin-top:8px;grid-template-columns:minmax(0,1fr) 270px;gap:8px}.bsmi-crm-inventory-calendar{display:grid;min-width:0;background:#fff;border:1px solid var(--bsmi-line);grid-template-columns:repeat(7,minmax(0,1fr))}.bsmi-crm-inventory-calendar>article{min-width:0;min-height:125px;padding:7px;border-right:1px solid var(--bsmi-line);border-bottom:1px solid var(--bsmi-line)}.bsmi-crm-inventory-calendar>article:nth-child(7n){border-right:0}.bsmi-crm-inventory-calendar>article.is-outside{background:#f5f6f5;color:#929794}.bsmi-crm-inventory-calendar>article.is-today{box-shadow:inset 0 0 0 2px var(--bsmi-gold)}.bsmi-crm-inventory-calendar article header{display:flex;margin-bottom:7px;align-items:center;justify-content:space-between}.bsmi-crm-inventory-calendar article header span{color:var(--bsmi-muted);font-size:7px;text-transform:uppercase}.bsmi-crm-inventory-calendar article header strong{font-size:11px}.bsmi-crm-inventory-calendar article>div{display:grid;gap:3px}.bsmi-crm-inventory-calendar article button{display:grid;min-width:0;min-height:24px;padding:4px 5px;border:0;background:#edf1ef;grid-template-columns:4px minmax(0,1fr);align-items:center;gap:5px;text-align:left}.bsmi-crm-inventory-calendar article button i{width:4px;height:100%;background:#31584b}.bsmi-crm-inventory-calendar article button span{min-width:0;font-size:7px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bsmi-crm-inventory-calendar article button.is-attention{background:#fbf3da}.bsmi-crm-inventory-calendar article button.is-attention i,.bsmi-crm-inventory-calendar article button.is-warning i{background:#b58f2c}.bsmi-crm-inventory-calendar article button.is-critical{background:#faeceb}.bsmi-crm-inventory-calendar article button.is-critical i{background:#a24640}.bsmi-crm-inventory-calendar article button.is-future{background:#edf0f4}.bsmi-crm-inventory-calendar article button.is-future i{background:#50647a}.bsmi-crm-inventory-calendar article>div>small{font-size:7px}.bsmi-crm-inventory-agenda{min-width:0;background:#fff;border:1px solid var(--bsmi-line)}.bsmi-crm-inventory-agenda>header{display:flex;padding:12px;background:#202423;color:#fff;align-items:center;justify-content:space-between;gap:8px}.bsmi-crm-inventory-agenda>header small{color:#c9b77c;font-size:7px;font-weight:850}.bsmi-crm-inventory-agenda>header strong{font-size:9px}.bsmi-crm-inventory-agenda>button{display:grid;width:100%;min-width:0;padding:11px;border:0;border-bottom:1px solid var(--bsmi-line);background:#fff;grid-template-columns:68px minmax(0,1fr);gap:8px;text-align:left}.bsmi-crm-inventory-agenda time{color:#896b2f;font-size:8px;font-weight:800}.bsmi-crm-inventory-agenda button span,.bsmi-crm-inventory-agenda button strong,.bsmi-crm-inventory-agenda button small{display:block;min-width:0}.bsmi-crm-inventory-agenda button strong{font-size:9px}.bsmi-crm-inventory-agenda button small{margin-top:3px;color:var(--bsmi-muted);font-size:7px;overflow-wrap:anywhere}.bsmi-crm-inventory-agenda>p{padding:15px;color:var(--bsmi-muted);font-size:9px}
@media(max-width:1100px){.bsmi-crm-inventory-calendar-layout{grid-template-columns:1fr}.bsmi-crm-inventory-agenda{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.bsmi-crm-inventory-agenda>header{grid-column:1/-1}.bsmi-crm-inventory-agenda>button{grid-template-columns:80px minmax(0,1fr)}}@media(max-width:760px){.bsmi-crm-inventory-modes button{flex:1;min-width:0;padding:0 7px}.bsmi-crm-inventory-calendar-head{align-items:flex-start;padding:15px}.bsmi-crm-inventory-calendar-head p{max-width:220px}.bsmi-crm-inventory-calendar-layout{overflow:hidden}.bsmi-crm-inventory-calendar{display:block;border:0;background:transparent}.bsmi-crm-inventory-calendar>article{display:none;min-height:0;margin-bottom:6px;background:#fff;border:1px solid var(--bsmi-line)}.bsmi-crm-inventory-calendar>article.is-today,.bsmi-crm-inventory-calendar>article:has(button){display:block}.bsmi-crm-inventory-calendar article header{margin-bottom:9px}.bsmi-crm-inventory-calendar article button{min-height:34px}.bsmi-crm-inventory-calendar article button span{font-size:8px}.bsmi-crm-inventory-agenda{grid-template-columns:1fr}.bsmi-crm-inventory-agenda>button{grid-template-columns:88px minmax(0,1fr)}}
.bsmi-crm-app.is-rtl{font-family:Arial,"Noto Sans Arabic",sans-serif}.bsmi-crm-app.is-rtl .bsmi-crm-sidebar{border-right:0;border-left:1px solid #202225}.bsmi-crm-app.is-rtl .bsmi-crm-sidebar nav button,.bsmi-crm-app.is-rtl .bsmi-crm-sidebar-footer,.bsmi-crm-app.is-rtl .bsmi-crm-page-head,.bsmi-crm-app.is-rtl .bsmi-crm-form label,.bsmi-crm-app.is-rtl .bsmi-crm-inventory-calendar-head,.bsmi-crm-app.is-rtl .bsmi-crm-inventory-agenda>button{text-align:right}.bsmi-crm-app.is-rtl .bsmi-crm-drawer{right:auto;left:0;box-shadow:18px 0 45px rgba(11,12,14,.2);transform:translateX(-104%)}.bsmi-crm-app.is-rtl .bsmi-crm-drawer.is-open{transform:translateX(0)}.bsmi-crm-app.is-rtl .bsmi-crm-inventory-calendar article button{text-align:right}.bsmi-crm-app.is-rtl .bsmi-crm-inventory-calendar-head>div:last-child,.bsmi-crm-app.is-rtl .bsmi-crm-drawer-actions{direction:ltr}
@media(max-width:900px){.bsmi-crm-app.is-rtl .bsmi-crm-sidebar{left:auto;right:0;transform:translateX(105%);box-shadow:-18px 0 42px rgba(11,12,14,.24)}.bsmi-crm-app.is-rtl.is-nav-open .bsmi-crm-sidebar{transform:translateX(0)}}
.bsmi-crm-partner-portal-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;background:#151b18;color:#fff;border-inline-start:4px solid #b9974f}.bsmi-crm-partner-portal-hero small{color:#d8bd7a}.bsmi-crm-partner-portal-hero h2{margin:6px 0;font-size:24px}.bsmi-crm-partner-portal-hero p{margin:0;color:#c8ceca}.bsmi-crm-partner-portal-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:16px}.bsmi-crm-partner-portal-list{display:grid}.bsmi-crm-partner-portal-list>button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;width:100%;padding:16px;border:0;border-bottom:1px solid #dde1df;background:#fff;text-align:start}.bsmi-crm-partner-portal-list>button:hover{background:#f6f7f6}.bsmi-crm-partner-portal-list span{display:grid;gap:4px}.bsmi-crm-partner-portal-list em,.bsmi-crm-partner-portal-list small{font-style:normal;color:#69716d}.bsmi-crm-partner-portal-list b{justify-self:end}.bsmi-crm-partner-portal-list b.is-good{color:#17633d}.bsmi-crm-partner-portal-list b.is-warning{color:#8b6414}.bsmi-crm-partner-portal-list b.is-danger{color:#a03333}.bsmi-crm-partner-portal-guide{align-self:start;padding:18px}.bsmi-crm-partner-portal-guide>div:not(.bsmi-crm-section-head){display:grid;grid-template-columns:32px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid #e1e4e2}.bsmi-crm-partner-portal-guide>div>b{display:grid;place-items:center;width:28px;height:28px;background:#b9974f;color:#111}.bsmi-crm-partner-portal-guide>div span{display:grid;gap:4px}.bsmi-crm-partner-portal-guide>div small,.bsmi-crm-partner-portal-guide footer small{color:#69716d;line-height:1.45}.bsmi-crm-partner-portal-guide footer{display:grid;gap:3px;padding-top:16px}

@media(max-width:760px){.bsmi-crm-partner-portal-hero{align-items:flex-start;flex-direction:column;padding:20px}.bsmi-crm-partner-portal-grid{grid-template-columns:1fr}.bsmi-crm-partner-portal-list>button{grid-template-columns:1fr;gap:10px}.bsmi-crm-partner-portal-list b{justify-self:start}}
.bsmi-crm-payment-profile{display:grid;padding:16px 18px;margin-bottom:8px;background:#171d1a;color:#fff;border-inline-start:4px solid var(--bsmi-gold);grid-template-columns:minmax(220px,1fr) minmax(420px,1.3fr) auto;align-items:center;gap:20px}.bsmi-crm-payment-profile>div:first-child{display:grid;gap:3px}.bsmi-crm-payment-profile small{color:#c9b77c;font-size:8px;font-weight:800}.bsmi-crm-payment-profile strong{font-size:16px}.bsmi-crm-payment-profile span{color:#bbc4c0;font-size:9px}.bsmi-crm-payment-profile dl{display:grid;margin:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#343b38}.bsmi-crm-payment-profile dl>div{padding:10px;background:#222826}.bsmi-crm-payment-profile dt{color:#aeb8b3;font-size:7px;text-transform:uppercase}.bsmi-crm-payment-profile dd{margin:3px 0 0;font-size:9px;font-weight:750}.bsmi-crm-payment-session-wrap{margin-top:8px}.bsmi-crm-payment-session-wrap a{display:inline-flex;min-height:34px;padding:0 10px;color:#17191d;border:1px solid var(--bsmi-line);align-items:center;text-decoration:none;font-size:9px;font-weight:800}.bsmi-crm-payment-ledger{margin-top:8px}.bsmi-crm-payment-ledger>div:last-child{display:grid}.bsmi-crm-payment-ledger article{display:grid;padding:11px 0;border-bottom:1px solid var(--bsmi-line);grid-template-columns:4px minmax(0,1fr) auto;gap:10px;align-items:center}.bsmi-crm-payment-ledger article>i{align-self:stretch;background:#b58f2c}.bsmi-crm-payment-ledger article>i.is-good{background:#31584b}.bsmi-crm-payment-ledger article>i.is-danger{background:#a24640}.bsmi-crm-payment-ledger article span{display:grid;gap:2px}.bsmi-crm-payment-ledger article small,.bsmi-crm-payment-ledger time{color:var(--bsmi-muted);font-size:8px}
@media(max-width:980px){.bsmi-crm-payment-profile{grid-template-columns:1fr}.bsmi-crm-payment-profile dl{grid-template-columns:repeat(3,minmax(0,1fr))}.bsmi-crm-payment-profile>div:last-child button{width:100%}}@media(max-width:600px){.bsmi-crm-payment-profile dl{grid-template-columns:1fr}.bsmi-crm-payment-session-wrap{overflow:visible}.bsmi-crm-payment-session-wrap table,.bsmi-crm-payment-session-wrap tbody{display:block;width:100%;min-width:0}.bsmi-crm-payment-session-wrap thead{display:none}.bsmi-crm-payment-session-wrap tr{display:grid;width:100%;min-width:0;margin-bottom:8px;padding:12px;box-sizing:border-box;background:#fff;border:1px solid var(--bsmi-line);grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.bsmi-crm-payment-session-wrap td{display:grid;min-width:0;padding:0!important;border:0!important;gap:3px;overflow-wrap:anywhere}.bsmi-crm-payment-session-wrap td::before{content:attr(data-label);color:var(--bsmi-muted);font-size:7px;font-weight:800;text-transform:uppercase}.bsmi-crm-payment-session-wrap td[data-label="Control"]{grid-column:1/-1}.bsmi-crm-payment-session-wrap td[data-label="Control"]>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.bsmi-crm-payment-session-wrap td[data-label="Control"] a,.bsmi-crm-payment-session-wrap td[data-label="Control"] button{box-sizing:border-box;width:100%;justify-content:center}.bsmi-crm-payment-ledger article{grid-template-columns:4px minmax(0,1fr)}.bsmi-crm-payment-ledger article time{grid-column:2}}
/* Accounting synchronization operations */
.bsmi-crm-accounting-profile { display:grid; grid-template-columns:minmax(240px,1fr) minmax(420px,1.4fr) auto; gap:20px; align-items:center; padding:22px; background:#101412; color:#fff; border-top:3px solid #b79b5b; }
.bsmi-crm-accounting-profile small,.bsmi-crm-accounting-register header small,.bsmi-crm-accounting-events header small { color:#b79b5b; font-size:11px; font-weight:800; }
.bsmi-crm-accounting-profile h2 { margin:5px 0; font-size:22px; }
.bsmi-crm-accounting-profile p { margin:0; color:#bfc7c2; }
.bsmi-crm-accounting-profile dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:0; background:#303632; }
.bsmi-crm-accounting-profile dl div { padding:12px; background:#171c19; }
.bsmi-crm-accounting-profile dt { color:#9ca69f; font-size:11px; }
.bsmi-crm-accounting-profile dd { margin:5px 0 0; font-weight:700; }
.bsmi-crm-accounting-profile > div:last-child { display:flex; flex-direction:column; gap:8px; }
.bsmi-crm-accounting-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:14px 0; }
.bsmi-crm-accounting-boundary { padding:14px 16px; border-left:3px solid #b79b5b; background:#f5f2e9; }
.bsmi-crm-accounting-boundary p { margin:4px 0 0; color:#4d5751; }
.bsmi-crm-accounting-register,.bsmi-crm-accounting-events { margin-top:14px; border:1px solid #d9dedb; background:#fff; }
.bsmi-crm-accounting-register > header,.bsmi-crm-accounting-events > header { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid #e4e8e5; }
.bsmi-crm-accounting-register h2,.bsmi-crm-accounting-events h2 { margin:3px 0 0; font-size:18px; }
.bsmi-crm-accounting-batches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-accounting-batches article { padding:17px; border-right:1px solid #e4e8e5; border-bottom:1px solid #e4e8e5; }
.bsmi-crm-accounting-batches article > div { display:grid; gap:5px; }
.bsmi-crm-accounting-batches article span,.bsmi-crm-accounting-events em { justify-self:start; padding:3px 7px; background:#edf0ee; font-size:11px; font-style:normal; font-weight:800; }
.bsmi-crm-accounting-batches article span.is-reconciled,.bsmi-crm-accounting-events em.is-reconciled,.bsmi-crm-accounting-events em.is-accepted { background:#dcecdf; color:#1f6330; }
.bsmi-crm-accounting-batches article span.is-partially-accepted { background:#fff0c9; color:#765500; }
.bsmi-crm-accounting-batches article span.is-rejected { background:#f7dddd; color:#8c2424; }
.bsmi-crm-accounting-batches dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:14px 0 0; }
.bsmi-crm-accounting-batches dt { color:#727d76; font-size:11px; }
.bsmi-crm-accounting-batches dd { margin:3px 0 0; font-size:13px; font-weight:700; }
.bsmi-crm-accounting-events > div { display:grid; }
.bsmi-crm-accounting-events article { display:grid; grid-template-columns:150px minmax(180px,1fr) auto minmax(260px,1.4fr); gap:14px; align-items:center; padding:13px 18px; border-bottom:1px solid #e8ebe9; }
.bsmi-crm-accounting-events article time,.bsmi-crm-accounting-events article small { color:#68736c; font-size:12px; }
.bsmi-crm-accounting-events article span { display:grid; gap:3px; }
.bsmi-crm-accounting-events article p { margin:0; color:#4f5a53; font-size:13px; }
@media (max-width:900px) { .bsmi-crm-accounting-profile { grid-template-columns:1fr; } .bsmi-crm-accounting-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .bsmi-crm-accounting-events article { grid-template-columns:1fr auto; } .bsmi-crm-accounting-events article time,.bsmi-crm-accounting-events article p { grid-column:1/-1; } }
@media (max-width:600px) { .bsmi-crm-accounting-profile dl,.bsmi-crm-accounting-kpis,.bsmi-crm-accounting-batches { grid-template-columns:1fr; } .bsmi-crm-accounting-profile > div:last-child { flex-direction:row; flex-wrap:wrap; } .bsmi-crm-accounting-batches article { border-right:0; } .bsmi-crm-accounting-batches dl { grid-template-columns:1fr; } .bsmi-crm-accounting-events article { grid-template-columns:1fr; } .bsmi-crm-accounting-events article time,.bsmi-crm-accounting-events article p { grid-column:auto; } }

/* Developer channel portal */
.bsmi-crm-developer-portal-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:26px; background:#0f1411; color:#fff; border-top:3px solid #b79b5b; }
.bsmi-crm-developer-portal-hero small,.bsmi-crm-developer-projects > header small,.bsmi-crm-developer-submissions > header small { color:#b79b5b; font-weight:800; }
.bsmi-crm-developer-portal-hero h2 { max-width:760px; margin:6px 0; font-size:28px; }
.bsmi-crm-developer-portal-hero p { max-width:780px; margin:0; color:#c7cec9; }
.bsmi-crm-developer-portal-hero > span { flex:none; padding:9px 12px; background:#b79b5b; color:#101411; font-weight:800; }
.bsmi-crm-developer-portal-kpis { margin:14px 0; }
.bsmi-crm-developer-portal-boundary { padding:14px 16px; border-left:3px solid #b79b5b; background:#f5f2e9; }
.bsmi-crm-developer-portal-boundary p { margin:4px 0 0; color:#505a54; }
.bsmi-crm-developer-projects,.bsmi-crm-developer-submissions { margin-top:14px; border:1px solid #dce1de; background:#fff; }
.bsmi-crm-developer-projects > header,.bsmi-crm-developer-submissions > header { display:flex; justify-content:space-between; align-items:center; padding:17px 18px; border-bottom:1px solid #e4e8e5; }
.bsmi-crm-developer-projects > header h2,.bsmi-crm-developer-submissions > header h2 { margin:3px 0 0; font-size:19px; }
.bsmi-crm-developer-projects > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-developer-projects article { display:flex; flex-direction:column; min-width:0; padding:18px; border-right:1px solid #e4e8e5; }
.bsmi-crm-developer-projects article header { display:flex; justify-content:space-between; gap:12px; }
.bsmi-crm-developer-projects article header div { min-width:0; }
.bsmi-crm-developer-projects article header span,.bsmi-crm-developer-projects article header small { color:#68736c; font-size:12px; }
.bsmi-crm-developer-projects article h3 { margin:4px 0; font-size:18px; }
.bsmi-crm-developer-projects article em,.bsmi-crm-developer-submissions article > div > span { align-self:flex-start; padding:3px 7px; background:#edf0ee; font-size:11px; font-style:normal; font-weight:800; }
.bsmi-crm-developer-projects article em.is-current,.bsmi-crm-developer-submissions span.is-accepted { background:#dcecdf; color:#1f6330; }
.bsmi-crm-developer-submissions span.is-submitted,.bsmi-crm-developer-submissions span.is-under-review { background:#fff0c9; color:#765500; }
.bsmi-crm-developer-submissions span.is-rejected { background:#f7dddd; color:#8c2424; }
.bsmi-crm-developer-projects dl,.bsmi-crm-developer-submissions dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.bsmi-crm-developer-projects dt,.bsmi-crm-developer-submissions dt { color:#717b75; font-size:11px; }
.bsmi-crm-developer-projects dd,.bsmi-crm-developer-submissions dd { margin:3px 0 0; font-weight:700; overflow-wrap:anywhere; }
.bsmi-crm-developer-projects article footer { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-top:auto; padding-top:14px; border-top:1px solid #e5e8e6; }
.bsmi-crm-developer-projects article footer span { color:#57625b; font-size:12px; }
.bsmi-crm-developer-submissions > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-developer-submissions article { padding:17px; border-right:1px solid #e4e8e5; border-bottom:1px solid #e4e8e5; }
.bsmi-crm-developer-submissions article > div { display:grid; gap:5px; }
.bsmi-crm-developer-submissions article > p { margin:0; padding:10px; background:#f5f6f5; color:#505a54; font-size:13px; }
.bsmi-crm-developer-submissions article footer { margin-top:12px; }
@media (max-width:1000px) { .bsmi-crm-developer-projects > div { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .bsmi-crm-developer-portal-hero { align-items:flex-start; flex-direction:column; } .bsmi-crm-developer-portal-hero h2 { font-size:23px; } .bsmi-crm-developer-projects > div,.bsmi-crm-developer-submissions > div { grid-template-columns:1fr; } .bsmi-crm-developer-projects article,.bsmi-crm-developer-submissions article { border-right:0; } .bsmi-crm-developer-projects article footer { align-items:stretch; flex-direction:column; } .bsmi-crm-developer-projects article footer button { min-height:44px; } }

.bsmi-crm-owner-portal-hero { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:28px; background:#0b0c0d; color:#fff; border-top:3px solid #c4a76a; }
.bsmi-crm-owner-portal-hero small,.bsmi-crm-owner-properties > header small,.bsmi-crm-owner-requests > header small { color:#c4a76a; font-weight:800; }
.bsmi-crm-owner-portal-hero h2 { max-width:760px; margin:6px 0; font:600 29px Georgia,"Times New Roman",serif; }
.bsmi-crm-owner-portal-hero p { max-width:780px; margin:0; color:#c9c9c7; }
.bsmi-crm-owner-portal-hero > span { flex:none; padding:9px 12px; background:#c4a76a; color:#0b0c0d; font-weight:800; }
.bsmi-crm-owner-portal-kpis { margin-top:14px; }
.bsmi-crm-owner-portal-boundary { margin-top:14px; padding:14px 17px; border-left:3px solid #c4a76a; background:#f7f5ef; }
.bsmi-crm-owner-portal-boundary p { margin:4px 0 0; color:#5f5c55; }
.bsmi-crm-owner-properties,.bsmi-crm-owner-requests { margin-top:14px; border:1px solid #dededb; background:#fff; }
.bsmi-crm-owner-properties > header,.bsmi-crm-owner-requests > header { display:flex; justify-content:space-between; align-items:center; padding:17px 18px; border-bottom:1px solid #e5e5e2; }
.bsmi-crm-owner-properties > header h2,.bsmi-crm-owner-requests > header h2 { margin:3px 0 0; font-size:19px; }
.bsmi-crm-owner-properties > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-owner-properties article { display:flex; flex-direction:column; min-width:0; padding:18px; border-right:1px solid #e5e5e2; }
.bsmi-crm-owner-properties article header { display:flex; justify-content:space-between; gap:12px; }
.bsmi-crm-owner-properties article header div { min-width:0; }
.bsmi-crm-owner-properties article header span,.bsmi-crm-owner-properties article header small { color:#6d6d68; font-size:12px; }
.bsmi-crm-owner-properties article h3 { margin:4px 0; font-size:18px; }
.bsmi-crm-owner-properties article em,.bsmi-crm-owner-requests article > div > span { align-self:flex-start; padding:3px 7px; background:#efefed; font-size:11px; font-style:normal; font-weight:800; }
.bsmi-crm-owner-properties article em.is-available,.bsmi-crm-owner-requests span.is-accepted,.bsmi-crm-owner-requests span.is-completed { background:#deebdf; color:#225f31; }
.bsmi-crm-owner-requests span.is-submitted,.bsmi-crm-owner-requests span.is-under-review { background:#fff0c9; color:#765500; }
.bsmi-crm-owner-requests span.is-rejected { background:#f7dddd; color:#8c2424; }
.bsmi-crm-owner-properties dl,.bsmi-crm-owner-requests dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.bsmi-crm-owner-properties dt,.bsmi-crm-owner-requests dt { color:#74746f; font-size:11px; }
.bsmi-crm-owner-properties dd,.bsmi-crm-owner-requests dd { margin:3px 0 0; font-weight:700; overflow-wrap:anywhere; }
.bsmi-crm-owner-properties article > p,.bsmi-crm-owner-requests article > p { margin:0 0 9px; padding:10px; background:#f6f6f4; color:#50504c; font-size:13px; }
.bsmi-crm-owner-properties article > p strong,.bsmi-crm-owner-requests article > p strong { display:block; margin-bottom:3px; color:#171817; }
.bsmi-crm-owner-properties article footer { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-top:auto; padding-top:14px; border-top:1px solid #e5e5e2; }
.bsmi-crm-owner-properties article footer span { color:#5d5d58; font-size:12px; }
.bsmi-crm-owner-requests > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-owner-requests article { padding:17px; border-right:1px solid #e5e5e2; border-bottom:1px solid #e5e5e2; }
.bsmi-crm-owner-requests article > div { display:grid; gap:5px; }
.bsmi-crm-owner-requests article footer { margin-top:12px; }
@media (max-width:1000px) { .bsmi-crm-owner-properties > div { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .bsmi-crm-owner-portal-hero { align-items:flex-start; flex-direction:column; } .bsmi-crm-owner-portal-hero h2 { font-size:23px; } .bsmi-crm-owner-properties > div,.bsmi-crm-owner-requests > div { grid-template-columns:1fr; } .bsmi-crm-owner-properties article,.bsmi-crm-owner-requests article { border-right:0; } .bsmi-crm-owner-properties article footer { align-items:stretch; flex-direction:column; } .bsmi-crm-owner-properties article footer button { min-height:44px; } }

/* Valuation and comparative market analysis */
.bsmi-crm-valuation-command,
.bsmi-crm-valuation-command *,
.bsmi-crm-valuation-workspace,
.bsmi-crm-valuation-workspace *,
.bsmi-crm-valuation-record,
.bsmi-crm-valuation-record *,
.bsmi-crm-valuation-form,
.bsmi-crm-valuation-form * { box-sizing:border-box; }
.bsmi-crm-valuation-command { display:grid; min-width:0; color:#fff; background:#151719; border-top:3px solid #b89a5b; grid-template-columns:minmax(0,1.25fr) minmax(430px,.75fr); }
.bsmi-crm-valuation-command > div { min-width:0; padding:25px 28px; border-right:1px solid #373a3e; }
.bsmi-crm-valuation-command small,
.bsmi-crm-valuation-view-head small,
.bsmi-crm-valuation-events header small,
.bsmi-crm-valuation-analysis-card header small { color:#c7aa6c; font-size:8px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-command h2 { max-width:780px; margin:5px 0 6px; color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:28px; font-weight:500; line-height:1.1; }
.bsmi-crm-valuation-command p { max-width:780px; margin:0; color:#c7cbd0; font-size:10px; line-height:1.6; }
.bsmi-crm-valuation-command dl { display:grid; min-width:0; margin:0; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-valuation-command dl > div { display:flex; min-width:0; min-height:100%; padding:18px 15px; justify-content:center; border-right:1px solid #373a3e; flex-direction:column; }
.bsmi-crm-valuation-command dl > div:last-child { border-right:0; }
.bsmi-crm-valuation-command dt { color:#aeb3b8; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-command dd { margin:5px 0 4px; color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:22px; font-weight:500; overflow-wrap:anywhere; }
.bsmi-crm-valuation-command dl small { color:#c4b18b; font-size:7px; font-weight:600; text-transform:none; }
.bsmi-crm-valuation-boundary { display:flex; min-height:52px; padding:12px 18px; align-items:center; gap:18px; color:#4d493e; background:#f6f2e8; border:1px solid #dfd3b9; border-top:0; border-left:4px solid #b89a5b; }
.bsmi-crm-valuation-boundary strong { flex:none; color:#27251f; font-size:9px; }
.bsmi-crm-valuation-boundary span { font-size:8px; line-height:1.5; }
.bsmi-crm-valuation-kpis { display:grid; margin:8px 0; background:#fff; border:1px solid var(--bsmi-line); grid-template-columns:repeat(5,minmax(0,1fr)); }
.bsmi-crm-valuation-kpis article { min-width:0; min-height:88px; padding:15px 17px; border-right:1px solid var(--bsmi-line); }
.bsmi-crm-valuation-kpis article:last-child { border-right:0; }
.bsmi-crm-valuation-kpis span,
.bsmi-crm-valuation-kpis strong,
.bsmi-crm-valuation-kpis small { display:block; }
.bsmi-crm-valuation-kpis span { color:#747a82; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-kpis strong { margin:5px 0 4px; color:#1b1d20; font-family:Georgia,"Times New Roman",serif; font-size:24px; font-weight:500; overflow-wrap:anywhere; }
.bsmi-crm-valuation-kpis small { color:#8b9096; font-size:7px; line-height:1.35; }
.bsmi-crm-valuation-tabs { display:grid; margin-bottom:8px; background:#fff; border:1px solid var(--bsmi-line); grid-template-columns:repeat(5,minmax(0,1fr)); }
.bsmi-crm-valuation-tabs button { display:flex; min-width:0; min-height:46px; padding:9px 12px; align-items:center; justify-content:space-between; gap:8px; color:#5c6269; background:#fff; border:0; border-right:1px solid var(--bsmi-line); font-size:8px; font-weight:850; }
.bsmi-crm-valuation-tabs button:last-child { border-right:0; }
.bsmi-crm-valuation-tabs button strong { min-width:25px; padding:3px 6px; color:#666c73; background:#eff0f1; border-radius:2px; font-size:8px; text-align:center; }
.bsmi-crm-valuation-tabs button.is-active { color:#181a1d; background:#f8f5ef; box-shadow:inset 0 -3px #b89a5b; }
.bsmi-crm-valuation-tabs button.is-active strong { color:#fff; background:#1a1c1f; }
.bsmi-crm-valuation-workspace { min-width:0; background:#fff; border:1px solid var(--bsmi-line); }
.bsmi-crm-valuation-view-head { display:flex; min-height:78px; padding:18px 20px; align-items:center; justify-content:space-between; gap:20px; border-bottom:1px solid var(--bsmi-line); }
.bsmi-crm-valuation-view-head h2 { margin:4px 0 3px; color:#17191d; font-family:Georgia,"Times New Roman",serif; font-size:21px; font-weight:500; line-height:1.15; }
.bsmi-crm-valuation-view-head p { max-width:790px; margin:0; color:#70767e; font-size:9px; line-height:1.5; }
.bsmi-crm-valuation-view-head > span { flex:none; color:#777d85; font-size:8px; white-space:nowrap; }
.bsmi-crm-valuation-filters { display:grid; min-width:0; padding:11px 12px; align-items:end; background:#f7f8f8; border-bottom:1px solid var(--bsmi-line); grid-template-columns:minmax(250px,1.45fr) repeat(4,minmax(125px,.7fr)) 84px; gap:7px; }
.bsmi-crm-valuation-filters label { display:flex; min-width:0; gap:4px; flex-direction:column; }
.bsmi-crm-valuation-filters label > span { color:#686f77; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-filters input,
.bsmi-crm-valuation-filters select { width:100%; min-width:0; min-height:36px; padding:7px 9px; color:#202226; background:#fff; border:1px solid #d8dbde; border-radius:3px; font-size:9px; }
.bsmi-crm-valuation-filter-count { display:flex; min-height:36px; padding:5px 10px; justify-content:center; background:#ece7dc; border-left:2px solid #b89a5b; flex-direction:column; }
.bsmi-crm-valuation-filter-count strong { color:#181a1d; font-family:Georgia,"Times New Roman",serif; font-size:17px; font-weight:500; }
.bsmi-crm-valuation-filter-count span { color:#686158; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-pill { display:inline-flex; min-height:21px; padding:3px 7px; align-items:center; justify-content:center; color:#4b5159; background:#f2f3f4; border:1px solid #d6d9dc; border-radius:2px; font-size:7px; font-style:normal; font-weight:850; white-space:nowrap; }
.bsmi-crm-valuation-pill.is-clear { color:#205f49; background:#eef7f3; border-color:#b8d9ca; }
.bsmi-crm-valuation-pill.is-attention { color:#765717; background:#fbf5e7; border-color:#ddc68b; }
.bsmi-crm-valuation-pill.is-critical { color:#922a30; background:#fbeff0; border-color:#dfb7ba; }
.bsmi-crm-valuation-pill.is-muted { color:#59606a; background:#f1f2f3; border-color:#d2d5d8; }
.bsmi-crm-valuation-table-wrap { width:100%; min-width:0; overflow-x:auto; }
.bsmi-crm-valuation-table { width:100%; min-width:1280px; border-collapse:collapse; table-layout:fixed; }
.bsmi-crm-valuation-table th { padding:9px 10px; color:#777d85; background:#fbfbfb; border-bottom:1px solid var(--bsmi-line); font-size:7px; font-weight:850; text-align:left; text-transform:uppercase; }
.bsmi-crm-valuation-table th:nth-child(1) { width:17%; }
.bsmi-crm-valuation-table th:nth-child(2) { width:14%; }
.bsmi-crm-valuation-table th:nth-child(3) { width:14%; }
.bsmi-crm-valuation-table th:nth-child(4) { width:16%; }
.bsmi-crm-valuation-table th:nth-child(5) { width:14%; }
.bsmi-crm-valuation-table th:nth-child(6) { width:13%; }
.bsmi-crm-valuation-table th:nth-child(7) { width:12%; }
.bsmi-crm-valuation-table td { min-width:0; padding:11px 10px; vertical-align:top; color:#3d4249; border-bottom:1px solid #eceeef; font-size:8px; overflow-wrap:anywhere; }
.bsmi-crm-valuation-table tr:last-child td { border-bottom:0; }
.bsmi-crm-valuation-table tr.is-critical td:first-child { box-shadow:inset 3px 0 #a92d33; }
.bsmi-crm-valuation-table tr.is-attention td:first-child { box-shadow:inset 3px 0 #c19b4c; }
.bsmi-crm-valuation-table tr.is-clear td:first-child { box-shadow:inset 3px 0 #2c6a53; }
.bsmi-crm-valuation-table td > strong,
.bsmi-crm-valuation-table td > span,
.bsmi-crm-valuation-table td > small { display:block; margin-bottom:4px; }
.bsmi-crm-valuation-table td > strong { color:#1b1d21; font-size:9px; }
.bsmi-crm-valuation-table td > span { color:#686f77; line-height:1.38; }
.bsmi-crm-valuation-table td > small { color:#9499a0; font-size:7px; line-height:1.35; }
.bsmi-crm-valuation-table .bsmi-crm-valuation-pill { margin-bottom:5px; }
.bsmi-crm-valuation-row-actions,
.bsmi-crm-valuation-record-actions,
.bsmi-crm-valuation-analysis-card footer > div { display:flex; gap:5px; flex-wrap:wrap; }
.bsmi-crm-valuation-row-actions button,
.bsmi-crm-valuation-record-actions button,
.bsmi-crm-valuation-analysis-card footer button,
.bsmi-crm-valuation-approval-list footer button,
.bsmi-crm-valuation-calendar button { min-height:32px; padding:6px 9px; color:#25282d; background:#fff; border:1px solid #ccd0d4; border-radius:3px; font-size:8px; font-weight:850; }
.bsmi-crm-valuation-empty { margin:0; padding:28px 20px; color:#7a8088; font-size:9px; text-align:center; }
.bsmi-crm-valuation-analysis-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-valuation-analysis-card { min-width:0; padding:18px; border-right:1px solid var(--bsmi-line); border-bottom:1px solid var(--bsmi-line); }
.bsmi-crm-valuation-analysis-card:nth-child(2n) { border-right:0; }
.bsmi-crm-valuation-analysis-card > header { display:flex; min-width:0; align-items:flex-start; justify-content:space-between; gap:12px; }
.bsmi-crm-valuation-analysis-card > header > div { min-width:0; }
.bsmi-crm-valuation-analysis-card h3 { margin:4px 0; color:#1b1e21; font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
.bsmi-crm-valuation-analysis-card header p { margin:0; color:#777d84; font-size:8px; line-height:1.4; }
.bsmi-crm-valuation-range { display:grid; margin:14px 0 10px; background:#f3f4f4; border:1px solid #e0e2e3; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-valuation-range > div { min-width:0; padding:10px 11px; border-right:1px solid #e0e2e3; }
.bsmi-crm-valuation-range > div:last-child { border-right:0; }
.bsmi-crm-valuation-range > div.is-recommended { color:#fff; background:#1d2421; }
.bsmi-crm-valuation-range span,
.bsmi-crm-valuation-range strong { display:block; }
.bsmi-crm-valuation-range span { color:#777d84; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-range .is-recommended span { color:#c3b58f; }
.bsmi-crm-valuation-range strong { margin-top:4px; color:#1d2023; font-family:Georgia,"Times New Roman",serif; font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.bsmi-crm-valuation-range .is-recommended strong { color:#fff; }
.bsmi-crm-valuation-benchmark { display:grid; padding:9px 11px; background:#f8f5ee; border-left:3px solid #b89a5b; grid-template-columns:auto 1fr; gap:3px 10px; }
.bsmi-crm-valuation-benchmark span,
.bsmi-crm-valuation-benchmark small { color:#77736a; font-size:7px; }
.bsmi-crm-valuation-benchmark strong { justify-self:end; color:#24231f; font-size:9px; }
.bsmi-crm-valuation-benchmark small { grid-column:1 / -1; }
.bsmi-crm-valuation-bars { margin-top:12px; }
.bsmi-crm-valuation-bars > div { display:grid; padding:8px 0; border-bottom:1px solid #eceeef; grid-template-columns:minmax(135px,.9fr) minmax(120px,1.2fr); gap:5px 12px; }
.bsmi-crm-valuation-bars label { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:8px; font-size:7px; }
.bsmi-crm-valuation-bars label strong { color:#35393e; overflow-wrap:anywhere; }
.bsmi-crm-valuation-bars label span { flex:none; color:#6f757d; }
.bsmi-crm-valuation-bars i { height:6px; align-self:center; overflow:hidden; background:#e6e8e9; }
.bsmi-crm-valuation-bars i b { display:block; height:100%; background:#b89a5b; }
.bsmi-crm-valuation-bars small { grid-column:1 / -1; color:#92979d; font-size:7px; }
.bsmi-crm-valuation-analysis-card > footer { display:flex; min-height:36px; margin-top:12px; padding-top:12px; align-items:center; justify-content:space-between; gap:10px; border-top:1px solid #e5e7e8; }
.bsmi-crm-valuation-analysis-card > footer > span { color:#777d84; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-approval-note { display:flex; min-height:48px; padding:11px 18px; align-items:center; justify-content:space-between; gap:14px; color:#674f18; background:#fbf6e9; border-bottom:1px solid #e3d3a8; border-left:4px solid #b89a5b; }
.bsmi-crm-valuation-approval-note strong { font-size:9px; }
.bsmi-crm-valuation-approval-note span { color:#7c6a40; font-size:8px; }
.bsmi-crm-valuation-approval-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-valuation-approval-list > article { min-width:0; padding:18px; border-right:1px solid var(--bsmi-line); border-bottom:1px solid var(--bsmi-line); }
.bsmi-crm-valuation-approval-list > article:nth-child(2n) { border-right:0; }
.bsmi-crm-valuation-approval-list article > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.bsmi-crm-valuation-approval-list h3 { margin:4px 0; color:#202327; font-size:13px; }
.bsmi-crm-valuation-approval-list header p,
.bsmi-crm-valuation-approval-list article > p { margin:0; color:#71777e; font-size:8px; line-height:1.5; }
.bsmi-crm-valuation-approval-list dl { display:grid; margin:14px 0; border:1px solid #e2e4e5; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-valuation-approval-list dl > div { min-width:0; padding:9px; border-right:1px solid #e8eaeb; border-bottom:1px solid #e8eaeb; }
.bsmi-crm-valuation-approval-list dt { color:#898f96; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-approval-list dd { margin:3px 0 0; color:#30343a; font-size:8px; font-weight:750; overflow-wrap:anywhere; }
.bsmi-crm-valuation-approval-list footer { display:flex; margin-top:12px; padding-top:12px; justify-content:flex-end; gap:6px; border-top:1px solid #e7e9ea; }
.bsmi-crm-valuation-calendar { display:grid; }
.bsmi-crm-valuation-calendar article { display:grid; min-width:0; padding:13px 16px; align-items:center; border-bottom:1px solid #e8eaeb; grid-template-columns:62px minmax(0,1fr) minmax(150px,.35fr); gap:14px; }
.bsmi-crm-valuation-calendar article.is-overdue { box-shadow:inset 3px 0 #a92d33; }
.bsmi-crm-valuation-calendar time { display:flex; min-height:50px; align-items:center; justify-content:center; color:#fff; background:#202522; flex-direction:column; }
.bsmi-crm-valuation-calendar time strong { font-family:Georgia,"Times New Roman",serif; font-size:19px; font-weight:500; }
.bsmi-crm-valuation-calendar time span { color:#c7b98f; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-calendar article > div { min-width:0; }
.bsmi-crm-valuation-calendar h3 { margin:3px 0; color:#24272b; font-size:11px; overflow-wrap:anywhere; }
.bsmi-crm-valuation-calendar p,
.bsmi-crm-valuation-calendar article > div > small { margin:0; color:#777d84; font-size:8px; line-height:1.45; }
.bsmi-crm-valuation-calendar article > div:last-child { display:flex; align-items:flex-end; gap:6px; flex-direction:column; }
.bsmi-crm-valuation-calendar article > div:last-child span { color:#70767d; font-size:8px; }
.bsmi-crm-valuation-control-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr); }
.bsmi-crm-valuation-control-band,
.bsmi-crm-valuation-events { min-width:0; padding:18px; }
.bsmi-crm-valuation-control-band { border-right:1px solid var(--bsmi-line); }
.bsmi-crm-valuation-control-band > header,
.bsmi-crm-valuation-events > header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bsmi-crm-valuation-control-band h3,
.bsmi-crm-valuation-events h3 { margin:0; color:#1d2023; font-size:12px; }
.bsmi-crm-valuation-control-band header span,
.bsmi-crm-valuation-events header > span { color:#81878e; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-control-band > div { margin-top:12px; border-top:1px solid #e8eaeb; }
.bsmi-crm-valuation-control-band article { display:grid; min-width:0; padding:10px 0; align-items:start; border-bottom:1px solid #e8eaeb; grid-template-columns:9px minmax(0,1fr) auto; gap:9px; }
.bsmi-crm-valuation-control-band article > i { width:8px; height:8px; margin-top:3px; background:#aa3d42; border-radius:50%; }
.bsmi-crm-valuation-control-band article.is-active > i { background:#2c6a53; }
.bsmi-crm-valuation-control-band article strong { color:#2a2e32; font-size:8px; }
.bsmi-crm-valuation-control-band article p { margin:3px 0 0; color:#7a8087; font-size:7px; line-height:1.45; }
.bsmi-crm-valuation-control-band article > span { color:#737980; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-events > header h3 { margin-top:3px; }
.bsmi-crm-valuation-events > div { margin-top:12px; border-top:1px solid #e8eaeb; }
.bsmi-crm-valuation-events article { display:grid; min-width:0; padding:10px 0; border-bottom:1px solid #e8eaeb; grid-template-columns:115px minmax(0,1fr) 70px; gap:10px; }
.bsmi-crm-valuation-events time,
.bsmi-crm-valuation-events article > small { color:#8a9097; font-size:7px; }
.bsmi-crm-valuation-events article > small { text-align:right; overflow-wrap:anywhere; }
.bsmi-crm-valuation-events article strong,
.bsmi-crm-valuation-events article span { display:block; }
.bsmi-crm-valuation-events article strong { color:#303439; font-size:8px; }
.bsmi-crm-valuation-events article span,
.bsmi-crm-valuation-events article p { margin:3px 0 0; color:#7a8087; font-size:7px; line-height:1.4; }
.bsmi-crm-valuation-form .is-wide { grid-column:1 / -1; }
.bsmi-crm-valuation-subject { display:flex; min-height:62px; padding:11px 13px; justify-content:center; background:#f2f4f3; border-left:3px solid #315b4d; flex-direction:column; }
.bsmi-crm-valuation-subject strong,
.bsmi-crm-valuation-subject span,
.bsmi-crm-valuation-subject small { display:block; }
.bsmi-crm-valuation-subject strong { color:#26352f; font-size:10px; }
.bsmi-crm-valuation-subject span,
.bsmi-crm-valuation-subject small { margin-top:4px; color:#66706b; font-size:8px; line-height:1.4; }
.bsmi-crm-valuation-form-note { margin:0; padding:11px 13px; color:#5e553f; background:#f6f2e8; border-left:3px solid #b89a5b; }
.bsmi-crm-valuation-form-note strong { color:#2e2a21; font-size:9px; }
.bsmi-crm-valuation-form-note p { margin:4px 0 0; font-size:8px; line-height:1.5; }
.bsmi-crm-valuation-comparable-editor { min-width:0; border:1px solid #dfe2e3; }
.bsmi-crm-valuation-comparable-editor > header { display:flex; min-height:72px; padding:13px 14px; align-items:center; justify-content:space-between; gap:14px; background:#f7f8f8; border-bottom:1px solid #dfe2e3; }
.bsmi-crm-valuation-comparable-editor header h3 { margin:3px 0; color:#202327; font-size:12px; }
.bsmi-crm-valuation-comparable-editor header p { margin:0; color:#777d84; font-size:8px; line-height:1.4; }
.bsmi-crm-valuation-comparable-editor > header > div:last-child { display:flex; flex:none; gap:6px; }
.bsmi-crm-valuation-comparable-editor > header button { min-height:34px; padding:6px 9px; color:#25282d; background:#fff; border:1px solid #ccd0d4; border-radius:3px; font-size:8px; font-weight:850; }
.bsmi-crm-valuation-comparable-editor > div { display:grid; }
.bsmi-crm-valuation-comparable-editor article { min-width:0; padding:13px 14px; border-bottom:1px solid #dfe2e3; }
.bsmi-crm-valuation-comparable-editor article:last-child { border-bottom:0; }
.bsmi-crm-valuation-comparable-editor article > header { display:flex; min-width:0; margin-bottom:10px; align-items:center; justify-content:space-between; gap:10px; }
.bsmi-crm-valuation-comparable-editor article > header > div { min-width:0; }
.bsmi-crm-valuation-comparable-editor article > header small,
.bsmi-crm-valuation-comparable-editor article > header strong { display:block; }
.bsmi-crm-valuation-comparable-editor article > header small { color:#96793e; font-size:7px; font-weight:850; }
.bsmi-crm-valuation-comparable-editor article > header strong { margin-top:3px; color:#2c3034; font-size:9px; overflow-wrap:anywhere; }
.bsmi-crm-valuation-comparable-editor article > header button { min-height:30px; color:#8b3337; background:#fff; border:1px solid #dfc3c5; border-radius:3px; font-size:8px; }
.bsmi-crm-valuation-comparable-editor article > div { display:grid; min-width:0; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.bsmi-crm-valuation-comparable-editor article label { min-width:0; }
.bsmi-crm-valuation-comparable-editor article input,
.bsmi-crm-valuation-comparable-editor article select { min-width:0; width:100%; }
.bsmi-crm-valuation-comparable-editor article > footer { display:flex; min-height:32px; margin-top:9px; padding-top:9px; align-items:center; justify-content:flex-end; gap:8px; border-top:1px solid #eceeef; }
.bsmi-crm-valuation-comparable-editor article > footer span { color:#777d84; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-comparable-editor article > footer strong { color:#202327; font-family:Georgia,"Times New Roman",serif; font-size:15px; font-weight:500; }
.bsmi-crm-valuation-record { min-width:0; padding:18px; }
.bsmi-crm-valuation-record > header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.bsmi-crm-valuation-record h2 { margin:4px 0; color:#1f2226; font-family:Georgia,"Times New Roman",serif; font-size:23px; font-weight:500; }
.bsmi-crm-valuation-record header p { margin:0; color:#71777e; font-size:8px; line-height:1.45; }
.bsmi-crm-valuation-record-range { display:grid; margin:16px 0 12px; color:#fff; background:#202421; border-top:3px solid #b89a5b; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-valuation-record-range > div { min-width:0; padding:13px; border-right:1px solid #3a3f3c; }
.bsmi-crm-valuation-record-range > div:last-child { border-right:0; }
.bsmi-crm-valuation-record-range span,
.bsmi-crm-valuation-record-range strong { display:block; }
.bsmi-crm-valuation-record-range span { color:#afb7b2; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-record-range strong { margin-top:4px; color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:19px; font-weight:500; overflow-wrap:anywhere; }
.bsmi-crm-valuation-record-range .is-recommended { background:#2f4039; }
.bsmi-crm-valuation-record-range .is-recommended span { color:#ddc78f; }
.bsmi-crm-valuation-record-facts { display:grid; margin:0; border:1px solid #e1e3e4; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-valuation-record-facts > div { min-width:0; padding:9px 10px; border-right:1px solid #e8eaeb; border-bottom:1px solid #e8eaeb; }
.bsmi-crm-valuation-record-facts dt { color:#858b92; font-size:7px; font-weight:850; text-transform:uppercase; }
.bsmi-crm-valuation-record-facts dd { margin:3px 0 0; color:#30343a; font-size:8px; line-height:1.4; overflow-wrap:anywhere; }
.bsmi-crm-valuation-record-note,
.bsmi-crm-valuation-record-comparables,
.bsmi-crm-valuation-record-events { margin-top:13px; border:1px solid #e1e3e4; }
.bsmi-crm-valuation-record-note { padding:13px; }
.bsmi-crm-valuation-record-note h3,
.bsmi-crm-valuation-record-comparables h3,
.bsmi-crm-valuation-record-events h3 { margin:0; color:#25282c; font-size:11px; }
.bsmi-crm-valuation-record-note > p { color:#636a71; font-size:8px; line-height:1.55; }
.bsmi-crm-valuation-record-note dl { display:grid; margin:10px 0 0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.bsmi-crm-valuation-record-note dt { color:#888e95; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-record-note dd { margin:3px 0 0; color:#4d5359; font-size:8px; line-height:1.45; }
.bsmi-crm-valuation-record-comparables > header,
.bsmi-crm-valuation-record-events > header { display:flex; padding:11px 13px; align-items:center; justify-content:space-between; gap:10px; border-bottom:1px solid #e1e3e4; }
.bsmi-crm-valuation-record-comparables header span,
.bsmi-crm-valuation-record-events header span { color:#7a8087; font-size:7px; }
.bsmi-crm-valuation-record-comparables > div { overflow-x:auto; }
.bsmi-crm-valuation-record-comparables table { width:100%; min-width:680px; border-collapse:collapse; }
.bsmi-crm-valuation-record-comparables th { padding:8px; color:#7e848b; background:#f8f9f9; font-size:7px; text-align:left; text-transform:uppercase; }
.bsmi-crm-valuation-record-comparables td { padding:9px 8px; border-top:1px solid #eceeef; color:#3f444a; font-size:8px; vertical-align:top; }
.bsmi-crm-valuation-record-comparables td strong,
.bsmi-crm-valuation-record-comparables td small { display:block; }
.bsmi-crm-valuation-record-comparables td small { margin-top:3px; color:#878d94; font-size:7px; }
.bsmi-crm-valuation-record-next { display:grid; margin-top:13px; background:#f3f5f4; border-left:3px solid #315b4d; grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-valuation-record-next > div { padding:11px 13px; border-right:1px solid #dfe3e1; }
.bsmi-crm-valuation-record-next small,
.bsmi-crm-valuation-record-next strong,
.bsmi-crm-valuation-record-next span { display:block; }
.bsmi-crm-valuation-record-next small { color:#76807b; font-size:7px; }
.bsmi-crm-valuation-record-next strong { margin-top:4px; color:#2f3935; font-size:8px; line-height:1.4; }
.bsmi-crm-valuation-record-next span { margin-top:3px; color:#808883; font-size:7px; }
.bsmi-crm-valuation-record-actions { margin-top:13px; }
.bsmi-crm-valuation-record-events article { display:grid; padding:9px 12px; border-bottom:1px solid #eceeef; grid-template-columns:115px minmax(0,1fr); gap:10px; }
.bsmi-crm-valuation-record-events article:last-child { border-bottom:0; }
.bsmi-crm-valuation-record-events time { color:#858b92; font-size:7px; }
.bsmi-crm-valuation-record-events article strong { color:#303439; font-size:8px; }
.bsmi-crm-valuation-record-events article p,
.bsmi-crm-valuation-record-events > p,
.bsmi-crm-valuation-record-comparables > p { margin:3px 0 0; color:#777d84; font-size:7px; line-height:1.45; }
.bsmi-crm-valuation-record-events > p,
.bsmi-crm-valuation-record-comparables > p { padding:14px; }
.bsmi-crm-valuation-submit-check { border:1px solid #dfe2e3; }
.bsmi-crm-valuation-submit-check > header { display:flex; padding:11px 13px; align-items:center; justify-content:space-between; background:#f7f8f8; border-bottom:1px solid #dfe2e3; }
.bsmi-crm-valuation-submit-check h3 { margin:0; font-size:11px; }
.bsmi-crm-valuation-submit-check header span { color:#767c83; font-size:8px; }
.bsmi-crm-valuation-submit-check > div { display:grid; padding:10px 12px; align-items:center; border-bottom:1px solid #e9ebec; grid-template-columns:9px minmax(0,1fr) auto; gap:9px; }
.bsmi-crm-valuation-submit-check > div:last-child { border-bottom:0; }
.bsmi-crm-valuation-submit-check i { width:8px; height:8px; background:#a93a40; border-radius:50%; }
.bsmi-crm-valuation-submit-check .is-ready i { background:#2c6a53; }
.bsmi-crm-valuation-submit-check strong { font-size:8px; }
.bsmi-crm-valuation-submit-check div span { color:#777d84; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-decision-summary,
.bsmi-crm-valuation-handoff { display:grid; color:#fff; background:#202421; border-top:3px solid #b89a5b; grid-template-columns:repeat(3,minmax(0,1fr)); }
.bsmi-crm-valuation-handoff { grid-template-columns:repeat(2,minmax(0,1fr)); }
.bsmi-crm-valuation-decision-summary > div,
.bsmi-crm-valuation-handoff > div { min-width:0; padding:12px; border-right:1px solid #3b403d; }
.bsmi-crm-valuation-decision-summary span,
.bsmi-crm-valuation-handoff span,
.bsmi-crm-valuation-decision-summary strong,
.bsmi-crm-valuation-handoff strong { display:block; }
.bsmi-crm-valuation-decision-summary span,
.bsmi-crm-valuation-handoff span { color:#b7beb9; font-size:7px; text-transform:uppercase; }
.bsmi-crm-valuation-decision-summary strong,
.bsmi-crm-valuation-handoff strong { margin-top:4px; color:#fff; font-family:Georgia,"Times New Roman",serif; font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.bsmi-crm-valuation-revision { padding:16px; color:#fff; background:#202421; border-top:3px solid #b89a5b; }
.bsmi-crm-valuation-revision strong,
.bsmi-crm-valuation-revision span { display:block; }
.bsmi-crm-valuation-revision strong { font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:500; }
.bsmi-crm-valuation-revision span { margin-top:5px; color:#bdc4bf; font-size:8px; line-height:1.5; }

@media (max-width:1180px) {
  .bsmi-crm-valuation-command { grid-template-columns:minmax(0,1fr) minmax(360px,.7fr); }
  .bsmi-crm-valuation-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .bsmi-crm-valuation-kpis article:nth-child(3) { border-right:0; }
  .bsmi-crm-valuation-kpis article:nth-child(-n+3) { border-bottom:1px solid var(--bsmi-line); }
  .bsmi-crm-valuation-kpis article:last-child { border-right:1px solid var(--bsmi-line); }
  .bsmi-crm-valuation-filters { grid-template-columns:minmax(230px,1.2fr) repeat(3,minmax(120px,.7fr)); }
  .bsmi-crm-valuation-filter-count { min-height:44px; }
  .bsmi-crm-valuation-control-grid { grid-template-columns:1fr; }
  .bsmi-crm-valuation-control-band { border-right:0; border-bottom:1px solid var(--bsmi-line); }
  .bsmi-crm-valuation-comparable-editor article > div { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:760px) {
  .bsmi-crm-content:has(.bsmi-crm-valuation-tabs) > .bsmi-crm-page-head > div:last-child { display:grid; width:100%; grid-template-columns:1fr; }
  .bsmi-crm-content:has(.bsmi-crm-valuation-tabs) > .bsmi-crm-page-head button { width:100%; min-height:44px; }
  .bsmi-crm-valuation-command { grid-template-columns:1fr; }
  .bsmi-crm-valuation-command > div { padding:19px 15px; border-right:0; border-bottom:1px solid #373a3e; }
  .bsmi-crm-valuation-command h2 { font-size:24px; }
  .bsmi-crm-valuation-command dl > div { min-height:70px; padding:12px 10px; }
  .bsmi-crm-valuation-command dd { font-size:19px; }
  .bsmi-crm-valuation-boundary { align-items:flex-start; flex-direction:column; gap:5px; }
  .bsmi-crm-valuation-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bsmi-crm-valuation-kpis article { min-height:78px; border-bottom:1px solid var(--bsmi-line); }
  .bsmi-crm-valuation-kpis article:nth-child(2n) { border-right:0; }
  .bsmi-crm-valuation-kpis article:nth-child(3) { border-right:1px solid var(--bsmi-line); }
  .bsmi-crm-valuation-kpis article:last-child { grid-column:1 / -1; border-right:0; border-bottom:0; }
  .bsmi-crm-valuation-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bsmi-crm-valuation-tabs button { min-height:48px; border-right:1px solid var(--bsmi-line); border-bottom:1px solid var(--bsmi-line); }
  .bsmi-crm-valuation-tabs button:nth-child(2n) { border-right:0; }
  .bsmi-crm-valuation-tabs button:last-child { grid-column:1 / -1; border-right:0; border-bottom:0; }
  .bsmi-crm-valuation-view-head { align-items:flex-start; flex-direction:column; gap:8px; }
  .bsmi-crm-valuation-view-head > span { white-space:normal; }
  .bsmi-crm-valuation-filters { grid-template-columns:1fr; }
  .bsmi-crm-valuation-filters input,
  .bsmi-crm-valuation-filters select,
  .bsmi-crm-valuation-filter-count { min-height:44px; }
  .bsmi-crm-valuation-table,
  .bsmi-crm-valuation-table tbody { display:block; width:100%; min-width:0; }
  .bsmi-crm-valuation-table thead { display:none; }
  .bsmi-crm-valuation-table tr { display:grid; width:100%; min-width:0; padding:8px 10px; border-bottom:1px solid var(--bsmi-line); grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bsmi-crm-valuation-table td { display:block; min-width:0; padding:7px 5px; border:0; overflow-wrap:anywhere; }
  .bsmi-crm-valuation-table td::before { display:block; margin-bottom:4px; color:var(--bsmi-muted); font-size:7px; font-weight:850; text-transform:uppercase; }
  .bsmi-crm-valuation-table td:nth-child(1)::before { content:"Reference / property"; }
  .bsmi-crm-valuation-table td:nth-child(2)::before { content:"Owner / purpose"; }
  .bsmi-crm-valuation-table td:nth-child(3)::before { content:"Evidence"; }
  .bsmi-crm-valuation-table td:nth-child(4)::before { content:"Range / recommendation"; }
  .bsmi-crm-valuation-table td:nth-child(5)::before { content:"Health / validity"; }
  .bsmi-crm-valuation-table td:nth-child(6)::before { content:"Consultant"; }
  .bsmi-crm-valuation-table td:nth-child(7)::before { content:"Actions"; }
  .bsmi-crm-valuation-table td:first-child,
  .bsmi-crm-valuation-table td:nth-child(2),
  .bsmi-crm-valuation-table td:nth-child(5),
  .bsmi-crm-valuation-table td:nth-child(6),
  .bsmi-crm-valuation-table td:last-child { grid-column:1 / -1; }
  .bsmi-crm-valuation-row-actions { display:grid; grid-template-columns:1fr; }
  .bsmi-crm-valuation-row-actions button,
  .bsmi-crm-valuation-record-actions button,
  .bsmi-crm-valuation-analysis-card footer button,
  .bsmi-crm-valuation-approval-list footer button,
  .bsmi-crm-valuation-calendar button { width:100%; min-height:44px; }
  .bsmi-crm-valuation-analysis-grid,
  .bsmi-crm-valuation-approval-list { grid-template-columns:1fr; }
  .bsmi-crm-valuation-analysis-card,
  .bsmi-crm-valuation-approval-list > article { border-right:0; }
  .bsmi-crm-valuation-analysis-card > footer { align-items:stretch; flex-direction:column; }
  .bsmi-crm-valuation-analysis-card footer > div { display:grid; grid-template-columns:1fr; }
  .bsmi-crm-valuation-approval-note { align-items:flex-start; flex-direction:column; }
  .bsmi-crm-valuation-approval-list dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .bsmi-crm-valuation-approval-list footer { display:grid; grid-template-columns:1fr; }
  .bsmi-crm-valuation-calendar article { grid-template-columns:55px minmax(0,1fr); }
  .bsmi-crm-valuation-calendar article > div:last-child { grid-column:1 / -1; align-items:stretch; }
  .bsmi-crm-valuation-events article { grid-template-columns:1fr 60px; }
  .bsmi-crm-valuation-events time { grid-column:1 / -1; }
  .bsmi-crm-drawer:has(.bsmi-crm-valuation-record),
  .bsmi-crm-drawer:has(.bsmi-crm-valuation-form) { width:100vw; max-width:100vw; }
  .bsmi-crm-valuation-comparable-editor > header { align-items:flex-start; flex-direction:column; }
  .bsmi-crm-valuation-comparable-editor > header > div:last-child { display:grid; width:100%; grid-template-columns:1fr; }
  .bsmi-crm-valuation-comparable-editor > header button { min-height:44px; }
  .bsmi-crm-valuation-comparable-editor article > div { grid-template-columns:1fr; }
  .bsmi-crm-valuation-comparable-editor article input,
  .bsmi-crm-valuation-comparable-editor article select,
  .bsmi-crm-valuation-comparable-editor article > header button,
  .bsmi-crm-valuation-form input,
  .bsmi-crm-valuation-form select,
  .bsmi-crm-valuation-form textarea,
  .bsmi-crm-valuation-form button { min-height:44px; }
  .bsmi-crm-valuation-record { padding:14px 12px; }
  .bsmi-crm-valuation-record > header { flex-direction:column; }
  .bsmi-crm-valuation-record-range,
  .bsmi-crm-valuation-record-facts,
  .bsmi-crm-valuation-record-note dl,
  .bsmi-crm-valuation-record-next,
  .bsmi-crm-valuation-decision-summary,
  .bsmi-crm-valuation-handoff { grid-template-columns:1fr; }
  .bsmi-crm-valuation-record-range > div,
  .bsmi-crm-valuation-record-next > div,
  .bsmi-crm-valuation-decision-summary > div,
  .bsmi-crm-valuation-handoff > div { border-right:0; border-bottom:1px solid #3b403d; }
  .bsmi-crm-valuation-record-actions { display:grid; grid-template-columns:1fr; }
  .bsmi-crm-valuation-record-events article { grid-template-columns:1fr; }
}

@media (max-width:430px) {
  .bsmi-crm-valuation-command dl { grid-template-columns:1fr; }
  .bsmi-crm-valuation-command dl > div { border-right:0; border-bottom:1px solid #373a3e; }
  .bsmi-crm-valuation-command dl > div:last-child { border-bottom:0; }
  .bsmi-crm-valuation-table tr { grid-template-columns:1fr; }
  .bsmi-crm-valuation-table td { grid-column:auto !important; }
  .bsmi-crm-valuation-range { grid-template-columns:1fr; }
  .bsmi-crm-valuation-range > div { border-right:0; border-bottom:1px solid #e0e2e3; }
  .bsmi-crm-valuation-bars > div { grid-template-columns:1fr; }
  .bsmi-crm-valuation-approval-list dl { grid-template-columns:1fr; }
}

/* Production Readiness */
.bsmi-crm-readiness-hero {
  display: grid;
  min-width: 0;
  min-height: 136px;
  margin-bottom: 12px;
  color: #fff;
  background: #111316;
  border-left: 4px solid var(--bsmi-gold);
  grid-template-columns: minmax(0, 1fr) 250px;
}

.bsmi-crm-readiness-hero.is-healthy { border-left-color: #3f916c; }
.bsmi-crm-readiness-hero.is-attention { border-left-color: #c29d49; }
.bsmi-crm-readiness-hero.is-blocked { border-left-color: #b64a45; }
.bsmi-crm-readiness-hero > div { align-self: center; min-width: 0; max-width: 820px; padding: 24px 26px; }
.bsmi-crm-readiness-hero > div > small,
.bsmi-crm-readiness-program header small,
.bsmi-crm-readiness-ledger > header small,
.bsmi-crm-readiness-blockers header small,
.bsmi-crm-readiness-access-summary > div > small,
.bsmi-crm-readiness-launch-state small { color: #c2a767; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-readiness-hero h2 { margin: 6px 0 8px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; line-height: 1.12; }
.bsmi-crm-readiness-hero p { max-width: 760px; margin: 0; color: #c6cbd0; font-size: 10px; line-height: 1.6; }
.bsmi-crm-readiness-hero > aside {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 19px;
  background: #191c20;
  border-left: 1px solid #34383d;
  flex-direction: column;
  text-align: center;
}
.bsmi-crm-readiness-hero > aside > span:first-child { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 31px; line-height: 1; }
.bsmi-crm-readiness-hero > aside > small { margin: 6px 0 11px; color: #9da4aa; font-size: 8px; }

.bsmi-crm-readiness-status {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  padding: 4px 7px;
  color: #454d54;
  background: #eef0f1;
  border: 1px solid #d9dddf;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: normal;
}
.bsmi-crm-readiness-status i { width: 6px; height: 6px; margin-right: 6px; background: #7b838a; border-radius: 50%; }
.bsmi-crm-readiness-status.is-success { color: #176044; background: #e9f4ee; border-color: #b9dac8; }
.bsmi-crm-readiness-status.is-success i { background: #247a55; }
.bsmi-crm-readiness-status.is-attention { color: #76500e; background: #fbf2dc; border-color: #e8d19c; }
.bsmi-crm-readiness-status.is-attention i { background: #ae7a19; }
.bsmi-crm-readiness-status.is-danger { color: #8e2d2d; background: #faeaea; border-color: #e7b8b8; }
.bsmi-crm-readiness-status.is-danger i { background: #b33a3a; }
.bsmi-crm-readiness-hero .bsmi-crm-readiness-status { color: #fff; background: #24282d; border-color: #4a5056; }
.bsmi-crm-readiness-hero .bsmi-crm-readiness-status.is-success { background: #173c2e; border-color: #397257; }
.bsmi-crm-readiness-hero .bsmi-crm-readiness-status.is-attention { background: #493a19; border-color: #8d712f; }
.bsmi-crm-readiness-hero .bsmi-crm-readiness-status.is-danger { background: #4a201e; border-color: #8a403b; }

.bsmi-crm-readiness-kpis { margin-top: 0; }
.bsmi-crm-readiness-program {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  border-top: 3px solid #202421;
}
.bsmi-crm-readiness-program > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-readiness-program header > div { min-width: 0; }
.bsmi-crm-readiness-program h3 { margin: 4px 0 0; color: var(--bsmi-ink); font-size: 15px; }
.bsmi-crm-readiness-program header p { max-width: 820px; margin: 5px 0 0; color: var(--bsmi-muted); font-size: 9px; line-height: 1.5; }
.bsmi-crm-readiness-program > dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.bsmi-crm-readiness-program > dl > div { min-width: 0; min-height: 68px; padding: 12px; border-right: 1px solid var(--bsmi-line); }
.bsmi-crm-readiness-program > dl > div:last-child { border-right: 0; }
.bsmi-crm-readiness-program dt { color: var(--bsmi-muted); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.bsmi-crm-readiness-program dd { margin: 6px 0 0; color: var(--bsmi-ink); font-size: 9px; font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.bsmi-crm-readiness-program > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 13px;
  background: #f5f6f6;
  border-top: 1px solid var(--bsmi-line);
  color: #586068;
  font-size: 8px;
}
.bsmi-crm-readiness-program footer strong { color: #1d5c46; }
.bsmi-crm-readiness-program footer small { color: var(--bsmi-muted); text-align: right; }

.bsmi-crm-readiness-tabs {
  display: grid;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.bsmi-crm-readiness-tabs button {
  min-width: 0;
  min-height: 43px;
  padding: 8px 12px;
  color: #596169;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--bsmi-line);
  border-radius: 0;
  font-size: 9px;
  font-weight: 800;
}
.bsmi-crm-readiness-tabs button:last-child { border-right: 0; }
.bsmi-crm-readiness-tabs button.is-active { color: #fff; background: #202421; box-shadow: inset 0 -3px 0 var(--bsmi-gold); }
.bsmi-crm-readiness-head { border-left-color: var(--bsmi-gold); }

.bsmi-crm-readiness-ledger {
  min-width: 0;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-readiness-ledger > header,
.bsmi-crm-readiness-blockers > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 61px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--bsmi-line);
}
.bsmi-crm-readiness-ledger > header h3,
.bsmi-crm-readiness-blockers h3 { margin: 4px 0 0; color: var(--bsmi-ink); font-size: 13px; }
.bsmi-crm-readiness-ledger > header > span,
.bsmi-crm-readiness-blockers header > span { color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-readiness-ledger .bsmi-crm-system-table { min-width: 1180px; }
.bsmi-crm-readiness-ledger .bsmi-crm-system-table td:nth-child(2) { max-width: 330px; }
.bsmi-crm-readiness-row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bsmi-crm-readiness-row-actions button { min-height: 30px; padding: 5px 8px; font-size: 8px; }

.bsmi-crm-readiness-inline-metrics {
  display: grid;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bsmi-crm-readiness-inline-metrics span { min-height: 54px; padding: 13px 15px; color: var(--bsmi-muted); border-right: 1px solid var(--bsmi-line); font-size: 8px; }
.bsmi-crm-readiness-inline-metrics span:last-child { border-right: 0; }
.bsmi-crm-readiness-inline-metrics strong { display: block; margin-bottom: 3px; color: var(--bsmi-ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.bsmi-crm-readiness-inline-metrics .is-danger strong { color: var(--bsmi-red); }

.bsmi-crm-readiness-access-summary {
  display: grid;
  align-items: stretch;
  min-height: 92px;
  margin-bottom: 12px;
  color: #fff;
  background: #202421;
  border-left: 4px solid #b64a45;
  grid-template-columns: minmax(220px, .7fr) minmax(420px, 1.3fr) auto;
}
.bsmi-crm-readiness-access-summary > div { display: flex; justify-content: center; min-width: 0; padding: 16px 18px; flex-direction: column; }
.bsmi-crm-readiness-access-summary > div > strong { margin: 4px 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 500; }
.bsmi-crm-readiness-access-summary > div > span { color: #aeb4b8; font-size: 8px; }
.bsmi-crm-readiness-access-summary dl { display: grid; margin: 0; border-left: 1px solid #3b403d; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bsmi-crm-readiness-access-summary dl div { display: flex; justify-content: center; min-width: 0; padding: 12px; border-right: 1px solid #3b403d; flex-direction: column; }
.bsmi-crm-readiness-access-summary dt { color: #aeb4b8; font-size: 7px; text-transform: uppercase; }
.bsmi-crm-readiness-access-summary dd { margin: 5px 0 0; color: #fff; font-size: 17px; font-weight: 800; }
.bsmi-crm-readiness-access-summary > button { align-self: center; min-height: 36px; margin: 0 16px; color: #fff; background: transparent; border-color: #6f777d; }

.bsmi-crm-readiness-launch-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  margin-bottom: 12px;
  padding: 17px 19px;
  color: #fff;
  background: #202421;
  border-left: 4px solid #b64a45;
}
.bsmi-crm-readiness-launch-state.is-healthy { border-left-color: #3f916c; }
.bsmi-crm-readiness-launch-state.is-attention { border-left-color: #c29d49; }
.bsmi-crm-readiness-launch-state h3 { margin: 4px 0 5px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 500; }
.bsmi-crm-readiness-launch-state p { margin: 0; color: #b7bdc1; font-size: 8px; }
.bsmi-crm-readiness-launch-state code { color: #d8c590; overflow-wrap: anywhere; }

.bsmi-crm-readiness-blockers {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bsmi-line);
}
.bsmi-crm-readiness-blockers > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsmi-crm-readiness-blockers article {
  display: grid;
  min-width: 0;
  min-height: 78px;
  padding: 12px 14px;
  border-right: 1px solid var(--bsmi-line);
  border-bottom: 1px solid var(--bsmi-line);
  align-content: center;
}
.bsmi-crm-readiness-blockers article:nth-child(3n) { border-right: 0; }
.bsmi-crm-readiness-blockers article > span { color: var(--bsmi-red); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-readiness-blockers article strong { margin-top: 4px; color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-readiness-blockers article small { margin-top: 3px; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-readiness-clear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 12px;
  padding: 12px 15px;
  color: #235e47;
  background: #edf6f1;
  border-left: 4px solid #3f916c;
}
.bsmi-crm-readiness-clear strong { font-size: 10px; }
.bsmi-crm-readiness-clear span { color: #4c6b5d; font-size: 8px; text-align: right; }

.bsmi-crm-drawer:has(.bsmi-crm-readiness-form),
.bsmi-crm-drawer:has(.bsmi-crm-readiness-scan-summary) { width: min(820px, calc(100vw - 72px)); }
.bsmi-crm-readiness-form .bsmi-crm-form-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-readiness-evidence-summary,
.bsmi-crm-readiness-scan-summary { padding: 14px; background: #f5f6f6; border-left: 3px solid var(--bsmi-gold); }
.bsmi-crm-readiness-evidence-summary dl,
.bsmi-crm-readiness-scan-summary dl { display: grid; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bsmi-crm-readiness-evidence-summary dl > div,
.bsmi-crm-readiness-scan-summary dl > div { min-width: 0; padding: 8px 10px; border-right: 1px solid #dfe2e1; border-bottom: 1px solid #dfe2e1; }
.bsmi-crm-readiness-evidence-summary dt,
.bsmi-crm-readiness-scan-summary dt { color: var(--bsmi-muted); font-size: 7px; text-transform: uppercase; }
.bsmi-crm-readiness-evidence-summary dd,
.bsmi-crm-readiness-scan-summary dd { margin: 4px 0 0; color: var(--bsmi-ink); font-size: 9px; font-weight: 800; overflow-wrap: anywhere; }
.bsmi-crm-readiness-evidence-summary > p,
.bsmi-crm-readiness-scan-summary > p { margin: 10px 0 0; color: #525b62; font-size: 9px; line-height: 1.55; }
.bsmi-crm-readiness-evidence-summary > aside { display: grid; gap: 3px; margin-top: 10px; padding: 9px 10px; background: #fff; border-left: 3px solid #a96f13; }
.bsmi-crm-readiness-evidence-summary aside strong { font-size: 8px; }
.bsmi-crm-readiness-evidence-summary aside span { color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }
.bsmi-crm-readiness-timeline { display: grid; }
.bsmi-crm-readiness-timeline article { display: grid; align-items: start; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--bsmi-line); grid-template-columns: 8px minmax(0, 1fr) auto; }
.bsmi-crm-readiness-timeline article:last-child { border-bottom: 0; }
.bsmi-crm-readiness-timeline article > i { width: 7px; height: 7px; margin-top: 4px; background: var(--bsmi-gold); border-radius: 50%; }
.bsmi-crm-readiness-timeline strong { color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-readiness-timeline p { margin: 3px 0; color: var(--bsmi-muted); font-size: 8px; }
.bsmi-crm-readiness-timeline small { color: #81878d; font-size: 7px; }

.bsmi-crm-readiness-findings { display: grid; gap: 7px; }
.bsmi-crm-readiness-findings article { display: grid; gap: 10px; padding: 11px; background: #f7f8f8; border-left: 3px solid #a96f13; grid-template-columns: 58px minmax(0, 1fr); }
.bsmi-crm-readiness-findings article.is-critical { border-left-color: var(--bsmi-red); }
.bsmi-crm-readiness-findings article > span { color: #8a641b; font-size: 7px; font-weight: 850; text-transform: uppercase; }
.bsmi-crm-readiness-findings article.is-critical > span { color: var(--bsmi-red); }
.bsmi-crm-readiness-findings strong { color: var(--bsmi-ink); font-size: 9px; }
.bsmi-crm-readiness-findings p { margin: 3px 0; color: var(--bsmi-muted); font-size: 8px; line-height: 1.45; }
.bsmi-crm-readiness-findings small { color: #80868c; font-size: 7px; }

@media (max-width: 1180px) {
  .bsmi-crm-system-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bsmi-crm-system-tabs button { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-system-tabs button:nth-child(4n) { border-right: 0; }
  .bsmi-crm-system-tabs button:nth-last-child(-n+4) { border-bottom: 0; }
  .bsmi-crm-readiness-program > dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bsmi-crm-readiness-program > dl > div:nth-child(3n) { border-right: 0; }
  .bsmi-crm-readiness-program > dl > div:nth-child(-n+3) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-readiness-access-summary { grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); }
  .bsmi-crm-readiness-access-summary > button { grid-column: 1 / -1; min-height: 40px; margin: 0; border: 0; border-top: 1px solid #3b403d; border-radius: 0; }
}

@media (max-width: 760px) {
  .bsmi-crm-system-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-system-tabs button:nth-child(4n) { border-right: 1px solid var(--bsmi-line); }
  .bsmi-crm-system-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-system-tabs button:nth-last-child(-n+4) { border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-system-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-readiness-hero { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-hero > div { padding: 19px 16px; }
  .bsmi-crm-readiness-hero h2 { font-size: 23px; }
  .bsmi-crm-readiness-hero > aside { align-items: flex-start; padding: 14px 16px; border-top: 1px solid #34383d; border-left: 0; text-align: left; }
  .bsmi-crm-readiness-program > header,
  .bsmi-crm-readiness-program > footer,
  .bsmi-crm-readiness-launch-state,
  .bsmi-crm-readiness-ledger > header,
  .bsmi-crm-readiness-blockers > header { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-readiness-program > header button,
  .bsmi-crm-readiness-head > button,
  .bsmi-crm-readiness-access-summary > button { width: 100%; min-height: 44px; }
  .bsmi-crm-readiness-program > dl { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-program > dl > div { min-height: 58px; border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-readiness-program > dl > div:last-child { border-bottom: 0; }
  .bsmi-crm-readiness-program footer small { text-align: left; }
  .bsmi-crm-readiness-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-readiness-tabs button { min-height: 48px; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-readiness-tabs button:nth-child(2n) { border-right: 0; }
  .bsmi-crm-readiness-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .bsmi-crm-readiness-inline-metrics { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-inline-metrics span { border-right: 0; border-bottom: 1px solid var(--bsmi-line); }
  .bsmi-crm-readiness-inline-metrics span:last-child { border-bottom: 0; }
  .bsmi-crm-readiness-access-summary { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-access-summary dl { border-top: 1px solid #3b403d; border-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bsmi-crm-readiness-access-summary dl div:nth-child(2n) { border-right: 0; }
  .bsmi-crm-readiness-access-summary dl div:nth-child(-n+2) { border-bottom: 1px solid #3b403d; }
  .bsmi-crm-readiness-blockers > div { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-blockers article { border-right: 0; }
  .bsmi-crm-readiness-clear { align-items: flex-start; flex-direction: column; }
  .bsmi-crm-readiness-clear span { text-align: left; }
  .bsmi-crm-drawer:has(.bsmi-crm-readiness-form),
  .bsmi-crm-drawer:has(.bsmi-crm-readiness-scan-summary) { width: 100vw; max-width: 100vw; }
  .bsmi-crm-readiness-form .bsmi-crm-form-section,
  .bsmi-crm-readiness-evidence-summary dl,
  .bsmi-crm-readiness-scan-summary dl { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-form input,
  .bsmi-crm-readiness-form select,
  .bsmi-crm-readiness-form textarea,
  .bsmi-crm-readiness-form button,
  .bsmi-crm-readiness-row-actions button { min-height: 44px; }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table,
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table tbody { display: block; width: 100%; min-width: 0; }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table thead { display: none; }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table tr {
    display: grid;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border-bottom: 1px solid var(--bsmi-line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table tr:last-child { border-bottom: 0; }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table td {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 9px 6px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table td::before {
    display: block;
    margin-bottom: 5px;
    color: var(--bsmi-muted);
    content: attr(data-label);
    font-size: 7px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table td:first-child,
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table td:nth-child(2),
  .bsmi-crm-readiness-ledger .bsmi-crm-system-table td:last-child { grid-column: 1 / -1; }
  .bsmi-crm-readiness-row-actions { display: grid; grid-template-columns: 1fr; }
  .bsmi-crm-readiness-timeline article { grid-template-columns: 8px minmax(0, 1fr); }
  .bsmi-crm-readiness-timeline .bsmi-crm-readiness-status { grid-column: 2; justify-self: start; }
}

@media (max-width: 430px) {
  .bsmi-crm-readiness-tabs { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-tabs button { border-right: 0; border-bottom: 1px solid var(--bsmi-line) !important; }
  .bsmi-crm-readiness-tabs button:last-child { border-bottom: 0 !important; }
  .bsmi-crm-readiness-kpis { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-access-summary dl { grid-template-columns: 1fr; }
  .bsmi-crm-readiness-access-summary dl div { border-right: 0; border-bottom: 1px solid #3b403d; }
  .bsmi-crm-readiness-findings article { grid-template-columns: 1fr; }
}
