:root {
  --ink: #1b2430;
  --muted: #667487;
  --line: #d7dfe7;
  --paper: #eef3f8;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #fbfdff;
  --slate: #223548;
  --steel: #34506b;
  --amber: #4d89c7;
  --orange: #1f68ad;
  --sand: #dfe8f3;
  --green: #4f7a64;
  --shadow: 0 20px 48px rgba(24, 36, 50, 0.12);
  --radius: 22px;
  --section-shadow: 0 18px 36px rgba(19, 34, 55, 0.08);
  --primary-blue: #2563eb;
  --primary-blue-dark: #0f5fd8;
  --section-orange: #f97316;
  --section-teal: #14b8a6;
  --section-purple: #8b5cf6;
  --card-radius: 20px;
  --card-border: rgba(15, 23, 42, 0.07);
  --card-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
  --muted-text: #52627a;
  --shell-sidebar-width: clamp(210px, 14vw, 235px);
  --shell-sidebar-width-compact: clamp(190px, 18vw, 220px);
  --hero-min-height: 150px;
  --hero-home-min-height: 148px;
  --hero-padding-block: 20px;
  --hero-padding-inline: 26px;
  --hero-radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { overflow-y: scroll; }
[hidden] { display: none !important; }
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 104, 173, 0.16), transparent 18%),
    radial-gradient(circle at right 15%, rgba(77, 137, 199, 0.14), transparent 20%),
    linear-gradient(180deg, #e9f1f8 0%, #f8fbff 52%, #eef4fa 100%);
}
a { color: inherit; }
button {
  font: inherit;
  cursor: pointer;
}

.shell-page {
  width: min(1720px, calc(100% - 24px));
  margin: 12px auto;
  background: transparent;
  display: grid;
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shell-header {
  position: sticky;
  top: 12px;
  width: var(--shell-sidebar-width);
  min-height: calc(100dvh - 24px);
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  padding: 24px 13px 22px;
  border-radius: 28px;
  border: 1px solid rgba(5, 191, 196, 0.28);
  box-shadow:
    0 24px 58px rgba(0, 34, 51, 0.28),
    0 0 0 1px rgba(5, 191, 196, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: white;
  background:
    radial-gradient(circle at 52% 0%, rgba(5, 191, 196, 0.22), transparent 36%),
    radial-gradient(circle at 0% 76%, rgba(5, 191, 196, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #002233 0%, #003d46 58%, #008b8f 100%);
  display: flex;
  flex-direction: column;
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.roofing-workflow-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.roofing-workflow-hero,
.roofing-panel {
  background: #fff;
  border: 1px solid #d8e5f2;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(15, 39, 66, 0.08);
}

.roofing-workflow-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
}

.roofing-eyebrow {
  margin: 0 0 8px;
  color: #146ef5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.roofing-workflow-hero h1 {
  margin: 0;
  color: #0f2742;
  font-size: 34px;
  line-height: 1.05;
}

.roofing-workflow-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #5f6f85;
  font-size: 16px;
}

.roofing-hero-actions,
.roofing-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roofing-workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.roofing-panel {
  padding: 20px;
}

.roofing-panel-span {
  grid-column: 1 / -1;
}

.roofing-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.roofing-panel-head h2 {
  margin: 0;
  color: #0f2742;
  font-size: 20px;
}

.roofing-panel-head p {
  margin: 5px 0 0;
  color: #5f6f85;
  font-size: 14px;
}

.roofing-status-pill {
  align-self: flex-start;
  border-radius: 999px;
  background: #eff6ff;
  color: #146ef5;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.roofing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.roofing-form-grid.single {
  grid-template-columns: 1fr;
}

.roofing-form-grid label,
.roofing-upload-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #53657d;
  font-size: 13px;
  font-weight: 800;
}

.roofing-form-grid input,
.roofing-form-grid select,
.roofing-form-grid textarea,
.roofing-upload-control input {
  width: 100%;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #fff;
  color: #0f2742;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 12px 14px;
}

.roofing-form-grid textarea {
  resize: vertical;
  min-height: 108px;
}

.roofing-form-grid input[readonly] {
  background: #f8fbff;
}

.roofing-quote-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.roofing-quote-detail-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e5f2;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 12%, rgba(20, 110, 245, 0.08), transparent 42%),
    linear-gradient(145deg, #ffffff, #f7fbff);
  color: #0f2742;
  box-shadow: 0 14px 30px rgba(15, 39, 66, 0.07);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.roofing-quote-detail-card:hover,
.roofing-quote-detail-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(20, 110, 245, 0.34);
  box-shadow: 0 18px 38px rgba(20, 110, 245, 0.14);
}

.roofing-quote-detail-card span {
  color: #0f2742;
  font-size: 20px;
  font-weight: 900;
}

.roofing-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
}

.roofing-detail-modal[hidden] {
  display: none;
}

.roofing-detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 23, 45, 0.52);
  backdrop-filter: blur(6px);
}

.roofing-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(760px, calc(100dvh - 44px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid #d8e5f2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(8, 23, 45, 0.26);
  padding: 20px;
}

.roofing-detail-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.roofing-detail-dialog-head h2 {
  margin: 0;
  color: #0f2742;
  font-size: 24px;
}

.roofing-detail-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e5f2;
  border-radius: 999px;
  background: #f8fbff;
  color: #0f2742;
  font-size: 26px;
  line-height: 1;
}

.roofing-detail-dialog textarea {
  width: 100%;
  min-height: 380px;
  max-height: calc(100dvh - 230px);
  resize: vertical;
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: #fff;
  color: #0f2742;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.55;
  padding: 14px 16px;
}

.roofing-contact-combobox {
  position: relative;
  display: block;
  min-width: 0;
  z-index: 6;
}

.roofing-contact-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 7px;
  max-height: 305px;
  overflow-y: auto;
  border: 1.5px solid #d8e4ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 7px;
}

.roofing-contact-menu[hidden] {
  display: none;
}

.roofing-contact-menu button {
  position: relative;
  display: grid;
  grid-template-columns: 34px 220px minmax(96px, auto) minmax(190px, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px 10px 18px;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  background: #ffffff;
  color: #08213f;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
  overflow: hidden;
  cursor: pointer;
  appearance: none;
}

.roofing-contact-menu button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--people-product-color, #64748b);
  border-radius: 12px 0 0 12px;
}

.roofing-contact-menu button:hover,
.roofing-contact-menu button:focus-visible,
.roofing-contact-menu button.is-selected {
  border-color: color-mix(in srgb, var(--people-product-color, #64748b) 42%, #e7eef5);
  background: color-mix(in srgb, var(--people-product-color, #64748b) 7%, #ffffff);
  outline: none;
}

body[data-page-key="roofing_workflow"] .people-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--people-product-color, #64748b);
  background: color-mix(in srgb, var(--people-product-color, #64748b) 12%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--people-product-color, #64748b) 22%, transparent);
}

body[data-page-key="roofing_workflow"] .people-avatar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="roofing_workflow"] .people-row-name {
  min-width: 0;
  color: var(--people-product-color, #64748b);
  font-size: 15px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="roofing_workflow"] .people-row-icons {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

body[data-page-key="roofing_workflow"] .product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: var(--product-color, #64748b);
  background: color-mix(in srgb, var(--product-color, #64748b) 13%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--product-color, #64748b) 22%, transparent);
  flex: 0 0 auto;
}

body[data-page-key="roofing_workflow"] .people-row-icons .product-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-key="roofing_workflow"] .product-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="roofing_workflow"] .people-row-icons .product-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

body[data-page-key="roofing_workflow"] .people-row-date {
  color: #53657a;
  font-size: 13px;
  font-weight: 850;
  text-align: right;
  white-space: nowrap;
}

.roofing-contact-empty {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
  padding: 16px;
}

.roofing-field-wide {
  grid-column: 1 / -1;
}

.roofing-start-panel {
  position: relative;
  overflow: hidden;
}

.roofing-start-grid {
  grid-template-columns: minmax(240px, 1.1fr) minmax(260px, 1fr) minmax(130px, 0.48fr) minmax(180px, 0.58fr);
  align-items: end;
}

.roofing-start-grid .roofing-metric-row {
  margin-top: 0;
}

.roofing-start-grid .roofing-metric-row > div {
  min-height: 50px;
  padding: 11px 13px;
}

.roofing-start-grid .roofing-metric-row strong {
  margin-top: 3px;
  font-size: 20px;
}

.roofing-start-actions {
  margin-top: 14px;
}

.roofing-start-panel .roofing-distance-tiers {
  opacity: 0.78;
}

.roofing-distance-tiers[hidden] {
  display: none;
}

.roofing-contact-status[hidden] {
  display: none;
}

.workflow-contact-panel {
  margin-bottom: 16px;
}

.roofing-inline-actions {
  margin-top: 16px;
}

.roofing-primary-button {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #146ef5;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 13px 16px;
  box-shadow: 0 14px 28px rgba(20, 110, 245, 0.22);
}

.roofing-primary-button:hover,
.roofing-primary-button:focus-visible {
  background: #0f5ed8;
}

.roofing-inline-actions .is-disabled {
  opacity: 0.56;
}

.roofing-metric-row,
.roofing-preview-grid,
.roofing-contractor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roofing-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.roofing-quote-details-grid {
  margin-top: 0;
  align-items: stretch;
}

.roofing-base-price-card { grid-column: 1; grid-row: 1; }
.roofing-installer-price-card { grid-column: 2; grid-row: 1; }
.roofing-buffer-card { grid-column: 3; grid-row: 1; }
.roofing-commission-card { grid-column: 4; grid-row: 1; }
.roofing-homeowner-final-card { grid-column: 1 / span 2; grid-row: 2; }
.roofing-files-card { grid-column: 3 / span 2; grid-row: 2; }

.roofing-metric-row > div,
.roofing-preview-card,
.roofing-contractor-grid > div {
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
}

.roofing-preview-card,
.roofing-quote-detail-card {
  min-height: 132px;
}

.roofing-preview-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.roofing-commission-card {
  margin: 0;
}

.roofing-commission-card input {
  width: 100%;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #fff;
  color: #0f2742;
  font: inherit;
  font-size: 18px;
  font-weight: 850;
  padding: 12px 14px;
}

.roofing-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.roofing-action-grid > label,
.roofing-action-grid > div {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 9px;
}

.roofing-action-grid span,
.roofing-file-slot span {
  color: #425676;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roofing-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.roofing-action-spacer {
  min-height: 44px;
  margin-bottom: 8px;
}

.roofing-action-grid select,
.roofing-file-slot input {
  width: 100%;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #fff;
  color: #0f2742;
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
}

.roofing-files-card {
  justify-content: flex-start;
  gap: 10px;
}

.roofing-file-slot {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.roofing-metric-row {
  margin-top: 14px;
}

.roofing-distance-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.roofing-distance-tier {
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.roofing-distance-tier.active {
  border-color: #146ef5;
  background: #eff6ff;
  box-shadow: 0 12px 26px rgba(20, 110, 245, 0.14);
  transform: translateY(-1px);
}

.roofing-distance-tier span,
.roofing-distance-tier small {
  display: block;
  color: #5f6f85;
  font-size: 12px;
  font-weight: 900;
}

.roofing-distance-tier strong {
  display: block;
  margin-top: 4px;
  color: #0f2742;
  font-size: 19px;
}

.roofing-metric-row span,
.roofing-preview-card span,
.roofing-contractor-grid span {
  display: block;
  color: #5f6f85;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roofing-metric-row strong,
.roofing-preview-card strong,
.roofing-contractor-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f2742;
  font-size: 24px;
}

.roofing-preview-card p,
.roofing-contractor-grid p,
.roofing-small-status,
.roofing-muted {
  margin: 7px 0 0;
  color: #5f6f85;
  font-size: 13px;
  font-weight: 650;
}

.roofing-proposal-progress {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.roofing-proposal-progress[hidden] {
  display: none;
}

.roofing-proposal-progress li {
  border: 1px solid #d8e5f2;
  border-radius: 10px;
  background: #f7fbff;
  color: #5f6f85;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 11px;
}

.roofing-proposal-progress li.active {
  border-color: #1b6ef3;
  background: #eef6ff;
  color: #0f54c9;
}

.roofing-proposal-progress li.done {
  border-color: #c6ead4;
  background: #f0fbf4;
  color: #14703d;
}

.roofing-estimate-builder {
  display: grid;
  grid-template-columns: 0.9fr 1.08fr 0.9fr;
  gap: 18px;
}

.roofing-estimate-card {
  border: 1px solid #d8e5f2;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 255, 0.88)),
    #fff;
  box-shadow: 0 18px 38px rgba(15, 39, 66, 0.08);
  padding: 24px;
}

.roofing-estimate-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 50%;
  background: #edf5ff;
  color: #146ef5;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(20, 110, 245, 0.05);
}

.roofing-estimate-icon svg {
  width: 38px;
  height: 38px;
}

.roofing-estimate-card h2 {
  margin: 0;
  color: #0f2742;
  font-size: 24px;
  line-height: 1.15;
}

.roofing-estimate-card p {
  min-height: 44px;
  margin: 10px 0 22px;
  color: #53657d;
  font-size: 16px;
  line-height: 1.45;
}

.roofing-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.roofing-choice-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roofing-choice {
  position: relative;
  display: grid;
  min-height: 70px;
  place-items: center;
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f2742;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.roofing-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.roofing-choice:has(input:checked),
.roofing-choice.active {
  border-color: #146ef5;
  background: #f4f9ff;
  color: #146ef5;
  box-shadow: 0 14px 28px rgba(20, 110, 245, 0.14);
}

.roofing-sqft-input {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bfd2e7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 16px;
}

.roofing-sqft-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f2742;
  font: inherit;
  font-size: 30px;
  font-weight: 850;
  outline: 0;
}

.roofing-sqft-input span {
  flex: 0 0 auto;
  color: #6b7890;
  font-size: 18px;
  font-weight: 850;
}

.roofing-estimate-card small {
  display: block;
  margin-top: 12px;
  color: #6b7890;
  font-size: 13px;
  font-weight: 750;
}

.roofing-file-list,
.roofing-event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.roofing-file-row,
.roofing-event-row {
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.roofing-file-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.roofing-file-row strong,
.roofing-event-row strong {
  color: #0f2742;
}

.roofing-file-row span,
.roofing-event-row span {
  color: #5f6f85;
  font-size: 12px;
  font-weight: 800;
}

.roofing-event-row p {
  margin: 5px 0 0;
  color: #5f6f85;
  font-size: 13px;
}

.roofing-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: 380px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: #fff;
  color: #0f2742;
  box-shadow: 0 18px 42px rgba(15, 39, 66, 0.18);
  font-weight: 800;
  padding: 14px 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.roofing-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.roofing-toast[data-tone="success"] {
  border-color: #b9e7cb;
  color: #0f6b37;
}

.roofing-toast[data-tone="error"] {
  border-color: #f0c0c0;
  color: #a41f1f;
}

body[data-page-key="roofing_workflow"] {
  --roofing-accent: #14b8a6;
  --roofing-accent-dark: #0f766e;
  --roofing-accent-soft: #ecfdfd;
  --roofing-accent-shadow: rgba(20, 184, 166, 0.2);
  background:
    radial-gradient(circle at 86% 0%, rgba(20, 184, 166, 0.1), transparent 26%),
    linear-gradient(180deg, #f3f8fd 0%, #eef5fb 100%);
}

body[data-page-key="roofing_workflow"] .shell-page {
  width: min(1720px, calc(100% - 24px));
  gap: 26px;
}

body[data-page-key="roofing_workflow"] .shell-main {
  min-width: 0;
}

.roofing-workflow-page {
  gap: 22px;
  padding: 12px 0 28px;
}

.roofing-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.roofing-dashboard-header h1 {
  margin: 0;
  color: #071d3a;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.roofing-dashboard-header p {
  max-width: 780px;
  margin: 8px 0 0;
  color: #526682;
  font-size: 16px;
  line-height: 1.45;
}

.roofing-dashboard-search {
  flex: 0 0 min(260px, 34vw);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7e5f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(7, 29, 58, 0.04);
  padding: 0 16px;
}

.roofing-dashboard-search svg,
.roofing-input-icon svg,
.roofing-section-title svg,
.roofing-choice svg,
.roofing-action-icon svg,
.roofing-activity-empty svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roofing-dashboard-search svg {
  width: 20px;
  height: 20px;
  color: #425676;
}

.roofing-dashboard-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071d3a;
  font: inherit;
  font-weight: 750;
}

.roofing-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.roofing-dashboard-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

body[data-page-key="roofing_workflow"] .roofing-panel,
body[data-page-key="roofing_workflow"] .roofing-estimate-card {
  border: 1px solid #d7e5f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 29, 58, 0.055);
}

body[data-page-key="roofing_workflow"] .roofing-panel {
  padding: 22px;
}

body[data-page-key="roofing_workflow"] .roofing-panel-head {
  align-items: flex-start;
  margin-bottom: 16px;
}

body[data-page-key="roofing_workflow"] .roofing-panel-head > div,
.roofing-section-title {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

body[data-page-key="roofing_workflow"] .roofing-panel-head h2,
.roofing-section-title h2 {
  margin: 0;
  color: #071d3a;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-page-key="roofing_workflow"] .roofing-panel-head p {
  grid-column: 2 / -1;
  max-width: 740px;
  margin: -3px 0 0;
  color: #526682;
  font-size: 14px;
  line-height: 1.42;
}

.roofing-step-badge {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--roofing-accent, #0f6fed);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px var(--roofing-accent-shadow, rgba(15, 111, 237, 0.2));
}

.roofing-section-title .roofing-step-badge {
  grid-row: 1;
}

.roofing-section-title svg {
  width: 22px;
  height: 22px;
  color: var(--roofing-accent, #0f6fed);
}

body[data-page-key="roofing_workflow"] .roofing-status-pill {
  border: 1px solid rgba(20, 184, 166, 0.2);
  background: var(--roofing-accent-soft, #eef6ff);
  color: var(--roofing-accent-dark, #0f6fed);
  padding: 8px 13px;
}

body[data-page-key="roofing_workflow"] .roofing-form-grid label,
body[data-page-key="roofing_workflow"] .roofing-upload-control {
  color: #263d5a;
  font-size: 12px;
}

body[data-page-key="roofing_workflow"] .roofing-form-grid input,
body[data-page-key="roofing_workflow"] .roofing-form-grid select,
body[data-page-key="roofing_workflow"] .roofing-form-grid textarea,
body[data-page-key="roofing_workflow"] .roofing-upload-control input,
body[data-page-key="roofing_workflow"] .roofing-commission-card input {
  min-height: 44px;
  border-color: #ccdced;
  border-radius: 10px;
  color: #071d3a;
  font-size: 15px;
  font-weight: 750;
  padding: 10px 13px;
}

.roofing-contact-combobox,
.roofing-input-shell {
  position: relative;
}

.roofing-contact-combobox input,
.roofing-input-shell input,
.roofing-input-shell select {
  padding-left: 44px !important;
}

body[data-page-key="roofing_workflow"] .roofing-contact-combobox input {
  height: 52px;
  min-height: 52px;
  border: 1.5px solid #d8e4ec;
  border-radius: 14px;
  background: #ffffff;
  color: #08213d;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 0 16px 0 48px !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body[data-page-key="roofing_workflow"] .roofing-contact-combobox input::placeholder {
  color: #64748b;
}

body[data-page-key="roofing_workflow"] .roofing-contact-combobox input:focus {
  border-color: #0e9e8e;
  outline: none;
}

.roofing-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #425676;
  transform: translateY(-50%);
  pointer-events: none;
}

body[data-page-key="roofing_workflow"] .roofing-contact-combobox .roofing-input-icon {
  left: 16px;
  width: 20px;
  height: 20px;
  color: #64748b;
}

.roofing-input-icon svg {
  width: 18px;
  height: 18px;
}

body[data-page-key="roofing_workflow"] .roofing-contact-combobox .roofing-input-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.roofing-start-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 1fr) minmax(150px, 0.42fr);
  gap: 16px;
  align-items: end;
}

.roofing-start-grid [data-roofing-selected-field] {
  grid-column: 1 / -1;
}

.roofing-start-grid .roofing-miles-field,
.roofing-start-grid .roofing-template-field {
  grid-column: 1 / span 2;
}

.roofing-start-grid .roofing-metric-row {
  margin: 0;
}

.roofing-start-actions .roofing-inline-actions {
  margin-top: 0;
}

body[data-page-key="roofing_workflow"] .resource-link.secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #ccdced;
  border-radius: 10px;
  background: #ffffff;
  color: #071d3a;
  font-weight: 850;
  padding: 10px 16px;
  text-decoration: none;
}

body[data-page-key="roofing_workflow"] .resource-link.secondary:hover,
body[data-page-key="roofing_workflow"] .resource-link.secondary:focus-visible {
  border-color: rgba(20, 184, 166, 0.42);
  color: var(--roofing-accent-dark);
}

body[data-page-key="roofing_workflow"] .roofing-primary-button {
  min-height: 44px;
  border-radius: 10px;
  background: var(--roofing-accent);
  box-shadow: 0 12px 24px var(--roofing-accent-shadow);
}

body[data-page-key="roofing_workflow"] .roofing-primary-button:hover,
body[data-page-key="roofing_workflow"] .roofing-primary-button:focus-visible {
  background: var(--roofing-accent-dark);
}

body[data-page-key="roofing_workflow"] .roofing-distance-tier.active {
  border-color: var(--roofing-accent);
  background: var(--roofing-accent-soft);
  box-shadow: 0 12px 26px var(--roofing-accent-shadow);
}

body[data-page-key="roofing_workflow"] .roofing-proposal-progress li.active {
  border-color: var(--roofing-accent);
  background: var(--roofing-accent-soft, #eaf3ff);
  color: var(--roofing-accent-dark, #0f6fed);
}

body[data-page-key="roofing_workflow"] .roofing-estimate-builder {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page-key="roofing_workflow"] .roofing-estimate-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

body[data-page-key="roofing_workflow"] .roofing-addon-card {
  min-height: 190px;
}

body[data-page-key="roofing_workflow"] .roofing-estimate-icon {
  display: none;
}

body[data-page-key="roofing_workflow"] .roofing-estimate-card p {
  min-height: 44px;
  margin: 10px 0 18px 40px;
  color: #526682;
  font-size: 14px;
  line-height: 1.45;
}

body[data-page-key="roofing_workflow"] .roofing-choice-row {
  margin-top: auto;
}

body[data-page-key="roofing_workflow"] .roofing-choice {
  min-height: 88px;
  gap: 8px;
  border-color: #ccdced;
  border-radius: 10px;
  background: #ffffff;
  color: #071d3a;
  font-size: 14px;
}

body[data-page-key="roofing_workflow"] .roofing-choice-row.compact {
  gap: 8px;
}

body[data-page-key="roofing_workflow"] .roofing-choice-row.compact .roofing-choice {
  min-height: 64px;
}

body[data-page-key="roofing_workflow"] .roofing-choice-stack {
  display: grid;
  gap: 4px;
}

body[data-page-key="roofing_workflow"] .roofing-choice-stack .roofing-choice {
  min-height: 88px;
}

body[data-page-key="roofing_workflow"] .roofing-choice svg {
  width: 32px;
  height: 32px;
  color: #425676;
}

body[data-page-key="roofing_workflow"] .roofing-choice-stack small {
  min-height: 14px;
  color: #53657c;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

body[data-page-key="roofing_workflow"] .roofing-choice:has(input:checked),
body[data-page-key="roofing_workflow"] .roofing-choice.active {
  border-color: rgba(20, 184, 166, 0.48);
  background: var(--roofing-accent-soft, #eef6ff);
  color: var(--roofing-accent-dark, #0f6fed);
  box-shadow: none;
}

body[data-page-key="roofing_workflow"] .roofing-choice:has(input:checked) svg,
body[data-page-key="roofing_workflow"] .roofing-choice.active svg {
  color: var(--roofing-accent);
}

body[data-page-key="roofing_workflow"] .roofing-sqft-input {
  min-height: 56px;
  margin-top: auto;
  border-color: #ccdced;
  border-radius: 10px;
  background: #ffffff;
}

body[data-page-key="roofing_workflow"] .roofing-sqft-input input {
  font-size: 20px;
}

body[data-page-key="roofing_workflow"] .roofing-sqft-input span {
  color: #071d3a;
  font-size: 13px;
}

body[data-page-key="roofing_workflow"] .roofing-linear-feet-input span {
  min-width: 68px;
  text-align: right;
}
body[data-page-key="roofing_workflow"] .roofing-sheathing-card {
  min-height: 280px;
}

body[data-page-key="roofing_workflow"] .roofing-sheathing-options {
  margin-top: 0;
}

body[data-page-key="roofing_workflow"] .roofing-sheathing-choice {
  min-height: 76px;
  align-content: center;
  gap: 3px;
  padding: 8px 6px;
}

body[data-page-key="roofing_workflow"] .roofing-sheathing-choice > span {
  font-size: 11px;
  line-height: 1.22;
}

body[data-page-key="roofing_workflow"] .roofing-sheathing-squares-input {
  min-height: 48px;
  margin-top: 10px;
  padding-block: 8px;
}

body[data-page-key="roofing_workflow"] .roofing-sheathing-squares-input input {
  font-size: 18px;
}

body[data-page-key="roofing_workflow"] .roofing-estimate-card small {
  color: #526682;
  font-size: 13px;
}

body[data-page-key="roofing_workflow"] .roofing-preview-grid {
  gap: 10px;
}

body[data-page-key="roofing_workflow"] .roofing-metric-row > div,
body[data-page-key="roofing_workflow"] .roofing-preview-card,
body[data-page-key="roofing_workflow"] .roofing-contractor-grid > div,
body[data-page-key="roofing_workflow"] .roofing-quote-detail-card {
  border-color: #d7e5f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

body[data-page-key="roofing_workflow"] .roofing-preview-card,
body[data-page-key="roofing_workflow"] .roofing-quote-detail-card {
  min-height: 92px;
  padding: 14px;
}

body[data-page-key="roofing_workflow"] .roofing-preview-card span,
body[data-page-key="roofing_workflow"] .roofing-metric-row span,
body[data-page-key="roofing_workflow"] .roofing-action-grid span,
body[data-page-key="roofing_workflow"] .roofing-file-slot span {
  color: #425676;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page-key="roofing_workflow"] .roofing-preview-card strong,
body[data-page-key="roofing_workflow"] .roofing-metric-row strong {
  color: #071d3a;
  font-size: 22px;
}

body[data-page-key="roofing_workflow"] .roofing-preview-card p,
body[data-page-key="roofing_workflow"] .roofing-small-status,
body[data-page-key="roofing_workflow"] .roofing-muted {
  color: #526682;
  font-size: 12px;
}

body[data-page-key="roofing_workflow"] .roofing-quote-detail-card {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: start;
  gap: 4px 12px;
  text-align: left;
}

body[data-page-key="roofing_workflow"] .roofing-quote-detail-card:hover,
body[data-page-key="roofing_workflow"] .roofing-quote-detail-card:focus-visible {
  border-color: rgba(20, 184, 166, 0.42);
  background: #f7fdfc;
  box-shadow: none;
  transform: none;
}

.roofing-action-icon {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--roofing-accent-soft, #eaf3ff);
  color: var(--roofing-accent-dark, #0f6fed);
}

.roofing-action-icon svg {
  width: 22px;
  height: 22px;
}

body[data-page-key="roofing_workflow"] .roofing-quote-detail-card strong {
  color: #071d3a;
  font-size: 15px;
}

body[data-page-key="roofing_workflow"] .roofing-quote-detail-card small {
  color: #526682;
  font-size: 12px;
  font-weight: 750;
}

body[data-page-key="roofing_workflow"] .roofing-files-card {
  gap: 6px;
  justify-content: flex-start;
}

body[data-page-key="roofing_workflow"] .roofing-file-slot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

body[data-page-key="roofing_workflow"] .roofing-file-slot input {
  min-height: 30px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

body[data-page-key="roofing_workflow"] .roofing-file-list {
  gap: 6px;
  margin-top: 2px;
}

body[data-page-key="roofing_workflow"] .roofing-file-row,
body[data-page-key="roofing_workflow"] .roofing-event-row {
  border-color: #d7e5f5;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
}

body[data-page-key="roofing_workflow"] .roofing-action-grid {
  gap: 18px;
}

body[data-page-key="roofing_workflow"] .roofing-action-grid > div {
  gap: 8px;
}

body[data-page-key="roofing_workflow"] .roofing-action-grid > div:first-child .roofing-primary-button {
  margin-top: auto;
}

body[data-page-key="roofing_workflow"] .roofing-action-grid > div + div {
  border-left: 1px solid #d7e5f5;
  padding-left: 18px;
}

.roofing-activity-panel {
  position: sticky;
  top: 14px;
  min-height: calc(100dvh - 52px);
  display: flex;
  flex-direction: column;
}

.roofing-activity-panel .roofing-event-list {
  flex: 1;
  display: flex;
  margin-top: 0;
}

.roofing-activity-empty {
  flex: 1;
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: #071d3a;
  text-align: center;
}

.roofing-activity-empty span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--roofing-accent-soft, #eaf3ff);
  color: var(--roofing-accent-dark, #0f6fed);
}

.roofing-activity-empty svg {
  width: 48px;
  height: 48px;
}

.roofing-activity-empty strong {
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .roofing-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .roofing-activity-panel {
    position: static;
    min-height: 360px;
  }

  .roofing-activity-empty {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  body[data-page-key="roofing_workflow"] .shell-page {
    width: min(100% - 16px, 1720px);
    gap: 14px;
  }

  .roofing-dashboard-header {
    flex-direction: column;
  }

  .roofing-dashboard-search {
    flex: 1 1 auto;
    width: 100%;
  }

  body[data-page-key="roofing_workflow"] .roofing-panel {
    padding: 16px;
  }

  body[data-page-key="roofing_workflow"] .roofing-panel-head {
    gap: 10px;
  }

  body[data-page-key="roofing_workflow"] .roofing-panel-head > div,
  .roofing-section-title {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .roofing-section-title svg {
    display: none;
  }

  body[data-page-key="roofing_workflow"] .roofing-panel-head p {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  body[data-page-key="roofing_workflow"] .roofing-estimate-card p {
    margin-left: 0;
  }

  body[data-page-key="roofing_workflow"] .roofing-action-grid > div + div {
    border-left: 0;
    border-top: 1px solid #d7e5f5;
    padding-left: 0;
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .roofing-workflow-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .roofing-workflow-grid,
  .roofing-form-grid,
  .roofing-quote-detail-grid,
  .roofing-quote-details-grid,
  .roofing-distance-tiers,
  .roofing-preview-grid,
  .roofing-metric-row,
  .roofing-contractor-grid,
  .roofing-action-grid,
  .roofing-estimate-builder {
    grid-template-columns: 1fr;
  }

  .roofing-choice-row,
  .roofing-choice-row.three {
    grid-template-columns: 1fr;
  }

  .roofing-base-price-card,
  .roofing-installer-price-card,
  .roofing-buffer-card,
  .roofing-commission-card,
  .roofing-homeowner-final-card,
  .roofing-files-card {
    grid-column: auto;
    grid-row: auto;
  }

  .roofing-detail-dialog {
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }

  .roofing-detail-dialog textarea {
    min-height: 320px;
  }
}

.header-top,
.status-row,
.shell-nav,
.cta-row,
.trade-actions,
.resource-actions,
.frame-actions,
.hub-actions,
.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.header-top { justify-content: flex-start; align-items: center; }
.status-row { margin-top: 18px; }
.shell-nav { margin-top: 16px; flex-direction: column; gap: 8px; }
.top-actions { display: grid; gap: 10px; width: 100%; }
.cta-row { margin-top: 18px; }

.sidebar-utilities {
  margin-top: auto;
  padding-top: 16px;
}

.sidebar-settings-wrapper {
  position: relative;
  width: 100%;
}

.sidebar-settings-panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 180px;
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 224, 255, 0.11), transparent 42%),
    linear-gradient(160deg, rgba(28, 50, 72, 0.98), rgba(18, 32, 48, 0.98));
  border: 1px solid rgba(218, 238, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(4, 14, 26, 0.36);
  display: grid;
  gap: 6px;
  padding: 8px;
  z-index: 200;
  backdrop-filter: blur(12px);
}

.sidebar-settings-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(218, 238, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-weight: 700;
  font-family: inherit;
  transition: transform 0.16s ease, background 0.16s ease;
}

.sidebar-settings-card:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

.sidebar-settings-card.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(168, 224, 255, 0.1));
  border-color: rgba(218, 238, 255, 0.2);
}

.sidebar-settings-wrapper--down .sidebar-settings-panel {
  bottom: auto;
  top: calc(100% + 8px);
}

.sidebar-settings-panel-label {
  padding: 6px 14px 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

body[data-page-key]:not(.auth-verified) > *,
body[data-page-key="calendar"].calendar-is-loading > *,
body[data-page-key="sales-workspace"].workspace-is-loading > *,
body[data-page-key="sales-workspace"].outbound-is-loading > *,
body[data-page-key].auth-verified.workspace-loading > * {
  visibility: hidden !important;
}

body[data-page-key]:not(.auth-verified)::before,
body[data-page-key="calendar"].calendar-is-loading::before,
body[data-page-key="sales-workspace"].workspace-is-loading::before,
body[data-page-key="sales-workspace"].outbound-is-loading::before,
body[data-page-key].auth-verified.workspace-loading::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    radial-gradient(circle at top left, rgba(47, 138, 125, 0.18), transparent 18%),
    radial-gradient(circle at right 15%, rgba(81, 170, 155, 0.16), transparent 20%),
    linear-gradient(180deg, #e9f6f3 0%, #f8fcfb 52%, #edf7f5 100%);
  opacity: 0;
  animation: auth-loader-fade 140ms ease 320ms forwards;
}

body[data-page-key]:not(.auth-verified)::after,
body[data-page-key="calendar"].calendar-is-loading::after,
body[data-page-key="sales-workspace"].workspace-is-loading::after,
body[data-page-key="sales-workspace"].outbound-is-loading::after,
body[data-page-key].auth-verified.workspace-loading::after {
  content: "Loading Aros...";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  min-width: 220px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(47, 138, 125, 0.18);
  background: rgba(247, 252, 251, 0.94);
  box-shadow: 0 18px 38px rgba(31, 100, 90, 0.15);
  color: #205f57;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  animation: auth-loader-fade 140ms ease 420ms forwards;
}

body[data-page-key="sales-workspace"].workspace-is-loading::before,
body[data-page-key="sales-workspace"].workspace-is-loading::after,
body[data-page-key="sales-workspace"].outbound-is-loading::before,
body[data-page-key="sales-workspace"].outbound-is-loading::after {
  animation-delay: 0ms;
}

@keyframes auth-loader-fade {
  to {
    opacity: 1;
  }
}

.header-search-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(168, 224, 255, 0.22);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.page-search-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: -4px;
}

.page-search-toolbar .header-search-button {
  min-width: 0;
}

.hero-search-anchor {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-search-button {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-search-button:hover,
.hero-search-button:focus-visible {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(8, 20, 34, 0.18);
}

.header-search-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.header-search-button:hover,
.header-search-button:focus-visible {
  border-color: rgba(168, 224, 255, 0.38);
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(10, 24, 42, 0.18);
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 22, 34, 0.58);
  backdrop-filter: blur(8px);
}

.site-search-modal {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: min(78vh, 860px);
  margin: 72px auto 0;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.97));
  box-shadow: 0 28px 80px rgba(10, 22, 38, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.site-search-head h2,
.site-search-head p {
  margin: 0;
}

.site-search-head p {
  margin-top: 6px;
  color: var(--muted);
}

.site-search-close {
  border: 0;
  background: rgba(18, 31, 48, 0.06);
  color: #213650;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.site-search-input-wrap svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: #547396;
}

.site-search-input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #16263a;
  font: inherit;
  font-size: 1.05rem;
}

.site-search-results {
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.site-search-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(245, 249, 253, 0.88);
  border: 1px solid rgba(27, 36, 48, 0.06);
  color: var(--muted);
}

.site-search-empty strong {
  color: #1a2f47;
}

.site-search-result {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.06);
  background: rgba(255,255,255,0.88);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 104, 173, 0.2);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(238,246,255,0.98));
  box-shadow: 0 14px 26px rgba(19, 34, 55, 0.08);
}

.site-search-result-type,
.site-search-result-path {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-search-result strong {
  color: #16263a;
  font-size: 1.02rem;
}

body.search-open {
  overflow: hidden;
}

.site-search-target {
  position: relative;
  z-index: 2 !important;
  border-radius: 18px;
  box-shadow:
    0 0 0 3px rgba(168, 224, 255, 0.98),
    0 18px 42px rgba(8, 24, 44, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(241,247,255,0.98));
  animation: site-search-pulse 1.8s ease-in-out 3;
}

.site-search-target::after {
  content: "Search Result";
  position: absolute;
  top: -12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f68ad, #4d89c7);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(17, 71, 126, 0.24);
}

@keyframes site-search-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(168, 224, 255, 0.98),
      0 18px 42px rgba(8, 24, 44, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(168, 224, 255, 0.54),
      0 20px 46px rgba(8, 24, 44, 0.2);
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  height: 84px;
  width: auto;
  filter: none;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(215, 101, 44, 0.28);
}

.shell-title {
  margin: 22px 0 0;
  font-size: clamp(1.9rem, 2.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.shell-subtitle {
  margin: 0;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  font-size: 0.96rem;
}

.pill,
.trade-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.95rem;
}

.trade-tag {
  width: fit-content;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(31, 104, 173, 0.12);
  color: #215f97;
}

.nav-link,
.cta-link,
.resource-link,
.mini-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

button.nav-link,
button.resource-link,
button.mini-link,
button.cta-link {
  appearance: none;
  border: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.075);
  gap: 10px;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(8px);
}

.nav-link span:last-child {
  min-width: 0;
}

.shell-header .nav-link:has(.nav-icon) {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(22px, auto);
  justify-items: center;
}

.shell-header .nav-link:has(.nav-icon) .nav-icon {
  justify-self: center;
}

.shell-header .nav-link:has(.nav-icon) .nav-label-text {
  grid-column: 2;
  text-align: center;
}

.nav-count-badge {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(218, 238, 255, 0.5);
  background: rgba(232, 243, 255, 0.92);
  color: #075084;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(9, 52, 91, 0.12);
  transform: translateY(1px);
}

.nav-count-badge[hidden] {
  display: none !important;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: rgba(210, 232, 255, 0.84);
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-link.active,
.nav-link:hover {
  color: #ffffff;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(168, 224, 255, 0.08));
  border-color: rgba(218, 238, 255, 0.16);
  box-shadow:
    0 10px 24px rgba(5, 18, 32, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.nav-link.active {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.25), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(168, 224, 255, 0.12));
  border-color: rgba(218, 238, 255, 0.22);
  box-shadow:
    0 12px 28px rgba(5, 18, 32, 0.16),
    inset 3px 0 0 rgba(168, 224, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.nav-link-break {
  position: relative;
  margin-top: 16px;
}

.nav-link-break::before {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: -10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(218, 238, 255, 0.16), transparent);
}

.cta-link:hover,
.resource-link:hover,
.mini-link:hover,
.nav-link:hover { transform: translateY(-1px); }

.cta-primary,
.resource-link.primary {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(200, 138, 45, 0.24);
}

.cta-secondary,
.resource-link.secondary,
.mini-link {
  color: #24364a;
  background: white;
  border: 1px solid rgba(27, 36, 48, 0.12);
}

.mini-link.danger-link {
  color: #9f1f1f;
  background: #fff3f3;
  border: 1px solid rgba(159, 31, 31, 0.18);
}

.mini-link.danger-link:hover,
.mini-link.danger-link:focus-visible {
  background: #ffe7e7;
  box-shadow: 0 10px 22px rgba(159, 31, 31, 0.12);
}

.resource-link.is-disabled,
.cta-link.is-disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.72;
  box-shadow: none;
}

.shell-main {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 1380px;
  min-width: 0;
  justify-self: stretch;
  padding-top: 0;
}

.shell-main-centered {
  min-height: calc(100vh - 24px);
  align-content: center;
}

body[data-page-key="home"] .shell-main {
  width: 100%;
  max-width: 1380px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shell-footer {
  margin-top: 18px;
  padding: 20px 28px 28px;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(27, 36, 48, 0.08);
  width: min(1240px, 100%);
  justify-self: start;
  grid-column: 2;
}

.hero-grid,
.grid-2,
.trade-grid,
.resource-grid,
.launch-grid,
.hub-grid {
  display: grid;
  gap: 18px;
}

.hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trade-grid,
.resource-grid,
.launch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hub-grid { grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); }

.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.section-card,
.trade-card,
.resource-card,
.info-card,
.launch-card,
.hub-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--section-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.trade-card,
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.card-linkable {
  cursor: pointer;
}

.card-linkable:focus-visible {
  outline: 3px solid rgba(31, 104, 173, 0.28);
  outline-offset: 4px;
}

.resource-actions {
  margin-top: auto;
  align-items: flex-end;
}

.resource-card:hover,
.resource-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 104, 173, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.98));
  box-shadow: 0 22px 40px rgba(19, 34, 55, 0.12), 0 0 0 1px rgba(129, 205, 255, 0.2);
}

.quick-link-card {
  min-height: 210px;
}

.resource-card.quick-link-card:hover,
.resource-card.quick-link-card:focus-within {
  transform: none;
  border-color: rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  box-shadow: var(--section-shadow);
}

.quick-link-card .logo-chip {
  align-self: flex-start;
  min-height: 74px;
  min-width: 170px;
  max-width: 100%;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

.quick-link-card .logo-chip img {
  max-height: 48px;
  max-width: 230px;
}

.quick-link-card .logo-chip.logo-card-light img,
.quick-link-card .logo-chip:has(img[alt="Sequoia"]) img {
  mix-blend-mode: normal;
}

.quick-link-card .logo-chip:hover,
.quick-link-card .logo-chip:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.quick-link-card .logo-chip:has(img[alt="Sequoia"]) {
  min-width: 240px;
}

.quick-link-card .logo-chip:has(img[alt="Sequoia"]) img {
  max-height: 104px;
  max-width: 300px;
}

.quick-link-card .logo-tesla-image img {
  max-height: 54px;
  max-width: 300px;
}

body[data-page-key="batteries"] .shell-main {
  gap: 20px;
}

body[data-page-key="batteries"] .command-strip.hero-only {
  margin-bottom: 0;
}

body[data-page-key="batteries"] .hero-banner.page-top-card {
  min-height: 150px;
  border: 1px solid rgba(191, 219, 254, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(90deg, #07172f 0%, #07172f 48%, #0a2a59 72%, #1559c7 100%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

body[data-page-key="batteries"] .hero-banner.page-top-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background:
    radial-gradient(circle at 84% 54%, rgba(96, 165, 250, 0.2), transparent 24%),
    linear-gradient(90deg, rgba(2, 8, 23, 0.22), rgba(2, 8, 23, 0.04) 58%, transparent 100%);
  pointer-events: none;
}

body[data-page-key="batteries"] .hero-banner.page-top-card::after {
  display: none;
}

.batteries-hero-art {
  position: absolute !important;
  top: 0;
  right: clamp(96px, 7.5vw, 138px);
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  border-radius: inherit;
  opacity: 0.96;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 66%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 30%, #000 66%);
  pointer-events: none;
  z-index: 1;
}

body[data-page-key="batteries"] .hero-banner.page-top-card > *:not(.batteries-hero-art) {
  position: relative;
  z-index: 2;
}

body[data-page-key="batteries"] .hub-hero-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 900;
}

body[data-page-key="batteries"] .page-hero-copy {
  margin-top: 10px;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
}

.batteries-panel {
  padding: 24px;
  margin-bottom: 0;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.band-head.batteries-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 20px;
}

.band-head.batteries-section-head > div {
  min-width: 0;
}

.batteries-section-head h3 {
  margin: 0;
  color: #071b3a;
  font-size: 1.28rem;
  line-height: 1.1;
}

.batteries-section-head p {
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.batteries-section-badge,
.batteries-resource-icon {
  display: inline-grid;
  place-items: center;
  color: #ffffff;
}

.batteries-section-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.batteries-section-badge-rebates {
  background: linear-gradient(145deg, var(--section-orange), var(--primary-blue));
}

.batteries-section-badge-stack {
  background: linear-gradient(145deg, var(--primary-blue), #38bdf8);
}

.batteries-section-badge svg,
.batteries-resource-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.batteries-rebate-grid,
.batteries-resource-grid {
  gap: 20px;
}

.batteries-rebate-card,
.batteries-resource-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 55% 8%, #ffffff 0%, rgba(255, 255, 255, 0.82) 34%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--batteries-card-tint, #f8fbff) 100%);
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.batteries-rebate-card::before,
.batteries-resource-card::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 80px;
  height: 74px;
  opacity: 0.22;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--batteries-accent, #2563eb) 64%, transparent) 1.5px, transparent 1.8px);
  background-size: 11px 11px;
  pointer-events: none;
}

.batteries-resource-card::before {
  top: auto;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 64px;
  opacity: 0.14;
}

.batteries-rebate-card::after,
.batteries-resource-card::after {
  content: "";
  position: absolute;
  inset: auto auto -32px -24px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--batteries-accent, #2563eb) 15%, transparent), transparent 66%);
  pointer-events: none;
}

.batteries-rebate-card > *,
.batteries-resource-card > * {
  position: relative;
  z-index: 1;
}

.batteries-rebate-card {
  min-height: 184px;
  height: 202.328px;
  padding: 24px;
  gap: 8px;
  border-top-color: color-mix(in srgb, var(--batteries-accent, #2563eb) 74%, rgba(15, 23, 42, 0.07));
  border-top-width: 2px;
}

.batteries-rebate-card:hover,
.batteries-rebate-card:focus-within,
.batteries-resource-card:hover,
.batteries-resource-card:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--batteries-accent, #2563eb) 24%, rgba(15, 23, 42, 0.07));
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.batteries-rebate-smud {
  --batteries-accent: #f97316;
  --batteries-card-tint: #fff3e4;
}

.batteries-rebate-tesla {
  --batteries-accent: #2563eb;
  --batteries-card-tint: #f3f6fb;
}

.batteries-rebate-ava {
  --batteries-accent: #f97316;
  --batteries-card-tint: #fff5e8;
}

.batteries-rebate-card .logo-chip {
  min-height: 52px;
  margin-bottom: 4px;
}

.batteries-rebate-card .logo-chip img {
  max-height: 54px;
  max-width: 260px;
}

.batteries-rebate-card p {
  max-width: 100%;
  color: #213752;
  font-size: 0.94rem;
  line-height: 1.38;
}

.batteries-rebate-card .resource-actions,
.batteries-resource-card .resource-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.batteries-panel .resource-link.primary {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
}

.batteries-panel .resource-link.secondary {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  font-weight: 900;
}

.batteries-panel .resource-link.secondary:hover,
.batteries-panel .resource-link.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

.batteries-panel .resource-link.primary:hover,
.batteries-panel .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.batteries-resource-card {
  min-height: 170px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 18px;
  align-content: start;
  gap: 8px;
  padding: 20px;
  --batteries-accent: #14b8a6;
  --batteries-card-tint: #edf9f7;
}

.batteries-resource-icon {
  width: 60px;
  height: 60px;
  grid-row: 1 / span 4;
  margin-bottom: 0;
  border-radius: 999px;
  color: #0f8d96;
  background: rgba(20, 184, 166, 0.1);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.18), 0 12px 24px rgba(20, 184, 166, 0.08);
}

.wheelhouse-resource-icon {
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.batteries-resource-icon.battery-stack-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background-color: transparent;
  background-image: url("../assets/battery-resource-icons.png");
  background-repeat: no-repeat;
  background-size: 600% 100%;
  box-shadow: none;
}

.battery-stack-icon-1 { background-position: 0% 50%; }
.battery-stack-icon-2 { background-position: 20% 50%; }
.battery-stack-icon-3 { background-position: 40% 50%; }
.battery-stack-icon-4 { background-position: 60% 50%; }
.battery-stack-icon-5 { background-position: 80% 50%; }
.battery-stack-icon-6 { background-position: 100% 50%; }

.batteries-resource-card h3 {
  margin: 0;
  color: #071b3a;
  font-size: 1.08rem;
  line-height: 1.12;
}

.batteries-resource-card p {
  margin: 0;
  color: #425672;
  font-size: 0.92rem;
  line-height: 1.42;
}

.batteries-resource-card .lender-card-phone {
  position: absolute;
  top: 10px;
  right: 24px;
  max-width: calc(100% - 190px);
  font-size: 0.76rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.batteries-resource-card .lender-card-phone a {
  color: #35546f;
  font-weight: 850;
  text-decoration: none;
}

.batteries-resource-card .lender-card-phone a:hover,
.batteries-resource-card .lender-card-phone a:focus-visible {
  color: #087f8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.batteries-resource-card h3,
.batteries-resource-card p,
.batteries-resource-card .resource-type,
.batteries-resource-card .resource-actions {
  grid-column: 2;
}

.batteries-resource-card:not(:has(> p)) {
  grid-template-rows: 60px minmax(0, 1fr);
}

.batteries-resource-card:not(:has(> p)) h3 {
  align-self: center;
  transform: translateY(5px);
}

.batteries-resource-card .resource-type {
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(20, 184, 166, 0.14);
  border-radius: 999px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.batteries-resource-card .resource-actions {
  align-self: end;
  margin-top: 8px;
}

.battery-icons-panel {
  display: grid;
  gap: 18px;
}

body[data-page-key="battery-icons"] .band-head.solar-section-head,
body[data-page-key="battery-icons"] .band-head.batteries-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 20px;
}

body[data-page-key="battery-icons"] .band-head.solar-section-head > div,
body[data-page-key="battery-icons"] .band-head.batteries-section-head > div {
  min-width: 0;
}

.battery-icon-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.battery-icon-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.battery-icon-sample {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 18px 14px;
  border: 1px solid rgba(16, 46, 79, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.battery-icon-sample h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.battery-icon-sample .solar-section-badge,
.battery-icon-sample .batteries-section-badge,
.battery-icon-sample .workspace-section-badge,
.battery-icon-sample .training-card-icon {
  margin: 0;
}

.battery-icon-sample .battery-platform-badge svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

body[data-page-key="battery-icons"] .product-training-battery-icon,
body[data-page-key="training"] .product-training-battery-icon {
  background: linear-gradient(145deg, #f97316, #fb923c);
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-page-key="battery-icons"] .product-training-solar-icon,
body[data-page-key="training"] .product-training-solar-icon {
  background: linear-gradient(145deg, #f59e0b, #fbbf24);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-page-key="battery-icons"] .product-training-windows-icon,
body[data-page-key="training"] .product-training-windows-icon {
  background: linear-gradient(145deg, #14b8a6, #2dd4bf);
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-page-key="battery-icons"] .product-training-hvac-icon,
body[data-page-key="training"] .product-training-hvac-icon {
  background: linear-gradient(145deg, #3b82f6, #38bdf8);
  box-shadow: 0 16px 30px rgba(59, 130, 246, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-page-key="training"] .product-training-lead-green-icon {
  background: linear-gradient(145deg, #10b981, #34d399);
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-page-key="battery-icons"] .product-training-roofing-icon,
body[data-page-key="training"] .product-training-roofing-icon {
  background: linear-gradient(145deg, #475569, #64748b);
  box-shadow: 0 16px 30px rgba(71, 85, 105, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

body[data-page-key="battery-icons"] .training-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--training-accent);
  background: rgba(var(--training-accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.16);
}

body[data-page-key="battery-icons"] .training-card-icon svg {
  width: 25px;
  height: 25px;
}

body[data-page-key="battery-icons"] .training-card-general-icon {
  color: #146ef5;
  background: #eef6ff;
  box-shadow:
    inset 0 0 0 1px rgba(20, 110, 245, 0.18),
    0 10px 20px rgba(20, 110, 245, 0.08);
}

body[data-page-key="battery-icons"] .training-card-general-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.25;
}

body[data-page-key="battery-icons"] .training-dashboard-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--training-accent) 64%, #ffffff), var(--training-accent) 58%, color-mix(in srgb, var(--training-accent) 82%, #111827));
  box-shadow:
    0 16px 30px rgba(var(--training-accent-rgb), 0.24),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body[data-page-key="battery-icons"] .training-dashboard-icon .training-card-icon {
  width: 31px;
  height: 31px;
  color: currentColor;
  background: transparent;
  box-shadow: none;
}

body[data-page-key="battery-icons"] .training-dashboard-icon .training-card-icon svg {
  width: 30px;
  height: 30px;
}

.battery-resource-icon-groups {
  display: grid;
  gap: 18px;
}

.battery-resource-icon-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(16, 46, 79, 0.1);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.82);
}

.battery-resource-icon-group > h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
}

.battery-resource-icon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.battery-resource-icon-list-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.battery-resource-icon-list-one {
  grid-template-columns: minmax(180px, 240px);
}

.battery-icon-sample .batteries-resource-icon {
  grid-row: auto;
  margin: 0;
}

.tesla-mark-icon svg {
  width: 31px;
  height: 31px;
  color: #00a733;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 900px) {
  .battery-icon-grid,
  .battery-resource-icon-list,
  .battery-resource-icon-list-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .battery-icon-grid,
  .battery-resource-icon-list,
  .battery-resource-icon-list-five,
  .battery-resource-icon-list-one {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card,
html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card {
  min-height: 170px !important;
  height: auto !important;
  padding: 20px !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  column-gap: 18px !important;
  align-content: start !important;
  gap: 8px !important;
}

body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card h3,
html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card h3 {
  font-size: 1.08rem !important;
  line-height: 1.12 !important;
}

body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card p,
html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card p {
  font-size: 0.92rem !important;
  line-height: 1.42 !important;
}

body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card .resource-actions,
html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card .resource-actions {
  align-self: end !important;
  margin-top: 8px !important;
}

body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-icon,
html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-icon {
  width: 60px !important;
  height: 60px !important;
}

.batteries-resource-deck,
.batteries-resource-script {
  --batteries-accent: #14b8a6;
  --batteries-card-tint: #effbf9;
}

.batteries-resource-deck,
.batteries-resource-script,
.batteries-resource-faq {
  grid-template-rows: auto auto minmax(58px, 1fr) auto;
  align-content: stretch;
}

.batteries-resource-deck .resource-type,
.batteries-resource-script .resource-type,
.batteries-resource-faq .resource-type {
  grid-row: 1;
}

.batteries-resource-deck h3,
.batteries-resource-script h3,
.batteries-resource-faq h3 {
  grid-row: 2;
}

.batteries-resource-deck p,
.batteries-resource-script p,
.batteries-resource-faq p {
  grid-row: 3;
}

.batteries-resource-deck .resource-actions,
.batteries-resource-script .resource-actions,
.batteries-resource-faq .resource-actions {
  grid-row: 4;
  align-self: end;
}

body[data-page-key="solar"] .shell-main {
  gap: 20px;
}

body[data-page-key="solar"] .command-strip.hero-only {
  margin-bottom: 0;
}

body[data-page-key="solar"] .hero-banner.page-top-card {
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(252, 211, 77, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 74%, rgba(255, 236, 153, 0.98), rgba(250, 204, 21, 0.45) 5%, rgba(250, 204, 21, 0.12) 15%, transparent 28%),
    linear-gradient(164deg, transparent 0 55%, rgba(252, 211, 77, 0.34) 63%, rgba(255, 255, 255, 0.1) 70%, transparent 78%),
    radial-gradient(circle at 84% 58%, rgba(250, 204, 21, 0.3), transparent 30%),
    radial-gradient(circle at 96% 8%, rgba(20, 184, 166, 0.18), transparent 24%),
    linear-gradient(135deg, #07172f 0%, #0e2b55 52%, #1762d2 100%);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
}

body[data-page-key="solar"] .hero-banner.page-top-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 1px, transparent 1.5px),
    linear-gradient(100deg, transparent 57%, rgba(250, 204, 21, 0.24) 57.3%, transparent 58%),
    linear-gradient(111deg, transparent 63%, rgba(255, 255, 255, 0.12) 63.3%, transparent 64%),
    linear-gradient(126deg, transparent 69%, rgba(96, 165, 250, 0.18) 69.3%, transparent 70%);
  background-size: 18px 18px, 100% 100%, 100% 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 92%, transparent 100%);
  pointer-events: none;
}

body[data-page-key="solar"] .hero-banner.page-top-card::after {
  display: block;
  right: 5%;
  bottom: -82px;
  width: 310px;
  height: 240px;
  border: 1px solid rgba(252, 211, 77, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(105deg, transparent 0 24%, rgba(255, 255, 255, 0.08) 24.5% 25%, transparent 25.5% 49%, rgba(255, 255, 255, 0.08) 49.5% 50%, transparent 50.5% 74%, rgba(255, 255, 255, 0.08) 74.5% 75%, transparent 75.5%),
    linear-gradient(15deg, transparent 0 31%, rgba(255, 255, 255, 0.08) 31.5% 32%, transparent 32.5% 63%, rgba(255, 255, 255, 0.08) 63.5% 64%, transparent 64.5%),
    radial-gradient(circle at 50% 26%, rgba(250, 204, 21, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(59, 130, 246, 0.08));
  opacity: 0.78;
  transform: rotate(-10deg);
}

body[data-page-key="solar"] .hub-hero-title {
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 900;
}

body[data-page-key="solar"] .page-hero-copy {
  margin-top: 10px;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
}

body[data-page-key="batteries"] .hero-banner.page-top-card,
body[data-page-key="solar"] .hero-banner.page-top-card {
  min-height: 132px;
  overflow: hidden;
  border: 0;
  border-radius: var(--hero-radius);
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  box-shadow: none;
}

body[data-page-key="batteries"] .hero-banner.page-top-card::before,
body[data-page-key="solar"] .hero-banner.page-top-card::before,
body[data-page-key="batteries"] .hero-banner.page-top-card::after,
body[data-page-key="solar"] .hero-banner.page-top-card::after {
  display: none;
}

body[data-page-key="batteries"] .batteries-hero-art {
  display: none;
}

body[data-page-key="batteries"] .hub-hero-title,
body[data-page-key="solar"] .hub-hero-title {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 800;
}

body[data-page-key="batteries"] .page-hero-copy,
body[data-page-key="solar"] .page-hero-copy {
  margin-top: 7px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.solar-panel {
  padding: 24px;
  margin-bottom: 0;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.98), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.solar-core-panel:not(.trade-helpful-panel) .band-head.solar-section-head,
body[data-page-key="solar"] .band-head.solar-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 20px;
}

.solar-core-panel:not(.trade-helpful-panel) .band-head.solar-section-head > div,
body[data-page-key="solar"] .band-head.solar-section-head > div {
  min-width: 0;
}

.solar-section-head h3 {
  margin: 0;
  color: #071b3a;
  font-size: 1.28rem;
  line-height: 1.1;
}

.solar-section-head p {
  margin: 6px 0 0;
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.4;
}

.solar-section-badge,
.solar-card-icon {
  display: inline-grid;
  place-items: center;
}

.solar-section-badge {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.solar-section-badge-core {
  background: linear-gradient(145deg, var(--primary-blue), #38bdf8);
}

.solar-section-badge-prep {
  background: linear-gradient(145deg, var(--section-teal), var(--primary-blue));
}

.solar-section-badge-execution {
  background: linear-gradient(145deg, var(--section-purple), var(--primary-blue));
}

.solar-section-badge svg,
.solar-card-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solar-primary-grid,
.solar-prep-grid,
.solar-execution-grid {
  gap: 20px;
}

body[data-page-key="solar"] .solar-primary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-page-key="windows"] .solar-core-panel .solar-primary-grid,
body[data-page-key="hvac"] .solar-core-panel .solar-primary-grid,
body[data-page-key="roofing"] .solar-core-panel .solar-primary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


body[data-page-key="windows"] .trade-helpful-grid,
body[data-page-key="hvac"] .trade-helpful-grid,
body[data-page-key="roofing"] .trade-helpful-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body[data-page-key="windows"] .trade-helpful-panel .solar-section-head,
body[data-page-key="hvac"] .trade-helpful-panel .solar-section-head,
body[data-page-key="roofing"] .trade-helpful-panel .solar-section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 16px;
  margin-bottom: 20px;
}

body[data-page-key="windows"] .trade-helpful-card,
body[data-page-key="hvac"] .trade-helpful-card,
body[data-page-key="roofing"] .trade-helpful-card {
  height: 202px;
}

body[data-page-key="windows"] .trade-helpful-card .logo-chip,
body[data-page-key="hvac"] .trade-helpful-card .logo-chip,
body[data-page-key="roofing"] .trade-helpful-card .logo-chip {
  min-height: 52px;
  height: 52px;
  margin-bottom: 10px;
}

body[data-page-key="windows"] .trade-helpful-card .logo-chip img,
body[data-page-key="hvac"] .trade-helpful-card .logo-chip img,
body[data-page-key="roofing"] .trade-helpful-card .logo-chip img {
  max-height: 44px;
  max-width: 240px;
}

body[data-page-key="windows"] .trade-helpful-card .logo-chip:has(img[alt="Anlin"]) {
  min-width: 170px;
}

body[data-page-key="roofing"] .trade-helpful-card .logo-chip:has(img[alt="Sequoia"]) {
  min-width: 170px;
}

body[data-page-key="roofing"] .trade-helpful-card .logo-chip:has(img[alt="Sequoia"]) img {
  max-height: 44px;
  max-width: 190px;
}

body[data-page-key="windows"] .trade-helpful-card p,
body[data-page-key="hvac"] .trade-helpful-card p,
body[data-page-key="roofing"] .trade-helpful-card p {
  min-height: 25px;
}

body[data-page-key="windows"] .trade-helpful-card .resource-actions,
body[data-page-key="hvac"] .trade-helpful-card .resource-actions,
body[data-page-key="roofing"] .trade-helpful-card .resource-actions {
  flex-wrap: nowrap;
}

body[data-page-key="windows"] .trade-helpful-card .resource-link,
body[data-page-key="hvac"] .trade-helpful-card .resource-link,
body[data-page-key="roofing"] .trade-helpful-card .resource-link {
  white-space: nowrap;
}

body[data-page-key="roofing"] .trade-helpful-card {
  display: flex;
  flex-direction: column;
  height: 202px;
  padding: 24px;
  gap: 0;
}

.roofing-platform-top {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 84px;
}

body[data-page-key="roofing"] .trade-helpful-card .solar-card-icon {
  width: 60px;
  height: 32px;
  margin: 0 0 12px;
  border-radius: 999px;
}

body[data-page-key="roofing"] .trade-helpful-card .logo-chip {
  margin: 0;
}

body[data-page-key="roofing"] .trade-helpful-card h3 {
  margin: 0;
  color: #071b3a;
  font-size: 1.03rem;
  line-height: 1.1;
}

body[data-page-key="roofing"] .trade-helpful-card p {
  margin: 0;
  min-height: 0;
}

body[data-page-key="roofing"] .trade-helpful-card .resource-actions {
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 6px;
}

body[data-page-key="solar"] .solar-prep-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page-key="solar"] .solar-execution-grid {
  grid-template-columns: minmax(280px, 360px);
}

.solar-platform-card,
.solar-workflow-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 54% 7%, #ffffff 0%, rgba(255, 255, 255, 0.86) 34%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--solar-card-tint, #f8fbff) 100%);
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.solar-platform-card::before,
.solar-workflow-card::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 22px;
  width: 82px;
  height: 74px;
  opacity: 0.22;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--solar-accent, #2563eb) 64%, transparent) 1.5px, transparent 1.8px);
  background-size: 11px 11px;
  pointer-events: none;
}

body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card::before,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card::before {
  top: auto;
  right: 14px;
  bottom: 18px;
  width: 54px;
  height: 52px;
  opacity: 0.15;
}

.solar-platform-card::after,
.solar-workflow-card::after {
  content: "";
  position: absolute;
  inset: auto auto -34px -26px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--solar-accent, #2563eb) 16%, transparent), transparent 66%);
  pointer-events: none;
}

.solar-platform-card > *,
.solar-workflow-card > * {
  position: relative;
  z-index: 1;
}

.solar-platform-card {
  min-height: 184px;
  height: 202px;
  padding: 24px;
  --solar-accent: #2563eb;
  --solar-card-tint: #eef4ff;
}

.solar-platform-card {
  border-top-color: color-mix(in srgb, var(--solar-accent, #2563eb) 74%, rgba(15, 23, 42, 0.07));
  border-top-width: 2px;
}

.solar-platform-card:hover,
.solar-platform-card:focus-within,
.solar-workflow-card:hover,
.solar-workflow-card:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--solar-accent, #2563eb) 26%, rgba(15, 23, 42, 0.07));
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.solar-platform-opensolar {
  --solar-accent: #f59e0b;
  --solar-card-tint: #fff7e7;
}

.solar-platform-aurora {
  --solar-accent: #14b8a6;
  --solar-card-tint: #edf9f7;
}

.solar-platform-concert {
  --solar-accent: #2563eb;
  --solar-card-tint: #eef4ff;
}

.solar-platform-roofing {
  --solar-accent: #0f172a;
  --solar-card-tint: #f1f5f9;
}

.solar-platform-card .logo-chip {
  min-height: 52px;
  margin-bottom: 10px;
}

.solar-platform-card .logo-chip img {
  max-height: 54px;
  max-width: 260px;
}

.command-home-appointment-provider-logo {
  display: block;
  height: 44px;
  max-width: 132px;
  width: auto;
  object-fit: contain;
}

.calendar-provider-logo {
  display: block;
  height: 42px;
  max-width: 126px;
  width: auto;
  object-fit: contain;
}

.solar-platform-card .logo-chip.logo-aros-windows {
  min-width: 160px;
}

.solar-platform-card .logo-chip.logo-aros-batteries {
  min-width: 160px;
}

.solar-platform-card .logo-chip.logo-aros-windows img {
  max-height: 60px;
  max-width: 170px;
  transform: translateY(-3px);
}

.solar-platform-card .logo-chip.logo-aros-batteries img {
  max-height: 60px;
  max-width: 170px;
  transform: translateY(-3px);
}

.solar-platform-card .logo-chip.logo-aros-hvac,
.solar-platform-card .logo-chip.logo-aros-roofing,
.solar-platform-card .logo-chip.logo-core-sequoia {
  min-width: 168px;
}

.solar-platform-card .logo-chip.logo-aros-hvac img,
.solar-platform-card .logo-chip.logo-aros-roofing img,
.solar-platform-card .logo-chip.logo-core-sequoia img {
  max-height: 62px;
  max-width: 180px;
  transform: translateY(-4px);
}

.solar-core-panel .solar-platform-card .logo-chip:has(img[alt="Sequoia"]):not(.logo-core-sequoia) {
  min-width: 0;
}

.solar-core-panel .solar-platform-card .logo-chip:has(img[alt="Sequoia"]):not(.logo-core-sequoia) img {
  max-height: 54px;
  max-width: 260px;
}

.solar-core-panel .solar-platform-card .logo-chip.logo-core-sequoia:hover,
.solar-core-panel .solar-platform-card .logo-chip.logo-core-sequoia:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px) scale(1.02);
}

.solar-platform-card p {
  max-width: 310px;
  color: #213752;
  font-size: 0.96rem;
  line-height: 1.5;
}

.solar-platform-card .resource-actions,
.solar-workflow-card .resource-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-page-key="solar"] .resource-link.primary {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="windows"] .solar-core-panel .resource-link.primary,
body[data-page-key="windows-competitors"] .solar-core-panel .resource-link.primary,
body[data-page-key="hvac"] .solar-core-panel .resource-link.primary,
body[data-page-key="roofing"] .solar-core-panel .resource-link.primary {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #2563eb, #0f5fd8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="windows"] .trade-helpful-panel .resource-link.primary,
body[data-page-key="hvac"] .trade-helpful-panel .resource-link.primary,
body[data-page-key="roofing"] .trade-helpful-panel .resource-link.primary {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #2563eb, #0f5fd8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="solar"] .resource-link.secondary {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="windows"] .solar-core-panel .resource-link.secondary,
body[data-page-key="windows-competitors"] .solar-core-panel .resource-link.secondary,
body[data-page-key="hvac"] .solar-core-panel .resource-link.secondary,
body[data-page-key="roofing"] .solar-core-panel .resource-link.secondary {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="windows"] .trade-helpful-panel .resource-link.secondary,
body[data-page-key="hvac"] .trade-helpful-panel .resource-link.secondary,
body[data-page-key="roofing"] .trade-helpful-panel .resource-link.secondary {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="solar"] .resource-link.secondary:hover,
body[data-page-key="solar"] .resource-link.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

body[data-page-key="windows"] .solar-core-panel .resource-link.secondary:hover,
body[data-page-key="windows"] .solar-core-panel .resource-link.secondary:focus-visible,
body[data-page-key="windows-competitors"] .solar-core-panel .resource-link.secondary:hover,
body[data-page-key="windows-competitors"] .solar-core-panel .resource-link.secondary:focus-visible,
body[data-page-key="hvac"] .solar-core-panel .resource-link.secondary:hover,
body[data-page-key="hvac"] .solar-core-panel .resource-link.secondary:focus-visible,
body[data-page-key="roofing"] .solar-core-panel .resource-link.secondary:hover,
body[data-page-key="roofing"] .solar-core-panel .resource-link.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

body[data-page-key="windows"] .trade-helpful-panel .resource-link.secondary:hover,
body[data-page-key="windows"] .trade-helpful-panel .resource-link.secondary:focus-visible,
body[data-page-key="hvac"] .trade-helpful-panel .resource-link.secondary:hover,
body[data-page-key="hvac"] .trade-helpful-panel .resource-link.secondary:focus-visible,
body[data-page-key="roofing"] .trade-helpful-panel .resource-link.secondary:hover,
body[data-page-key="roofing"] .trade-helpful-panel .resource-link.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

body[data-page-key="solar"] .resource-link.primary:hover,
body[data-page-key="solar"] .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

body[data-page-key="windows"] .solar-core-panel .resource-link.primary:hover,
body[data-page-key="windows"] .solar-core-panel .resource-link.primary:focus-visible,
body[data-page-key="windows-competitors"] .solar-core-panel .resource-link.primary:hover,
body[data-page-key="windows-competitors"] .solar-core-panel .resource-link.primary:focus-visible,
body[data-page-key="hvac"] .solar-core-panel .resource-link.primary:hover,
body[data-page-key="hvac"] .solar-core-panel .resource-link.primary:focus-visible,
body[data-page-key="roofing"] .solar-core-panel .resource-link.primary:hover,
body[data-page-key="roofing"] .solar-core-panel .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

body[data-page-key="windows"] .trade-helpful-panel .resource-link.primary:hover,
body[data-page-key="windows"] .trade-helpful-panel .resource-link.primary:focus-visible,
body[data-page-key="hvac"] .trade-helpful-panel .resource-link.primary:hover,
body[data-page-key="hvac"] .trade-helpful-panel .resource-link.primary:focus-visible,
body[data-page-key="roofing"] .trade-helpful-panel .resource-link.primary:hover,
body[data-page-key="roofing"] .trade-helpful-panel .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.solar-workflow-card {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  --solar-accent: #14b8a6;
  --solar-card-tint: #effbf9;
}

.solar-card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  border-radius: 999px;
  color: var(--solar-icon-color, #0f8d96);
  background: color-mix(in srgb, var(--solar-accent, #14b8a6) 11%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--solar-accent, #14b8a6) 18%, transparent), 0 12px 24px color-mix(in srgb, var(--solar-accent, #14b8a6) 8%, transparent);
}

.solar-workflow-card h3 {
  margin: 0;
  color: #071b3a;
  font-size: 0.98rem;
  line-height: 1.14;
}

.solar-workflow-card p {
  margin: 0;
  color: #425672;
  font-size: 0.82rem;
  line-height: 1.38;
}

body[data-page-key="solar"] .solar-workflow-card .resource-type {
  display: none;
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--solar-accent, #14b8a6) 15%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--solar-accent, #14b8a6) 70%, #0f172a);
  background: color-mix(in srgb, var(--solar-accent, #14b8a6) 8%, #ffffff);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.solar-workflow-card .resource-actions {
  align-self: end;
  margin-top: 6px;
}

body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card {
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: minmax(46px, auto) minmax(88px, auto) 40px;
  column-gap: 14px;
  align-content: start;
}

body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card {
  grid-template-columns: 62px minmax(0, 1fr);
  grid-template-rows: minmax(46px, auto) minmax(66px, auto) 40px;
  column-gap: 14px;
  min-height: 188px;
  padding: 16px 14px;
}

body[data-page-key="solar"] .solar-execution-grid .solar-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
}

body[data-page-key="solar"] .solar-execution-grid .solar-card-icon svg {
  width: 27px;
  height: 27px;
}

body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card h3 {
  font-size: 1.08rem;
}

body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card p {
  font-size: 0.92rem;
  line-height: 1.42;
}

body[data-page-key="solar"] .solar-execution-grid .resource-link.primary {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

body[data-page-key="solar"] .solar-prep-grid .solar-card-icon,
body[data-page-key="solar"] .solar-execution-grid .solar-card-icon {
  grid-row: 1 / span 3;
}

body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card h3,
body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card p,
body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card .resource-actions,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card h3,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card p,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card .resource-actions {
  grid-column: 2;
}

body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card h3,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card h3 {
  grid-row: 1;
}

body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card p,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card p {
  grid-row: 2;
}

body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card .resource-actions,
body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card .resource-actions {
  grid-row: 3;
  align-self: end;
}

.solar-card-adders {
  --solar-accent: var(--section-teal);
  --solar-card-tint: #effbf9;
  --solar-icon-color: #0f8d96;
}

.solar-card-docs,
.solar-card-specs {
  --solar-accent: #0ea5e9;
  --solar-card-tint: #eef7ff;
  --solar-icon-color: #0284c7;
}

.solar-card-finance {
  --solar-accent: #2563eb;
  --solar-card-tint: #eef4ff;
  --solar-icon-color: #1d4ed8;
}

.solar-card-fpa {
  --solar-accent: var(--section-purple);
  --solar-card-tint: #f5efff;
  --solar-icon-color: #7c3aed;
}

.solar-detail-section {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.07);
  background:
    radial-gradient(circle at 96% 18%, color-mix(in srgb, var(--solar-detail-accent, #2563eb) 14%, transparent), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, var(--solar-detail-tint, #f8fbff) 100%);
}

.solar-detail-section::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 28px;
  width: 96px;
  height: 86px;
  opacity: 0.14;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--solar-detail-accent, #2563eb) 70%, transparent) 1.6px, transparent 1.9px);
  background-size: 12px 12px;
  pointer-events: none;
}

.solar-detail-section > * {
  position: relative;
  z-index: 1;
}

.solar-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.solar-detail-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--solar-detail-accent, #2563eb) 88%, #ffffff), var(--solar-detail-accent, #2563eb));
  box-shadow: 0 16px 28px color-mix(in srgb, var(--solar-detail-accent, #2563eb) 20%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.solar-detail-badge svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.solar-detail-section-teal {
  --solar-detail-accent: #0f8d96;
  --solar-detail-tint: #effbf9;
}

.solar-detail-section-gold {
  --solar-detail-accent: #f59e0b;
  --solar-detail-tint: #fff8eb;
}

.solar-detail-section-blue {
  --solar-detail-accent: #2563eb;
  --solar-detail-tint: #eef4ff;
}

.solar-detail-section-green {
  --solar-detail-accent: #059669;
  --solar-detail-tint: #eefdf6;
}

.band-head.batteries-section-head,
body[data-page-key="solar"] .band-head.solar-section-head {
  gap: 16px;
  margin-bottom: 20px;
}

.batteries-section-head h3,
.solar-section-head h3 {
  font-size: 1.28rem;
  font-weight: 900;
}

.batteries-section-head p,
.solar-section-head p {
  color: var(--muted-text);
  font-size: 0.95rem;
}

.batteries-section-badge,
.solar-section-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.batteries-resource-icon,
.solar-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
}

.batteries-resource-icon svg,
.solar-card-icon svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.9;
}

.batteries-rebate-card,
.batteries-resource-card,
.solar-platform-card,
.solar-workflow-card {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.batteries-rebate-card::before,
.batteries-resource-card::before,
.solar-platform-card::before,
.solar-workflow-card::before {
  background-size: 11px 11px;
}

.batteries-resource-card h3,
.solar-workflow-card h3 {
  color: #071b3a;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.12;
}

.batteries-rebate-card p,
.batteries-resource-card p,
.solar-platform-card p,
.solar-workflow-card p {
  color: #425672;
  font-size: 0.92rem;
  line-height: 1.42;
}

body[data-page-key="batteries"] .resource-link.primary,
body[data-page-key="solar"] .resource-link.primary,
body[data-page-key="solar-helpful-resources"] .solar-core-panel .resource-link.primary {
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="batteries"] .resource-link.secondary,
body[data-page-key="solar"] .resource-link.secondary,
body[data-page-key="solar-helpful-resources"] .solar-core-panel .resource-link.secondary {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="solar-helpful-resources"] .solar-core-panel .resource-link.secondary:hover,
body[data-page-key="solar-helpful-resources"] .solar-core-panel .resource-link.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

body[data-page-key="solar-helpful-resources"] .solar-core-panel .resource-link.primary:hover,
body[data-page-key="solar-helpful-resources"] .solar-core-panel .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

@media (max-width: 1180px) {
  body[data-page-key="solar"] .solar-primary-grid,
  body[data-page-key="solar"] .solar-prep-grid,
  body[data-page-key="solar"] .solar-execution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page-key="windows"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="hvac"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="roofing"] .solar-core-panel .solar-primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page-key="solar"] .solar-execution-grid {
    grid-template-columns: minmax(280px, 360px) !important;
  }

  body[data-page-key="windows"] .trade-helpful-grid,
  body[data-page-key="hvac"] .trade-helpful-grid,
  body[data-page-key="roofing"] .trade-helpful-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .solar-platform-card,
  .solar-workflow-card {
    min-height: 0;
    height: auto;
  }
}

@media (max-width: 720px) {
  body[data-page-key="solar"] .solar-primary-grid,
  body[data-page-key="solar"] .solar-prep-grid,
  body[data-page-key="solar"] .solar-execution-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="windows"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="hvac"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="roofing"] .solar-core-panel .solar-primary-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="windows"] .trade-helpful-grid,
  body[data-page-key="hvac"] .trade-helpful-grid,
  body[data-page-key="roofing"] .trade-helpful-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="batteries"] .hero-banner.page-top-card,
  body[data-page-key="solar"] .hero-banner.page-top-card {
    min-height: 0;
  }

  body[data-page-key="batteries"] .shell-main,
  body[data-page-key="solar"] .shell-main {
    gap: 18px;
  }

  .solar-panel {
    padding: 18px 16px;
    border-radius: 22px;
  }

  body[data-page-key="solar"] .band-head.solar-section-head {
    align-items: flex-start;
    gap: 12px;
  }

  .solar-section-badge {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .solar-platform-card,
  .solar-workflow-card {
    padding: 22px;
  }

  body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 0;
    padding: 22px;
  }

  body[data-page-key="solar"] .solar-execution-grid .solar-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
  }

  body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card h3 {
    font-size: 1rem;
  }

  body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card p {
    font-size: 0.86rem;
  }

  body[data-page-key="solar"] .solar-execution-grid .resource-link.primary {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 0.88rem;
  }
}

.intake-card {
  min-height: 170px;
}

.workspace-intake-grid {
  margin-top: 10px;
}

.workspace-intake-card {
  width: min(100%, 240px);
  min-height: 0;
  color: inherit;
  text-decoration: none;
}

.workspace-section-link {
  color: inherit;
  text-decoration: none;
}

.workspace-intake-card h3 {
  max-width: 176px;
  font-size: clamp(1.18rem, 1.8vw, 1.62rem);
}

.workspace-action-section {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 22px 56px rgba(15, 35, 65, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace-action-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}

.workspace-action-head > div {
  display: grid;
  align-content: center;
  gap: 5px;
}

.workspace-section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  color: #ffffff;
  box-shadow:
    0 16px 30px rgba(31, 104, 173, 0.18),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.workspace-section-badge svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-section-badge-blue {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(145deg, #79adff, #2563eb 58%, #38bdf8);
}

.workspace-action-section-intakes .workspace-action-head {
  padding-right: 124px;
}

.intakes-corner-tool {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  color: #f59e0b;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 45%, rgba(245, 158, 11, 0.16)),
    linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 13px 28px rgba(245, 158, 11, 0.16),
    inset 0 0 0 5px rgba(245, 158, 11, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.intakes-corner-tool:hover,
.intakes-corner-tool:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.56);
  box-shadow:
    0 17px 34px rgba(245, 158, 11, 0.22),
    inset 0 0 0 5px rgba(245, 158, 11, 0.1);
  outline: none;
}

.intakes-corner-tool svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intakes-corner-tool-money {
  right: 80px;
  text-decoration: none;
  border-color: rgba(22, 163, 74, 0.34);
  color: #15803d;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8) 45%, rgba(34, 197, 94, 0.17)),
    linear-gradient(145deg, rgba(34, 197, 94, 0.2), rgba(255, 255, 255, 0.84));
  box-shadow:
    0 13px 28px rgba(22, 163, 74, 0.17),
    inset 0 0 0 5px rgba(34, 197, 94, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 29px;
  font-weight: 950;
  line-height: 1;
}

.intakes-corner-tool-money:hover,
.intakes-corner-tool-money:focus-visible {
  border-color: rgba(22, 163, 74, 0.58);
  box-shadow:
    0 17px 34px rgba(22, 163, 74, 0.23),
    inset 0 0 0 5px rgba(34, 197, 94, 0.11);
}

.sales-activity-pulse-icon {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(145deg, #ffb327, #ff8a1f 48%, #f05a5a);
  box-shadow:
    0 16px 30px rgba(240, 90, 90, 0.2),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.inside-sales-hub-band .workspace-action-head { padding-right:64px; }
.sales-extension-corner-tool {
  position:absolute;
  z-index:4;
  top:20px;
  right:20px;
  display:grid;
  width:52px;
  height:52px;
  padding:0;
  place-items:center;
  border:1px solid rgba(22,163,74,.34);
  border-radius:16px;
  background:radial-gradient(circle at 34% 24%,rgba(255,255,255,.98),rgba(255,255,255,.8) 45%,rgba(34,197,94,.17)),linear-gradient(145deg,rgba(34,197,94,.2),rgba(255,255,255,.84));
  box-shadow:0 13px 28px rgba(22,163,74,.17),inset 0 0 0 5px rgba(34,197,94,.09),inset 0 1px 0 rgba(255,255,255,.92);
  cursor:pointer;
  transition:transform 160ms ease,box-shadow 160ms ease,border-color 160ms ease;
}
.sales-extension-corner-tool:hover,.sales-extension-corner-tool:focus-visible {
  border-color:rgba(22,163,74,.58);
  outline:none;
  box-shadow:0 17px 34px rgba(22,163,74,.23),inset 0 0 0 5px rgba(34,197,94,.11);
  transform:translateY(-2px);
}
.sales-extension-corner-tool img { width:28px;height:28px;object-fit:contain; }
.sales-extension-status-dot {
  position:absolute;
  right:5px;
  bottom:5px;
  width:11px;
  height:11px;
  border:2px solid #fff;
  border-radius:999px;
  background:#94a3b8;
  box-shadow:0 2px 6px rgba(15,23,42,.18);
}
.sales-extension-corner-tool.is-connected .sales-extension-status-dot { background:#22c55e; }

.sales-extension-dialog {
  width:min(980px,calc(100vw - 28px));
  max-width:none;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(0,139,143,.22);
  border-radius:22px;
  background:#fff;
  box-shadow:0 30px 90px rgba(15,35,65,.28);
}
.sales-extension-dialog::backdrop { background:rgba(7,24,39,.48);backdrop-filter:blur(4px); }
.sales-extension-dialog-shell { display:grid; }
.sales-extension-dialog-head {
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 34px;
  align-items:center;
  gap:11px;
  padding:14px 16px;
  background:radial-gradient(circle at 82% 10%,rgba(5,191,196,.25),transparent 36%),linear-gradient(135deg,#003d46,#008b8f);
}
.sales-extension-dialog-icon { display:grid;width:42px;height:42px;place-items:center; }
.sales-extension-dialog-icon img { width:35px;height:35px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.sales-extension-dialog-head span { display:block;margin-bottom:3px;color:#a7f3ef;font-size:10px;font-weight:850;letter-spacing:.14em;text-transform:uppercase; }
.sales-extension-dialog-head h2 { margin:0;color:#fff;font-size:20px;letter-spacing:-.025em; }
.sales-extension-dialog-head > button { width:34px;height:34px;padding:0;border:1px solid rgba(255,255,255,.32);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:22px;line-height:1;cursor:pointer; }
.sales-extension-dialog-body { display:grid;max-height:min(84vh,760px);gap:10px;padding:14px 16px 16px;overflow:auto; }
.sales-extension-setup-row { display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:9px; }
.sales-extension-setup-actions { display:grid;grid-template-columns:1fr 1fr;gap:9px; }
.sales-extension-connection { display:grid;grid-template-columns:14px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;border:1px solid #dce8eb;border-radius:12px;background:#f8fbfc; }
.sales-extension-connection-dot { width:12px;height:12px;margin-top:3px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.13); }
.sales-extension-connection.is-connected .sales-extension-connection-dot { background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14); }
.sales-extension-connection strong { display:block;color:#123047;font-size:14px; }
.sales-extension-connection p { margin:2px 0 0;color:#64788c;font-size:11px;line-height:1.35; }
.sales-extension-install {
  display:flex;
  min-height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid #008b8f;
  border-radius:12px;
  background:linear-gradient(135deg,#008b8f,#08b7ba);
  color:#fff;
  font-size:13px;
  font-weight:850;
  text-decoration:none;
  box-shadow:0 12px 24px rgba(0,139,143,.18);
}
.sales-extension-install:hover,.sales-extension-install:focus-visible { background:linear-gradient(135deg,#00777b,#009fa4);outline:none;transform:translateY(-1px); }
.sales-extension-pair-top { min-height:46px;border:1px solid #008b8f;border-radius:12px;background:linear-gradient(135deg,#008b8f,#08b7ba);color:#fff;font:inherit;font-size:13px;font-weight:850;cursor:pointer;box-shadow:0 12px 24px rgba(0,139,143,.18); }
.sales-extension-pair-top:hover,.sales-extension-pair-top:focus-visible { background:linear-gradient(135deg,#00777b,#009fa4);outline:none;transform:translateY(-1px); }
.sales-extension-setup-help { border:1px solid #e1e9ed;border-radius:10px;background:#f8fafc;color:#64788c;font-size:11px; }
.sales-extension-setup-help summary { padding:8px 11px;color:#476578;font-weight:800;cursor:pointer; }
.sales-extension-setup-help p { margin:0;padding:0 11px 10px;line-height:1.45; }
.sales-extension-sync { display:grid;gap:8px;padding-top:3px; }
.sales-extension-sync-head { display:flex;align-items:center;justify-content:space-between;gap:14px; }
.sales-extension-sync-head span { display:block;margin-bottom:2px;color:#008b8f;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase; }
.sales-extension-sync-head h3 { margin:0;color:#123047;font-size:18px; }
.sales-extension-sync-head-actions { display:flex;align-items:center;gap:8px; }
.sales-extension-sync-status { display:inline-flex;min-height:27px;align-items:center;padding:4px 9px;border:1px solid #d6e4e6;border-radius:999px;background:#f2f6f7;color:#6f8292;font-size:10px;white-space:nowrap; }
.sales-extension-sync-status.is-active { border-color:#b8e3d2;background:#e8f8f1;color:#087052; }
.sales-extension-sync-form { display:grid;gap:7px; }
.sales-extension-sync-list { display:grid;grid-template-columns:repeat(auto-fill,150px);justify-content:start;max-height:min(47vh,430px);gap:8px;padding:2px 3px 2px 0;overflow:auto;scrollbar-gutter:stable; }
.sales-extension-empty { margin:0;padding:14px;border:1px dashed #c9dade;border-radius:13px;color:#64788c;font-size:12px;text-align:center; }
.sales-extension-empty.is-error { color:#b42318; }
.sales-extension-disposition { min-width:0; }
.sales-extension-disposition-pill { width:150px;min-height:46px;padding:0 15px;border:1px solid rgba(27,36,48,.08);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(243,247,251,.96));color:#123047;font:inherit;font-size:13px;font-weight:900;text-align:left;box-shadow:0 8px 20px rgba(16,30,48,.055);cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease; }
.sales-extension-disposition-pill:hover,.sales-extension-disposition-pill:focus-visible { border-color:rgba(0,139,143,.34);background:linear-gradient(180deg,#fff,rgba(237,250,248,.98));box-shadow:0 11px 24px rgba(0,92,96,.1);outline:none;transform:translateY(-1px); }
.sales-extension-route-dialog { width:min(760px,calc(100vw - 28px));max-width:none;padding:0;overflow:hidden;border:1px solid rgba(0,139,143,.28);border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(15,35,65,.3); }
.sales-extension-route-dialog::backdrop { background:rgba(7,24,39,.38);backdrop-filter:blur(3px); }
.sales-extension-route-dialog-shell { display:grid; }
.sales-extension-route-dialog header { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid rgba(0,139,143,.15);background:linear-gradient(135deg,#edfafa,#fbfefe); }
.sales-extension-route-dialog header span { display:block;margin-bottom:2px;color:#008b8f;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase; }
.sales-extension-route-dialog h4 { margin:0;color:#123047;font-size:18px; }
.sales-extension-route-dialog header button { width:34px;height:34px;padding:0;border:1px solid #cfe1e3;border-radius:10px;background:#fff;color:#476578;font-size:22px;line-height:1;cursor:pointer; }
.sales-extension-disposition-fields { display:grid;grid-template-columns:54px minmax(120px,.82fr) minmax(180px,1.2fr) minmax(180px,1.2fr) 72px;align-items:end;gap:7px;padding:16px; }
.sales-extension-disposition label { display:grid;gap:4px;color:#476578;font-size:9px;font-weight:850; }
.sales-extension-disposition input:not([type="checkbox"]),.sales-extension-disposition select { width:100%;height:36px;padding:0 9px;border:1px solid #bfd4d7;border-radius:9px;background:#fff;color:#123047;font:inherit;font-size:11px;font-weight:700; }
.sales-extension-disposition input:focus,.sales-extension-disposition select:focus { border-color:#008b8f;outline:3px solid rgba(0,139,143,.11); }
.sales-extension-disposition-toggle { display:flex!important;min-height:36px!important;align-items:center;gap:6px; }
.sales-extension-disposition-toggle input { width:17px;height:17px;accent-color:#008b8f; }
.sales-extension-disposition-toggle span { color:#087a7d; }
.sales-extension-disposition-fields > button { min-height:36px;padding:0 9px;border:1px solid #efc5c8;border-radius:9px;background:#fff7f7;color:#ad3541;font-size:9px;font-weight:850;cursor:pointer; }
.sales-extension-add-disposition { min-height:32px;padding:0 11px;border:1px solid #b9d9dc;border-radius:9px;background:#fff;color:#087a7d;font-size:10px;font-weight:850;cursor:pointer; }
.sales-extension-sync-help { margin:0;color:#64788c;font-size:10px;line-height:1.4; }
.sales-extension-sync-actions { display:grid;grid-template-columns:1fr;gap:10px; }
.sales-extension-sync-actions button { min-height:40px;border:0;border-radius:10px;background:#008b8f;color:#fff;font-size:12px;font-weight:900;cursor:pointer; }
.sales-extension-sync-actions button:hover,.sales-extension-sync-actions button:focus-visible { background:#00777b;outline:none; }
.sales-extension-sync-actions button:disabled { cursor:wait;opacity:.62; }
.sales-extension-dialog .auth-feedback { min-height:0;margin:0;color:#b42318;font-size:12px; }
.sales-extension-dialog .auth-feedback.is-success { color:#15803d; }

.sales-activity-pulse-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.25;
}

.inside-sales-phone-glyph {
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  font-size: 25px;
  font-weight: 800;
  font-variant-emoji: text;
  line-height: 1;
}

.workspace-section-badge-purple {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(145deg, #c4a4ff, #8b5cf6 58%, #6d28d9);
}

.workspace-section-badge-green {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(145deg, #5eead4, #14b8a6 58%, #0f766e);
}

.workspace-section-badge-amber {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(145deg, #fde68a, #f59e0b 58%, #f97316);
}

body[data-page-key="battery-icons"] .battery-icons-workspace-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.18),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

body[data-page-key="battery-icons"] .battery-icons-workspace-badge.workspace-section-badge-blue {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(145deg, #79adff, #2563eb 58%, #38bdf8);
}

body[data-page-key="battery-icons"] .battery-icons-workspace-badge.workspace-section-badge-purple {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(145deg, #c4a4ff, #8b5cf6 58%, #6d28d9);
}

.workspace-action-head h3 {
  margin: 0;
  color: #0b1f3a;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.workspace-action-head p {
  margin: 0;
  color: #52627a;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.34;
}

.workspace-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: clamp(24px, 3vw, 32px);
  width: min(100%, 1260px);
  margin: 0 auto;
}

.workspace-action-grid > .workspace-action-card {
  height: 100%;
  align-self: stretch;
}

.docusign-action-card {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.docusign-hub-feedback {
  min-height: 20px;
  margin: 18px 0 0;
  color: #52627a;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: center;
}

.docusign-hub-feedback:empty {
  display: none;
}

.workspace-action-card {
  --workspace-card-accent: var(--training-accent);
  --workspace-card-accent-rgb: var(--training-accent-rgb);
  --workspace-card-tint-mid: #f8fbff;
  --workspace-card-tint-bottom: #eef4ff;
  position: relative;
  min-height: 254px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: clamp(20px, 2.3vw, 28px) clamp(18px, 2.1vw, 28px) 72px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #0b1f3a;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 50% 34%, rgba(var(--workspace-card-accent-rgb), 0.105) 0%, rgba(var(--workspace-card-accent-rgb), 0.052) 25%, rgba(var(--workspace-card-accent-rgb), 0) 52%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 30%, var(--workspace-card-tint-mid) 68%, var(--workspace-card-tint-bottom) 100%);
  box-shadow:
    0 18px 44px rgba(15, 35, 65, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.workspace-action-card:hover,
.workspace-action-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--workspace-card-accent-rgb), 0.24);
  box-shadow:
    0 24px 54px rgba(15, 35, 65, 0.12),
    0 10px 24px rgba(var(--workspace-card-accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.workspace-action-card:focus-visible {
  outline: 3px solid rgba(var(--workspace-card-accent-rgb), 0.22);
  outline-offset: 4px;
}

.workspace-action-medallion {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 0;
  border-radius: 999px;
  color: var(--workspace-card-accent);
  transform: translateY(4px);
  background:
    radial-gradient(circle at 42% 30%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78) 45%, rgba(var(--workspace-card-accent-rgb), 0.18)),
    linear-gradient(145deg, rgba(var(--workspace-card-accent-rgb), 0.2), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(var(--workspace-card-accent-rgb), 0.34);
  box-shadow:
    0 16px 32px rgba(var(--workspace-card-accent-rgb), 0.18),
    inset 0 0 0 7px rgba(var(--workspace-card-accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace-action-medallion svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-action-medallion img.deal-handshake-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: translateY(4px);
}

.workspace-action-medallion img.hes-division-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.workspace-action-medallion img.field-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(var(--workspace-card-accent-rgb), 0.2);
}

.workspace-dot-field {
  position: absolute;
  z-index: 0;
  top: 70px;
  width: 58px;
  height: 58px;
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(var(--workspace-card-accent-rgb), 0.28) 1.5px, transparent 1.7px);
  background-size: 10px 10px;
  pointer-events: none;
}

.workspace-dot-left {
  left: clamp(28px, 5vw, 72px);
}

.workspace-dot-right {
  right: clamp(28px, 5vw, 72px);
}

.workspace-action-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #0b1f3a;
  font-size: clamp(1.28rem, 1.62vw, 1.58rem);
  line-height: 1.08;
}

.workspace-action-card p {
  position: relative;
  z-index: 1;
  width: min(100%, 260px);
  margin: 0 auto;
  color: #52627a;
  font-size: 0.94rem;
  line-height: 1.36;
}

.workspace-action-arrow {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-top: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(145deg, rgba(var(--workspace-card-accent-rgb), 0.98), rgba(var(--workspace-card-accent-rgb), 0.72));
  box-shadow:
    0 14px 28px rgba(var(--workspace-card-accent-rgb), 0.24),
    0 0 0 6px rgba(var(--workspace-card-accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -8px 14px rgba(7, 27, 56, 0.1);
  font-size: 1.22rem;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.workspace-hub-band .workspace-action-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 8px 18px;
  padding: 22px 20px 68px;
  text-align: left;
}

body[data-page-key="quizzes"] .quiz-library-ops-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: start;
  gap: 14px 20px;
  padding: 24px 22px 70px;
  text-align: left;
}

body[data-page-key="quizzes"] .quiz-library-purple-card {
  grid-template-columns: 74px minmax(0, 1fr) minmax(260px, 0.9fr);
}

.workspace-hub-band .workspace-action-medallion {
  grid-row: 1 / span 2;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 18px;
  transform: none;
}

body[data-page-key="quizzes"] .quiz-library-ops-card .workspace-action-medallion {
  grid-row: 1;
  align-self: start;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 18px;
  transform: none;
}

body[data-page-key="quizzes"] .quiz-question-sun {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0 22px 0 74px;
  color: #0b5a97;
  background: linear-gradient(145deg, rgba(226, 243, 255, 0.98) 0%, rgba(199, 228, 248, 0.98) 100%);
  box-shadow:
    0 10px 22px rgba(63, 129, 180, 0.14),
    inset -6px -6px 0 rgba(112, 169, 211, 0.12);
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
  text-indent: 18px;
  padding-bottom: 16px;
  transform: none;
}

.workspace-hub-band .workspace-action-medallion svg {
  width: 36px;
  height: 36px;
}

body[data-page-key="quizzes"] .quiz-library-ops-card .workspace-action-medallion svg {
  width: 36px;
  height: 36px;
}

body[data-page-key="quizzes"] .quiz-library-card-heading {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: grid;
  gap: 9px;
  padding-top: 4px;
  min-width: 0;
}

body[data-page-key="quizzes"] .quiz-library-card-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workspace-hub-band .workspace-dot-field {
  display: none;
}

body[data-page-key="quizzes"] .quiz-library-ops-card .workspace-dot-field {
  display: none;
}

.workspace-hub-band .workspace-action-card h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: clamp(1.16rem, 1.35vw, 1.38rem);
}

body[data-page-key="quizzes"] .quiz-library-ops-card h3 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.08rem, 1.25vw, 1.28rem);
  line-height: 1.12;
}

.workspace-hub-band .workspace-action-card p {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  width: min(100%, 230px);
  margin: 0;
  font-size: 0.9rem;
}

body[data-page-key="quizzes"] .quiz-library-ops-card p {
  width: 100%;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.34;
}

body[data-page-key="quizzes"] .quiz-library-ops-card .audience-summary {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

body[data-page-key="quizzes"] .quiz-library-take-button {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, #5f8ef4 0%, #3869dd 100%);
  box-shadow:
    0 14px 28px rgba(56, 105, 221, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

body[data-page-key="quizzes"] .quiz-library-take-button:hover,
body[data-page-key="quizzes"] .quiz-library-take-button:focus-visible {
  background: linear-gradient(145deg, #6798ff 0%, #3266dc 100%);
  box-shadow:
    0 18px 34px rgba(56, 105, 221, 0.3),
    0 0 0 7px rgba(56, 105, 221, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateX(-50%) translateY(-1px);
}

body[data-page-key="quizzes"] .quiz-library-take-button:focus-visible {
  outline: 3px solid rgba(56, 105, 221, 0.24);
  outline-offset: 4px;
}

body[data-page-key="quizzes"] .quiz-library-green-card .news-tag-training {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.13);
}

body[data-page-key="quizzes"] .quiz-library-green-card .quiz-question-sun {
  color: #0f766e;
  background: linear-gradient(145deg, rgba(213, 250, 244, 0.98) 0%, rgba(167, 233, 223, 0.98) 100%);
  box-shadow:
    0 10px 22px rgba(15, 118, 110, 0.14),
    inset -6px -6px 0 rgba(20, 184, 166, 0.14);
}

body[data-page-key="quizzes"] .quiz-library-green-card .quiz-library-take-button {
  background: linear-gradient(145deg, #14b8a6 0%, #0f766e 100%);
  box-shadow:
    0 14px 28px rgba(15, 118, 110, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body[data-page-key="quizzes"] .quiz-library-green-card .quiz-library-take-button:hover,
body[data-page-key="quizzes"] .quiz-library-green-card .quiz-library-take-button:focus-visible {
  background: linear-gradient(145deg, #1cc7b4 0%, #0d6b64 100%);
  box-shadow:
    0 18px 34px rgba(15, 118, 110, 0.28),
    0 0 0 7px rgba(15, 118, 110, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body[data-page-key="quizzes"] .quiz-library-green-card .quiz-library-take-button:focus-visible {
  outline-color: rgba(15, 118, 110, 0.24);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .news-tag-training {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-question-sun {
  color: #7c3aed;
  background: linear-gradient(145deg, rgba(242, 235, 255, 0.98) 0%, rgba(218, 203, 252, 0.98) 100%);
  box-shadow:
    0 10px 22px rgba(124, 58, 237, 0.13),
    inset -6px -6px 0 rgba(124, 58, 237, 0.12);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-take-button {
  background: linear-gradient(145deg, #9f67f5 0%, #7c3aed 100%);
  box-shadow:
    0 14px 28px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-take-button:hover,
body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-take-button:focus-visible {
  background: linear-gradient(145deg, #a975ff 0%, #7131df 100%);
  box-shadow:
    0 18px 34px rgba(124, 58, 237, 0.28),
    0 0 0 7px rgba(124, 58, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-take-button:focus-visible {
  outline-color: rgba(124, 58, 237, 0.24);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  grid-template-columns: repeat(7, auto);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions-left,
body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions-center,
body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions-right {
  display: contents;
}

body[data-page-key="quizzes"] .quiz-library-card-meta {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  display: grid;
  gap: 6px;
  max-width: 420px;
  padding-top: 8px;
  color: #465a78;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

body[data-page-key="quizzes"] .quiz-library-card-meta p {
  margin: 0;
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions .mini-link {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #071b38;
  font-size: 0.88rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.08);
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions .danger-link {
  color: #b91c1c;
}

body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions .quiz-library-take-button {
  position: static;
  transform: none;
  margin: 0;
}

body[data-page-key="quizzes"] .quiz-library-score-button {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #071b38;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.08);
}

body[data-page-key="quizzes"] .quiz-score-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

body[data-page-key="quizzes"] .quiz-library-score-panel {
  margin: -4px 0 20px;
}

body[data-page-key="quizzes"] .quiz-score-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 27, 56, 0.48);
  backdrop-filter: blur(6px);
}

body[data-page-key="quizzes"] .quiz-score-modal {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(218, 203, 252, 0.82);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(218, 203, 252, 0.4), transparent 34%),
    #ffffff;
  box-shadow: 0 28px 70px rgba(7, 27, 56, 0.24);
}

body[data-page-key="quizzes"] .quiz-score-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body[data-page-key="quizzes"] .quiz-score-modal-head h2 {
  margin: 8px 0 0;
  color: #071b38;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1.05;
}

body[data-page-key="quizzes"] .quiz-score-modal-body {
  display: grid;
  gap: 0;
}

body[data-page-key="quizzes"] .quiz-score-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

body[data-page-key="quizzes"] .quiz-score-panel-heading h3,
body[data-page-key="quizzes"] .quiz-score-panel-heading p,
body[data-page-key="quizzes"] .quiz-score-group h4,
body[data-page-key="quizzes"] .quiz-score-group p,
body[data-page-key="quizzes"] .quiz-score-group ul {
  margin: 0;
}

body[data-page-key="quizzes"] .quiz-score-panel-heading h3 {
  color: #071b38;
  font-size: 1.08rem;
  font-weight: 950;
}

body[data-page-key="quizzes"] .quiz-score-panel-heading p,
body[data-page-key="quizzes"] .quiz-score-group p {
  color: #526783;
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-page-key="quizzes"] .quiz-score-group {
  padding: 14px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

body[data-page-key="quizzes"] .quiz-score-group h4 {
  margin-bottom: 10px;
  color: #071b38;
  font-size: 0.96rem;
  font-weight: 950;
}

body[data-page-key="quizzes"] .quiz-score-group ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

body[data-page-key="quizzes"] .quiz-score-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.78);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 750;
}

body[data-page-key="quizzes"] .quiz-score-row strong {
  color: #071b38;
  font-weight: 950;
}

body[data-page-key="quizzes"] .quiz-score-row-muted {
  color: #64748b;
}

@media (max-width: 940px) {
  body[data-page-key="quizzes"] .quiz-library-ops-card {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  body[data-page-key="quizzes"] .quiz-library-card-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body[data-page-key="quizzes"] .quiz-library-card-copy {
    grid-row: 3;
  }

  body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions-left,
  body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions-center,
  body[data-page-key="quizzes"] .quiz-library-purple-card .quiz-library-card-actions-right {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  body[data-page-key="quizzes"] .quiz-score-panel-heading {
    flex-wrap: wrap;
  }

  body[data-page-key="quizzes"] .quiz-library-score-button {
    margin-left: 0;
  }

  body[data-page-key="quizzes"] .quiz-score-row {
    grid-template-columns: 1fr;
  }

  body[data-page-key="quizzes"] .quiz-score-modal {
    padding: 20px;
  }

  body[data-page-key="quizzes"] .quiz-score-modal-head {
    flex-direction: column;
  }

  body[data-page-key="quizzes"] .quiz-score-modal-head h2 {
    font-size: 1.55rem;
  }
}

.workspace-hub-band .workspace-action-arrow {
  grid-column: 1 / -1;
  grid-row: 3;
  left: 50%;
  bottom: 24px;
  align-self: end;
  justify-self: center;
  margin-top: 0;
  transform: translateX(-50%);
}

.workspace-action-card:hover .workspace-action-arrow,
.workspace-action-card:focus-visible .workspace-action-arrow {
  transform: translateX(-50%) translateY(-1px);
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.44), transparent 34%),
    linear-gradient(145deg, rgba(var(--workspace-card-accent-rgb), 1), rgba(var(--workspace-card-accent-rgb), 0.8));
  box-shadow:
    0 18px 34px rgba(var(--workspace-card-accent-rgb), 0.3),
    0 0 0 7px rgba(var(--workspace-card-accent-rgb), 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -8px 14px rgba(7, 27, 56, 0.12);
}

.workspace-hub-band .workspace-action-card:hover .workspace-action-arrow,
.workspace-hub-band .workspace-action-card:focus-visible .workspace-action-arrow {
  transform: translateX(-50%) translateY(-1px);
}

.fpa-card-grid .resource-card:hover,
.fpa-card-grid .resource-card:focus-within {
  transform: none;
  border-color: rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  box-shadow: none;
}

.fpa-card-grid {
  align-items: stretch;
}

.fpa-card-grid .resource-card.fpa-resource-card {
  min-height: 0;
  gap: 18px;
  justify-content: flex-start;
}

.fpa-card-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fpa-card-copy .resource-type,
.fpa-card-copy h3,
.fpa-card-copy p {
  margin: 0;
}

.fpa-card-grid .card-foot {
  margin-top: auto;
}

.fpa-card-grid .resource-actions.card-foot {
  align-items: flex-start;
}

.fpa-card-grid .logo-chip-wall.card-foot {
  gap: 12px;
  align-content: flex-end;
}

.fpa-card-grid .logo-chip.logo-card-chip {
  min-height: 48px;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 14px;
}

.fpa-card-grid .logo-chip.logo-wide.logo-card-chip {
  min-width: 146px;
}

.fpa-card-grid .logo-chip.logo-card-chip img {
  max-height: 30px;
  max-width: 124px;
}

.fpa-card-grid .logo-chip.logo-wide.logo-card-chip img {
  max-width: 152px;
}

.fpa-card-grid .resource-link.primary {
  min-width: 0;
}

.section-card h2,
.trade-card h2,
.resource-card h3,
.info-card h3,
.launch-card h3,
.hub-card h2,
.hub-card h3 {
  margin: 0 0 10px;
  color: #16263a;
}

.trade-card h2,
.hub-card h2 { font-size: 1.45rem; }

.section-card p,
.trade-card p,
.resource-card p,
.info-card p,
.launch-card p,
.hub-card p,
.frame-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-kicker,
.resource-type {
  margin: 0 0 10px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-kicker { color: #215f97; }
.resource-type { display: none; }

.check-list,
.next-list,
.resource-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #31465f;
  line-height: 1.7;
}

.callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 104, 173, 0.1), rgba(57, 123, 113, 0.1));
  border: 1px solid rgba(57, 123, 113, 0.16);
  color: #334558;
  line-height: 1.5;
  font-size: 0.95rem;
}

.section-band {
  padding: 24px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  backdrop-filter: blur(12px);
}

.training-cert-grid,
.training-filter-grid,
.training-hub-grid,
.training-module-grid,
.training-lesson-grid,
.training-mini-grid,
.training-compare-grid,
.training-quiz-grid {
  display: grid;
  gap: 16px;
}

.training-cert-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.training-hub-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  justify-content: stretch;
  align-items: center;
  gap: clamp(28px, 5vw, 82px);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.training-hub-band,
.workspace-hub-band {
  padding-block: clamp(34px, 5vw, 58px);
}

.workspace-hub-band {
  padding-top: clamp(16px, 1.8vw, 22px);
}

.training-filter-grid {
  grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(180px, 0.8fr));
  align-items: end;
  margin-top: 18px;
}

.training-module-grid,
.training-quiz-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-section-view .training-module-grid {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  justify-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: clamp(4px, 1.4vw, 12px);
}

.training-lesson-circle-grid {
  margin-top: clamp(20px, 3vw, 34px);
}

.training-lesson-grid,
.training-mini-grid,
.training-compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.training-module-card,
.training-quiz-card,
.training-path-card {
  min-height: 0;
}

.training-path-card {
  --training-progress: 0;
  --training-accent: #1f68ad;
  --training-accent-rgb: 31, 104, 173;
  --training-tint-a: rgba(31, 104, 173, 0.065);
  --training-tint-b: rgba(255, 255, 255, 0);
  position: relative;
  justify-self: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: clamp(28px, 3vw, 38px);
  border-radius: 50%;
  border: 0;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  background:
    conic-gradient(from 0deg, var(--training-accent) calc(var(--training-progress) * 1%), #dce8f5 0);
  box-shadow:
    0 24px 52px rgba(19, 34, 55, 0.12),
    inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.training-path-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.98), rgba(255,255,255,0.86) 36%, rgba(247,251,255,0.88) 62%, rgba(235,245,254,0.92)),
    linear-gradient(145deg, var(--training-tint-a), var(--training-tint-b) 62%),
    radial-gradient(circle at 50% 100%, rgba(var(--training-accent-rgb), 0.1), transparent 58%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.13),
    inset 0 18px 30px rgba(255, 255, 255, 0.72),
    inset 0 -22px 38px rgba(12, 28, 48, 0.045);
  pointer-events: none;
}

.training-card-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 5vw, 64px);
  height: clamp(42px, 5vw, 64px);
  margin-bottom: 10px;
  color: rgba(var(--training-accent-rgb), 0.66);
}

.training-card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.training-path-card:hover,
.training-path-card:focus-visible,
.training-path-card:focus-within {
  transform: translateY(-4px);
  background:
    conic-gradient(from 0deg, var(--training-accent) calc(var(--training-progress) * 1%), #dce8f5 0);
  box-shadow:
    0 30px 62px rgba(19, 34, 55, 0.16),
    0 12px 32px rgba(var(--training-accent-rgb), 0.08),
    inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.14);
}

.training-path-card.is-certified:hover,
.training-path-card.is-certified:focus-visible,
.training-path-card.is-certified:focus-within {
  transform: none;
  background:
    conic-gradient(from 0deg, var(--training-accent) calc(var(--training-progress) * 1%), #dce8f5 0);
  box-shadow:
    0 24px 52px rgba(19, 34, 55, 0.12),
    inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.09);
}

.training-path-card:focus-visible {
  outline: 3px solid rgba(31, 104, 173, 0.24);
  outline-offset: 6px;
}

.training-path-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #071b38;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  line-height: 1.05;
}

.training-path-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 190px;
  color: var(--training-accent);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.35;
}

.training-theme-battery,
.training-theme-smud {
  --training-accent: #f97316;
  --training-accent-rgb: 249, 115, 22;
  --training-tint-a: rgba(249, 115, 22, 0.17);
  --training-tint-b: rgba(255, 239, 220, 0.34);
}

.training-theme-solar {
  --training-accent: #f59e0b;
  --training-accent-rgb: 245, 158, 11;
  --training-tint-a: rgba(245, 158, 11, 0.18);
  --training-tint-b: rgba(255, 247, 214, 0.38);
}

.training-theme-windows {
  --training-accent: #14b8a6;
  --training-accent-rgb: 20, 184, 166;
  --training-tint-a: rgba(20, 184, 166, 0.16);
  --training-tint-b: rgba(224, 252, 249, 0.36);
}

.training-theme-hvac {
  --training-accent: #3b82f6;
  --training-accent-rgb: 59, 130, 246;
  --training-tint-a: rgba(59, 130, 246, 0.16);
  --training-tint-b: rgba(224, 241, 255, 0.36);
}

.training-theme-roofing {
  --training-accent: #475569;
  --training-accent-rgb: 71, 85, 105;
  --training-tint-a: rgba(71, 85, 105, 0.15);
  --training-tint-b: rgba(235, 239, 244, 0.38);
}

.training-theme-enterprise,
.training-theme-training,
.training-theme-general {
  --training-accent: #2563eb;
  --training-accent-rgb: 37, 99, 235;
  --training-tint-a: rgba(37, 99, 235, 0.095);
  --training-tint-b: rgba(235, 244, 255, 0.22);
}

.workspace-theme-lead,
.workspace-theme-contacts {
  --training-accent: #2563eb;
  --training-accent-rgb: 37, 99, 235;
  --training-tint-a: rgba(37, 99, 235, 0.15);
  --training-tint-b: rgba(229, 240, 255, 0.36);
  --workspace-card-tint-mid: #f8fbff;
  --workspace-card-tint-bottom: #eef4ff;
}

.workspace-theme-deal,
.workspace-theme-pipeline {
  --training-accent: #0f766e;
  --training-accent-rgb: 15, 118, 110;
  --training-tint-a: rgba(20, 184, 166, 0.15);
  --training-tint-b: rgba(225, 252, 247, 0.36);
  --workspace-card-tint-mid: #f7fdfc;
  --workspace-card-tint-bottom: #edf9f7;
}

.workspace-theme-review {
  --training-accent: #f59e0b;
  --training-accent-rgb: 245, 158, 11;
  --training-tint-a: rgba(245, 158, 11, 0.17);
  --training-tint-b: rgba(255, 247, 214, 0.38);
  --workspace-card-tint-mid: #fffaf2;
  --workspace-card-tint-bottom: #fff5e8;
}

.workspace-theme-followups {
  --training-accent: #7c3aed;
  --training-accent-rgb: 124, 58, 237;
  --training-tint-a: rgba(124, 58, 237, 0.13);
  --training-tint-b: rgba(242, 235, 255, 0.34);
  --workspace-card-tint-mid: #fbf8ff;
  --workspace-card-tint-bottom: #f5efff;
}

.training-category-card::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.98), rgba(255,255,255,0.82) 34%, rgba(250,253,255,0.86) 58%, rgba(238,247,255,0.9)),
    linear-gradient(145deg, rgba(var(--training-accent-rgb), 0.18), var(--training-tint-b) 66%),
    radial-gradient(circle at 50% 104%, rgba(var(--training-accent-rgb), 0.16), transparent 60%);
}

.training-path-card .resource-type {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-bottom: 8px;
  font-size: 0.68rem;
}

.training-update-card h3 {
  max-width: 190px;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

.training-lesson-circle h3 {
  max-width: 196px;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.workspace-path-card {
  width: min(100%, 240px);
  background:
    conic-gradient(from 0deg, rgba(var(--training-accent-rgb), 0.58), rgba(var(--training-accent-rgb), 0.22));
}

.workspace-path-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.workspace-path-card::before {
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.96), rgba(255,255,255,0.74) 34%, rgba(250,253,255,0.78) 58%, rgba(var(--training-accent-rgb), 0.16)),
    linear-gradient(145deg, rgba(var(--training-accent-rgb), 0.24), var(--training-tint-b) 66%),
    radial-gradient(circle at 50% 104%, rgba(var(--training-accent-rgb), 0.24), transparent 60%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.2),
    inset 0 18px 30px rgba(255, 255, 255, 0.64),
    inset 0 -22px 38px rgba(var(--training-accent-rgb), 0.08);
}

.training-lesson-focus {
  margin: 18px 0 26px;
}

.training-update-detail {
  margin-top: 24px;
}

.training-update-detail-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(19, 34, 55, 0.08);
}

.training-update-detail-card > p {
  max-width: 920px;
  color: #3f5068;
  line-height: 1.6;
  white-space: pre-wrap;
}

.training-certified-badge {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 72px);
  min-height: 28px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #071b38;
  background: linear-gradient(135deg, #ffe08a, #c98b1f);
  box-shadow: 0 10px 20px rgba(130, 84, 10, 0.18);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.training-path-card .resource-type,
.training-module-card .resource-type,
.training-quiz-card .resource-type,
.training-detail-view .resource-type {
  display: inline-flex;
  width: fit-content;
  color: #1f68ad;
}

.training-hero-card .hero-top-row {
  width: 100%;
  align-items: center;
}

.training-hero-copy {
  max-width: 680px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.35;
  font-size: 0.94rem;
}

.training-hero-status {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: min(330px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(2, 14, 32, 0.1);
}

.training-hero-status span,
.training-hero-status strong {
  display: block;
}

.training-hero-status span {
  color: #ffffff;
  font-weight: 900;
  font-size: 0.9rem;
}

.training-hero-status strong {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.25;
}

.training-badge-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #173c62, #1f68ad);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  font-size: 1.12rem;
  font-weight: 950;
}

.training-elite-crest {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.26));
}

.training-elite-crest[hidden] {
  display: none;
}

.training-hero-status.is-certified {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.training-hero-status.is-certified > div:not(.training-badge-mark) {
  display: none;
}

.training-hero-status.is-certified .training-elite-crest {
  width: 92px;
  height: 92px;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.32));
}

.training-hero-status.is-certified .training-badge-mark,
.training-hero-status.is-elite .training-badge-mark {
  display: none;
}

.training-hero-status.is-certified .training-badge-mark {
  color: #071b38;
  background: linear-gradient(135deg, #f4f7fb, #d8e3ee);
}

.training-hero-status.is-elite {
  border-color: rgba(235, 185, 74, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 222, 138, 0.2), rgba(255, 255, 255, 0.1)),
    rgba(7, 18, 32, 0.32);
}

.training-hero-status.is-elite .training-badge-mark {
  color: #071b38;
  background: linear-gradient(135deg, #ffe08a, #c98b1f);
}

.name-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  margin-left: 8px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}

.name-status-badge.certified {
  border: 1px solid rgba(117, 132, 151, 0.42);
  background: linear-gradient(135deg, rgba(231, 237, 245, 0.9), rgba(255, 255, 255, 0.52));
  color: #26384d;
}

.name-status-badge.elite {
  border: 1px solid rgba(214, 163, 50, 0.5);
  background: linear-gradient(135deg, rgba(255, 225, 145, 0.24), rgba(7, 27, 56, 0.06));
  color: #7a5200;
}

.name-status-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.command-home-elite-badge {
  margin-left: 6px;
  transform: translateY(-1px);
}

.name-status-badge.certified.leaderboard-certified-mark,
.name-status-badge.elite.leaderboard-elite-mark,
.name-status-badge.certified.command-home-certified-mark,
.name-status-badge.elite.command-home-elite-mark {
  width: 42px;
  height: 42px;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.name-status-badge.certified.leaderboard-certified-mark img,
.name-status-badge.elite.leaderboard-elite-mark img,
.name-status-badge.certified.command-home-certified-mark img,
.name-status-badge.elite.command-home-elite-mark img {
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: cover;
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.14));
}

.leaderboard-clean-person .name-status-badge,
.leaderboard-name-stack .name-status-badge,
.command-home-performer-name .name-status-badge {
  display: inline-flex;
  min-width: auto;
  overflow: visible;
  font-size: 0.62rem;
  white-space: nowrap;
}

.leaderboard-clean-person .name-status-badge img,
.leaderboard-name-stack .name-status-badge img,
.command-home-performer-name .name-status-badge img {
  flex: 0 0 auto;
}

.training-card-meta,
.training-detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #5d6d82;
  font-size: 0.92rem;
  font-weight: 800;
}

.training-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.status-not_started {
  color: #50627a;
  background: #edf3f9;
}

.status-in_progress {
  color: #8a5a00;
  background: #fff3d7;
}

.status-completed {
  color: #087448;
  background: #e8f7ef;
}

.status-certified {
  color: #0b4d7f;
  background: #e7f2ff;
}

.status-elite {
  color: #7a4d05;
  background: #fff3cc;
}

.training-progress-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #5d6d82;
  font-weight: 900;
}

.training-path-card .training-progress-summary {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.training-progress-summary strong {
  color: #071b38;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1;
}

.training-progress-summary span {
  color: #5d6d82;
  font-size: 0.9rem;
}

.training-progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0f7;
}

.training-path-card .training-progress-track {
  width: min(150px, 68%);
}

.training-path-card .resource-actions {
  width: auto;
  margin-top: 0;
  z-index: 1;
}

.training-path-card .resource-link {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.86rem;
}

.training-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f68ad, #4b92d8);
}

.training-stat-card,
.training-lesson-card,
.training-mini-card,
.training-compare-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 254, 0.96));
  box-shadow: 0 12px 28px rgba(19, 34, 55, 0.06);
}

.training-stat-card {
  display: grid;
  gap: 8px;
}

.training-stat-card span {
  color: #5d6d82;
  font-weight: 800;
}

.training-stat-card strong {
  color: #071b38;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
}

.training-cert-path {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 104, 173, 0.14);
  background: #edf5ff;
}

.training-section-view,
.training-updates-view {
  display: grid;
  gap: 20px;
}

.training-section-view {
  padding-block: 18px 18px;
}

.training-updates-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.training-detail-view {
  display: grid;
  gap: 20px;
}

.training-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.training-detail-head h2,
.training-detail-view > h3 {
  margin: 0;
  color: #071b38;
}

.training-detail-head p {
  margin: 8px 0 0;
  max-width: 760px;
}

.training-lesson-card,
.training-mini-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.training-lesson-card h3,
.training-mini-card h4 {
  margin: 0;
  color: #16263a;
}

.training-lesson-card p,
.training-mini-card p,
.training-compare-card p {
  margin: 0;
  color: #5b6c83;
  line-height: 1.55;
}

.training-note-box,
.training-script-box,
.training-warning-box {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 14px;
  line-height: 1.45;
}

.training-note-box {
  color: #0a4e80;
  background: #edf5ff;
  border: 1px solid rgba(31, 104, 173, 0.12);
}

.training-script-box {
  color: #07583e;
  background: #ecf8f1;
  border: 1px solid rgba(8, 116, 72, 0.12);
}

.training-warning-box {
  color: #8a2d2d;
  background: #fff0f0;
  border: 1px solid rgba(190, 65, 65, 0.14);
}

.training-note-box strong,
.training-script-box strong,
.training-warning-box strong {
  color: inherit;
}

.training-compare-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.training-compare-card.bad-answer {
  border-color: rgba(190, 65, 65, 0.18);
}

.training-compare-card.bad-answer span {
  color: #9f1f1f;
  background: #fff0f0;
}

.training-compare-card.better-answer {
  border-color: rgba(8, 116, 72, 0.18);
}

.training-compare-card.better-answer span {
  color: #087448;
  background: #e8f7ef;
}

.training-quiz-footer {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.training-quiz-panel:empty {
  display: none;
}

.training-quiz-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 104, 173, 0.12);
  background: #f7fbff;
}

.training-quiz-form h4,
.training-question legend {
  margin: 0;
  color: #071b38;
  font-weight: 900;
}

.training-question {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 14px;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: white;
}

.training-question label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 12px;
  color: #26394f;
  background: #f8fbff;
}

.training-question input {
  margin-top: 3px;
}

.training-quiz-facts {
  display: grid;
  gap: 8px;
  margin: 4px 0 10px;
  color: #5d6d82;
  font-weight: 800;
}

.section-band.dark {
  color: white;
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: var(--hero-min-height);
  padding: var(--hero-padding-block) var(--hero-padding-inline);
  border-radius: var(--hero-radius);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero.hero-home {
  min-height: var(--hero-home-min-height);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -50px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 68%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .band-head {
  width: 100%;
  align-items: center;
  margin-bottom: 0;
}

.hero .hub-actions {
  justify-content: flex-start;
}

.hero-centered {
  justify-content: center;
  text-align: center;
}

.hero-centered .hero-copy,
.hero-centered .cta-row {
  width: 100%;
  justify-content: center;
}

.section-band.dark h2,
.section-band.dark h3,
.section-band.dark p,
.section-band.dark .section-kicker,
.section-band.dark .stat-label,
.section-band.dark .stat-value {
  color: white;
}

.band-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.band-head h2,
.band-head h3 {
  margin: 0 0 8px;
  color: #16263a;
}

.band-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.platform-logo-heading {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.platform-logo-heading img {
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 46px;
  object-fit: contain;
}

.platform-logo-heading img[alt="OpenSolar"] {
  max-width: 260px;
}

.platform-logo-heading img[alt="Aurora"] {
  max-width: 230px;
}

.platform-logo-heading img[alt="GoodLeap"] {
  max-width: 250px;
  max-height: 52px;
}

.hub-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-banner {
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  color: white;
}

.hero-banner::after {
  display: none;
}

.hero-banner h2,
.hero-banner h3,
.hero-banner p,
.hero-banner .stat-label,
.hero-banner .stat-value {
  color: white;
}

.hero-copy {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 0;
}

.hero-copy h2,
.hero-copy p {
  margin: 0;
  max-width: 640px;
}

.hero-copy h2 {
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-action-row {
  margin-top: 10px;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  min-height: 56px;
}

.hero-logo {
  display: block;
  max-height: 58px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.dual-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}

.hub-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.page-hero-copy {
  margin: 7px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 650;
  line-height: 1.35;
}

.logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.logo-chip img {
  display: block;
  max-height: 36px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.logo-chip.logo-wide img {
  max-height: 36px;
  max-width: 180px;
}

.logo-wordmark-split {
  display: inline-grid;
  place-items: center;
}

.logo-wordmark-split > img {
  grid-area: 1 / 1;
}

.logo-wordmark-split .logo-word {
  filter: brightness(0) invert(1);
}

.logo-wordmark-opensolar .logo-mark {
  clip-path: inset(0 calc(100% - 40px) 0 0);
}

.logo-wordmark-opensolar .logo-word {
  clip-path: inset(0 0 0 40px);
}

.logo-wordmark-aurora .logo-mark {
  clip-path: inset(0 calc(100% - 42px) 0 0);
  filter: brightness(0) invert(1);
}

.logo-wordmark-aurora .logo-word {
  clip-path: inset(0 0 0 42px);
}

.logo-chip.logo-match img {
  max-height: 40px;
  max-width: 170px;
}

.logo-chip.logo-stretch img {
  max-height: 40px;
  max-width: 220px;
}

.logo-chip.logo-tight {
  min-width: 0;
  padding: 6px 8px;
}

.logo-chip:has(img[alt="Anlin"]) {
  padding-left: 16px;
  padding-right: 10px;
}

.logo-chip.logo-tight img {
  max-height: 40px;
  max-width: 240px;
}

.logo-chip img[alt="Anlin"] {
  max-height: 46px;
  max-width: 240px;
  transform: translateY(1px);
}

.logo-chip.logo-ava {
  min-width: 0;
  padding: 6px 8px;
}

.logo-chip.logo-ava img {
  max-height: 40px;
  max-width: 176px;
  transform: translateY(1px);
}

.logo-chip.logo-repcard img {
  max-height: 46px;
  max-width: 236px;
  transform: scale(1.18) translateY(1px);
  transform-origin: center;
}

.logo-chip.logo-timetree img {
  max-height: 44px;
  max-width: 220px;
  transform: scale(1.16) translate(-4px, 1px);
  transform-origin: center;
}

.logo-chip img[alt="Slack"] {
  max-height: 42px;
  transform: translateY(1px);
}

.logo-chip img[alt="OpenSolar"] {
  max-height: 32px;
  transform: translateY(1px);
}

.logo-chip img[alt="Aurora"] {
  max-height: 34px;
  transform: translateY(1px);
}

.logo-chip img[alt="EverBright"] {
  max-height: 33px;
  transform: translateY(1px);
}

.logo-chip img[alt="Concert Finance"] {
  max-height: 44px;
  max-width: 300px;
  transform: translateY(1px);
}

.logo-chip img[alt="SMUD"] {
  max-height: 40px;
}

.logo-chip:has(img[alt="Tetra"]) {
  min-width: 172px;
  padding: 8px 14px;
}

.logo-chip img[alt="Tetra"] {
  height: 40px;
  width: auto;
  max-height: none;
  max-width: none;
  transform: translateY(1px);
  transform-origin: center;
}

.logo-chip:has(img[alt="Sequoia"]) {
  min-width: 198px;
}

.logo-chip img[alt="Sequoia"] {
  max-height: 56px;
  mix-blend-mode: screen;
  transform: translateY(1px);
}

.logo-chip:has(img[alt="Sequoia"]):hover,
.logo-chip:has(img[alt="Sequoia"]):focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.solar-core-panel .solar-platform-card .logo-chip.logo-core-sequoia {
  min-width: 168px;
  width: auto;
  min-height: 52px;
  padding: 0;
  border-radius: 16px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: hidden;
}

.solar-core-panel .solar-platform-card .logo-chip.logo-core-sequoia img {
  max-height: 62px;
  max-width: 180px;
  mix-blend-mode: normal;
  transform: translateY(-4px);
}

.solar-core-panel .solar-platform-card .logo-chip.logo-core-sequoia:hover,
.solar-core-panel .solar-platform-card .logo-chip.logo-core-sequoia:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px) scale(1.02);
}

.logo-chip.logo-home-depot,
.logo-chip.logo-simonton,
.logo-chip.logo-andersen {
  min-width: 0;
  padding: 8px 10px;
}

.logo-chip.logo-home-depot img {
  max-height: 46px;
  max-width: 150px;
  transform: scale(1.42);
  transform-origin: center;
}

.logo-chip.logo-simonton,
.logo-chip.logo-andersen {
  background: rgba(255, 255, 255, 0.94);
}

.logo-chip.logo-simonton img {
  max-height: 42px;
  max-width: 220px;
  transform: scale(1.08);
  transform-origin: center;
}

.logo-chip.logo-andersen img {
  max-height: 40px;
  max-width: 220px;
}

.logo-chip.logo-chatgpt,
.logo-chip.logo-claude {
  min-width: 0;
  padding: 8px 12px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-chip.logo-chatgpt {
  padding: 8px 14px;
}

.logo-chip.logo-chatgpt img {
  max-height: 36px;
  max-width: 180px;
  filter: invert(1);
  transform: scale(1);
  transform-origin: center;
}

.logo-chip.logo-claude img {
  max-height: 36px;
  max-width: 180px;
  transform: scale(1);
  transform-origin: center;
}

.logo-chip:hover,
.logo-chip:focus-visible {
  background: linear-gradient(135deg, rgba(44, 104, 176, 0.34), rgba(86, 160, 232, 0.24));
  border-color: rgba(129, 205, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(168, 224, 255, 0.14), 0 14px 28px rgba(8, 24, 44, 0.34);
  transform: translateY(-2px) scale(1.02);
}

.hub-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.quick-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(34, 53, 72, 0.04);
  border: 1px solid rgba(34, 53, 72, 0.08);
}

.quick-card h3 {
  margin: 0 0 10px;
}

.quick-card p {
  margin: 0;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
  align-items: stretch;
}

.home-hero-single {
  position: relative;
  overflow: hidden;
  grid-template-columns: 1fr;
}

.home-hero-single > .home-spotlight {
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-spotlight {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), transparent 30%),
    linear-gradient(135deg, #121a24 0%, #25384d 52%, #1f68ad 100%);
  color: white;
  min-height: 420px;
}

.home-spotlight-full {
  min-height: 0;
}

.home-hero-single > .home-spotlight::before,
.home-hero-single > .home-spotlight::after {
  display: none;
}

.home-spotlight-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-hero-kicker {
  margin: 0;
  color: white;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 900;
  text-transform: uppercase;
}

.home-spotlight-centered h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
}

.home-spotlight-centered p {
  max-width: 760px;
}

.home-spotlight-centered .cta-row,
.home-spotlight-centered .hero-metrics {
  width: 100%;
}

.home-spotlight::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}

.home-spotlight::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,137,199,0.18), transparent 72%);
}

.home-spotlight > * {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-logo {
  display: block;
  max-width: min(460px, 100%);
  max-height: 110px;
  width: auto;
  height: auto;
  margin: 0 0 16px;
}

.home-spotlight h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-spotlight p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  font-size: 1.04rem;
}

.home-hero-actions {
  margin-top: 18px;
}

.home-welcome-hero {
  position: relative;
  overflow: hidden;
}

body[data-page-key="home"] .hero-search-anchor {
  display: none;
}

.home-welcome-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 22px;
  min-height: 0;
  padding: 26px 20px 16px;
}

.home-command-top {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding-right: 190px;
}

.home-hero-search-button {
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 3;
}

.home-welcome-card h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.45rem, 3.2vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.home-welcome-card p {
  margin: 0;
  max-width: 720px;
  color: rgba(255,255,255,0.86);
  line-height: 1.5;
  font-size: 1.02rem;
}

.home-command-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 199, 71, 0.12);
  border: 1px solid rgba(255, 199, 71, 0.18);
  color: #ffd058;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.home-utility-button,
.home-icon-button,
.home-profile-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(168, 224, 255, 0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.home-utility-button,
.home-icon-button {
  appearance: none;
  cursor: pointer;
}

.home-utility-button {
  gap: 10px;
  min-width: 158px;
  padding: 0 16px;
}

.home-utility-button svg,
.home-icon-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.home-icon-button {
  position: relative;
  width: 46px;
  padding: 0;
}

.home-icon-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ff4d57;
  color: white;
  font-size: 0.74rem;
  font-weight: 800;
}

.home-profile-chip {
  width: 52px;
  padding: 0;
  font-size: 1rem;
  font-weight: 800;
}

.home-goal-card {
  padding: 24px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(10,24,42,0.98), rgba(9,23,40,0.96));
  border: 1px solid rgba(126, 170, 226, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(128, 183, 255, 0.04);
}

.home-goal-card-hero {
  background:
    linear-gradient(180deg, rgba(10,24,42,0.92), rgba(7,18,33,0.96)),
    radial-gradient(circle at top right, rgba(84, 162, 255, 0.12), transparent 28%);
  width: 100%;
  max-width: none;
}

.home-goal-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 16px;
}

.home-goal-title .resource-type,
.home-goal-title h2 {
  grid-column: 2;
}

.home-goal-title .resource-type {
  display: inline-flex;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}

.goal-icon,
.metric-icon,
.card-heading-icon,
.focus-stat-icon,
.workflow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.goal-icon {
  grid-row: 1 / span 2;
  width: 62px;
  height: 62px;
}

.goal-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-goal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.home-goal-head h2 {
  margin: 4px 0 0;
  color: white;
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-goal-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: min(540px, 100%);
}

.home-goal-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.home-goal-metric strong,
.home-goal-metric span {
  grid-column: 2;
}

.metric-icon {
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
}

.metric-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.home-goal-metric strong {
  color: white;
  font-size: 1.1rem;
}

.home-goal-metric span {
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
  font-size: 0.9rem;
}

.goal-progress-track {
  height: 14px;
  margin-top: 18px;
  background: rgba(255,255,255,0.09);
}

.home-goal-foot {
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}

.home-goal-foot strong {
  color: #54a2ff;
}

.welcome-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-status-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-status-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.card-heading-icon {
  width: 24px;
  height: 24px;
  color: #2a62c9;
}

.card-heading-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.home-status-value {
  color: #16263a;
  font-size: clamp(1.95rem, 2.65vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.home-status-subvalue {
  color: #d63636;
  font-size: 0.95rem;
  font-weight: 700;
}

.home-status-callout {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,245,245,0.98), rgba(255,238,238,0.96));
  border: 1px solid rgba(214, 54, 54, 0.08);
}

.home-status-callout strong,
.home-status-callout-info strong {
  color: #16263a;
}

.home-status-callout span,
.home-status-callout-info span {
  color: var(--muted);
  line-height: 1.5;
}

.home-status-callout-info {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(241,247,255,0.98), rgba(232,241,255,0.96));
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.home-pipeline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-pipeline-row div {
  display: grid;
  gap: 4px;
}

.home-pipeline-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-pipeline-row strong {
  color: #16263a;
  font-size: 0.95rem;
}

.home-focus-card {
  justify-content: space-between;
}

.home-focus-copy {
  color: #11875f;
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 800;
}

.home-focus-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-focus-stat {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,246,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  text-align: center;
}

.home-focus-stat strong {
  color: #16263a;
  font-size: 1.3rem;
  line-height: 1;
}

.focus-stat-icon {
  width: 22px;
  height: 22px;
  color: #2a62c9;
}

.focus-stat-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.home-focus-stat span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.home-mini-updates {
  display: grid;
  gap: 12px;
}

.home-mini-update {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.home-mini-update:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.home-mini-update strong,
.home-mini-update p {
  margin: 0;
}

.home-mini-update p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.home-inline-link {
  color: #2d73d3;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.home-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
}

.home-training-list {
  display: grid;
  gap: 12px;
}

.home-training-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.home-training-item strong,
.home-training-item p {
  margin: 0;
}

.home-training-item p {
  margin-top: 4px;
  color: var(--muted);
}

.home-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-resource-grid .resource-link {
  width: 100%;
  justify-content: flex-start;
}

.home-leaderboard-list {
  display: grid;
  gap: 12px;
}

.home-leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.home-leaderboard-item strong {
  color: #16263a;
  min-width: 16px;
}

.home-leaderboard-item span {
  flex: 1;
  color: #16263a;
  font-weight: 700;
}

.home-leaderboard-item em {
  color: #1b8b54;
  font-style: normal;
  font-weight: 800;
}

.home-leaderboard-item-active {
  background: linear-gradient(180deg, rgba(236,244,255,0.98), rgba(227,238,255,0.96));
  border-color: rgba(31, 104, 173, 0.12);
}

.home-leaderboard-item-active em {
  color: #145bc8;
}

.home-leaderboard-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-panel-card {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.compact-head {
  margin-bottom: 14px;
}

.compact-head h2 {
  margin: 0;
}

.title-stack-list {
  display: grid;
  gap: 8px;
}

.title-stack-item {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 0;
  border: 1px solid rgba(27, 36, 48, 0.12);
  background: white;
  text-decoration: none;
  color: #16263a;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(19, 34, 55, 0.04);
}

.title-stack-item:hover,
.title-stack-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 104, 173, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.98));
}

.bottom-review-grid {
  align-items: stretch;
}

.month-review-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.deal-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(#1f68ad 0 50%, #dfe8f3 50% 100%);
  display: grid;
  place-items: center;
  margin-left: 12px;
}

.deal-ring-inner {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
}

.deal-ring-inner strong {
  color: #16263a;
  font-size: 1.2rem;
  line-height: 1;
}

.deal-ring-inner span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.month-review-copy {
  display: grid;
  gap: 10px;
}

.month-review-copy strong {
  color: #16263a;
  font-size: 1.05rem;
}

.month-review-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-notes-wrap {
  display: block;
}

.home-notes-wrap textarea {
  width: 100%;
  min-height: 190px;
  border-radius: 0;
  border: 1px solid rgba(27, 36, 48, 0.14);
  background: white;
  padding: 16px;
  font: inherit;
  color: var(--ink);
  resize: vertical;
}

.home-notes-wrap textarea:focus {
  outline: none;
  border-color: rgba(31, 104, 173, 0.32);
  box-shadow: 0 0 0 4px rgba(77, 137, 199, 0.12);
}

.home-trade-grid,
.home-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-trade-card {
  min-height: 0;
  padding: 24px;
}

.workflow-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 2px;
}

.workflow-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.workflow-icon-batteries {
  background: rgba(28, 154, 102, 0.1);
  color: #14935f;
}

.workflow-icon-solar {
  background: rgba(255, 170, 45, 0.14);
  color: #f29a1f;
}

.workflow-icon-windows {
  background: rgba(54, 118, 255, 0.1);
  color: #2664f6;
}

.workflow-icon-hvac {
  background: rgba(131, 79, 255, 0.1);
  color: #7c45ef;
}

.workflow-icon-roofing {
  background: rgba(255, 84, 84, 0.1);
  color: #ff4d57;
}

.home-trade-card .chooser-actions {
  margin-top: auto;
}

.home-command-copy {
  display: grid;
  gap: 10px;
}

.home-command-copy h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.35rem, 3.1vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.home-command-copy p {
  margin: 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.5;
  font-size: 1rem;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.dashboard-card-head,
.goal-bar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-card-head h3,
.goal-bar-head h2 {
  margin: 0;
  color: #16263a;
}

.goal-bar-head h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.resource-type-live {
  display: inline-flex;
  margin: 0 0 6px;
  color: rgba(255,255,255,0.78);
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.1);
  color: #215f97;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.dashboard-chip-warn {
  background: rgba(191, 90, 36, 0.12);
  color: #a24b20;
}

.dashboard-chip-good {
  background: rgba(7, 138, 88, 0.1);
  color: #08714b;
}

.goal-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.goal-meta-pill {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.goal-meta-pill strong {
  color: #16263a;
  font-size: 0.95rem;
}

.goal-meta-pill span {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(27, 36, 48, 0.08);
}

.goal-progress-track {
  height: 14px;
  background: rgba(255,255,255,0.09);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1f68ad, #4d89c7);
}

.progress-fill-soft {
  background: linear-gradient(135deg, #295d92, #78a8de);
}

.two-column-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-dashboard-stack,
.workflow-band,
.bottom-dashboard-band,
.slim-leaderboard-band {
  margin: 0 22px;
}

.home-dashboard-stack,
.workflow-band,
.bottom-dashboard-band,
.slim-leaderboard-band {
  border-color: rgba(255,255,255,0.1);
  background: transparent;
  box-shadow: none;
}

.goal-bar-card {
  border-color: rgba(126, 170, 226, 0.2);
  background: linear-gradient(180deg, rgba(10,24,42,0.98), rgba(9,23,40,0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 1px rgba(128, 183, 255, 0.04);
}

.goal-bar-card h2,
.goal-bar-card strong,
.goal-bar-card .dashboard-chip {
  color: white;
}

.goal-bar-card .dashboard-chip {
  background: rgba(255,255,255,0.08);
}

.goal-meta-pill {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.goal-meta-pill strong,
.goal-meta-pill span {
  color: white;
}

.goal-meta-pill span {
  color: rgba(255,255,255,0.72);
}

.goal-meta-pill-icon {
  position: relative;
  padding-left: 48px;
}

.goal-meta-pill-icon::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(145, 191, 255, 0.72);
  transform: translateY(-50%);
}

.goal-foot-note {
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}

.goal-foot-note strong {
  color: #54a2ff;
}

.dashboard-subvalue {
  color: #16263a;
  font-size: 0.98rem;
  font-weight: 800;
}

.status-callout {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(248, 250, 253, 0.92);
}

.status-callout strong {
  color: #16263a;
}

.status-callout span {
  color: var(--muted);
  line-height: 1.5;
}

.status-callout-warn {
  background: linear-gradient(180deg, rgba(255,245,245,0.98), rgba(255,239,239,0.95));
  border-color: rgba(188, 52, 52, 0.12);
}

.status-callout-warn strong {
  color: #c33d3d;
}

.status-callout-blue {
  background: linear-gradient(180deg, rgba(241,247,255,0.98), rgba(233,242,255,0.95));
  border-color: rgba(31, 104, 173, 0.12);
}

.status-callout-blue strong {
  color: #1f68ad;
}

.pipeline-line {
  position: relative;
  height: 26px;
}

.pipeline-line-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f68ad 0%, #3c7fe0 72%, rgba(27, 36, 48, 0.12) 72%);
}

.pipeline-line-dot {
  position: absolute;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1f68ad;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(17, 71, 126, 0.18);
}

.pipeline-dot-booked { left: 0; }
.pipeline-dot-pending { left: 47%; }
.pipeline-dot-closed { right: 27%; }

.pipeline-mini-scale {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pipeline-mini-scale div {
  display: grid;
  gap: 4px;
}

.pipeline-mini-scale span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pipeline-mini-scale strong {
  color: #16263a;
  font-size: 0.95rem;
}

.dashboard-primary-value {
  color: #16263a;
  font-size: clamp(1.7rem, 2.2vw, 2.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 900;
  max-width: 360px;
}

.dashboard-metric-list {
  display: grid;
  gap: 10px;
}

.dashboard-metric-list div {
  display: grid;
  gap: 4px;
}

.dashboard-metric-list strong {
  color: #16263a;
  font-size: 0.98rem;
}

.dashboard-metric-list span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.primary-focus-card {
  justify-content: space-between;
}

.focus-primary-copy strong {
  color: #145bc8;
  font-size: 1.8rem;
  line-height: 1.3;
}

.focus-stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.focus-stat {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,246,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.focus-stat strong {
  color: #16263a;
  font-size: 1.3rem;
  line-height: 1;
}

.focus-stat span {
  color: #5e7188;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.news-panel-card {
  gap: 16px;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-list-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.news-list-item:last-child {
  border-bottom: 0;
}

.news-inline-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-list-item strong,
.news-list-item p {
  margin: 0;
}

.news-list-item p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.news-tag-urgent {
  background: rgba(188, 52, 52, 0.12);
  color: #a32828;
}

.news-tag-important {
  background: rgba(205, 138, 45, 0.14);
  color: #9b6218;
}

.news-tag-training {
  background: rgba(31, 104, 173, 0.1);
  color: #215f97;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.workflow-grid-clean .workflow-card {
  min-height: 200px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 22px 18px;
}

.workflow-card p {
  color: var(--muted);
  line-height: 1.55;
  max-width: 180px;
}

.workflow-icon {
  color: #1f68ad;
  font-size: 2rem;
  line-height: 1;
}

.workflow-button {
  min-width: 140px;
  box-shadow: none;
}

.workflow-button-batteries {
  background: linear-gradient(135deg, #bfead8, #9bdcbc);
  color: #116b48;
}

.workflow-button-solar {
  background: linear-gradient(135deg, #ffe4b8, #ffd395);
  color: #ba6b00;
}

.workflow-button-windows {
  background: linear-gradient(135deg, #dceaff, #bdd7ff);
  color: #145bc8;
}

.workflow-button-hvac {
  background: linear-gradient(135deg, #eadcff, #dac5ff);
  color: #6f27d6;
}

.workflow-button-roofing {
  background: linear-gradient(135deg, #ffd0d0, #ffb4b4);
  color: #d63e3e;
}

.workflow-button:hover,
.workflow-button:focus-visible {
  filter: brightness(1.02);
}

.bottom-ops-grid {
  align-items: start;
}

.training-list {
  display: grid;
  gap: 12px;
}

.training-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.training-list-item strong,
.training-list-item p {
  margin: 0;
}

.training-list-item p {
  margin-top: 4px;
  color: var(--muted);
}

.resource-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-button-grid .resource-link {
  width: 100%;
  justify-content: flex-start;
}

.bottom-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
}

.leaderboard-panel-card {
  gap: 14px;
}

.leaderboard-summary-grid {
  margin: 0 0 8px;
}

.leaderboard-list {
  display: grid;
  gap: 12px;
}

.leaderboard-list-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.leaderboard-list-item strong {
  color: #16263a;
  min-width: 16px;
}

.leaderboard-list-item span {
  color: #16263a;
  font-weight: 700;
}

.leaderboard-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.leaderboard-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #006f75, #05aeb3);
  color: white;
  font-weight: 900;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  padding: 0;
  font: inherit;
}

button.leaderboard-avatar,
button.command-home-performer-avatar,
button.training-update-read-avatar {
  cursor: pointer;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leaderboard-avatar-large {
  width: 64px;
  height: 64px;
  font-size: 1.35rem;
}

.leaderboard-name-stack {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-name-stack span,
.leaderboard-name-stack small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-name-stack small {
  color: #667487;
  font-size: 0.82rem;
}

.leaderboard-name-stack span small {
  display: inline;
  margin-left: 8px;
  color: #215f97;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-list-item em {
  color: #1b8b54;
  font-style: normal;
  font-weight: 800;
}

.leaderboard-list-item-active {
  background: linear-gradient(180deg, rgba(236,244,255,0.98), rgba(227,238,255,0.96));
  border-color: rgba(31, 104, 173, 0.12);
}

.leaderboard-list-item-active em {
  color: #145bc8;
}

.leaderboard-foot-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.leaderboard-profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
}

.leaderboard-profile-copy {
  display: grid;
  gap: 4px;
}

.leaderboard-profile-copy strong,
.leaderboard-profile-copy span {
  margin: 0;
}

.leaderboard-profile-copy span {
  color: #667487;
  font-size: 0.9rem;
}

.home-wide-button {
  width: 100%;
}

.home-inline-link {
  min-height: 34px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #145bc8;
  font-weight: 800;
}

.home-inline-link:hover,
.home-inline-link:focus-visible {
  background: transparent;
}

.training-theme-updates {
  --training-accent: #00979d;
  --training-accent-rgb: 0, 151, 157;
  --training-tint-a: rgba(0, 151, 157, 0.12);
  --training-tint-b: rgba(235, 250, 250, 0.72);
}

.home-dashboard-nav-link,
.home-dashboard-nav-link:visited {
  color: #008c95;
}

.home-dashboard-nav-link:hover,
.home-dashboard-nav-link:focus-visible {
  color: #006f76;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-side {
  display: grid;
  gap: 18px;
}

.home-note {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  min-height: 200px;
}

.home-note h3 {
  margin: 0 0 10px;
}

.trade-chooser {
  margin-top: 22px;
}

.chooser-head {
  margin-bottom: 16px;
}

.chooser-head h2 {
  margin: 0 0 8px;
}

.chooser-head p {
  margin: 0;
  color: var(--muted);
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chooser-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(242,247,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.chooser-card.priority {
  background: linear-gradient(135deg, #f3f8fe 0%, #e8f0fa 100%);
}

.chooser-card h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.chooser-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.chooser-meta {
  margin: 14px 0 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #215f97;
}

.chooser-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.split-callout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mini-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(34, 53, 72, 0.08);
  box-shadow: var(--section-shadow);
}

.mini-panel h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.mini-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.aro-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(135deg, #121a24 0%, #25384d 58%, #1f68ad 100%);
  color: white;
}

.aro-card::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
}

.aro-card p,
.aro-card h2,
.aro-card .section-kicker {
  color: white;
}

.aro-logo {
  max-height: 74px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.hero-metrics,
.trade-rail,
.insight-grid {
  display: grid;
  gap: 14px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.metric-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

.metric-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
}

.metric-value {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.trade-rail {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rail-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  min-height: 180px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.rail-card.priority {
  background: linear-gradient(135deg, #eff6ff, #dceaf9);
}

.rail-card:hover,
.rail-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(31, 104, 173, 0.24);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.98));
  box-shadow: 0 22px 40px rgba(19, 34, 55, 0.12), 0 0 0 1px rgba(129, 205, 255, 0.18);
}

.rail-card.priority:hover,
.rail-card.priority:focus-within {
  background: linear-gradient(135deg, #f4f9ff, #e2eefb);
}

.rail-card h3,
.rail-card p {
  margin: 0;
}

.trade-rail .chooser-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
  width: 100%;
}

.trade-rail .chooser-actions .resource-link {
  width: 100%;
}

.rail-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #215f97;
}

.insight-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.command-strip.hero-only {
  grid-template-columns: 1fr;
}

.command-strip > * {
  height: 100%;
}

.signal-list {
  display: grid;
  gap: 12px;
}

.signal-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.signal-item h3,
.signal-item p {
  margin: 0;
}

.signal-item p {
  margin-top: 6px;
  color: var(--muted);
}

.stacked-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stacked-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 170px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: var(--section-shadow);
}

.stacked-link strong,
.stacked-link span {
  display: block;
}

.stacked-link > div {
  display: grid;
  gap: 4px;
}

.stacked-link span {
  margin-top: 4px;
  color: var(--muted);
}

.stacked-link > strong:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 26px rgba(200, 138, 45, 0.24);
}

.stacked-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--section-shadow);
}

.finance-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.finance-option-grid-stacked {
  grid-template-columns: 1fr;
}

.finance-option-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(242,247,252,0.97));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 18px 36px rgba(19, 34, 55, 0.08);
  display: grid;
  gap: 18px;
}

.finance-option-head h3 {
  margin-bottom: 8px;
}

.finance-option-head p {
  margin: 0;
}

.finance-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.finance-detail-grid.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-detail-grid .resource-card {
  min-height: 0;
}

.logo-wall {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo-chip-wall {
  padding: 6px 0 0;
}

.logo-chip.logo-card-chip {
  min-height: 54px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-chip.logo-card-chip:hover,
.logo-chip.logo-card-chip:focus-visible {
  background: linear-gradient(135deg, rgba(44, 104, 176, 0.12), rgba(86, 160, 232, 0.09));
  border-color: rgba(129, 205, 255, 0.3);
  box-shadow: inset 0 0 0 1px rgba(168, 224, 255, 0.06), 0 8px 16px rgba(8, 24, 44, 0.12);
}

.logo-chip-wall-dark {
  padding: 10px 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 28px rgba(16, 38, 62, 0.12);
}

.logo-chip-wall-dark .logo-chip.logo-card-chip {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.logo-pill {
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(19, 34, 55, 0.06);
}

.logo-pill img {
  display: block;
  max-height: 34px;
  max-width: 160px;
  width: auto;
  height: auto;
}

.logo-pill.logo-pill-wide img {
  max-width: 200px;
}

.text-logo-badge {
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  color: #1f4f8c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(19, 34, 55, 0.06);
}

.compact-card-grid {
  gap: 14px;
}

.compact-card-grid .resource-card {
  padding: 22px 20px;
  gap: 10px;
}

.compact-card-grid .resource-card p {
  font-size: 1rem;
}

.compact-card-grid .logo-wall {
  gap: 10px;
}

.compact-card-grid .logo-pill,
.compact-card-grid .text-logo-badge {
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 16px;
}

.compact-card-grid .logo-pill img {
  max-height: 28px;
  max-width: 140px;
}

.compact-card-grid .logo-pill.logo-pill-wide img {
  max-width: 180px;
}

.adder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.travel-tool-grid {
  display: block;
}

.travel-tool-form {
  display: grid;
  gap: 16px;
  align-content: start;
}

.homeowner-card {
  max-width: none;
  grid-template-columns: minmax(250px, 0.9fr) minmax(300px, 1.08fr) minmax(420px, 1.55fr);
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.94)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.06), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 16px 30px rgba(16, 38, 62, 0.06);
}

.homeowner-card .field-stack {
  gap: 8px;
}

.homeowner-card .adder-control-row {
  grid-template-columns: auto minmax(220px, 250px);
  align-self: end;
}

.payment-adder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1.28fr);
  gap: 20px;
  align-items: start;
}

.payment-adder-list-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(24, 44, 68, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.96)),
    radial-gradient(circle at top left, rgba(31, 104, 173, 0.07), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 18px 30px rgba(16, 38, 62, 0.06);
}

.payment-adder-list-head {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 44, 68, 0.08);
}

.payment-adder-list-head h3,
.payment-adder-list-head p {
  margin: 0;
}

.travel-route-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.travel-miles-input {
  min-height: 48px;
}

.travel-adder-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(24, 44, 68, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.96)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 20px 34px rgba(16, 38, 62, 0.08);
}

.travel-adder-header {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 44, 68, 0.08);
}

.travel-adder-title {
  color: #17314b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.travel-adder-options {
  display: grid;
  gap: 12px;
}

.travel-tier-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: #17314b;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(24, 44, 68, 0.08);
  background: rgba(255,255,255,0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

.travel-tier-option input {
  margin: 0;
}

.travel-tier-option strong {
  font-size: 0.98rem;
  font-weight: 400;
}

.travel-tier-option.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(238, 246, 255, 1));
  border-color: rgba(17, 71, 126, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 12px 24px rgba(17, 71, 126, 0.1);
  transform: translateY(-1px);
}

.travel-tier-option.is-active span,
.travel-tier-option.is-active strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.adder-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,254,0.94)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.05), transparent 34%);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 16px 34px rgba(19, 34, 55, 0.07);
}

.adder-panel-head {
  display: grid;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(27, 36, 48, 0.08);
}

.adder-panel-head h3 {
  margin: 0;
  color: #17314b;
  font-size: 1.08rem;
}

.adder-panel-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.field-stack {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: #26415d;
}

.field-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(39, 66, 96, 0.18);
  background: rgba(255,255,255,0.96);
  color: var(--ink);
}

.field-input-readonly {
  display: flex;
  align-items: center;
  color: #17314b;
  font-weight: 700;
}

.redline-display {
  justify-content: center;
  color: #0b2444;
  background: rgba(235, 243, 251, 0.92);
  border-color: rgba(39, 66, 96, 0.14);
}

.field-input:focus {
  outline: none;
  border-color: rgba(31, 104, 173, 0.5);
  box-shadow: 0 0 0 4px rgba(31, 104, 173, 0.12);
}

.adder-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.adder-control-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.adder-route-action {
  display: grid;
}

.adder-select {
  appearance: none;
}

.adder-actions .resource-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.58;
}

.adder-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(27, 36, 48, 0.08);
  color: #506277;
  font-size: 0.93rem;
  line-height: 1.55;
}

.adder-panel-results {
  align-content: start;
}

.adder-status-wrap {
  display: flex;
}

.adder-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(31, 104, 173, 0.1);
  border: 1px solid rgba(31, 104, 173, 0.12);
  color: #1f68ad;
  font-weight: 800;
}

.adder-status.alert {
  background: rgba(189, 78, 38, 0.12);
  color: #b44924;
}

.adder-status.success {
  background: rgba(56, 124, 89, 0.12);
  color: #2e6d4b;
}

.adder-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.adder-stat {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.adder-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #567089;
}

.adder-stat strong {
  font-size: 1rem;
  color: #1d2a3a;
}

.adder-thresholds,
.adder-checklist {
  display: grid;
  gap: 10px;
}

.adder-tier,
.adder-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(27, 36, 48, 0.07);
}

.adder-tier span {
  color: var(--muted);
}

.adder-check {
  color: #456078;
  font-weight: 700;
}

.adder-check.complete {
  background: rgba(56, 124, 89, 0.1);
  border-color: rgba(56, 124, 89, 0.18);
  color: #2e6d4b;
}

.adder-check-toggle {
  justify-content: flex-start;
  cursor: pointer;
}

.adder-check-toggle input {
  accent-color: #1f68ad;
}

.route-link {
  min-height: 48px;
}

#solar-manual-check {
  min-width: 150px;
}

.adder-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.adder-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,252,0.95)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.05), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.86),
    0 14px 28px rgba(16, 38, 62, 0.05);
}

.adder-summary-card {
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,252,0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 10px 20px rgba(16, 38, 62, 0.05);
}

.adder-summary-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #55718a;
}

.adder-summary-card strong {
  font-size: 1.34rem;
  color: #16263a;
}

.adder-summary-card:last-child {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(236, 245, 255, 0.98));
  border-color: rgba(31, 104, 173, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 14px 28px rgba(17, 71, 126, 0.08);
}

.adder-selection-panel {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,248,252,0.92));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.84),
    0 12px 22px rgba(16, 38, 62, 0.04);
}

.adder-selection-panel h3 {
  margin: 0;
}

.adder-sheet-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(247, 250, 253, 0.94);
}

.adder-sheet-status {
  color: var(--muted);
  font-weight: 600;
  margin-left: auto;
  padding-left: 4px;
}

.saved-sheet-list {
  display: grid;
  gap: 10px;
}

.saved-sheet-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.saved-sheet-card-active {
  border-color: rgba(31, 104, 173, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(236,245,255,0.95));
}

.saved-sheet-card strong,
.saved-sheet-card span {
  display: block;
}

.saved-sheet-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.saved-sheet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-link-danger {
  color: #8d2e2e;
  border-color: rgba(141, 46, 46, 0.18);
  background: rgba(255, 247, 247, 0.96);
}

#solar-open-sheet-picker[aria-disabled="true"] {
  opacity: 0.62;
  box-shadow: none;
}

.sheet-picker-modal[hidden] {
  display: none !important;
}

.sheet-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sheet-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 25, 39, 0.44);
  backdrop-filter: blur(6px);
}

.sheet-picker-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(72vh, 680px);
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.99), rgba(245,248,252,0.97)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.07), transparent 30%);
  box-shadow: 0 28px 60px rgba(16, 38, 62, 0.22);
}

.sheet-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  flex-shrink: 0;
}

.sheet-picker-head h3,
.sheet-picker-head p {
  margin: 0;
}

.sheet-picker-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
}

.adder-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.adder-selection-pill,
.adder-selection-empty {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(31, 104, 173, 0.12);
  color: #244761;
  font-weight: 700;
}

.adder-selection-empty {
  color: var(--muted);
  background: rgba(255,255,255,0.72);
}

.adder-item {
  gap: 14px;
}

.adder-item.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 0.98));
  border-color: rgba(17, 71, 126, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 8px 18px rgba(17, 71, 126, 0.06);
  transform: translateY(-1px);
}

.adder-item.is-active .adder-row-text {
  color: #17314b;
  font-weight: 700;
}

.adder-list {
  display: grid;
  gap: 8px;
}

.adder-list-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}

.adder-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.adder-group-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 12px 28px rgba(19, 34, 55, 0.04);
}

.adder-group-card-wide {
  grid-column: 1 / -1;
}

.adder-group-head h3 {
  margin: 0 0 6px;
  color: #17314b;
}

.adder-group-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.adder-list-section {
  display: grid;
  gap: 4px;
  margin: 10px 0 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 36, 48, 0.1);
}

.adder-list-section h4,
.adder-list-section p {
  margin: 0;
}

.adder-list-section h4 {
  color: #17314b;
  font-size: 1.02rem;
}

.adder-list-section p {
  color: var(--muted);
  line-height: 1.45;
}

.adder-group-card.is-selected {
  border-color: rgba(17, 71, 126, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.98)),
    radial-gradient(circle at top right, rgba(31, 104, 173, 0.08), transparent 36%);
  box-shadow: 0 18px 34px rgba(19, 55, 93, 0.1);
}

.adder-group-card.is-muted {
  opacity: 0.7;
}

.adder-section-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(31, 104, 173, 0.12);
}

.adder-section-meta-stack {
  gap: 12px;
  align-items: stretch;
}

.adder-section-metric {
  display: grid;
  gap: 4px;
}

.adder-section-label {
  color: #4b647b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.adder-section-value {
  color: #17314b;
  font-size: 0.98rem;
  font-weight: 700;
}

.adder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(27, 36, 48, 0.06);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.adder-row-inline {
  justify-content: space-between;
  gap: 16px;
}

.adder-inline-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 112px;
}

.adder-row-check {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  cursor: pointer;
}

.adder-row-text {
  color: #1d2a3a;
  font-size: 1rem;
  line-height: 1.35;
}

.adder-row-auto {
  justify-content: space-between;
}

.adder-auto-value {
  color: #17314b;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.travel-adder-card .adder-row-auto {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 44, 68, 0.08);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.travel-adder-card .adder-row-auto.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(237, 245, 255, 1));
  border-color: rgba(17, 71, 126, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 12px 24px rgba(17, 71, 126, 0.09);
}

.adder-group-card .adder-item.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(243, 248, 255, 1));
  border-color: rgba(17, 71, 126, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 22px rgba(17, 71, 126, 0.1);
  transform: translateY(-1px);
}

.adder-group-card .adder-item.is-active .adder-row-text {
  color: #17314b;
  font-weight: 800;
}

.adder-item-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.adder-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(31, 104, 173, 0.12);
  color: #264764;
  font-weight: 700;
  cursor: pointer;
}

.adder-check-input {
  accent-color: #1f68ad;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.adder-qty {
  width: 120px;
  min-width: 120px;
  min-height: 40px;
}

.adder-cost-output {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.adder-cost-output {
  min-width: 112px;
  background: #ffffff;
  border: 1px solid rgba(27, 36, 48, 0.12);
  color: #17314b;
  font-weight: 800;
}

.adder-item.is-disabled {
  opacity: 0.45;
}

.adder-item.is-disabled .adder-row-check {
  cursor: not-allowed;
}

.adder-rate {
  color: #1d2f46;
  font-size: 0.96rem;
  font-weight: 800;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.check-grid.single,
.docs-grid {
  grid-template-columns: 1fr;
}

.check-card,
.warranty-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.check-title {
  font-weight: 800;
  color: #1d2a3a;
}

.check-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.check-card label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #31465f;
  font-weight: 600;
}

.check-card input[type="checkbox"] {
  accent-color: #1f68ad;
}

.logo-wordmark {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: white;
  min-width: 120px;
}

.logo-tesla-text,
.logo-tesla-image {
  min-width: 0;
  padding: 6px 10px;
  text-decoration: none;
}

.logo-tesla-image img {
  max-height: 24px;
  max-width: 176px;
}

.logo-wordmark-tesla {
  min-width: 0;
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  font-weight: 800;
  line-height: 1;
}

.logo-tesla-text:hover,
.logo-tesla-text:focus-visible,
.logo-tesla-text .logo-wordmark-tesla,
.logo-tesla-image:hover,
.logo-tesla-image:focus-visible {
  text-decoration: none;
}

.warranty-logo {
  justify-self: start;
}

.route-link {
  gap: 10px;
}

.route-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.page-top-card,
.page-side-card {
  min-height: 132px;
  height: auto;
}

.page-top-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 20px 190px 20px 24px;
}

.hero.hero-col {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 14px;
}

.page-top-card .hero-right {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  z-index: 3;
}

.hero-banner.page-top-card .hero-search-anchor,
.page-top-card > .hero-top-row > .hero-search-anchor,
.page-top-card > .hero-search-anchor {
  position: absolute !important;
  top: 16px !important;
  right: 20px !important;
  z-index: 3;
}

.page-top-card .hero-right .hero-search-anchor {
  position: static !important;
}

.command-strip.hero-only .page-top-card {
  min-height: 132px;
  height: auto;
}

.page-top-card .hero-action-row {
  margin-top: auto;
}

.page-side-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.page-side-card > .card-copy {
  display: grid;
  gap: 10px;
}

.page-side-card .resource-list {
  margin-top: 8px;
  line-height: 1.5;
}

.page-side-card h3 {
  margin-bottom: 4px;
}

.stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(31, 104, 173, 0.08);
  border: 1px solid rgba(34, 53, 72, 0.08);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b6887;
}

.stat-value {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 900;
  color: #223548;
}

.frame-page {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.frame-wrap { padding: 18px 22px 26px; }

.frame-page .shell-header {
  margin: 0;
}

.frame-page .shell-nav {
  margin-top: 18px;
  flex-direction: column;
  align-items: stretch;
}

.frame-page .shell-nav .nav-link {
  width: 100%;
}

.frame-wrap.wide {
  padding: 12px;
}

.frame-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-wrap.wide .frame-card {
  border-radius: 28px;
}

.frame-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(242,247,252,0.96));
  border-bottom: 1px solid rgba(19, 32, 51, 0.08);
}

.frame-head h2 { margin: 0 0 6px; font-size: 1.6rem; }
.frame-head p { margin: 0; color: var(--muted); }

.portal-frame {
  width: 100%;
  height: calc(100vh - 242px);
  border: 0;
  display: block;
  background: white;
}

.frame-note {
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(19, 32, 51, 0.06);
  background: rgba(242,247,252,0.92);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field span {
  font-weight: 700;
  color: #223548;
}

.auth-hint {
  color: #667487;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.14);
  background: white;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
}

.auth-field textarea {
  min-height: 132px;
  padding: 12px 14px;
  resize: vertical;
}

body[data-auth-page="login"] {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 48%, rgba(191, 219, 254, 0.82), transparent 31%),
    radial-gradient(circle at 82% 14%, rgba(219, 234, 254, 0.72), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(147, 197, 253, 0.24), transparent 34%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 48%, #edf4fb 100%);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 36vw) minmax(0, 1fr);
}

.login-brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(3, 12, 30, 0.38), rgba(3, 12, 30, 0.08)),
    url("../assets/login-left-hero.png") center / cover no-repeat,
    linear-gradient(155deg, #06122a 0%, #071f43 48%, #0b3d83 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(180deg, rgba(2, 8, 23, 0.28), rgba(2, 8, 23, 0.06) 48%, rgba(2, 8, 23, 0.18)),
    radial-gradient(circle at 18% 30%, rgba(2, 8, 23, 0.28), transparent 42%);
  pointer-events: none;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background:
    radial-gradient(ellipse at 52% 100%, rgba(56, 189, 248, 0.18), transparent 58%),
    linear-gradient(180deg, transparent, rgba(2, 8, 23, 0.1));
  pointer-events: none;
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: clamp(28px, 4.2vw, 58px);
  width: min(100%, 560px);
  padding: clamp(34px, 5vw, 72px);
  transform: translateY(clamp(-34px, -2.8vh, -20px));
}

.login-brand-panel .brand-mark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
}

.login-brand-panel .brand-mark img {
  height: clamp(88px, 7vw, 116px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.28));
}

.login-brand-copy h1 {
  max-width: 430px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.72rem, 4.45vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.login-brand-copy,
.login-feature-list {
  transform: translateY(clamp(24px, 4vh, 38px));
}

.login-brand-copy h1 span {
  color: #38a3ff;
}

.login-brand-copy p {
  max-width: 390px;
  margin: 16px 0 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.login-feature-list {
  display: grid;
  gap: 16px;
  max-width: 390px;
}

.login-feature-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.login-feature-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.login-feature-icon,
.login-lock-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 20px;
}

.login-feature-icon {
  width: 58px;
  height: 58px;
  color: #ffffff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, #0f4fb8, #0d70c8);
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-feature-icon-teal {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #0e6a93, #0a8d9a);
  box-shadow:
    0 16px 30px rgba(8, 145, 178, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-feature-icon-cyan {
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #0b6f8e, #0d8ca0);
  box-shadow:
    0 16px 30px rgba(8, 145, 178, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.login-feature-icon svg,
.login-lock-badge svg,
.login-input-wrap svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-feature-icon svg {
  width: 28px;
  height: 28px;
}

.login-feature-item strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.login-feature-item small {
  display: block;
  margin-top: 4px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.94rem;
  line-height: 1.42;
}

.login-main {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
}

.login-main::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: radial-gradient(circle, rgba(96, 165, 250, 0.48) 1px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 86% 20%, #000 0 24%, transparent 42%);
  pointer-events: none;
}

.login-main::after {
  content: "";
  position: absolute;
  width: min(72vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(147, 197, 253, 0.08);
  border-radius: 50%;
  opacity: 0.46;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 60%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: clamp(24px, 3.2vw, 36px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0.94) 38%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow:
    0 34px 90px rgba(15, 35, 65, 0.13),
    0 10px 34px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.login-card,
.login-copyright {
  transform: translateX(clamp(-68px, -4vw, -34px));
}

.login-lock-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 10px 24px rgba(37, 99, 235, 0.1);
}

.login-card > .login-lock-badge {
  display: grid;
}

.login-card-head {
  margin-bottom: 20px;
  text-align: center;
}

.login-card-head h2 {
  margin: 0;
  color: #071b3a;
  font-size: clamp(1.9rem, 3.4vw, 2.35rem);
  line-height: 1.05;
}

.login-card-head p {
  margin: 8px 0 0;
  color: #375172;
  font-size: 1rem;
  line-height: 1.4;
}

.login-form {
  gap: 14px;
}

.login-field {
  gap: 8px;
}

.login-field > span:first-child {
  color: #071b3a;
  font-size: 0.92rem;
  font-weight: 900;
}

.login-input-wrap {
  position: relative;
  display: block;
}

.login-input-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  width: 20px;
  height: 20px;
  color: #7184a3;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-field input {
  min-height: 48px;
  padding: 0 16px 0 50px;
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 6px 18px rgba(15, 23, 42, 0.04);
  color: #071b3a;
  font-size: 1rem;
  transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease, transform 170ms ease;
}

.login-field input::placeholder {
  color: #7184a3;
}

.login-field input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.78);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.1),
    0 10px 24px rgba(37, 99, 235, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-submit-button.resource-link.primary {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #2563eb, #0f5fd8);
  box-shadow:
    0 16px 30px rgba(37, 99, 235, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit-button.resource-link.primary:hover,
.login-submit-button.resource-link.primary:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 22px 40px rgba(37, 99, 235, 0.3),
    0 0 28px rgba(37, 99, 235, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.login-card .auth-feedback {
  min-height: 14px;
  text-align: center;
}

.login-helper-text,
.login-copyright {
  color: #486285;
  text-align: center;
}

.login-helper-text {
  margin: 0;
  font-size: 0.9rem;
}

.login-helper-text::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  color: #2563eb;
  font-size: 0.78rem;
  font-weight: 900;
}

.password-setup-username {
  display: grid;
  gap: 4px;
  width: min(100%, 520px);
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1.5px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.08);
  color: #08213d;
  text-align: left;
}

.password-setup-username span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.password-setup-username strong {
  color: #0f2f5f;
  font-size: 1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.login-copyright {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.92rem;
}

.update-detail-textarea {
  min-height: 300px !important;
  line-height: 1.55;
  white-space: pre-wrap;
}

.update-rich-editor {
  min-height: 240px;
}

.update-rich-editor .ql-editor {
  min-height: 238px;
  color: #000000;
}

[data-update-form] .tox.tox-tinymce {
  min-height: 440px;
  border-color: rgba(27, 36, 48, 0.14);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

[data-update-form] .tox .tox-editor-header {
  border-bottom: 1px solid rgba(27, 36, 48, 0.1);
  box-shadow: none;
}

[data-update-form] .tox .tox-toolbar,
[data-update-form] .tox .tox-toolbar__overflow,
[data-update-form] .tox .tox-toolbar__primary {
  background: #f8fbff;
}

[data-update-form] .tox .tox-tbtn,
[data-update-form] .tox .tox-split-button,
[data-update-form] .tox .tox-listboxfield .tox-listbox--select {
  border-radius: 8px;
}

[data-update-form] .tox .tox-statusbar {
  border-top: 1px solid rgba(27, 36, 48, 0.08);
}

[data-update-form] .ql-tooltip a.ql-preview[href="about:blank"] {
  pointer-events: none;
}

.update-line-spacing-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  color: #425672;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.update-line-spacing-label select {
  min-height: 32px;
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 999px;
  background: #f8fbff;
  padding: 0 10px;
  font: inherit;
}

.training-rich-content table,
.update-rich-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.training-rich-content th,
.training-rich-content td,
.update-rich-editor th,
.update-rich-editor td {
  min-width: 72px;
  border: 1px solid #cbd7e6;
  padding: 8px 10px;
  vertical-align: top;
}

.training-rich-content th,
.update-rich-editor th {
  background: #f1f6fc;
  color: #071b38;
  font-weight: 950;
}

.training-rich-content blockquote,
.update-rich-editor blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 4px solid #146ef5;
  background: #f5f9ff;
  color: #334a70;
}

.quiz-question-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-field-full {
  grid-column: 1 / -1;
}

.quiz-question-editor .auth-field textarea {
  min-height: 108px;
}

.live-list {
  display: grid;
  gap: 12px;
}

.live-list-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.live-list-card h3,
.live-list-card p {
  margin: 0;
}

.live-list-card h3 {
  margin-top: 8px;
  color: #16263a;
  font-size: 1rem;
}

.live-list-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.update-body-copy {
  white-space: pre-wrap;
}

.audience-summary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quiz-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quiz-access-editor {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(16, 46, 79, 0.12);
}

.quiz-access-editor[hidden] {
  display: none;
}

body[data-page-key="quizzes"] .quiz-access-editor .audience-picker {
  border-color: rgba(124, 58, 237, 0.28);
  background: rgba(139, 92, 246, 0.055);
}

body[data-page-key="quizzes"] .quiz-access-editor .auth-field input,
body[data-page-key="quizzes"] .quiz-access-editor .auth-field select,
body[data-page-key="quizzes"] .quiz-access-editor .auth-field textarea {
  border-color: rgba(124, 58, 237, 0.28);
}

body[data-page-key="quizzes"] .quiz-access-editor .auth-field input:focus,
body[data-page-key="quizzes"] .quiz-access-editor .auth-field select:focus,
body[data-page-key="quizzes"] .quiz-access-editor .auth-field textarea:focus {
  border-color: #7c3aed;
  outline: 2px solid #7c3aed;
  outline-offset: -1px;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

body[data-page-key="quizzes"] .quiz-access-editor .audience-picker legend {
  color: #7c3aed;
}

body[data-page-key="quizzes"] .quiz-access-editor .audience-role-grid label {
  border-color: rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.9);
}

body[data-page-key="quizzes"] .quiz-access-editor .audience-role-grid input {
  accent-color: #7c3aed;
}

body[data-page-key="quizzes"] .quiz-access-editor .quiz-card-actions .resource-link.primary {
  border-color: #7c3aed;
  background: linear-gradient(145deg, #9f67f5 0%, #7c3aed 100%);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24);
}

body[data-page-key="quizzes"] .quiz-access-editor .quiz-card-actions .resource-link.primary:hover,
body[data-page-key="quizzes"] .quiz-access-editor .quiz-card-actions .resource-link.primary:focus-visible {
  background: linear-gradient(145deg, #8b5cf6 0%, #6d28d9 100%);
}

.training-quiz-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.training-quiz-card .resource-link {
  margin-top: auto;
}

.training-empty-card {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-weight: 800;
}

body[data-page-key="quizzes"] .quiz-admin-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

body[data-page-key="quizzes"] .quiz-section-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

body[data-page-key="quizzes"] .quiz-section-heading > div {
  min-width: 0;
}

body[data-page-key="quizzes"] .quiz-section-heading h2 {
  margin-bottom: 6px;
}

body[data-page-key="quizzes"] .quiz-card-heading {
  margin-bottom: 16px;
}

body[data-page-key="quizzes"] .quiz-section-badge {
  justify-self: start;
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

body[data-page-key="quizzes"] .quiz-section-badge svg {
  width: 28px;
  height: 28px;
}

body[data-page-key="quizzes"] [data-quiz-page-content] {
  display: grid;
  gap: 18px;
}

body[data-page-key="quizzes"] #create-quiz {
  width: 100%;
}

body[data-page-key="quizzes"] .quiz-create-form {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  align-items: start;
  gap: 18px 24px;
  margin-top: 16px;
}

body[data-page-key="quizzes"] .quiz-create-main,
body[data-page-key="quizzes"] .quiz-create-settings {
  display: grid;
  gap: 14px;
}

body[data-page-key="quizzes"] .quiz-settings-row {
  display: grid;
  gap: 12px;
}

body[data-page-key="quizzes"] .quiz-settings-row-three {
  grid-template-columns: minmax(110px, 0.8fr) minmax(130px, 0.9fr) minmax(170px, 1.3fr);
}

body[data-page-key="quizzes"] .quiz-settings-row-four {
  grid-template-columns: minmax(100px, 0.7fr) minmax(130px, 0.9fr) repeat(2, minmax(150px, 1fr));
}

body[data-page-key="quizzes"] .quiz-settings-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-key="quizzes"] .quiz-create-main .auth-field textarea {
  min-height: 188px;
}

body[data-page-key="quizzes"] .quiz-create-form > .resource-link,
body[data-page-key="quizzes"] .quiz-create-form > .auth-feedback {
  grid-column: 1 / -1;
  justify-self: start;
}

body[data-page-key="quizzes"] .quiz-create-form > .resource-link.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 38px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 58%, #f97316 100%);
  box-shadow:
    0 14px 28px rgba(245, 158, 11, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

body[data-page-key="quizzes"] .quiz-create-form > .resource-link.primary:hover,
body[data-page-key="quizzes"] .quiz-create-form > .resource-link.primary:focus-visible {
  background: linear-gradient(145deg, #facc15 0%, #f59e0b 56%, #ea580c 100%);
  box-shadow:
    0 18px 34px rgba(245, 158, 11, 0.3),
    0 0 0 7px rgba(245, 158, 11, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

body[data-page-key="quizzes"] .quiz-create-form > .resource-link.primary:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.24);
  outline-offset: 4px;
}

body[data-page-key="quizzes"] .quiz-create-form > .auth-feedback {
  margin: 0;
}

@media (max-width: 820px) {
  body[data-page-key="quizzes"] .quiz-create-form {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) and (max-width: 1366px) {
  body[data-page-key="quizzes"] .quiz-create-form {
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    max-width: 100%;
  }

  body[data-page-key="quizzes"] .quiz-settings-row-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body[data-page-key="quizzes"] .quiz-settings-row-three,
  body[data-page-key="quizzes"] .quiz-settings-row-two {
    grid-template-columns: 1fr;
  }
}

.audience-picker {
  border: 1px solid rgba(16, 46, 79, 0.14);
  border-radius: 14px;
  padding: 14px;
  margin: 0;
  background: rgba(244, 249, 254, 0.78);
}

.audience-picker legend {
  padding: 0 6px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.audience-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.audience-role-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 46, 79, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-weight: 800;
}

.audience-role-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.quiz-question-toggle {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 10px;
}

.quiz-question-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.quiz-question-card,
.quiz-question-note {
  padding: 12px;
  border-radius: 12px;
  background: rgba(31, 104, 173, 0.05);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.quiz-question-card strong,
.quiz-question-card p,
.quiz-question-card ul,
.quiz-question-note {
  margin: 0;
}

.quiz-question-card ul {
  padding-left: 18px;
  margin-top: 8px;
  color: #334558;
  line-height: 1.5;
}

.quiz-question-card p {
  margin-top: 8px;
}

.quiz-add-question-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.quiz-bulk-import-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 104, 173, 0.1);
  background: rgba(31, 104, 173, 0.04);
}

.quiz-attempt-panel {
  margin-top: 12px;
}

.quiz-take-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(31, 104, 173, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.quiz-take-question {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 12px;
  background: rgba(31, 104, 173, 0.04);
}

.quiz-take-question legend {
  padding: 0;
  color: #16263a;
  font-weight: 800;
}

.quiz-choice-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #334558;
  line-height: 1.45;
}

.quiz-choice-row input {
  margin-top: 4px;
}

.quiz-short-answer {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  border-radius: 10px;
  padding: 0 12px;
  background: white;
  color: #12243a;
  font: inherit;
}

.quiz-attempt-result {
  display: grid;
  gap: 8px;
}

.quiz-score-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.quiz-score-card.passed {
  background: rgba(79, 122, 100, 0.1);
  color: #22563d;
}

.quiz-score-card.needs-retake {
  background: rgba(180, 35, 24, 0.08);
  color: #8a1f17;
}

.quiz-score-card strong,
.quiz-score-card span {
  display: block;
}

.quiz-attempt-history {
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-attempt-card {
  align-content: start;
}

.compact-quiz-score-card {
  width: 100%;
  gap: 10px;
}

.compact-quiz-score-card p {
  margin: 0;
  color: #52637a;
}

.compact-quiz-score-card p strong {
  color: #17243a;
}

.compact-quiz-score-card .danger-link {
  justify-self: start;
  margin-top: 4px;
}

.quiz-result-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
}

.quiz-result-modal {
  position: relative;
  width: min(100%, 430px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.quiz-result-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #0f2749;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.quiz-result-modal h2 {
  max-width: 320px;
  margin: 4px 0 0;
  color: #071b3a;
  font-size: 1.35rem;
  line-height: 1.18;
}

.quiz-result-note {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.quiz-result-modal dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quiz-result-modal dl div {
  display: grid;
  gap: 2px;
}

.quiz-result-modal dt {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-result-modal dd {
  margin: 0;
  color: #071b3a;
  font-size: 1rem;
  font-weight: 800;
}

.quiz-add-question-form .auth-field,
.quiz-bulk-import-form .auth-field {
  gap: 6px;
}

.quiz-add-question-form .auth-field input,
.quiz-add-question-form .auth-field textarea,
.quiz-bulk-import-form .auth-field textarea {
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.94rem;
}

.quiz-add-question-form .auth-field textarea {
  min-height: 78px;
}

.quiz-bulk-import-form .auth-field textarea {
  min-height: 230px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.quiz-bulk-preview {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
}

.quiz-bulk-preview-head {
  color: #215f97;
  font-weight: 800;
}

.update-editor-dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 28px 80px rgba(10, 22, 38, 0.28);
}

.update-editor-dialog::backdrop {
  background: rgba(12, 22, 34, 0.58);
  backdrop-filter: blur(8px);
}

.update-editor-sheet {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(244,248,252,0.97));
  border: 1px solid rgba(27, 36, 48, 0.08);
}

.update-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.update-editor-head h2,
.update-editor-head p {
  margin: 0;
}

.update-editor-head p {
  margin-top: 6px;
  color: var(--muted);
}

.update-editor-textarea {
  width: 100%;
  min-height: min(70vh, 680px);
  border-radius: 18px;
  border: 1px solid rgba(27, 36, 48, 0.14);
  background: white;
  padding: 18px;
  font: inherit;
  color: var(--ink);
  line-height: 1.6;
  resize: vertical;
  white-space: pre-wrap;
}

.quiz-format-example {
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(31, 104, 173, 0.1);
  background: rgba(31, 104, 173, 0.04);
  color: #203650;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sales-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 22px;
}

.sales-stat-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(20, 45, 70, 0.08);
}

.sales-stat-card span {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.sales-stat-card strong {
  color: #12243a;
  font-size: 2rem;
  line-height: 1;
}

.sales-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.sales-action-card .band-head {
  margin-bottom: 12px;
}

.sales-action-card .band-head h2 {
  font-size: 1.25rem;
}

.sales-action-card-wide {
  grid-column: 1 / -1;
}

.sales-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-top: 22px;
  align-items: start;
}

.sales-form {
  margin-top: 16px;
}

.sales-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-form-row-three {
  grid-template-columns: minmax(0, 1fr) 86px 120px;
}

.sales-list {
  margin-top: 16px;
}

.sales-filter-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.sales-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sales-card-title-row .mini-link {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.sales-filter-field span {
  color: #203650;
  font-size: 0.86rem;
  font-weight: 800;
}

.sales-filter-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(27, 36, 48, 0.1);
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.9);
  color: #12243a;
  font: inherit;
}

.sales-filter-row,
.sales-card-actions,
.sales-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-form-actions {
  align-items: center;
}

.sales-form-actions .resource-link {
  flex: 1 1 180px;
}

.sales-filter-row {
  margin-top: 16px;
}

.sales-filter-row .mini-link,
.sales-card-actions .mini-link {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.sales-filter-row .mini-link.active {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 20px rgba(31, 104, 173, 0.2);
}

.sales-card-actions .mini-link.danger {
  color: #9f1d14;
  background: rgba(180, 35, 24, 0.08);
  border-color: rgba(180, 35, 24, 0.2);
}

.sales-card-actions .mini-link.danger:hover,
.sales-card-actions .mini-link.danger:focus-visible {
  color: #ffffff;
  background: #b42318;
  border-color: #b42318;
}

.contact-detail-card {
  display: grid;
  gap: 12px;
}

.contact-card-main {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
}

.contact-card-copy {
  min-width: 0;
}

.contact-avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 18px;
  color: #0d3a6b;
  background: linear-gradient(145deg, #eff7ff, #dcecff);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 10px 24px rgba(15, 35, 63, 0.08);
  font-size: 0.9rem;
  font-weight: 950;
}

.contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-address-card {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(198, 215, 236, 0.82);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.contact-address-card span,
.contact-address-card em {
  color: #65748a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.contact-address-card strong {
  color: #10233f;
  font-size: 0.94rem;
  line-height: 1.35;
}

.sales-list-card {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .sales-list {
  gap: 14px;
}

body[data-page-key="sales-workspace"] .live-list-card {
  border-radius: 14px;
  border-color: rgba(17, 34, 56, 0.1);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 34, 56, 0.05);
}

body[data-page-key="sales-workspace"] .sales-filter-row {
  gap: 6px;
}

body[data-page-key="sales-workspace"] .sales-filter-row .mini-link,
body[data-page-key="sales-workspace"] .sales-card-actions .mini-link {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  box-shadow: none;
  font-size: 0.82rem;
}

body[data-page-key="sales-workspace"] .sales-filter-row .mini-link.active {
  background: #2376bd;
  box-shadow: none;
}

body[data-page-key="sales-workspace"] .contact-detail-card {
  gap: 14px;
  padding: 16px;
}

body[data-page-key="sales-workspace"] .contact-card-main {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
}

body[data-page-key="sales-workspace"] .contact-avatar {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: #eef6ff;
  box-shadow: none;
}

body[data-page-key="sales-workspace"] .sales-card-head {
  align-items: baseline;
}

body[data-page-key="sales-workspace"] .sales-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

body[data-page-key="sales-workspace"] .sales-card-meta {
  gap: 5px;
  margin-top: 6px;
}

body[data-page-key="sales-workspace"] .sales-card-meta span,
body[data-page-key="sales-workspace"] .sales-card-meta a,
body[data-page-key="sales-workspace"] .sales-stage-pill {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #4f6380;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: none;
}

body[data-page-key="sales-workspace"] .sales-card-meta :is(span, a) + :is(span, a)::before {
  content: "/";
  margin-right: 5px;
  color: #94a3b8;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .contact-action-link {
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .contact-phone-link {
  color: #1f5f99;
}

body[data-page-key="sales-workspace"] .contact-phone-link:hover,
body[data-page-key="sales-workspace"] .contact-phone-link:focus-visible,
body[data-page-key="sales-workspace"] .contact-address-card:hover strong,
body[data-page-key="sales-workspace"] .contact-address-card:focus-visible strong {
  color: #155dfc;
}

body[data-page-key="sales-workspace"] .contact-address-card {
  gap: 2px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: inset 3px 0 0 rgba(35, 118, 189, 0.18);
}

body[data-page-key="sales-workspace"] a.contact-address-card {
  display: grid;
}

body[data-page-key="sales-workspace"] .contact-address-card strong {
  font-size: 0.9rem;
}

body[data-page-key="sales-workspace"] .contact-detail-card p,
body[data-page-key="sales-workspace"] .sales-list-card p {
  color: #445b78;
  font-size: 0.9rem;
  line-height: 1.45;
}

body[data-page-key="sales-workspace"] .sales-card-actions {
  padding-top: 2px;
}

body[data-page-key="sales-workspace"] .contact-rep-chip {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: none;
}

body[data-page-key="sales-workspace"] .contact-rep-chip.active {
  background: #2376bd;
}

body[data-page-key="sales-workspace"] .contact-rep-chip strong {
  min-width: 22px;
  height: 22px;
  background: rgba(35, 118, 189, 0.12);
}

body[data-page-key="sales-workspace"] .contact-rep-chip.active strong {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body[data-page-key="sales-workspace"] [data-sales-deal-card] {
  width: min(100%, 760px);
  gap: 10px;
  margin: 0 auto;
  padding: 14px;
  border-left: 0;
  border-color: rgba(204, 216, 230, 0.9);
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 20px 54px rgba(8, 20, 38, 0.16);
}

body[data-page-key="sales-workspace"] .pipeline-simple-list {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-simple-head,
body[data-page-key="sales-workspace"] .pipeline-simple-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
  gap: 12px;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-simple-head {
  padding: 0 12px;
  color: #52667f;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .pipeline-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #52667f;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-sort-button.active {
  color: #155dfc;
}

body[data-page-key="sales-workspace"] .pipeline-simple-row {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 12px;
  background: #ffffff;
  color: #071f3d;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-simple-row:hover,
body[data-page-key="sales-workspace"] .pipeline-simple-row:focus-visible {
  border-color: rgba(21, 93, 252, 0.34);
  background: #f8fbff;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-simple-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .crm-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

body[data-page-key="sales-workspace"] .crm-table-head,
body[data-page-key="sales-workspace"] .crm-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.8fr) minmax(170px, 0.85fr);
  gap: 14px;
  align-items: center;
}

body[data-page-key="sales-workspace"] .crm-table-head {
  padding: 0 14px;
  color: #52667f;
  font-size: 0.84rem;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .crm-table-row {
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 12px;
  background: #ffffff;
  color: #071f3d;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 34, 56, 0.04);
}

body[data-page-key="sales-workspace"] .crm-table-row:hover,
body[data-page-key="sales-workspace"] .crm-table-row:focus-visible {
  border-color: rgba(35, 118, 189, 0.42);
  background: #f8fbff;
  outline: none;
}

body[data-page-key="sales-workspace"] .crm-table-row span,
body[data-page-key="sales-workspace"] .crm-table-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .crm-muted {
  color: #7a889b !important;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .crm-table-empty {
  padding: 18px;
  border: 1px dashed rgba(149, 164, 184, 0.5);
  border-radius: 12px;
  color: #64748b;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .crm-filter-shell {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

body[data-page-key="sales-workspace"] .crm-filter-toggle {
  justify-self: start;
}

body[data-page-key="sales-workspace"] .crm-filter-toggle.active {
  color: #ffffff;
  background: #2376bd;
  border-color: #2376bd;
}

body[data-page-key="sales-workspace"] .crm-filter-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body[data-page-key="sales-workspace"] .crm-filter-panel > div,
body[data-page-key="sales-workspace"] .crm-filter-panel label {
  display: grid;
  gap: 7px;
}

body[data-page-key="sales-workspace"] .crm-filter-panel span {
  color: #52667f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .crm-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body[data-page-key="sales-workspace"] .crm-filter-options em {
  color: #7a889b;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .crm-filter-chip {
  min-height: 32px;
  border: 1px solid rgba(35, 118, 189, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #10233f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 6px 10px;
}

body[data-page-key="sales-workspace"] .crm-filter-chip.active {
  border-color: var(--crm-product-color, #2376bd);
  background: rgba(35, 118, 189, 0.1);
  color: #0f4f92;
}

body[data-page-key="sales-workspace"] .crm-filter-product.active {
  color: var(--crm-product-color, #2376bd);
}

body[data-page-key="sales-workspace"] .crm-filter-panel input[type="date"] {
  width: min(100%, 220px);
  min-height: 38px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 10px;
  background: #ffffff;
  color: #10233f;
  font: inherit;
  font-weight: 850;
  padding: 8px 10px;
}

body[data-page-key="sales-workspace"] .crm-compact-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

body[data-page-key="sales-workspace"] .crm-compact-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, auto) auto auto minmax(90px, 1fr);
  gap: 8px;
  align-items: center;
  justify-content: start;
  padding: 12px 13px;
  border: 1px solid rgba(var(--crm-product-rgb, 35, 118, 189), 0.28);
  border-left: 5px solid var(--crm-product-color, #2376bd);
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(var(--crm-product-rgb, 35, 118, 189), 0.1), #ffffff 38%);
  color: #071f3d;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 20px rgba(17, 34, 56, 0.04);
}

body[data-page-key="sales-workspace"] .crm-compact-row:hover,
body[data-page-key="sales-workspace"] .crm-compact-row:focus-visible {
  border-color: rgba(var(--crm-product-rgb, 35, 118, 189), 0.48);
  background: linear-gradient(90deg, rgba(var(--crm-product-rgb, 35, 118, 189), 0.16), #f8fbff 42%);
  outline: none;
}

body[data-page-key="sales-workspace"] .crm-compact-row.is-multi .crm-compact-name {
  color: #6d28d9;
}

body[data-page-key="sales-workspace"] .crm-compact-name {
  min-width: 0;
  overflow: hidden;
  color: var(--crm-product-color, #071f3d);
  font-size: 1rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .crm-compact-dash {
  color: #94a3b8;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .crm-compact-icons {
  display: inline-flex;
  gap: 5px;
}

body[data-page-key="sales-workspace"] .crm-product-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--crm-product-rgb, 100, 116, 139), 0.26);
  border-radius: 10px;
  background: rgba(var(--crm-product-rgb, 100, 116, 139), 0.1);
  color: var(--crm-product-color, #64748b);
}

body[data-page-key="sales-workspace"] .crm-product-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .crm-compact-row small {
  justify-self: end;
  color: #52667f;
  font-size: 0.8rem;
  font-weight: 850;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .workspace-contact-row {
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .workspace-followup-head,
body[data-page-key="sales-workspace"] .workspace-followup-row {
  grid-template-columns: minmax(220px, 1.35fr) minmax(150px, 0.8fr) minmax(150px, 0.75fr) minmax(112px, 0.5fr);
  width: min(100%, 760px);
  margin-inline: auto;
}

body[data-page-key="sales-workspace"] .workspace-followup-row {
  cursor: default;
}

body[data-page-key="sales-workspace"] .workspace-simple-cell-button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .workspace-simple-cell-button:hover,
body[data-page-key="sales-workspace"] .workspace-simple-cell-button:focus-visible {
  color: #155dfc;
  outline: none;
}

body[data-page-key="sales-workspace"] .workspace-simple-actions {
  display: inline-flex;
  justify-content: flex-start;
  gap: 6px;
  overflow: visible;
}

body[data-page-key="sales-workspace"] .workspace-simple-actions .mini-link {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
}

body[data-page-key="sales-workspace"] .contact-photo-input {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding-block: 10px;
}

body[data-page-key="sales-workspace"] .contact-intake-summary {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .contact-intake-summary[hidden] {
  display: none;
}

body[data-page-key="sales-workspace"] .contact-intake-grid {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .contact-intake-grid article {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 12px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .contact-intake-grid span {
  color: #607086;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .contact-intake-grid strong {
  color: #071f3d;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-page-key="sales-workspace"] .deal-edit-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

body[data-page-key="sales-workspace"] .deal-edit-summary[hidden] {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-detail-head {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-detail-head span {
  color: #155dfc;
  font-size: 0.82rem;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-detail-head h3 {
  margin: 0;
  color: #071f3d;
  font-size: 1.45rem;
  line-height: 1.18;
}

body[data-page-key="sales-workspace"] .pipeline-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-detail-card {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

body[data-page-key="sales-workspace"] .pipeline-detail-card span {
  color: #607086;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-detail-card strong {
  color: #071f3d;
  font-size: 0.96rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-page-key="sales-workspace"] .pipeline-detail-link {
  color: inherit;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .pipeline-detail-link:hover,
body[data-page-key="sales-workspace"] .pipeline-detail-link:focus-visible {
  color: #155dfc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page-key="sales-workspace"] .pipeline-detail-card-wide {
  grid-column: 1 / -1;
}

body[data-page-key="sales-workspace"] [data-sales-deal-card] .sales-card-actions {
  justify-content: center;
  gap: 12px;
  padding-top: 36px;
}

body[data-page-key="sales-workspace"] [data-sales-deal-card] .sales-card-actions .mini-link {
  min-height: 44px;
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 0.92rem;
}

body[data-page-key="sales-workspace"] [data-sales-deal-card] .sales-card-actions .mini-link:first-child,
body[data-page-key="sales-workspace"] [data-sales-deal-card] .sales-card-actions .mini-link:nth-child(2) {
  color: #ffffff;
  background: #2376bd;
  border-color: #2376bd;
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .pipeline-simple-head,
  body[data-page-key="sales-workspace"] .pipeline-simple-row,
  body[data-page-key="sales-workspace"] .crm-table-head,
  body[data-page-key="sales-workspace"] .crm-table-row,
  body[data-page-key="sales-workspace"] .crm-compact-row,
  body[data-page-key="sales-workspace"] .workspace-followup-head,
  body[data-page-key="sales-workspace"] .workspace-followup-row,
  body[data-page-key="sales-workspace"] .pipeline-detail-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .crm-compact-row small {
    justify-self: start;
  }

  body[data-page-key="sales-workspace"] .workspace-simple-actions {
    justify-content: flex-start;
  }
}

.sales-list-toggle {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(31, 104, 173, 0.18);
  border-radius: 12px;
  background: rgba(31, 104, 173, 0.08);
  color: #00549a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.sales-list-toggle:hover,
.sales-list-toggle:focus-visible {
  background: #1f68ad;
  color: #ffffff;
}

.sales-admin-created-card {
  border-color: rgba(180, 35, 24, 0.42);
}

.sales-admin-created-card:hover,
.sales-admin-created-card:focus-within {
  box-shadow: 0 16px 34px rgba(180, 35, 24, 0.12);
}

.sales-card-meta .sales-admin-created-pill {
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.sales-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sales-card-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.sales-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sales-card-meta span,
.sales-stage-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(53, 128, 197, 0.11);
  color: #244e78;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.sales-task-done {
  justify-self: start;
  margin-top: 2px;
}

.contact-activity-shell {
  display: grid;
  gap: 14px;
}

.contact-rep-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.workspace-rep-filter-strip {
  margin: 10px 0 8px;
  min-height: 0;
}

.contact-rep-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  width: auto;
  height: 38px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(31, 104, 173, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #17335c;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.contact-rep-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.12);
  color: #00549a;
  font-size: 0.78rem;
}

.contact-rep-chip.active {
  border-color: rgba(31, 104, 173, 0.4);
  background: linear-gradient(135deg, #1f68ad, #4d89c7);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(31, 104, 173, 0.18);
}

.contact-rep-chip.active strong {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.contact-activity-body,
.contact-date-group,
.contact-date-list {
  display: grid;
  gap: 10px;
}

.contact-activity-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.contact-activity-head h3 {
  margin: 0;
  color: #071b38;
}

.contact-activity-head span,
.contact-date-group h4 {
  color: #66758d;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-date-group h4 {
  margin: 8px 0 0;
}

.sales-queue-card {
  border-left: 4px solid rgba(31, 104, 173, 0.4);
}

.sales-stage-stack {
  display: grid;
  gap: 18px;
}

.sales-stage-stack-section {
  display: grid;
  gap: 16px;
  padding: 24px 28px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--section-shadow);
}

.sales-stage-stack-head {
  margin-bottom: 0;
}

.sales-stage-stack-head h3 {
  margin: 0;
  color: #16263a;
  font-size: 1.35rem;
}

.sales-stage-card-grid {
  align-items: stretch;
}

.sales-stage-work-item {
  min-height: 190px;
  justify-content: flex-start;
}

.sales-stage-work-item .sales-card-head {
  display: grid;
  gap: 6px;
}

.sales-stage-work-empty {
  min-height: 120px;
  justify-content: center;
  border-style: dashed;
  background: rgba(255, 255, 255, 0.72);
}

.sales-stage-work-empty h3 {
  color: var(--muted);
  font-size: 1rem;
}

.sales-stage-card-grid .sales-list-toggle {
  align-self: end;
}

@media (max-width: 900px) {
  .sales-stage-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sales-stage-card-grid {
    grid-template-columns: 1fr;
  }

  .sales-stage-stack-section {
    padding: 18px 14px;
  }
}

.sales-stage-summary {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.workspace-lower-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.workspace-today-panel,
.workspace-ops-grid {
  grid-column: 1 / -1;
}

.workspace-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.workspace-ops-column,
[data-sales-stage-secondary] {
  display: grid;
  gap: 14px;
  align-items: start;
}

.workspace-ops-right {
  padding-top: 0;
}

.workspace-assign-panel,
.workspace-intake-deals-panel {
  min-height: 338px;
}

.workspace-lower-grid .sales-action-card,
.workspace-premium-panel,
.sales-stage-stack-section {
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.workspace-lower-grid .sales-action-card {
  margin-bottom: 0;
}

.workspace-lower-grid .band-head,
.workspace-premium-panel .band-head,
.workspace-panel-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.workspace-lower-grid .band-head h2,
.workspace-lower-grid .band-head h3,
.workspace-premium-panel .band-head h3,
.workspace-panel-head h3 {
  margin: 0 0 4px;
  color: #10233b;
}

.workspace-lower-grid .band-head p,
.workspace-premium-panel .band-head p,
.workspace-panel-head p {
  margin: 0;
  color: #65758b;
  line-height: 1.34;
}

.workspace-today-dashboard {
  display: grid;
  gap: 14px;
}

.workspace-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.workspace-summary-card {
  --workspace-stage-accent: #2376bd;
  --workspace-stage-accent-rgb: 35, 118, 189;
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.workspace-summary-card::before,
.workspace-deal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--workspace-stage-accent), rgba(var(--workspace-stage-accent-rgb), 0.34));
}

.workspace-summary-card h3,
.workspace-summary-card p,
.workspace-summary-card strong,
.workspace-deal-card h4,
.workspace-card-note {
  margin: 0;
}

.workspace-summary-card h3 {
  color: #203650;
  font-size: 0.86rem;
  font-weight: 900;
}

.workspace-summary-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 10px;
}

.workspace-summary-card strong {
  grid-column: 2;
  grid-row: 1;
  color: #071b38;
  font-size: 1.72rem;
  line-height: 1;
  text-align: right;
}

.workspace-summary-card p {
  grid-column: 2;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: right;
}

.workspace-mini-icon,
.workspace-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--workspace-stage-accent, #2376bd);
  background: rgba(var(--workspace-stage-accent-rgb, 35, 118, 189), 0.1);
  border: 1px solid rgba(var(--workspace-stage-accent-rgb, 35, 118, 189), 0.16);
}

.workspace-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.workspace-mini-icon svg,
.workspace-empty-icon svg,
.workspace-card-open svg,
.workspace-row-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-stage-lead {
  --workspace-stage-accent: #2376bd;
  --workspace-stage-accent-rgb: 35, 118, 189;
}

.workspace-stage-appointment_set {
  --workspace-stage-accent: #1592a6;
  --workspace-stage-accent-rgb: 21, 146, 166;
}

.workspace-stage-appointment_run {
  --workspace-stage-accent: #2f7dbd;
  --workspace-stage-accent-rgb: 47, 125, 189;
}

.workspace-stage-proposal_sent {
  --workspace-stage-accent: #287a8a;
  --workspace-stage-accent-rgb: 40, 122, 138;
}

.workspace-stage-pending,
.workspace-assign-card {
  --workspace-stage-accent: #1f68ad;
  --workspace-stage-accent-rgb: 31, 104, 173;
}

.workspace-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(135deg, rgba(238, 247, 255, 0.88), rgba(246, 253, 253, 0.92));
}

.workspace-next-action-empty {
  justify-content: flex-start;
}

.workspace-next-action strong {
  color: #10233b;
  font-weight: 950;
}

.workspace-next-action p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 750;
}

.workspace-next-action-head,
.workspace-panel-head,
.workspace-deal-card-top,
.workspace-deal-card-foot,
.workspace-meta-row,
.workspace-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-next-action-head,
.workspace-panel-head,
.workspace-deal-card-foot {
  justify-content: space-between;
}

.workspace-next-action-head span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.workspace-next-action-list {
  display: grid;
  gap: 8px;
}

.workspace-next-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  text-align: left;
}

.workspace-next-row strong,
.workspace-next-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-next-row small {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace-row-arrow {
  color: #1f68ad;
}

.workspace-stage-panels {
  margin-top: 24px;
}

.workspace-stage-panel-appointment_set {
  min-height: 0;
}

.workspace-stage-panel-appointment_set .workspace-deal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-stage-panel-appointment_run .workspace-deal-grid,
.workspace-stage-panel-proposal_sent .workspace-deal-grid,
.workspace-stage-panel-pending .workspace-deal-grid {
  grid-template-columns: 1fr;
}

.workspace-stage-panel-appointment_run,
.workspace-stage-panel-proposal_sent,
.workspace-stage-panel-pending {
  gap: 8px;
  padding-block: 14px;
}

.workspace-assign-panel .workspace-deal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-intake-deals-panel .workspace-deal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workspace-deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workspace-deal-card {
  --workspace-stage-accent: #2376bd;
  --workspace-stage-accent-rgb: 35, 118, 189;
  position: relative;
  min-height: 136px;
  display: grid;
  gap: 12px;
  padding: 15px 15px 13px 17px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.workspace-deal-card h4 {
  color: #10233b;
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.workspace-deal-card-main {
  display: grid;
  gap: 9px;
}

.workspace-status-pill {
  margin-left: auto;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--workspace-stage-accent-rgb, 35, 118, 189), 0.1);
  color: var(--workspace-stage-accent, #2376bd);
  font-size: 0.74rem;
  font-weight: 950;
  white-space: nowrap;
}

.workspace-meta-row {
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 850;
}

.workspace-meta-row span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.4);
  vertical-align: middle;
}

.workspace-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.workspace-tag-row span {
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef6fc;
  color: #244e78;
  font-size: 0.76rem;
  font-weight: 900;
}

.workspace-card-note {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.workspace-deal-card-foot {
  align-self: end;
  color: #53657c;
  font-size: 0.82rem;
  font-weight: 850;
}

.workspace-intake-deal-card {
  min-height: 104px;
  gap: 8px;
  padding: 12px 12px 11px 15px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.workspace-intake-deal-card .workspace-mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.workspace-intake-deal-card .workspace-mini-icon svg,
.workspace-intake-deal-card .workspace-card-open svg {
  width: 16px;
  height: 16px;
}

.workspace-intake-deal-card .workspace-deal-card-top {
  gap: 8px;
}

.workspace-intake-deal-card .workspace-status-pill {
  min-height: 22px;
  padding: 3px 8px;
  font-size: 0.68rem;
}

.workspace-intake-deal-card h4 {
  font-size: 0.96rem;
}

.workspace-intake-deal-card .workspace-deal-card-main,
.workspace-intake-deal-card .workspace-tag-row {
  gap: 5px;
}

.workspace-intake-deal-card .workspace-meta-row,
.workspace-intake-deal-card .workspace-card-note,
.workspace-intake-deal-card .workspace-deal-card-foot {
  font-size: 0.76rem;
}

.workspace-intake-deal-card .workspace-card-open {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.workspace-intake-summary-card {
  --workspace-stage-accent: #00979d;
  --workspace-stage-accent-rgb: 0, 151, 157;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: 126px;
}

.workspace-intake-summary-card .workspace-card-open {
  border-color: rgba(0, 151, 157, 0.22);
  background: rgba(0, 151, 157, 0.09);
  color: #00858b;
}

.workspace-intake-summary-card .workspace-card-open:hover,
.workspace-intake-summary-card .workspace-card-open:focus-visible {
  border-color: rgba(0, 151, 157, 0.42);
  background: #00979d;
  color: #ffffff;
}

.workspace-intake-summary-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workspace-intake-summary-field {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-intake-summary-field span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-intake-summary-field strong {
  color: #10233b;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.workspace-intake-summary-actions {
  align-self: end;
}

.workspace-assign-summary-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 170px;
}

.workspace-assign-summary-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.workspace-assign-summary-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-assign-summary-field span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.workspace-assign-summary-field strong {
  color: #10233b;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.experience-pledge-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin-top: 4px;
  padding: 4px 9px;
  border: 1px solid #dbe7f1;
  border-radius: 999px;
  background: #f8fbfd;
  color: #4f6278;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.experience-pledge-mini-badge.is-complete {
  border-color: #bae6d2;
  background: #ecfdf5;
  color: #047857;
}

.experience-pledge-mini-badge.is-pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #b45309;
}

.experience-pledge-mini-badge.is-blocked {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.workspace-assign-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: end;
}

.workspace-card-open,
.workspace-assign-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 104, 173, 0.18);
  background: rgba(31, 104, 173, 0.08);
  color: #1f68ad;
  font-weight: 950;
}

.workspace-card-open {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.workspace-assign-button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
}

.workspace-card-open:hover,
.workspace-card-open:focus-visible,
.workspace-assign-button:hover,
.workspace-assign-button:focus-visible,
.workspace-next-row:hover,
.workspace-next-row:focus-visible {
  border-color: rgba(31, 104, 173, 0.34);
  background: #1f68ad;
  color: #ffffff;
}

.workspace-empty-state {
  min-height: 112px;
  width: min(100%, 360px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  margin: 0 auto;
  padding: 10px 14px;
  border: 1px dashed rgba(31, 104, 173, 0.22);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.78);
  text-align: center;
}

.workspace-empty-list {
  min-height: 138px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}

.workspace-empty-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
}

.workspace-empty-state strong {
  color: #10233b;
  font-weight: 950;
}

.workspace-empty-state p {
  max-width: 280px;
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 750;
}

.workspace-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(31, 104, 173, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #00549a;
  box-shadow: 0 8px 18px rgba(15, 35, 65, 0.06);
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.workspace-view-all:hover,
.workspace-view-all:focus-visible {
  border-color: rgba(31, 104, 173, 0.28);
  background: #ffffff;
}

.workspace-snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.workspace-snapshot-metrics div {
  padding: 8px 9px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.workspace-snapshot-metrics span,
.workspace-snapshot-metrics strong {
  display: block;
}

.workspace-snapshot-metrics span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
}

.workspace-snapshot-metrics strong {
  margin-top: 3px;
  color: #10233b;
  font-size: 1.22rem;
  line-height: 1;
}

.workspace-snapshot-bars {
  display: grid;
  gap: 7px;
}

@media (max-width: 900px) {
  .workspace-lower-grid,
  .workspace-ops-grid {
    grid-template-columns: 1fr;
  }

  .workspace-stage-panel-appointment_set {
    grid-row: auto;
  }

  .workspace-summary-grid,
  .workspace-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-stage-panel-appointment_run .workspace-deal-grid,
  .workspace-stage-panel-proposal_sent .workspace-deal-grid,
  .workspace-stage-panel-pending .workspace-deal-grid,
  .workspace-assign-panel .workspace-deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace-lower-grid .sales-action-card,
  .workspace-premium-panel,
  .sales-stage-stack-section {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .workspace-summary-grid,
  .workspace-deal-grid,
  .workspace-stage-panel-appointment_set .workspace-deal-grid,
  .workspace-stage-panel-appointment_run .workspace-deal-grid,
  .workspace-stage-panel-proposal_sent .workspace-deal-grid,
  .workspace-stage-panel-pending .workspace-deal-grid,
  .workspace-assign-panel .workspace-deal-grid,
  .workspace-snapshot-metrics {
    grid-template-columns: 1fr;
  }

  .workspace-hub-band .workspace-action-card {
    min-height: 170px;
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 18px 16px;
  }

  .workspace-hub-band .workspace-action-medallion {
    width: 60px;
    height: 60px;
  }

  .workspace-hub-band .workspace-action-medallion svg {
    width: 30px;
    height: 30px;
  }

  .workspace-next-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-panel-head {
    align-items: flex-start;
  }

  .workspace-view-all {
    min-width: 90px;
  }
}

.solar-review-sheet {
  display: grid;
  gap: 12px;
  padding: 34px 42px;
  border-radius: 10px;
  border: 1px solid rgba(12, 52, 94, 0.18);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(19, 34, 55, 0.12);
  color: #071a34;
}

.solar-review-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.36fr);
  gap: 24px;
  align-items: start;
}

.solar-review-masthead p,
.solar-review-masthead h2,
.solar-review-masthead h3 {
  margin: 0;
}

.solar-review-masthead p {
  color: #0a2c55;
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solar-review-masthead h2 {
  color: #071f41;
  font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.solar-review-masthead strong {
  display: block;
  margin-top: 14px;
  color: #d96f00;
  font-size: 1.12rem;
  font-weight: 500;
}

.solar-review-masthead span {
  display: block;
  max-width: 760px;
  margin-top: 16px;
  line-height: 1.45;
}

.solar-review-agency {
  display: grid;
  justify-items: start;
  gap: 6px;
  color: #0b315f;
  text-transform: uppercase;
}

.solar-review-agency-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a2c55, #155d9c);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, 0.08);
}

.solar-review-agency p {
  color: #d96f00;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.solar-review-agency h3 {
  color: #0b315f;
  font-size: 1.62rem;
  line-height: 1.05;
}

.solar-review-panel {
  overflow: hidden;
  border: 1px solid rgba(10, 44, 85, 0.5);
  border-radius: 7px;
  background: #ffffff;
}

.solar-review-panel h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-height: 42px;
  padding: 8px 16px;
  background: linear-gradient(90deg, #082c56, #06427b);
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.solar-review-panel h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
}

.solar-review-info-grid,
.solar-review-signature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}

.solar-review-info-grid label,
.solar-review-signature-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 14px;
  border-top: 1px solid rgba(10, 44, 85, 0.14);
  color: #071a34;
  font-weight: 800;
}

.solar-review-info-grid label:nth-child(even) {
  border-left: 1px solid rgba(10, 44, 85, 0.14);
}

.solar-review-wide {
  grid-column: 1 / -1;
}

.solar-review-info-grid input,
.solar-review-signature-grid input {
  min-width: 0;
  flex: 1;
  border: 0;
  border-bottom: 1px solid rgba(10, 44, 85, 0.24);
  background: transparent;
  color: #071a34;
  font: inherit;
  outline: 0;
}

.solar-review-instruction {
  margin: 0;
  padding: 14px 18px 2px 76px;
  color: #071a34;
}

.solar-review-checklist {
  display: grid;
  padding: 8px 24px 14px;
}

.solar-review-checklist label {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 62px;
  padding: 13px 0;
  border-bottom: 1px dotted rgba(10, 84, 154, 0.45);
  line-height: 1.4;
}

.solar-review-checklist label:last-child {
  border-bottom: 0;
}

.solar-review-checklist input {
  width: 28px;
  height: 28px;
  margin: 0;
  accent-color: #0a3a70;
}

.solar-review-checklist strong {
  color: #071a34;
}

.solar-review-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.solar-review-info-card {
  background: linear-gradient(135deg, #fff9e8, #ffffff 70%);
}

.solar-review-panel > p,
.solar-review-panel > strong,
.solar-review-panel > ul {
  margin: 0;
  padding-inline: 24px;
}

.solar-review-panel > p {
  padding-top: 14px;
  line-height: 1.4;
}

.solar-review-panel > strong {
  display: block;
  padding-top: 8px;
}

.solar-review-panel > ul {
  padding-top: 8px;
  padding-bottom: 14px;
  padding-left: 44px;
}

.solar-review-panel li {
  margin: 4px 0;
}

.solar-review-check-list {
  list-style: none;
  padding-left: 24px !important;
}

.solar-review-check-list li::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 999px;
  background: #0a3a70;
}

.solar-review-check-list li::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 9px;
  margin-left: -24px;
  margin-right: 16px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.solar-review-rule {
  margin: 0 24px 18px !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(10, 44, 85, 0.3);
}

.solar-review-signature-copy {
  margin: 0;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(10, 44, 85, 0.14);
}

.solar-review-signature-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(160px, 0.55fr);
}

.solar-review-signature-grid label {
  border-top: 0;
  border-left: 1px solid rgba(10, 44, 85, 0.14);
}

.solar-review-signature-grid label:first-child {
  border-left: 0;
}

.solar-review-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  color: #071a34;
  font-style: italic;
  line-height: 1.35;
}

.solar-review-footer p {
  margin: 0;
}

.solar-review-footer span {
  flex: 0 0 auto;
  font-style: normal;
  color: #667487;
}

.solar-review-intake-shell {
  width: min(960px, calc(100% - 28px));
}

.solar-review-form-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
  margin-bottom: 8px;
}

.solar-review-form-head h2,
.solar-review-form-head p {
  margin: 0;
}

.solar-review-form-head h2 {
  color: #071a34;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.solar-review-form-head > div:first-child > p:last-child {
  margin-top: 12px;
  color: #cc6200;
  font-size: 1rem;
}

.solar-review-agency-card {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 16px;
  border: 1px solid rgba(12, 52, 94, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 250, 254, 0.98), rgba(255, 255, 255, 0.96));
}

.solar-review-agency-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #08396a, #1f68ad);
  color: white;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.solar-review-agency-card span {
  color: #071a34;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.solar-review-cslb-logo {
  display: block;
  width: min(300px, 100%);
  height: auto;
  justify-self: end;
}

.solar-review-form {
  gap: 22px;
}

.solar-review-form-section {
  padding-top: 18px;
  border-top: 1px solid rgba(27, 36, 48, 0.08);
}

.solar-review-form-section legend {
  color: #071a34;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.solar-review-section-note,
.solar-review-disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.solar-review-choice-list {
  display: grid;
  gap: 10px;
}

.solar-review-choice-list .admin-access-item {
  align-items: flex-start;
  min-height: 0;
  padding: 14px;
}

.solar-review-choice-list input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.solar-review-choice-list span {
  line-height: 1.45;
}

.solar-review-info-grid-clean {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.solar-review-info-box {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(31, 104, 173, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 250, 254, 0.98), rgba(255, 255, 255, 0.96));
}

.solar-review-info-box h3,
.solar-review-info-box p,
.solar-review-info-box ul {
  margin: 0;
}

.solar-review-info-box h3 {
  color: #071a34;
}

.solar-review-info-box p,
.solar-review-info-box li {
  color: #4d6078;
  line-height: 1.55;
}

.solar-review-info-box ul {
  padding-left: 19px;
}

.solar-review-disclaimer {
  padding-top: 4px;
  font-size: 0.95rem;
}

.solar-consumer-review-page {
  min-height: 100vh;
  background: #f5f8fb;
  color: #061c3a;
}

.solar-consumer-review-shell {
  width: min(1024px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.scr-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.scr-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.scr-action-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(7, 57, 105, 0.16);
  background: #ffffff;
  color: #06315d;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(6, 28, 58, 0.08);
}

.scr-action-button-primary {
  border-color: #071b36;
  background: #071b36;
  color: #ffffff;
}

.scr-action-button:hover,
.scr-action-button:focus-visible,
.scr-back-link:hover,
.scr-back-link:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 28, 58, 0.12);
}

.scr-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #06315d;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(7, 57, 105, 0.16);
  box-shadow: 0 10px 24px rgba(6, 28, 58, 0.08);
}

.scr-back-link::before {
  content: "\2190";
  margin-right: 8px;
  font-weight: 900;
}

.scr-document {
  display: grid;
  gap: 10px;
  padding: 28px 36px 20px;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 14px 38px rgba(6, 28, 58, 0.08);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.24;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.scr-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
}

.scr-title-block p,
.scr-title-block h1,
.scr-title-block strong,
.scr-title-block span,
.scr-section-bar h2,
.scr-panel-body p,
.scr-panel-body ul,
.scr-footer p {
  margin: 0;
}

.scr-title-block p {
  color: #06315d;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.scr-title-block h1 {
  color: #061c3a;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scr-title-block strong {
  display: block;
  margin-top: 12px;
  color: #e56f00;
  font-size: 19px;
  font-weight: 500;
}

.scr-title-block span {
  display: block;
  max-width: 650px;
  margin-top: 14px;
  color: #061c3a;
  font-size: 17px;
  line-height: 1.32;
}

.scr-cslb-logo {
  display: block;
  width: 230px;
  height: auto;
  justify-self: end;
}

.scr-panel {
  overflow: hidden;
  border: 1px solid #073969;
  border-radius: 5px;
  background: #ffffff;
}

.scr-section-bar {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 12px;
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(90deg, #062d59, #003f73);
}

.scr-section-bar h2 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.scr-section-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a3d70;
  overflow: hidden;
}

.scr-section-icon::before,
.scr-section-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.scr-section-icon.scr-svg-icon::before,
.scr-section-icon.scr-svg-icon::after {
  display: none;
}

.scr-section-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.scr-person-icon::before {
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a3d70;
}

.scr-person-icon::after {
  bottom: 7px;
  width: 19px;
  height: 11px;
  border-radius: 10px 10px 4px 4px;
  background: #0a3d70;
}

.scr-list-icon::before {
  width: 16px;
  height: 21px;
  border: 2px solid #0a3d70;
  border-radius: 3px;
}

.scr-list-icon::after {
  width: 8px;
  height: 13px;
  background:
    linear-gradient(#0a3d70, #0a3d70) 0 0 / 8px 2px no-repeat,
    linear-gradient(#0a3d70, #0a3d70) 0 5px / 8px 2px no-repeat,
    linear-gradient(#0a3d70, #0a3d70) 0 10px / 8px 2px no-repeat;
}

.scr-info-icon::before {
  top: 14px;
  width: 4px;
  height: 13px;
  border-radius: 4px;
  background: #0a3d70;
}

.scr-info-icon::after {
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0a3d70;
}

.scr-scale-icon::before {
  width: 4px;
  height: 23px;
  border-radius: 4px;
  background: #0a3d70;
}

.scr-scale-icon::after {
  top: 10px;
  width: 24px;
  height: 14px;
  border-top: 3px solid #0a3d70;
  border-left: 3px solid #0a3d70;
  border-right: 3px solid #0a3d70;
  transform: perspective(20px) rotateX(18deg);
}

.scr-pen-icon::before {
  width: 7px;
  height: 24px;
  border-radius: 3px;
  background: #0a3d70;
  transform: rotate(42deg);
}

.scr-pen-icon::after {
  right: 8px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-right: 4px solid #0a3d70;
  border-bottom: 4px solid #0a3d70;
  transform: rotate(42deg);
}

.scr-info-table {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
}

.scr-info-cell,
.scr-signature-table > div {
  display: flex;
  align-items: center;
  min-height: 43px;
  padding: 0 14px;
  border-top: 1px solid #c5d1df;
  color: #061c3a;
  font-size: 15px;
}

.scr-info-cell:nth-child(even),
.scr-signature-table > div + div {
  border-left: 1px solid #c5d1df;
}

.scr-info-cell strong,
.scr-signature-table strong {
  flex: 0 0 auto;
  font-weight: 800;
}

.scr-answer-field {
  flex: 1 1 auto;
  min-width: 80px;
  margin-left: 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #061c3a;
  font: inherit;
  font-weight: 500;
  min-height: 31px;
  padding: 5px 6px;
}

.scr-answer-field:focus {
  outline: 2px solid rgba(11, 71, 124, 0.24);
  outline-offset: -2px;
  background: #f5f9fd;
}

.scr-date-field {
  color-scheme: light;
}

.scr-signature-input {
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.scr-info-wide {
  grid-column: 1 / -1;
}

.scr-check-note {
  margin: 11px 0 0;
  padding-left: 70px;
  color: #061c3a;
  font-size: 15px;
}

.scr-checklist {
  display: grid;
  padding: 8px 20px 7px;
}

.scr-checklist label,
.scr-check-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0 11px;
  color: #061c3a;
  font-size: 16px;
  line-height: 1.3;
  border-bottom: 1px dotted #91b3d4;
}

.scr-checklist label:last-child,
.scr-check-row:last-child {
  border-bottom: 0;
}

.scr-checklist input {
  appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 2px solid #061c3a;
  border-radius: 3px;
  background: #ffffff;
}

.scr-checklist input:checked::after {
  content: "";
  display: block;
  width: 8px;
  height: 15px;
  margin: 2px auto 0;
  border: solid #071a34;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.scr-guide-link {
  display: inline;
  padding: 1px 5px 2px;
  border-radius: 5px;
  background: #fff2b8;
  color: #003f73;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.scr-guide-link:focus-visible {
  outline: 2px solid #e56f00;
  outline-offset: 2px;
}

.scr-lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scr-info-panel {
  background: linear-gradient(135deg, #fff6da, #ffffff 73%);
}

.scr-panel-body {
  padding: 13px 20px 14px;
  color: #061c3a;
  font-size: 15px;
}

.scr-panel-body strong {
  display: block;
  margin-top: 6px;
  color: #06315d;
}

.scr-panel-body ul {
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
}

.scr-panel-body li {
  position: relative;
  padding-left: 24px;
  margin-top: 3px;
}

.scr-panel-body li::before {
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
}

.scr-panel-body li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.scr-orange-list li::before {
  background: #e29b22;
}

.scr-blue-list li::before {
  background: #0b477c;
}

.scr-panel-body hr {
  border: 0;
  border-top: 1px solid #8fa6bc;
  margin: 12px 0;
}

.scr-signature-copy {
  margin: 0;
  min-height: 28px;
  padding: 7px 14px;
  border-top: 1px solid #c5d1df;
  color: #061c3a;
  font-size: 14px;
}

.scr-signature-table {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr;
}

.scr-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  color: #061c3a;
  font-size: 13px;
  font-style: italic;
}

.scr-footer span {
  flex: 0 0 auto;
  color: #5d6f84;
  font-style: normal;
}

@media (max-width: 900px) {
  .solar-review-sheet {
    padding: 22px 16px;
  }

  .solar-review-masthead,
  .solar-review-two-col,
  .solar-review-info-grid,
  .solar-review-signature-grid {
    grid-template-columns: 1fr;
  }

  .solar-review-info-grid label:nth-child(even),
  .solar-review-signature-grid label {
    border-left: 0;
  }

  .solar-review-instruction {
    padding-left: 18px;
  }

  .solar-review-checklist {
    padding-inline: 16px;
  }

  .solar-review-footer {
    display: grid;
  }

  .solar-review-form-head,
  .solar-review-info-grid-clean {
    grid-template-columns: 1fr;
  }

  .solar-review-agency-card {
    max-width: 320px;
  }

  .solar-review-cslb-logo {
    justify-self: start;
  }

  .solar-consumer-review-shell {
    width: min(100% - 18px, 1040px);
    padding-top: 14px;
  }

  .scr-document {
    padding: 20px 16px;
  }

  .scr-title-block p {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .scr-title-block h1 {
    font-size: clamp(2.35rem, 10vw, 3.35rem);
    white-space: normal;
  }

  .scr-title-block strong {
    font-size: 1.08rem;
  }

  .scr-title-block span {
    font-size: 0.98rem;
  }

  .scr-masthead,
  .scr-lower-grid,
  .scr-info-table,
  .scr-signature-table {
    grid-template-columns: 1fr;
  }

  .scr-cslb-logo {
    width: min(320px, 100%);
  }

  .scr-info-cell:nth-child(even),
  .scr-signature-table > div + div {
    border-left: 0;
  }

  .scr-check-note {
    padding-left: 20px;
  }

  .scr-checklist {
    padding-inline: 14px;
  }

  .scr-footer {
    align-items: start;
    flex-direction: column;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0.18in;
  }

  html,
  body {
    background: #ffffff !important;
    width: 100%;
    min-height: 0;
  }

  .shell-header,
  .command-strip,
  .scr-page-actions {
    display: none !important;
  }

  .shell-page,
  .shell-main {
    display: block;
    width: 100%;
    margin: 0;
  }

  .solar-review-sheet {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .solar-consumer-review-page {
    background: #ffffff !important;
  }

  .solar-consumer-review-shell {
    width: 100%;
    padding: 0;
  }

  .scr-document {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    gap: 5px;
    zoom: 0.78;
  }

  .scr-title-block p {
    font-size: 26px;
  }

  .scr-title-block h1 {
    font-size: 38px;
  }

  .scr-title-block strong {
    margin-top: 6px;
    font-size: 14px;
  }

  .scr-title-block span {
    max-width: 590px;
    margin-top: 7px;
    font-size: 12px;
  }

  .scr-masthead {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
  }

  .scr-cslb-logo {
    width: 176px;
  }

  .scr-section-bar {
    min-height: 30px;
    padding: 0 10px;
    gap: 8px;
  }

  .scr-section-bar h2 {
    font-size: 13px;
  }

  .scr-section-icon {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .scr-info-cell,
  .scr-signature-table > div {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .scr-answer-field {
    min-height: 22px;
    padding: 2px 3px;
  }

  .scr-check-note {
    margin-top: 6px;
    padding-left: 50px;
    font-size: 11px;
  }

  .scr-checklist {
    padding: 4px 15px;
  }

  .scr-checklist label,
  .scr-check-row {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    font-size: 11.5px;
  }

  .scr-checklist input {
    width: 19px;
    height: 19px;
  }

  .scr-lower-grid {
    gap: 8px;
  }

  .scr-panel-body {
    padding: 8px 14px;
    font-size: 11px;
  }

  .scr-panel-body li {
    padding-left: 20px;
    margin-top: 2px;
  }

  .scr-panel-body li::before {
    width: 13px;
    height: 13px;
  }

  .scr-panel-body li::after {
    left: 4px;
    top: 3px;
    width: 4px;
    height: 7px;
  }

  .scr-panel-body hr {
    margin: 7px 0;
  }

  .scr-signature-copy {
    min-height: 22px;
    padding: 5px 10px;
    font-size: 10.5px;
  }

  .scr-signature-input {
    font-size: 18px;
  }

  .scr-footer {
    font-size: 10.5px;
  }
}

.sales-stage-row {
  display: grid;
  gap: 4px;
}

.sales-stage-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #203650;
  font-size: 0.8rem;
  font-weight: 800;
}

.sales-stage-row-head strong {
  color: #12243a;
}

.sales-stage-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 104, 173, 0.1);
}

.sales-stage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #2376bd, #48a0e2);
}

.sales-stage-bar.is-empty {
  background: rgba(100, 116, 139, 0.12);
}

.sales-stage-bar.is-empty span {
  background: transparent;
}

.sales-due-overdue {
  color: #b42318 !important;
}

.sales-due-today {
  color: #1f68ad !important;
}

.auth-feedback {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.admin-user-list {
  display: grid;
  gap: 16px;
}

.admin-user-card {
  width: min(100%, 440px);
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 251, 0.96));
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 10px 24px rgba(16, 30, 48, 0.06);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-user-card:hover,
.admin-user-card:focus-visible {
  border-color: rgba(0, 139, 143, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(233, 249, 247, 0.97));
  box-shadow: 0 14px 28px rgba(0, 92, 96, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.admin-user-card-current {
  border-color: rgba(0, 139, 143, 0.48);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(226, 247, 244, 0.97));
  box-shadow: 0 12px 28px rgba(0, 92, 96, 0.13), inset 0 0 0 1px rgba(5, 191, 196, 0.12);
}

.admin-user-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.admin-user-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-user-head h3,
.admin-user-head p,
.admin-user-credentials {
  margin: 0;
}

.admin-user-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.admin-custom-access-mark {
  font-size: 0.85rem;
  color: #e07b00;
  font-weight: 700;
  cursor: default;
}

.admin-user-statuses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-user-credentials {
  margin-top: 10px;
  color: var(--muted);
}

.admin-role-controls {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.admin-role-actions {
  display: flex;
  align-items: end;
}

.admin-role-actions .resource-link {
  width: 100%;
}

.admin-inline-feedback {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(33, 95, 151, 0.18);
  border-radius: 12px;
  background: #eff6ff;
  color: #215f97;
  font-weight: 800;
  line-height: 1.35;
}

.admin-inline-feedback.is-error {
  border-color: rgba(180, 35, 24, 0.22);
  background: #fef2f2;
  color: #b42318;
}

.admin-inline-feedback.is-success {
  border-color: rgba(4, 120, 87, 0.2);
  background: #ecfdf5;
  color: #047857;
}

.admin-feedback {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.admin-feedback-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.admin-access-block {
  margin-top: 16px;
}

.admin-access-group-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.admin-access-section {
  display: grid;
  gap: 10px;
}

.admin-access-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-access-section-label {
  color: #17335c;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-access-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-access-toggle {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 104, 173, 0.14);
  background: rgba(31, 104, 173, 0.04);
  color: #215f97;
}

.admin-access-toggle.active {
  border-color: rgba(31, 104, 173, 0.28);
  background: rgba(31, 104, 173, 0.1);
  color: #17335c;
}

.admin-access-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-access-head {
  display: grid;
  gap: 4px;
}

.admin-access-head strong,
.admin-access-head span {
  margin: 0;
}

.admin-access-head span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-access-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 104, 173, 0.04);
  border: 1px solid rgba(31, 104, 173, 0.08);
}

.admin-access-item input {
  margin: 0;
}

.admin-access-section-dimmed {
  opacity: 1;
}

.admin-access-item-dimmed {
  opacity: 1;
}

.lead-intake-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 138, 125, 0.14), transparent 24%),
    radial-gradient(circle at right 18%, rgba(81, 170, 155, 0.12), transparent 24%),
    linear-gradient(180deg, #e9f6f3 0%, #f8fcfb 54%, #edf7f5 100%);
}

.lead-intake-shell {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: grid;
  gap: 18px;
}

.lead-intake-hero,
.lead-intake-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(27, 36, 48, 0.08);
  box-shadow: 0 18px 36px rgba(16, 30, 48, 0.08);
  border-radius: 22px;
}

.lead-intake-hero {
  padding: 14px 18px;
  display: grid;
  gap: 2px;
  color: #16263a;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 36, 48, 0.08);
}

.lead-intake-hero-copy h1,
.lead-intake-hero-copy p {
  margin: 0;
}

.lead-intake-hero-copy p {
  color: #667487;
  font-size: 1rem;
  font-weight: 800;
}

.lead-intake-card {
  padding: 28px 30px;
  font-size: 1.05rem;
}

.lead-intake-form {
  margin-top: 20px;
}

.lead-intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-intake-appointment-grid {
  grid-template-columns: minmax(170px, .9fr) minmax(220px, 1.2fr) minmax(150px, .72fr);
  align-items: end;
}

.lead-intake-date-picker {
  position: relative;
  display: block;
}

.lead-intake-date-trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(18, 80, 89, .2);
  border-radius: 16px;
  color: #163b45;
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(16, 36, 62, .04);
}

.lead-intake-date-trigger:hover,
.lead-intake-date-trigger:focus-visible,
.lead-intake-date-trigger[aria-expanded="true"] {
  border-color: #2f8a7d;
  outline: 3px solid rgba(47, 138, 125, .14);
}

.lead-intake-calendar-icon {
  position: relative;
  width: 20px;
  height: 18px;
  flex: 0 0 auto;
  border: 2px solid #2f8a7d;
  border-radius: 4px;
}
.lead-intake-calendar-icon::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; border-top: 2px solid #2f8a7d; }
.lead-intake-calendar-icon::after { content: ""; position: absolute; top: -5px; left: 4px; width: 2px; height: 6px; border-radius: 2px; background: #2f8a7d; box-shadow: 8px 0 #2f8a7d; }

.lead-intake-calendar {
  position: absolute;
  z-index: 31;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 56px));
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(47, 138, 125, .28);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(16, 55, 62, .2);
}
.lead-intake-calendar[hidden] { display: none; }
.lead-intake-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead-intake-calendar-head > strong { color: #173b43; font-size: 16px; font-weight: 900; }
.lead-intake-calendar-head > span { display: flex; gap: 6px; }
.lead-intake-calendar-head button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c8e3de;
  border-radius: 11px;
  color: #2f8a7d;
  background: #f3faf8;
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.lead-intake-calendar-head button:hover,
.lead-intake-calendar-head button:focus-visible { color: #ffffff; border-color: #2f8a7d; background: #2f8a7d; outline: none; }
.lead-intake-calendar-weekdays,
.lead-intake-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.lead-intake-calendar-weekdays b { display: grid; place-items: center; min-height: 28px; color: #60777b; font-size: 11px; font-weight: 900; }
.lead-intake-calendar-days button {
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #173b43;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.lead-intake-calendar-days button.is-outside { color: #9aa9aa; }
.lead-intake-calendar-days button.is-today { border-color: #95cec5; color: #247c70; }
.lead-intake-calendar-days button:hover,
.lead-intake-calendar-days button:focus-visible { border-color: #b9ddd7; background: #edf8f6; outline: none; }
.lead-intake-calendar-days button.is-selected { color: #ffffff; border-color: #2f8a7d; background: linear-gradient(135deg, #3b9a8d, #247c70); box-shadow: 0 6px 14px rgba(47, 138, 125, .24); }
.lead-intake-calendar-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; border-top: 1px solid #e1efec; }
.lead-intake-calendar-actions button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #2f8a7d;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.lead-intake-calendar-actions button:hover,
.lead-intake-calendar-actions button:focus-visible { color: #ffffff; background: #2f8a7d; outline: none; }

.lead-intake-time-picker {
  position: relative;
  display: block;
}

.lead-intake-time-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid rgba(18, 80, 89, .2);
  border-radius: 12px;
  color: #163b45;
  background: #ffffff;
  font: inherit;
  font-size: .88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(16, 36, 62, .04);
}

.lead-intake-time-trigger:hover,
.lead-intake-time-trigger:focus-visible,
.lead-intake-time-trigger[aria-expanded="true"] {
  border-color: #2f8a7d;
  outline: 3px solid rgba(47, 138, 125, .14);
}

.lead-intake-time-chevron { width: 24px; height: 24px; display: grid; place-items: center; color: #2f8a7d; }
.lead-intake-time-chevron svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.lead-intake-time-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 138, 125, .28);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(16, 55, 62, .17);
}

.lead-intake-time-menu[hidden] { display: none; }
.lead-intake-time-group { min-width: 0; display: grid; gap: 6px; }
.lead-intake-time-group > strong { color: #557078; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lead-intake-time-options { display: grid; gap: 6px; }
.lead-intake-time-hour .lead-intake-time-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lead-intake-time-minute .lead-intake-time-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lead-intake-time-period .lead-intake-time-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-intake-time-options button {
  min-height: 38px;
  border: 1px solid #d8e9e6;
  border-radius: 10px;
  color: #173b43;
  background: #f7fbfa;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.lead-intake-time-options button:hover,
.lead-intake-time-options button:focus-visible { border-color: #b9ddd7; background: #edf8f6; outline: none; }
.lead-intake-time-options button.is-selected { color: #ffffff; border-color: #2f8a7d; background: linear-gradient(135deg, #3b9a8d, #247c70); box-shadow: 0 4px 10px rgba(47, 138, 125, .2); }
.lead-intake-exact-time { padding-top: 2px; border-top: 1px solid #e1efec; }
.lead-intake-exact-time summary { padding-top: 10px; color: #2f8a7d; font-size: 12px; font-weight: 850; cursor: pointer; }
.lead-intake-exact-time > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 8px; }
.lead-intake-exact-time input { min-width: 0; min-height: 40px; padding: 0 11px; border: 1px solid #cfe0de; border-radius: 10px; color: #173b43; background: #fff; font: inherit; font-size: 13px; }
.lead-intake-exact-time button,
.lead-intake-time-done { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; color: #fff; background: #2f8a7d; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.lead-intake-exact-time > small { display: block; min-height: 15px; margin-top: 4px; color: #b42318; font-size: 10px; }
.lead-intake-time-done { width: 100%; min-height: 42px; }

.lead-intake-page .admin-access-item {
  border-color: rgba(47, 138, 125, .16);
  background: rgba(47, 138, 125, .05);
}
.lead-intake-page .admin-access-item:has(input:checked) {
  border-color: rgba(47, 138, 125, .48);
  background: rgba(47, 138, 125, .11);
  box-shadow: 0 7px 18px rgba(47, 138, 125, .1);
}
.lead-intake-page input[type="radio"],
.lead-intake-page input[type="checkbox"] {
  accent-color: #2f8a7d;
}

.lead-intake-timezone-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.lead-intake-timezone-field legend { margin: 0 0 8px; padding: 0; color: #17335c; font-size: .95rem; font-weight: 700; }
.lead-intake-timezone-picker { position: relative; }
.lead-intake-timezone-picker summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border: 1px solid rgba(47, 138, 125, .24); border-radius: 12px; color: #35655f; background: #f5fbfa; font-size: .82rem; cursor: pointer; list-style: none; }
.lead-intake-timezone-picker summary::-webkit-details-marker { display: none; }
.lead-intake-timezone-picker summary strong { font-weight: 900; }
.lead-intake-timezone-picker summary > span { color: #2f8a7d; font-size: 11px; font-weight: 850; }
.lead-intake-timezone-picker[open] summary { border-color: #2f8a7d; outline: 3px solid rgba(47, 138, 125, .14); }
.lead-intake-timezone-options { position: absolute; z-index: 29; top: calc(100% + 6px); right: 0; width: min(230px, calc(100vw - 32px)); min-height: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px; border: 1px solid rgba(47, 138, 125, .28); border-radius: 14px; background: #fff; box-shadow: 0 16px 34px rgba(16, 55, 62, .17); }
.lead-intake-timezone-options label { position: relative; min-width: 0; cursor: pointer; }
.lead-intake-timezone-options input { position: absolute; opacity: 0; pointer-events: none; }
.lead-intake-timezone-options label > span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 138, 125, .24);
  border-radius: 12px;
  color: #35655f;
  background: #f5fbfa;
  font-size: .82rem;
  font-weight: 900;
  transition: .16s ease;
}
.lead-intake-timezone-options small { display: block; margin-top: 1px; font-size: 9px; font-weight: 700; opacity: .78; }
.lead-intake-timezone-options input:checked + span { color: #ffffff; border-color: #2f8a7d; background: linear-gradient(135deg, #3b9a8d, #247c70); box-shadow: 0 8px 18px rgba(47, 138, 125, .2); }
.lead-intake-timezone-options input:focus-visible + span { outline: 3px solid rgba(47, 138, 125, .18); }

.lead-intake-page .lead-intake-back-link { color: #2f8a7d; }
.lead-intake-page .lead-intake-back-link:hover,
.lead-intake-page .lead-intake-back-link:focus-visible { color: #236f65; border-color: rgba(47, 138, 125, .22); background: rgba(47, 138, 125, .09); }
.lead-intake-page .lead-intake-form [data-intake-submit] {
  border-color: #2f8a7d;
  background: radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .28), transparent 34%), linear-gradient(135deg, #3b9a8d, #247c70);
  box-shadow: 0 12px 24px rgba(47, 138, 125, .22);
}
.lead-intake-page .lead-intake-form [data-intake-submit]:hover,
.lead-intake-page .lead-intake-form [data-intake-submit]:focus-visible { border-color: #236f65; box-shadow: 0 15px 28px rgba(47, 138, 125, .28); }

.lead-intake-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0;
}

.lead-intake-fieldset legend {
  padding: 0;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 1rem;
  color: #17335c;
}

.lead-intake-choice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-intake-interest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-intake-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-intake-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #215f97;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.lead-intake-back-link:hover,
.lead-intake-back-link:focus-visible {
  color: #17335c;
  text-decoration: none;
  border-color: rgba(33, 95, 151, 0.18);
  background: rgba(31, 104, 173, 0.08);
  box-shadow: 0 8px 18px rgba(7, 27, 54, 0.08);
  outline: none;
}

.lead-intake-brand img {
  height: 62px;
  filter: brightness(0);
}

.lead-intake-hero-copy h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.lead-intake-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.lead-intake-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lead-intake-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 104, 173, 0.12), rgba(77, 137, 199, 0.14));
  color: #1c4e7f;
  font-weight: 800;
  flex: 0 0 auto;
}

.lead-intake-upload-name {
  min-width: 0;
  color: #667487;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-intake-upload.has-file .lead-intake-upload-name {
  color: #1b2430;
}

.phone-number-request-page .lead-intake-upload-button {
  color: #247c70;
  background: linear-gradient(135deg, rgba(47, 138, 125, 0.13), rgba(81, 170, 155, 0.16));
}

.phone-number-request-page .auth-field input:focus,
.phone-number-request-page .auth-field select:focus,
.phone-number-request-page .auth-field textarea:focus {
  border-color: #2f8a7d;
  outline: 3px solid rgba(47, 138, 125, 0.18);
  outline-offset: 0;
}

.phone-number-request-page .lead-intake-address-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, 0.6fr) minmax(130px, 0.7fr);
}

.phone-number-request-page .lead-intake-form [data-phone-request-submit] {
  min-width: 180px;
  min-height: 52px;
  border-color: #2f8a7d;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #3b9a8d, #247c70);
  box-shadow: 0 12px 24px rgba(47, 138, 125, 0.22);
}

.phone-number-request-page .lead-intake-form [data-phone-request-submit]:hover,
.phone-number-request-page .lead-intake-form [data-phone-request-submit]:focus-visible {
  border-color: #236f65;
  box-shadow: 0 15px 28px rgba(47, 138, 125, 0.28);
}

.pay-issue-page .auth-field input:focus,
.pay-issue-page .auth-field select:focus,
.pay-issue-page .auth-field textarea:focus {
  border-color: #2f8a7d;
  outline: 3px solid rgba(47, 138, 125, 0.18);
  outline-offset: 0;
}

.pay-issue-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pay-retainer-review {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 138, 125, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(234, 248, 246, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 32px rgba(7, 74, 77, 0.08);
}

.pay-retainer-review[hidden] {
  display: none !important;
}

.pay-retainer-week-field {
  max-width: 520px;
}

.pay-retainer-summary {
  min-width: 0;
}

.pay-retainer-summary > p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  color: #607984;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 750;
}

.pay-retainer-summary > p.is-error {
  color: #a2362d;
  background: #fff3f1;
}

.pay-retainer-summary-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.pay-retainer-summary-head div {
  display: grid;
  gap: 2px;
}

.pay-retainer-summary-head div span,
.pay-retainer-contract-label {
  color: #607984;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pay-retainer-summary-head div strong {
  color: #123642;
  font-size: 1.05rem;
}

.pay-retainer-contract-label {
  padding: 7px 10px;
  border-radius: 999px;
  color: #087a79;
  background: #dff4f1;
  letter-spacing: 0.04em;
}

.pay-retainer-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pay-retainer-metric {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfe4e2;
  border-radius: 16px;
  background: #ffffff;
}

.pay-retainer-metric h3 {
  min-height: 55px;
  margin: 0;
  padding: 13px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #07545d, #0aa6a7);
  font-size: 0.94rem;
  line-height: 1.25;
}

.pay-retainer-metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e1eeee;
}

.pay-retainer-metric > div span {
  color: #607984;
  font-size: 0.76rem;
  font-weight: 800;
}

.pay-retainer-metric > div strong {
  color: #123642;
  font-size: 0.92rem;
}

.pay-retainer-metric > div:last-child strong {
  color: #087a79;
}

.pay-issue-page .lead-intake-form [data-pay-issue-submit] {
  min-width: 180px;
  min-height: 52px;
  border-color: #2f8a7d;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #3b9a8d, #247c70);
  box-shadow: 0 12px 24px rgba(47, 138, 125, 0.22);
}

.pay-issue-page .lead-intake-form [data-pay-issue-submit]:hover,
.pay-issue-page .lead-intake-form [data-pay-issue-submit]:focus-visible {
  border-color: #236f65;
  box-shadow: 0 15px 28px rgba(47, 138, 125, 0.28);
}

.phone-request-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.phone-request-actions .frame-actions,
.phone-request-actions .frame-actions > button {
  height: 100%;
}

.phone-request-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px;
  border: 1px solid rgba(47, 138, 125, 0.19);
  border-radius: 16px;
  color: #205f57;
  background: rgba(47, 138, 125, 0.08);
}

.phone-request-notice svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #2f8a7d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-request-notice strong {
  display: block;
}

.phone-request-notice strong {
  font-size: 0.98rem;
}

.lead-photo-capture { display: none; }

body.field-subapp-view .lead-photo-capture {
  display: grid;
  gap: 9px;
}

.lead-photo-heading {
  color: #101d2f;
  font-weight: 800;
}

.lead-photo-button {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 139, 143, .24);
  border-radius: 16px;
  color: #006c72;
  background: #e5f7f5;
  font-weight: 850;
  cursor: pointer;
}

.lead-photo-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lead-photo-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.lead-photo-preview {
  min-width: 0;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid rgba(0, 139, 143, .2);
  border-radius: 16px;
  background: #f4fbfa;
}

.lead-photo-preview[hidden] { display: none; }
.lead-photo-preview img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: #dbe9e8; }
.lead-photo-preview > span { min-width: 0; display: grid; gap: 3px; }
.lead-photo-preview strong { color: #10233b; font-size: .9rem; }
.lead-photo-preview small { overflow: hidden; color: #627486; font-size: .77rem; text-overflow: ellipsis; white-space: nowrap; }
.lead-photo-preview button { min-height: 38px; padding: 0 10px; border: 0; border-radius: 11px; color: #006c72; background: #dff3f1; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }

.pac-container {
  z-index: 10000;
  border: 1px solid rgba(33, 95, 151, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(18, 38, 63, 0.16);
  font-family: inherit;
}

body[data-page-key="home"] .shell-main.command-home-main {
  display: grid;
  gap: 16px;
}

.shell-header .nav-link {
  border-color: rgba(197, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(5, 191, 196, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 8px 18px rgba(0, 24, 32, 0.08);
}

.shell-header .nav-icon {
  color: rgba(179, 255, 255, 0.9);
}

.shell-header .nav-link.active,
.shell-header .nav-link:hover {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.19), rgba(5, 191, 196, 0.18));
  border-color: rgba(197, 255, 255, 0.26);
  box-shadow:
    0 12px 30px rgba(0, 30, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.shell-header .nav-link.active {
  box-shadow:
    0 14px 34px rgba(0, 30, 40, 0.22),
    inset 3px 0 0 rgba(5, 191, 196, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.shell-header .nav-link-break::before {
  background: linear-gradient(90deg, transparent, rgba(197, 255, 255, 0.22), transparent);
}

.shell-header .sidebar-settings-panel {
  border-color: rgba(197, 255, 255, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(5, 191, 196, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(0, 45, 58, 0.98), rgba(0, 27, 40, 0.98));
}

body[data-page-key="home"] .command-home-hero {
  border-color: rgba(5, 191, 196, 0.24);
  box-shadow:
    0 22px 46px rgba(0, 34, 51, 0.2),
    0 0 0 1px rgba(5, 191, 196, 0.08);
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
}

body[data-page-key="home"] .command-home-hero::after {
  background: radial-gradient(circle, rgba(220, 255, 255, 0.28), transparent 70%);
}

body[data-page-key="home"] .command-home-copy p,
body[data-page-key="home"] .command-home-alert span span {
  color: rgba(225, 252, 255, 0.88);
}

.command-home-hero {
  position: relative;
  width: 100%;
  min-height: 148px;
  padding-block: 20px;
}

.hero.hero-home.command-home-hero {
  min-height: 148px;
  height: auto;
}

body[data-page-key="home"] .hero.hero-home.command-home-hero,
body[data-page-key="home"] .command-home-hero {
  min-height: 168px;
}

body[data-page-key="home"] .command-home-hero-top {
  transform: none;
}

body[data-page-key="home"] .command-home-copy h1,
body[data-page-key="home"] .command-home-copy p {
  transform: translateY(-16px);
}

.command-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -34px -74px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  pointer-events: none;
}

body[data-page-key="home"] .command-home-hero .hero-search-anchor {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  display: flex;
}

body[data-page-key="home"] .command-home-hero .hero-search-anchor .header-search-button {
  min-height: 44px;
  min-width: 132px;
  padding: 0 14px;
  border-radius: 14px;
  border-color: rgba(168, 224, 255, 0.2);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.command-home-hero-top {
  position: static;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-right: 170px;
}

.command-home-copy h1 {
  margin: 0;
  color: white;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.command-home-copy p {
  margin: 7px 0 0;
  color: #dce8f6;
  font-size: 15px;
}

.command-home-alert {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  margin-top: 10px;
  width: 100%;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f8fbff;
  font-size: 19px;
  line-height: 1.2;
  text-align: center;
}

.command-home-alert [data-dashboard-hero-alert],
.command-home-alert strong,
.command-home-alert span span {
  display: block;
}

.command-home-alert strong {
  font-weight: 900;
}

.command-home-alert span span {
  margin-top: 3px;
  color: #dce8f6;
  font-size: 15px;
  font-weight: 500;
}

.command-home-goal {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 24px 28px;
  border-radius: var(--hero-radius);
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e3e9f2;
  box-shadow: var(--section-shadow);
  overflow: hidden;
}

.command-home-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.command-home-top-grid .command-home-goal {
  min-width: 0;
}

.command-home-top-grid .command-home-goal-grid {
  grid-template-columns: 48px repeat(3, minmax(0, 1fr)) 48px;
  gap: 16px;
}

.command-home-top-grid .command-home-goal-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.command-home-month-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid #cbd8e8;
  border-radius: 999px;
  background: #fff;
  color: #0f2e55;
  cursor: pointer;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 35, 62, 0.08);
  justify-self: center;
}

.command-home-month-arrow:hover,
.command-home-month-arrow:focus-visible {
  border-color: #8fb3dc;
  outline: none;
  transform: translateY(-1px);
}

.command-home-month-arrow:disabled {
  cursor: default;
  opacity: 0.35;
  transform: none;
}

.command-home-month-arrow[hidden] {
  display: none;
}

.command-home-top-grid .command-home-goal-value {
  font-size: clamp(30px, 3.2vw, 46px);
}

.command-home-top-grid .command-home-goal-stat {
  justify-content: center;
  padding-left: 0;
  border-left: 0;
}

.command-home-top-grid .command-home-goal-stat strong {
  font-size: 25px;
}

.command-home-top-grid .command-home-goal-stat span {
  font-size: 0.88rem;
  line-height: 1.15;
}

.command-home-live-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e3e9f2;
  border-radius: var(--hero-radius);
  background: #ffffff;
  box-shadow: var(--section-shadow);
}

.command-home-live-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8eef5;
}

.command-home-live-head h2 {
  margin: 0;
  color: #071b38;
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.command-home-office-button {
  justify-self: center;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.command-home-office-button,
.command-home-live-view-button,
.command-home-action-link {
  color: #008b8f;
}

.command-home-office-button:hover,
.command-home-office-button:focus-visible {
  color: #ffffff;
  background: #008b8f;
  box-shadow: 0 8px 18px rgba(0, 139, 143, 0.22);
  outline: none;
}

.command-home-live-view-button:hover,
.command-home-live-view-button:focus-visible,
.command-home-action-link:hover,
.command-home-action-link:focus-visible {
  color: #00777b;
  text-decoration: underline;
  text-decoration-color: rgba(0, 139, 143, .42);
  text-underline-offset: 4px;
  outline: none;
}

.command-home-live-view-button {
  justify-self: end;
}

.command-home-link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.command-home-link-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.command-home-live-list {
  display: grid;
}

.command-home-live-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 26px;
  min-width: 0;
}

.command-home-live-column {
  display: grid;
  align-content: start;
  min-width: 0;
}

.command-home-live-date {
  grid-column: 1 / -1;
  padding: 11px 0 6px;
  color: #6a7890;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-home-live-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #edf2f7;
}

.command-home-live-column .command-home-live-row:last-child {
  border-bottom: 0;
}

.command-home-live-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #1f68ad;
  background: #eff6ff;
}

.command-home-live-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 2px;
  border-radius: 999px;
  border: 0;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(31, 104, 173, 0.16);
  cursor: pointer;
  overflow: hidden;
}

.command-home-live-avatar:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.command-home-live-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.command-home-live-icon svg {
  width: 17px;
  height: 17px;
}

.command-home-live-avatar.green,
.command-home-live-icon.green {
  color: #0f8f68;
  background: #ecfdf5;
}

.command-home-live-avatar.red,
.command-home-live-icon.red {
  color: #d23943;
  background: #fff1f2;
}

.command-home-live-avatar.amber,
.command-home-live-icon.amber {
  color: #b77905;
  background: #fffbeb;
}

.command-home-live-avatar.purple,
.command-home-live-icon.purple {
  color: #6d3fe8;
  background: #f4f0ff;
}

.command-home-live-row strong,
.command-home-live-label {
  min-width: 0;
  overflow: hidden;
  color: #172b46;
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-home-live-label:hover {
  color: #0b63ce;
}

.command-home-live-label-button {
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.command-home-live-row time {
  color: #586a84;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.command-home-live-modal[hidden] {
  display: none;
}

.command-home-live-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.command-home-live-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 27, 56, 0.42);
}

.command-home-live-modal-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #dce6f2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.22);
}

.command-home-live-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 86px;
  margin: -22px -22px 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(135deg, #003d46, #008b8f 72%, #05bfc4);
}

.command-home-live-modal-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.command-home-live-modal-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e8eef5;
}

.command-home-live-modal-controls strong {
  min-width: 0;
  color: #071b38;
  font-size: 1rem;
  font-weight: 950;
  text-align: center;
}

.command-home-live-modal-controls button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  color: #0a2242;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.command-home-live-modal-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.command-home-live-modal .command-home-live-list {
  grid-template-columns: 1fr;
}

.command-home-live-modal .command-home-live-row:nth-last-child(-n + 2) {
  border-bottom: 1px solid #edf2f7;
}

.command-home-live-modal .command-home-live-row:last-child {
  border-bottom: 0;
}

.command-home-live-close {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  color: #0a2242;
  background: #ffffff;
  font-weight: 850;
  cursor: pointer;
}

.command-home-live-modal-head .command-home-live-close {
  border-color: rgba(255, 255, 255, 0.72);
  color: #0a2242;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 61, 70, 0.18);
}

.command-home-live-empty {
  padding: 18px 0 4px;
  color: #586a84;
  font-size: 0.92rem;
  font-weight: 800;
}

.command-home-photo-modal[hidden] {
  display: none;
}

.command-home-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
}

.command-home-photo-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 27, 56, 0.58);
  cursor: zoom-out;
}

.command-home-photo-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(220, 230, 242, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.28);
}

.command-home-photo-panel img {
  display: block;
  width: min(360px, calc(100vw - 88px));
  height: min(360px, calc(100vw - 88px));
  border-radius: 18px;
  object-fit: cover;
}

.command-home-photo-panel figcaption {
  max-width: min(360px, calc(100vw - 88px));
  color: #172b46;
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.command-home-appointment-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.command-home-appointment-modal::backdrop {
  background: rgba(7, 27, 56, 0.46);
}

.command-home-appointment-shell {
  max-height: min(820px, calc(100vh - 28px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #dce6f2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.24);
}

.command-home-live-door-modal {
  --door-activity-teal-deep: #003d46;
  --door-activity-teal: #008b8f;
  --door-activity-teal-bright: #05bfc4;
  width: min(720px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 28px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #dce6f2;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.24);
}

.command-home-live-door-modal::backdrop {
  background: rgba(7, 27, 56, 0.42);
}

.command-home-live-door-modal .command-home-live-modal-head {
  margin: -22px -22px 18px;
  padding: 20px 22px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.3), transparent 34%),
    linear-gradient(135deg, var(--door-activity-teal-deep), var(--door-activity-teal));
}

.command-home-live-door-modal[data-live-door-modal] .command-home-live-modal-head > div > span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.command-home-live-door-modal[data-office-activity-modal] .command-home-live-modal-head > div > span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}
.command-home-live-calls-modal .command-home-live-modal-head > div > span { display:block; margin-bottom:4px; color:rgba(255,255,255,.82); font-weight:800; }
.command-home-live-calls-modal .command-home-live-modal-head h2 { color:#fff; letter-spacing:0; text-transform:none; }
.command-home-live-calls-modal .command-home-live-modal-head .mini-link { border-color:rgba(255,255,255,.42); background:rgba(255,255,255,.12); color:#fff; }

.command-home-live-followups-modal {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  height: min(820px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 139, 143, 0.34);
  border-radius: 24px;
  background: #f7fcfc;
  box-shadow: 0 30px 90px rgba(7, 27, 56, 0.34);
}

.command-home-live-followups-modal::backdrop {
  background: rgba(7, 27, 56, 0.58);
  backdrop-filter: blur(5px);
}

.command-home-live-followups-modal.is-detail-view {
  width: 100vw;
  height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.command-home-live-followups-modal.is-detail-view .command-home-live-followups-shell {
  grid-template-rows: minmax(0, 1fr);
}

.command-home-live-followups-modal.is-detail-view .command-home-live-followups-head {
  display: none;
}

.command-home-live-followups-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.command-home-live-followups-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  color: #fff;
  background: radial-gradient(circle at 84% 8%, rgba(5, 191, 196, 0.34), transparent 35%), linear-gradient(135deg, #003d46, #008b8f);
}

.command-home-live-followups-head span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-home-live-followups-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 950;
}

.command-home-live-followups-head button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 900;
  cursor: pointer;
}

.command-home-live-followups-body {
  min-height: 0;
  overflow: auto;
  padding: 26px 28px 32px;
}

.command-home-live-followups-copy {
  margin: 0 0 18px;
  color: #5b6d83;
  font-weight: 800;
}

.command-home-live-followups-list {
  display: grid;
  gap: 12px;
}

.command-home-live-followup-customer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #cbe4e5;
  border-radius: 17px;
  color: #0a2242;
  text-align: left;
  background: #fff;
  box-shadow: 0 10px 26px rgba(7, 27, 56, 0.06);
  cursor: pointer;
}

.command-home-live-followup-customer:hover,
.command-home-live-followup-customer:focus-visible {
  border-color: #00a7aa;
  box-shadow: 0 14px 32px rgba(0, 139, 143, 0.14);
  outline: none;
}

.command-home-live-followup-customer span,
.command-home-live-followup-customer strong,
.command-home-live-followup-customer small {
  display: block;
}

.command-home-live-followup-customer strong {
  font-size: 1rem;
  font-weight: 950;
}

.command-home-live-followup-customer small {
  margin-top: 5px;
  color: #65758b;
  font-size: 0.86rem;
  font-weight: 750;
}

.command-home-live-followup-customer b {
  color: #008b8f;
  font-size: 1.8rem;
  line-height: 1;
}

.command-home-live-followups-detail {
  min-height: 0;
  height: 100%;
  background: #eef7f7;
}

.command-home-live-followups-detail iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #eef7f7;
}

@media (max-width: 700px) {
  .command-home-live-followups-modal { width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 18px; }
  .command-home-live-followups-head { padding: 18px; }
  .command-home-live-followups-body { padding: 18px; }
}

.command-home-live-door-modal[data-live-door-modal] .command-home-live-modal-head h2 {
  color: #ffffff;
}

.command-home-live-door-modal[data-office-activity-modal] .command-home-live-modal-head h2 {
  color: #ffffff;
}

.command-home-live-door-modal[data-live-door-modal] .command-home-live-modal-head .mini-link {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.command-home-live-door-modal[data-live-door-modal] .command-home-live-modal-head .mini-link:hover,
.command-home-live-door-modal[data-live-door-modal] .command-home-live-modal-head .mini-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.2);
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head h2,
.command-home-live-door-modal[data-office-activity-modal] .command-home-live-modal-head h2 {
  letter-spacing: 0;
  text-transform: none;
}

.command-home-appointment-modal[data-live-office-modal] {
  --office-checkin-teal-deep: #003d46;
  --office-checkin-teal: #008b8f;
  --office-checkin-teal-bright: #05bfc4;
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-shell {
  border-color: rgba(0, 139, 143, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfb 100%);
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head {
  margin: -22px -22px 18px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.3), transparent 34%),
    linear-gradient(135deg, var(--office-checkin-teal-deep), var(--office-checkin-teal));
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head h2,
.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head h2 span {
  color: #ffffff;
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head .mini-link {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head .mini-link:hover,
.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-head .mini-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.2);
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-field {
  border-color: rgba(0, 139, 143, 0.24);
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-field > span,
.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-field > div > span {
  color: #007d84;
}

.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-field:hover,
.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-field:focus-visible,
.command-home-appointment-modal[data-live-office-modal] .command-home-appointment-field:focus-within {
  border-color: var(--office-checkin-teal);
  box-shadow: 0 0 0 3px rgba(0, 139, 143, 0.12), 0 10px 24px rgba(0, 83, 87, 0.1);
}

.command-home-appointment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.command-home-appointment-time {
  display: block;
  margin-bottom: 8px;
  color: #145bc8;
  font-size: 1.04rem;
  font-weight: 950;
  line-height: 1.25;
}

.command-home-appointment-title-text,
.command-home-appointment-provider-slot {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
}

.command-home-appointment-provider-slot {
  flex: 0 0 auto;
}

.command-home-appointment-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  color: #071b38;
  font-size: 1.35rem;
  font-weight: 950;
}

.command-home-appointment-grid,
.command-home-appointment-edit,
.command-home-appointment-product-edit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.command-home-appointment-field {
  display: block;
  min-width: 0;
  min-height: 68px;
  padding: 13px 14px;
  border: 1px solid #cbd9eb;
  border-radius: 12px;
  background: #ffffff;
  color: #071b38;
  text-align: left;
  text-decoration: none;
}

.command-home-appointment-field:hover,
.command-home-appointment-field:focus-visible {
  border-color: #8fb8e8;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.command-home-appointment-field span,
.command-home-appointment-edit label {
  display: block;
  margin-bottom: 7px;
  color: #586a84;
  font-size: 0.76rem;
  font-weight: 950;
}

.command-home-appointment-field strong {
  display: block;
  overflow-wrap: anywhere;
  color: #071b38;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 900;
}

.command-home-appointment-provider-field strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.command-home-appointment-provider-field .command-home-appointment-provider-logo {
  height: 28px;
  max-width: 86px;
}

.command-home-appointment-provider-field strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font: inherit;
}

.command-home-checkin-time-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.command-home-checkin-map-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d9e4f2;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.command-home-checkin-map-button:hover,
.command-home-checkin-map-button:focus-visible {
  border-color: #8fb8e8;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.16);
}

.command-home-checkin-map-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.command-home-appointment-field p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #102746;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 500;
}

.command-home-appointment-field-wide,
.command-home-appointment-edit .wide {
  grid-column: 1 / -1;
}

.command-home-appointment-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.command-home-office-activity-options {
  display: grid;
  gap: 10px;
}

.command-home-office-activity-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #f8fbff;
  color: #071b38;
  font-weight: 900;
}

.command-home-office-activity-options label:has(input:checked) {
  border-color: #63c3ba;
  background: #eaf8f6;
  box-shadow: 0 6px 16px rgba(0, 139, 143, .09);
}

.command-home-office-activity-options input {
  width: 18px;
  height: 18px;
  accent-color: #008b8f;
}

.command-home-office-activity-modal .resource-link.primary {
  border-color: #008b8f;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, .2);
}

.command-home-office-activity-modal .resource-link.primary:hover,
.command-home-office-activity-modal .resource-link.primary:focus-visible {
  border-color: #00777b;
  box-shadow: 0 15px 28px rgba(0, 139, 143, .28);
}

.command-home-appointment-edit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8eef5;
}

.command-home-appointment-product-edit {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8eef5;
}

.command-home-appointment-product-edit label {
  display: grid;
  gap: 7px;
  color: #586a84;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.command-home-appointment-edit input,
.command-home-appointment-edit textarea,
.command-home-appointment-product-edit details,
.command-home-appointment-product-edit select {
  width: 100%;
  border: 1px solid #cbd9eb;
  border-radius: 10px;
  padding: 11px 12px;
  color: #071b38;
  font: inherit;
  font-weight: 800;
}

.product-checkbox-dropdown {
  position: relative;
  min-height: 42px;
  background: #ffffff;
}

.product-checkbox-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
  cursor: pointer;
  list-style: none;
}

.product-checkbox-dropdown summary::-webkit-details-marker {
  display: none;
}

.product-checkbox-dropdown summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 65% 65%;
}

.product-checkbox-dropdown[open] summary::after {
  transform: rotate(225deg);
}

.product-checkbox-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border: 1px solid #cbd9eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.product-checkbox-menu label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  color: #071b38;
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: none;
}

.product-checkbox-menu label:hover {
  background: #f1f6fc;
}

.product-checkbox-menu input {
  width: 16px;
  height: 16px;
  accent-color: #1f68ad;
}

.utility-provider-menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 420px) {
  .product-checkbox-menu {
    grid-template-columns: 1fr;
  }
}

.command-home-appointment-edit textarea {
  min-height: 110px;
  resize: vertical;
}

.command-home-appointment-modal[data-live-appointment-modal] {
  --home-appointment-teal-deep: #003d46;
  --home-appointment-teal: #008b8f;
  --home-appointment-teal-bright: #05bfc4;
  width: min(780px, calc(100vw - 28px));
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 20px);
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-shell {
  max-height: calc(100vh - 20px);
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-shell {
  overflow: auto;
  border-color: rgba(0, 139, 143, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-head {
  margin: -22px -22px 18px;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.28), transparent 32%),
    linear-gradient(135deg, var(--home-appointment-teal-deep), var(--home-appointment-teal));
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-time {
  color: #a7f3ef;
  font-size: 0.82rem;
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-time-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-timezone-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 999px;
  color: #103f3a;
  background: #d9f5ef;
  box-shadow: 0 6px 16px rgba(2, 32, 38, .18);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-timezone-badge[hidden] { display: none; }

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-head h2,
.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-title-text {
  color: #ffffff;
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-head .mini-link {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.command-home-appointment-modal[data-live-appointment-modal] [data-live-appointment-back] {
  background: rgba(255, 255, 255, 0.06);
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-field {
  min-height: 0;
  padding: 13px 14px;
  border-color: rgba(0, 139, 143, 0.2);
}

.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-field > span,
.command-home-appointment-modal[data-live-appointment-modal] .command-home-appointment-product-edit label {
  color: #007d84;
}

.command-home-appointment-modal[data-live-appointment-modal] .resource-link.primary {
  border-color: var(--home-appointment-teal);
  background: linear-gradient(135deg, var(--home-appointment-teal), var(--home-appointment-teal-bright));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.18);
}

.command-home-appointment-editor {
  display: grid;
  gap: 12px;
}

.command-home-appointment-summary[hidden],
.command-home-appointment-editor[hidden],
.command-home-appointment-edit[hidden],
.command-home-appointment-product-edit[hidden] {
  display: none;
}

.command-home-appointment-editor .command-home-appointment-edit,
.command-home-appointment-editor .command-home-appointment-product-edit {
  margin-top: 0;
  padding: 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit .span-two {
  grid-column: span 2;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit > label,
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > label,
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-address-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 68px;
  margin-bottom: 0;
  padding: 13px 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
  text-transform: none;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-address-card {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(60px, 0.5fr) minmax(84px, 0.75fr);
  gap: 14px;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-address-card > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-address-card > label:has(input:focus-visible) {
  border-radius: 6px;
  outline: 2px solid var(--home-appointment-teal-bright);
  outline-offset: 6px;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit > label:has(input:focus-visible),
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit > label:has(textarea:focus-visible),
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > label:has(details:focus-visible),
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > label:has(select:focus-visible),
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > label:has(input:focus-visible) {
  border-color: #67cbd0;
  box-shadow: 0 0 0 3px rgba(0, 139, 143, 0.12);
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit input,
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit textarea {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #071b38;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.35;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit textarea {
  min-height: 56px;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > .command-home-appointment-schedule-field {
  grid-column: span 2;
  position: relative;
  display: grid;
  align-self: stretch;
  gap: 7px;
  min-width: 0;
  min-height: 68px;
  margin-bottom: 0;
  padding: 13px 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 12px;
  background: #ffffff;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.live-appointment-schedule-picker { position: relative; display: block; min-width: 0; }
.live-appointment-schedule-trigger {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  color: #071b38;
  background: transparent;
  font: inherit;
  font-size: .96rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.live-appointment-schedule-trigger:focus-visible { outline: 2px solid #05bfc4; outline-offset: 5px; border-radius: 5px; }
.live-appointment-calendar-icon { position: relative; width: 19px; height: 17px; flex: 0 0 auto; border: 2px solid #008b8f; border-radius: 4px; }
.live-appointment-calendar-icon::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; border-top: 2px solid #008b8f; }
.live-appointment-calendar-icon::after { content: ""; position: absolute; top: -5px; left: 3px; width: 2px; height: 6px; border-radius: 2px; background: #008b8f; box-shadow: 8px 0 #008b8f; }

.live-appointment-schedule-popup {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 72px));
  height: min(410px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 139, 143, .3);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 26px 64px rgba(0, 61, 70, .24);
}
.live-appointment-schedule-popup[hidden] { display: none; }
.live-appointment-calendar-panel { min-width: 0; display: grid; grid-template-rows: auto auto 1fr auto; gap: 9px; }
.live-appointment-calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-appointment-calendar-head > strong { color: #073a42; font-size: 16px; font-weight: 950; }
.live-appointment-calendar-head > span { display: flex; gap: 6px; }
.live-appointment-calendar-head button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #b7ded9;
  border-radius: 11px;
  color: #008b8f;
  background: #f0faf9;
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  cursor: pointer;
}
.live-appointment-calendar-head button:hover,
.live-appointment-calendar-head button:focus-visible { color: #ffffff; border-color: #008b8f; background: #008b8f; outline: none; }
.live-appointment-calendar-weekdays,
.live-appointment-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.live-appointment-calendar-weekdays b { display: grid; min-height: 30px; place-items: center; color: #54767a; font-size: 11px; font-weight: 950; }
.live-appointment-calendar-days button {
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #123b42;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.live-appointment-calendar-days button.is-outside { color: #9aabaa; }
.live-appointment-calendar-days button.is-today { border-color: #8bcfc7; color: #007d84; }
.live-appointment-calendar-days button:hover,
.live-appointment-calendar-days button:focus-visible { border-color: #b7ded9; background: #edf9f7; outline: none; }
.live-appointment-calendar-days button.is-selected { color: #ffffff; border-color: #008b8f; background: linear-gradient(135deg, #05a9ad, #007d84); box-shadow: 0 6px 14px rgba(0, 139, 143, .25); }
.live-appointment-calendar-actions { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px solid #deefed; }
.live-appointment-calendar-actions button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: #008b8f;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}
.live-appointment-calendar-actions button:hover,
.live-appointment-calendar-actions button:focus-visible { color: #ffffff; background: #008b8f; outline: none; }

.live-appointment-time-panel { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: hidden; }
.live-appointment-time-column { min-width: 0; display: grid; grid-template-rows: auto 1fr; gap: 7px; overflow: hidden; }
.live-appointment-time-column > b { padding: 8px 2px 2px; color: #54767a; font-size: 10px; font-weight: 950; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.live-appointment-time-column > span { display: grid; align-content: start; gap: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #72c7be #edf8f7; }
.live-appointment-time-column button {
  min-height: 43px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #123b42;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}
.live-appointment-time-column button:hover,
.live-appointment-time-column button:focus-visible { border-color: #b7ded9; background: #edf9f7; outline: none; }
.live-appointment-time-column button.is-selected { color: #ffffff; border-color: #008b8f; background: linear-gradient(135deg, #05a9ad, #007d84); box-shadow: 0 6px 14px rgba(0, 139, 143, .25); }
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit details,
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit select,
.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit input {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  color: #071b38;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.35;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > .resource-link {
  min-height: 68px;
  border-radius: 12px;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-bottom-actions {
  flex-wrap: nowrap;
  margin-top: 12px;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-bottom-actions .resource-link {
  flex: 0 1 auto;
}

.command-home-appointment-modal[data-live-appointment-modal] [data-live-appointment-feedback]:empty {
  display: none;
}

.command-home-appointment-modal[data-live-appointment-modal] [data-live-appointment-feedback]:not(:empty) {
  min-height: 0;
  margin: 12px 0 0;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit details {
  display: flex;
  align-items: center;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit details > summary {
  width: 100%;
}

.command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit .command-home-appointment-actions {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit .span-two {
    grid-column: 1 / -1;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > .resource-link {
    grid-column: 1 / -1;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-address-card {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(60px, 0.55fr) minmax(80px, 0.75fr);
  }
}

@media (max-width: 640px) {
  .command-home-appointment-grid,
  .command-home-appointment-edit,
  .command-home-appointment-product-edit {
    grid-template-columns: 1fr;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit {
    grid-template-columns: 1fr;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-edit .span-two {
    grid-column: 1 / -1;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit {
    grid-template-columns: 1fr;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-settings-edit > .command-home-appointment-schedule-field {
    grid-column: 1;
  }

  .live-appointment-schedule-popup {
    top: 50%;
    left: 50%;
    width: min(430px, calc(100vw - 58px));
    height: min(680px, calc(100vh - 130px));
    transform: translate(-50%, -50%);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(240px, 1fr);
    overflow-y: auto;
  }

  .command-home-appointment-modal[data-live-appointment-modal].is-editing .command-home-appointment-address-card {
    grid-template-columns: 1fr 1fr;
  }

  .command-home-appointment-head h2 {
    font-size: 1.12rem;
  }

  .command-home-appointment-actions {
    justify-content: stretch;
  }

  .command-home-appointment-actions .resource-link {
    flex: 1 1 100%;
  }
}

.command-home-goal-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 48px repeat(3, minmax(160px, 1fr)) 48px;
  gap: 22px;
  align-items: center;
  background: #ffffff;
}

.command-home-goal-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  text-align: center;
  background: #ffffff;
}

.command-home-goal-main > div {
  width: 100%;
}

.command-home-goal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid #dce5ef;
  background: linear-gradient(180deg, #f8fbff, #eef4fa);
  color: #31506d;
}

.command-home-goal-mark svg,
.command-home-goal-stat-icon svg {
  display: block;
}

.command-home-goal-mark svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.command-home-goal-value {
  margin: 0;
  color: #071b38;
  font-size: 40px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.command-home-goal-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding-left: 25px;
  border-left: 1px solid #d7dfe7;
}

.command-home-goal-stat-days {
  grid-column: 2;
}

.command-home-goal-stat-short {
  grid-column: 3;
}

.command-home-goal-stat-per-day {
  grid-column: 4;
}

.command-home-goal-stat-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.command-home-goal-stat-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.command-home-goal-stat-days .command-home-goal-stat-icon {
  color: #59718c;
}

.command-home-goal-stat-short .command-home-goal-stat-icon {
  color: #c73f54;
}

.command-home-goal-stat-per-day .command-home-goal-stat-icon {
  color: #6a86a6;
}

.command-home-goal-stat strong {
  display: block;
  color: #071b38;
  font-size: 28px;
}

.command-home-goal-stat span {
  display: block;
  color: #41516a;
}

.command-home-goal-bar {
  height: 16px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.command-home-goal-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #203650, #1f68ad);
}

.command-home-goal-complete {
  margin-top: 12px;
  color: #071b38;
  font-size: 20px;
}

.command-home-goal-complete strong {
  color: #2d7cff;
}

.command-home-goal-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.command-home-goal-sales {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  min-height: 136px;
  gap: 20px;
  padding: 18px 26px;
  transform: none;
  transition: none;
}

.command-home-goal-sales:hover,
.command-home-goal-sales:focus-visible {
  transform: none;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow:
    0 18px 44px rgba(15, 35, 65, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.command-home-goal-sales .workspace-action-medallion {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: 84px;
  height: 84px;
  margin: 0;
  transform: none;
}

.command-home-goal-sales-copy {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  margin-top: 0;
  text-align: left;
}

.command-home-goal-sales h3 {
  margin: 0;
  transform: none;
  font-size: 1.3rem;
  line-height: 1.05;
}

.command-home-goal-sales.workspace-theme-review h3 {
  color: #f59e0b;
}

.command-home-goal-sales.workspace-theme-deal h3 {
  color: #0f766e;
}

.command-home-goal-sales-subtitle {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 4px;
  color: #52627a;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.command-home-goal-sales p {
  margin-top: 3px;
  text-align: left;
}

.command-home-goal-sales-count {
  position: relative;
  z-index: 1;
  display: block;
  margin: 10px 0 0;
  color: #071b38;
  font-size: 32px;
  font-weight: 950;
  line-height: 1;
}

.command-home-goal-sales-bg {
  position: absolute;
  right: 10px;
  bottom: 0;
  z-index: 0;
  width: 124px;
  height: 104px;
  color: var(--workspace-card-accent);
  opacity: 0.14;
  pointer-events: none;
}

.command-home-goal-sales-bg svg,
.command-home-goal-sales-bg img {
  display: block;
  width: 100%;
  height: 100%;
}

.command-home-goal-sales-bg svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.command-home-goal-sales-bg img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.command-home-status-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.command-home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border: 1px solid #e3e9f2;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(7, 27, 56, 0.07);
}

.command-home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  min-height: 30px;
  margin-bottom: 26px;
}

.command-home-card-head h2 {
  margin: 0;
  color: #071b38;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.command-home-card-value {
  min-height: 66px;
  margin-bottom: 10px;
  color: #1c2f4a;
  font-size: 31px;
  font-weight: 950;
  letter-spacing: -1px;
  line-height: 1.05;
}

.command-home-card-sub {
  font-weight: 800;
  line-height: 1.35;
}

.command-home-card-sub-red {
  color: #f43f5e;
}

.command-home-mini-bar {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef5;
}

.command-home-mini-bar i {
  display: block;
  height: 100%;
  background: #2d7cff;
  border-radius: 999px;
}

.command-home-callout {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
}

.command-home-callout strong,
.command-home-callout span {
  display: block;
}

.command-home-callout span {
  margin-top: 4px;
  color: #66758d;
}

.command-home-callout-red {
  background: #fff0f3;
}

.command-home-callout-blue {
  background: #edf4ff;
}

.command-home-callout-blue strong {
  color: #0b58d0;
}

.command-home-pipeline-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  color: #51627a;
  font-size: 13px;
}

.command-home-pipeline-row span {
  display: block;
}

.command-home-pipeline-row strong {
  display: block;
  color: #071b38;
  font-size: 17px;
}

.command-home-focus-title {
  min-height: 74px;
  margin-bottom: 20px;
  color: #0b477c;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.command-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.command-home-metric-box {
  min-width: 0;
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  background: #fff;
}

.command-home-metric-box strong {
  display: block;
  color: #071b38;
  font-size: 24px;
}

.command-home-metric-box span {
  display: block;
  color: #41516a;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: normal;
}

.command-home-full-button {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.command-home-updates {
  display: grid;
  gap: 13px;
}

.command-home-update {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto 20px;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding-top: 12px;
  border-top: 1px solid #e8edf4;
  color: inherit;
  text-decoration: none;
}

.command-home-update:first-child {
  padding-top: 0;
  border-top: 0;
}

.command-home-update strong,
.command-home-update p {
  margin: 0;
}

.command-home-update p {
  margin-top: 4px;
  color: #66758d;
  line-height: 1.45;
  font-size: 0.9rem;
}

.command-home-update-status {
  align-self: center;
  justify-self: end;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.command-home-update-status.is-read {
  color: #067647;
  background: #dcfce7;
}

.command-home-update-status.is-unread {
  color: #92400e;
  background: #fef3c7;
}

.command-home-update-arrow {
  align-self: center;
  color: #203650;
  font-size: 1.35rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .command-home-update {
    grid-template-columns: 1fr auto;
  }

  .command-home-update .news-tag,
  .command-home-update-copy {
    grid-column: 1 / -1;
  }

  .command-home-update-status {
    justify-self: start;
  }
}

.command-home-workflow-band {
  margin-bottom: 0;
}

.command-home-workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.command-home-tile {
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: white;
}

.command-home-tile-icon {
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.command-home-tile-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.command-home-tile-battery .command-home-tile-icon {
  color: #14935f;
}

.command-home-tile-solar .command-home-tile-icon {
  color: #f29a1f;
}

.command-home-tile-windows .command-home-tile-icon {
  color: #2664f6;
}

.command-home-tile-hvac .command-home-tile-icon {
  color: #7c45ef;
}

.command-home-tile-roof .command-home-tile-icon {
  color: #ff4d57;
}

.command-home-tile strong {
  display: block;
  color: #071b38;
  font-size: 17px;
}

.command-home-tile p {
  min-height: 44px;
  margin: 8px 0 0;
  color: #344661;
  font-size: 13px;
  line-height: 1.4;
}

.command-home-tile-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 900;
}

.command-home-tile-battery .command-home-tile-button {
  background: #d9f3e7;
  color: #08714b;
}

.command-home-tile-solar .command-home-tile-button {
  background: #ffecc8;
  color: #f07b00;
}

.command-home-tile-windows .command-home-tile-button {
  background: #dbe8ff;
  color: #0b58d0;
}

.command-home-tile-hvac .command-home-tile-button {
  background: #e8d8ff;
  color: #7135cc;
}

.command-home-tile-roof .command-home-tile-button {
  background: #ff6b75;
  color: white;
}

.command-home-daily-band {
  margin: 16px 0;
}

.command-home-daily-card {
  padding: 22px;
}

.command-home-daily-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.command-home-daily-item {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 116px;
  padding: 12px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #ffffff;
  color: #071b38;
  text-decoration: none;
}

.command-home-daily-item strong,
.command-home-daily-item p,
.command-home-daily-item span {
  margin: 0;
}

.command-home-daily-item strong {
  font-size: 0.95rem;
}

.command-home-daily-item p,
.command-home-daily-item > span:not(.news-tag) {
  color: #66758d;
  font-size: 0.83rem;
  line-height: 1.35;
}

.command-home-daily-item.empty {
  grid-column: 1 / -1;
  min-height: 76px;
}

.command-home-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.command-home-performers-band {
  display: grid;
  gap: 14px;
}


.command-home-performers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.command-home-performer-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: #f8fafc;
}

.command-home-performer-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66758d;
}

.command-home-performer-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #006f75, #05aeb3);
  box-shadow: 0 8px 18px rgba(0, 139, 143, 0.16);
  font-size: 0.9rem;
  font-weight: 900;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.command-home-performer-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.command-home-performer-copy {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  gap: 3px;
  min-width: 0;
}

.command-home-performer-copy-wide {
  grid-column: 2 / -1;
}

.command-home-performer-badges {
  display: grid;
  grid-column: 3;
  grid-row: 2;
  grid-template-columns: 42px 42px;
  gap: 4px;
  align-items: center;
  align-self: center;
}

.command-home-badge-slot {
  display: block;
  width: 42px;
  height: 42px;
}

.command-home-performer-name {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #071b38;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-home-performer-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-home-performer-value {
  font-size: 1rem;
  font-weight: 700;
  font-style: normal;
  color: #078a58;
}

.sales-side-stack {
  display: grid;
  gap: 18px;
}

.sales-intake-card .band-head {
  margin-bottom: 10px;
}

.sales-intake-link-shell {
  display: grid;
  gap: 12px;
}

.sales-intake-link-label {
  color: #17335c;
  font-weight: 800;
}

.sales-intake-link-code {
  display: block;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(239, 246, 252, 0.9);
  color: #29445f;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sales-intake-logo-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.sales-workspace-hero .band-head {
  margin-bottom: 10px;
}

.sales-workspace-hero .band-head h2 {
  color: #fff;
  margin-bottom: 0;
}

.sales-intake-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 108px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.sales-intake-logo:hover,
.sales-intake-logo:focus-visible {
  background: linear-gradient(135deg, rgba(44, 104, 176, 0.34), rgba(86, 160, 232, 0.24));
  border-color: rgba(129, 205, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(168, 224, 255, 0.14), 0 14px 28px rgba(8, 24, 44, 0.34);
  transform: translateY(-2px) scale(1.02);
}

/* Sales three-column layout */
.sales-three-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.sales-detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.sales-detail-grid .sales-col[hidden] {
  display: none;
}

.sales-detail-grid .sales-col > .hub-card {
  min-height: 0;
}

.sales-detail-grid .sales-list {
  flex: 0 0 auto;
}

.sales-col {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.sales-col > .hub-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sales-col .sales-list {
  flex: 1;
}

.sales-add-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px dashed rgba(27, 36, 48, 0.2);
  background: rgba(255, 255, 255, 0.5);
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sales-add-trigger:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--amber);
  color: var(--orange);
}

/* Sales modals */
.sales-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border: none;
  border-radius: 22px;
  padding: 0;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(16, 30, 48, 0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,247,251,0.97));
}


.sales-modal[data-sales-modal="deal"] {
  width: min(920px, calc(100vw - 32px));
}
.sales-modal[data-sales-modal="contact"] {
  width: min(760px, calc(100vw - 32px));
}

.intake-review-modal {
  width: min(760px, calc(100vw - 32px));
}

.sales-modal::backdrop {
  background: rgba(14, 24, 36, 0.55);
  backdrop-filter: blur(3px);
}

.sales-modal-shell {
  padding: 26px 28px 28px;
  display: grid;
  gap: 20px;
}

.sales-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sales-modal-head h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}

.sales-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sales-modal-head .mini-link {
  flex-shrink: 0;
  margin-top: 2px;
}

.sales-modal[data-sales-modal="contact"] .auth-field input,
.sales-modal[data-sales-modal="contact"] .auth-field textarea,
.sales-modal[data-sales-modal="contact"] .auth-field select {
  min-height: 48px;
  border-color: #cbd9eb;
  border-radius: 12px;
  background: #ffffff;
  font-weight: 800;
}

.sales-modal[data-sales-modal="contact"] .auth-field textarea {
  min-height: 124px;
}

/* Keep contact assignment visually aligned with the Live Activity appointment editor. */
.sales-modal[data-sales-modal="contact"] {
  --sales-contact-teal-deep: #003d46;
  --sales-contact-teal: #008b8f;
  --sales-contact-teal-bright: #05bfc4;
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 20px);
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

.sales-modal[data-sales-modal="contact"] .sales-modal-shell {
  max-height: calc(100vh - 20px);
  overflow: auto;
  padding: 22px;
  gap: 16px;
  border: 1px solid rgba(0, 139, 143, 0.28);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.24);
}

.sales-modal[data-sales-modal="contact"] .sales-modal-head {
  margin: -22px -22px 0;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.28), transparent 32%),
    linear-gradient(135deg, var(--sales-contact-teal-deep), var(--sales-contact-teal));
}

.sales-modal[data-sales-modal="contact"] .sales-modal-head h2 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
}

.sales-modal[data-sales-modal="contact"] .sales-modal-head p {
  color: #a7f3ef;
  font-weight: 750;
}

.sales-modal[data-sales-modal="contact"] .sales-modal-head .mini-link {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.sales-modal[data-sales-modal="contact"] .sales-form {
  gap: 12px;
}

.sales-modal[data-sales-modal="contact"] .sales-form-row {
  gap: 12px;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-details-panel,
.sales-modal[data-sales-modal="contact"] .sales-contact-settings-panel {
  padding: 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.sales-modal[data-sales-modal="contact"] .sales-contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-address-card {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(60px, 0.5fr) minmax(84px, 0.75fr);
  gap: 14px;
  min-width: 0;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 12px;
  background: #ffffff;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-address-card > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-address-card span {
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-address-card input {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #071b38;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.35;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-address-card:has(input:focus-visible) {
  border-color: #67cbd0;
  box-shadow: 0 0 0 3px rgba(0, 139, 143, 0.12);
}

.sales-modal[data-sales-modal="contact"] .sales-contact-notes-field {
  grid-column: 1 / -1;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-settings-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-appointment-row:not([hidden]) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-modal[data-sales-modal="contact"] .sales-admin-assignment-row:not([hidden]) {
  display: contents;
}

.sales-modal[data-sales-modal="contact"] .sales-contact-settings-panel:has(.sales-admin-assignment-row[hidden]) .sales-contact-utility-field {
  grid-column: 1 / -1;
}

.sales-modal[data-sales-modal="contact"] .auth-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 68px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 12px;
  background: #ffffff;
}

.sales-modal[data-sales-modal="contact"] .auth-field > span {
  margin: 0;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.2;
}

.sales-modal[data-sales-modal="contact"] .auth-field:has(input:focus-visible),
.sales-modal[data-sales-modal="contact"] .auth-field:has(textarea:focus-visible),
.sales-modal[data-sales-modal="contact"] .auth-field:has(select:focus-visible) {
  border-color: #67cbd0;
  box-shadow: 0 0 0 3px rgba(0, 139, 143, 0.12);
}

.sales-modal[data-sales-modal="contact"] .auth-field input,
.sales-modal[data-sales-modal="contact"] .auth-field textarea,
.sales-modal[data-sales-modal="contact"] .auth-field select {
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  color: #071b38;
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: none;
}

.sales-modal[data-sales-modal="contact"] .auth-field textarea {
  min-height: 72px;
  resize: vertical;
}

.sales-modal[data-sales-modal="contact"] .sales-form-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.sales-modal[data-sales-modal="contact"] .resource-link.primary {
  border-color: var(--sales-contact-teal);
  background: linear-gradient(135deg, var(--sales-contact-teal), var(--sales-contact-teal-bright));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.18);
}

.sales-modal[data-sales-modal="contact"] .auth-feedback:empty {
  display: none;
}

@media (max-width: 760px) {
  .sales-modal[data-sales-modal="contact"] .sales-contact-details-grid,
  .sales-modal[data-sales-modal="contact"] .sales-contact-settings-panel {
    grid-template-columns: 1fr;
  }

  .sales-modal[data-sales-modal="contact"] .sales-contact-address-card,
  .sales-modal[data-sales-modal="contact"] .sales-contact-notes-field {
    grid-column: 1;
  }

  .sales-modal[data-sales-modal="contact"] .sales-contact-address-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-modal[data-sales-modal="contact"] .sales-contact-appointment-row:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .sales-modal[data-sales-modal="contact"] .sales-modal-head {
    align-items: center;
  }

  .sales-modal[data-sales-modal="contact"] .sales-modal-head p {
    display: none;
  }
}

/* Projects-style follow-up workspace */
body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-scroll {
  padding: 0 22px 32px;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .followup-detail-card.is-followup-profile .followup-profile-editor {
  display: block;
  padding: 0;
}

body[data-page-key="sales-workspace"] .followup-progress-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 24px 5vw 26px;
  border-bottom: 1px solid #dce6ee;
  background: #fff;
}

body[data-page-key="sales-workspace"] .followup-progress-rail > div {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #10243e;
  text-align: center;
}

.workspace-assign-panel .workspace-empty-state,
.workspace-intake-deals-panel .workspace-empty-state {
  --workspace-stage-accent: #00979d;
  --workspace-stage-accent-rgb: 0, 151, 157;
  border-color: rgba(0, 151, 157, 0.28);
  background: rgba(244, 252, 252, 0.86);
}

body[data-page-key="sales-workspace"] .followup-progress-rail > div::before,
body[data-page-key="sales-workspace"] .followup-progress-rail > div::after {
  content: "";
  position: absolute;
  top: 13px;
  width: calc(50% - 17px);
  height: 2px;
  background: #d8e3ec;
}

body[data-page-key="sales-workspace"] .followup-progress-rail > div::before { left: 0; }
body[data-page-key="sales-workspace"] .followup-progress-rail > div::after { right: 0; }
body[data-page-key="sales-workspace"] .followup-progress-rail > div:first-child::before,
body[data-page-key="sales-workspace"] .followup-progress-rail > div:last-child::after { display: none; }
body[data-page-key="sales-workspace"] .followup-progress-rail > div.is-complete::after,
body[data-page-key="sales-workspace"] .followup-progress-rail > div.is-current::before { background: #22a96f; }

body[data-page-key="sales-workspace"] .followup-progress-rail > div > span {
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 4px solid #dbe6ef;
  border-radius: 50%;
  color: #fff;
  background: #f7fafc;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-progress-rail > div.is-complete > span {
  border-color: #22a96f;
  background: #22a96f;
}

body[data-page-key="sales-workspace"] .followup-progress-rail > div.is-current > span {
  border-color: #0da5aa;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(13, 165, 170, .13);
}

body[data-page-key="sales-workspace"] .followup-progress-rail > div.is-current > span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0da5aa;
}

body[data-page-key="sales-workspace"] .followup-progress-rail strong {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .followup-progress-rail small {
  min-height: 14px;
  color: #6b7d92;
  font-size: 9px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .followup-progress-rail .is-complete small { color: #168a57; }
body[data-page-key="sales-workspace"] .followup-progress-rail .is-current small { color: #00868c; }

body[data-page-key="sales-workspace"] .followup-next-move {
  display: grid;
  grid-template-columns: minmax(250px, 1.05fr) minmax(320px, 1.5fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid #cfe0eb;
  border-left: 5px solid #0b9ca3;
  border-radius: 15px;
  background: linear-gradient(105deg, #f7fcfd, #ffffff 65%);
  box-shadow: 0 9px 24px rgba(20, 45, 74, .06);
}

body[data-page-key="sales-workspace"] .followup-next-move.is-warning {
  border-left-color: #e58a19;
  background: linear-gradient(105deg, #fff9ef, #ffffff 65%);
}

body[data-page-key="sales-workspace"] .followup-next-move.is-danger {
  border-left-color: #d44848;
  background: linear-gradient(105deg, #fff5f5, #ffffff 65%);
}

body[data-page-key="sales-workspace"] .followup-next-move-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

body[data-page-key="sales-workspace"] .followup-next-move-copy small {
  color: #57708a;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .11em;
}

body[data-page-key="sales-workspace"] .followup-next-move-copy strong {
  overflow: hidden;
  color: #10243e;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-next-move-copy > span {
  overflow: hidden;
  color: #63778d;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-next-move-signals,
body[data-page-key="sales-workspace"] .followup-next-move-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-next-move-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid #dce6ed;
  border-radius: 999px;
  color: #526980;
  background: #ffffff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-next-move-chip b { color: #18324f; }

body[data-page-key="sales-workspace"] .followup-next-move-actions { justify-content: flex-end; }

body[data-page-key="sales-workspace"] .followup-next-move-actions a,
body[data-page-key="sales-workspace"] .followup-next-move-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border: 1px solid #cddce7;
  border-radius: 9px;
  color: #173a5d;
  background: #ffffff;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-next-move-actions button {
  border-color: #0c9da5;
  color: #ffffff;
  background: #0c9da5;
}

body[data-page-key="sales-workspace"] .followup-next-move + .followup-portal-workspace { margin-top: 14px; }

body[data-page-key="sales-workspace"] .followup-portal-workspace {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #d7e4ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 45, 74, .05);
}

body[data-page-key="sales-workspace"] .followup-portal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 15px;
}

body[data-page-key="sales-workspace"] .followup-portal-heading h3 {
  margin: 0;
  color: #10243e;
  font-size: 21px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-portal-heading p {
  margin: 4px 0 0;
  color: #66778d;
  font-size: 12px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .followup-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 22px;
  padding: 14px 0;
  border-top: 1px solid #e0e9f0;
  border-bottom: 1px solid #e0e9f0;
}

body[data-page-key="sales-workspace"] .followup-portal-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .followup-portal-title > h3 {
  margin: 0;
}

body[data-page-key="sales-workspace"] .followup-portal-title .followup-history-popover {
  position: absolute;
  z-index: 45;
  top: calc(100% + 12px);
  left: 0;
  width: min(620px, calc(100vw - 80px));
  max-height: min(68vh, 580px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid #cfe1e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 35, 57, .2);
}

body[data-page-key="sales-workspace"] .followup-portal-title .followup-history-popover[hidden] {
  display: none;
}

body[data-page-key="sales-workspace"] .followup-portal-title .followup-history-popover .followup-history-search input {
  width: 100%;
  min-height: 44px;
  border-color: #bcd5df;
  background: #f8fbfc;
  font-size: 13px;
}

body[data-page-key="sales-workspace"] .followup-summary-strip article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid #e5edf3;
}

body[data-page-key="sales-workspace"] .followup-summary-strip article:first-child { padding-left: 0; }
body[data-page-key="sales-workspace"] .followup-summary-strip article:last-child {
  padding-right: 0;
  border-right: 0;
}

body[data-page-key="sales-workspace"] .followup-summary-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07878d;
  background: #e6f8f8;
  font-size: 15px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-summary-strip .is-outcome .followup-summary-icon {
  color: #158b56;
  background: #e8f7ef;
}

body[data-page-key="sales-workspace"] .followup-summary-strip .is-products .followup-summary-icon {
  color: #7a4fe2;
  background: #f1eaff;
}

body[data-page-key="sales-workspace"] .followup-summary-strip .is-offer .followup-summary-icon {
  color: #147dff;
  background: #e9f2ff;
}

body[data-page-key="sales-workspace"] .followup-summary-strip small,
body[data-page-key="sales-workspace"] .followup-summary-strip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-summary-strip small {
  margin-bottom: 2px;
  color: #66788e;
  font-size: 10px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .followup-summary-strip strong {
  color: #10243e;
  font-size: 13px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .followup-portal-fields {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(360px, 1.15fr) minmax(330px, 1fr);
  gap: 22px;
  padding: 20px 22px 18px;
}

body[data-page-key="sales-workspace"] .followup-portal-fields > fieldset,
body[data-page-key="sales-workspace"] .followup-portal-fields > section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-page-key="sales-workspace"] .followup-portal-fields legend,
body[data-page-key="sales-workspace"] .followup-portal-fields > section > strong {
  display: block;
  margin: 0 0 10px;
  color: #203753;
  font-size: 12px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-portal-fields .followup-segmented-control span {
  min-height: 42px;
  border-radius: 8px;
}

body[data-page-key="sales-workspace"] .followup-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

body[data-page-key="sales-workspace"] .followup-product-chips span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #d4e0e9;
  border-radius: 7px;
  color: #52657c;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .followup-product-chips span.is-selected {
  border-color: #0ba5aa;
  color: #007f85;
  background: #eafafa;
}

body[data-page-key="sales-workspace"] .followup-product-chips span.is-selected::before {
  content: "✓";
  margin-right: 5px;
}

body[data-page-key="sales-workspace"] .followup-offer-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(110px, .7fr);
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-offer-fields label,
body[data-page-key="sales-workspace"] .followup-next-workspace label,
body[data-page-key="sales-workspace"] .followup-schedule-panel label {
  display: grid;
  gap: 5px;
  color: #607287;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-portal-fields input,
body[data-page-key="sales-workspace"] .followup-portal-fields select {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
}

body[data-page-key="sales-workspace"] .followup-portal-fields .followup-summary-save {
  min-width: 112px;
  min-height: 38px;
  justify-self: end;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #079da3;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(7, 157, 163, .2);
}

body[data-page-key="sales-workspace"] .followup-portal-fields .followup-summary-save:hover,
body[data-page-key="sales-workspace"] .followup-portal-fields .followup-summary-save:focus-visible {
  background: #07878d;
}

body[data-page-key="sales-workspace"] .followup-portal-fields .followup-summary-save:disabled {
  cursor: wait;
  opacity: .65;
}

body[data-page-key="sales-workspace"] .followup-offer-workspace {
  display: grid;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .followup-portal-fields .followup-money-input input {
  padding-left: 31px;
}

body[data-page-key="sales-workspace"] .followup-next-workspace {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-next-workspace > strong,
body[data-page-key="sales-workspace"] .followup-next-actions,
body[data-page-key="sales-workspace"] .followup-next-workspace > .followup-schedule-panel,
body[data-page-key="sales-workspace"] .followup-next-workspace > .followup-summary-save { grid-column: 1 / -1; }

body[data-page-key="sales-workspace"] .followup-next-actions {
  display: flex;
  gap: 7px;
}

body[data-page-key="sales-workspace"] .followup-next-actions button {
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #d3e0e9;
  border-radius: 8px;
  color: #203753;
  background: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-next-actions button.is-primary {
  border-color: #0a999f;
  color: #fff;
  background: #0a9fa5;
}

body[data-page-key="sales-workspace"] .followup-portal-workspace > .followup-schedule-panel {
  margin: 0 22px 16px;
  padding: 12px;
  border: 1px solid #cbe2e5;
  border-radius: 9px;
  background: #f3fbfb;
}

body[data-page-key="sales-workspace"] .followup-update-composer {
  margin: 0 22px 22px;
  overflow: hidden;
  border: 1px solid #cfdfe9;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 45, 74, .04);
}

body[data-page-key="sales-workspace"] .followup-update-composer textarea {
  min-height: 112px;
  padding: 16px 17px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

body[data-page-key="sales-workspace"] .followup-update-composer textarea:focus { box-shadow: none; }

body[data-page-key="sales-workspace"] .followup-composer-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 10px 8px 15px;
  border-top: 1px solid #e0e9ef;
}

body[data-page-key="sales-workspace"] .followup-composer-toolbar .followup-bill-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #36516f;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-composer-toolbar .followup-bill-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .followup-composer-toolbar .filter-action {
  min-width: 150px;
  min-height: 40px;
  border-radius: 9px;
  background: #079da3;
}

body[data-page-key="sales-workspace"] .followup-history-panel {
  display: grid;
  gap: 11px;
  padding: 0 22px 22px;
  border: 0;
  background: transparent;
}

body[data-page-key="sales-workspace"] .followup-history-heading h3 {
  margin: 0;
  color: #10243e;
  font-size: 15px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-history-heading h3 span {
  margin-left: 7px;
  color: #667a91;
  font-size: 11px;
}

body[data-page-key="sales-workspace"] .followup-history-search input {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
}

body[data-page-key="sales-workspace"] .followup-history-panel > ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page-key="sales-workspace"] .followup-history-panel > ol > li {
  padding: 14px 4px;
  border-bottom: 1px solid #e4ecf2;
}

body[data-page-key="sales-workspace"] .followup-history-panel > ol > li:last-child { border-bottom: 0; }

body[data-page-key="sales-workspace"] .followup-history-event-title {
  color: #10243e;
  font-size: 12px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .followup-history-note {
  margin: 7px 0 0;
  color: #52657c;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1050px) {
  body[data-page-key="sales-workspace"] .followup-next-move {
    grid-template-columns: minmax(240px, 1fr) auto;
  }
  body[data-page-key="sales-workspace"] .followup-next-move-signals { grid-column: 1 / -1; }
  body[data-page-key="sales-workspace"] .followup-portal-fields {
    grid-template-columns: 1fr 1.3fr;
  }
  body[data-page-key="sales-workspace"] .followup-next-workspace { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-scroll {
    padding: 0 10px 24px;
  }
  body[data-page-key="sales-workspace"] .followup-progress-rail {
    padding: 18px 5px 20px;
  }
  body[data-page-key="sales-workspace"] .followup-progress-rail strong { font-size: 9px; }
  body[data-page-key="sales-workspace"] .followup-progress-rail small { display: none; }
  body[data-page-key="sales-workspace"] .followup-next-move {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 14px;
  }
  body[data-page-key="sales-workspace"] .followup-next-move-copy strong,
  body[data-page-key="sales-workspace"] .followup-next-move-copy > span { white-space: normal; }
  body[data-page-key="sales-workspace"] .followup-next-move-signals { grid-column: auto; }
  body[data-page-key="sales-workspace"] .followup-next-move-actions { justify-content: flex-start; }
  body[data-page-key="sales-workspace"] .followup-portal-heading,
  body[data-page-key="sales-workspace"] .followup-portal-fields,
  body[data-page-key="sales-workspace"] .followup-history-panel {
    padding-right: 14px;
    padding-left: 14px;
  }
  body[data-page-key="sales-workspace"] .followup-summary-strip {
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
    row-gap: 14px;
  }
  body[data-page-key="sales-workspace"] .followup-summary-strip article { padding: 0 10px; }
  body[data-page-key="sales-workspace"] .followup-summary-strip article:nth-child(2) { border-right: 0; }
  body[data-page-key="sales-workspace"] .followup-portal-fields { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .followup-next-workspace { grid-column: auto; }
  body[data-page-key="sales-workspace"] .followup-update-composer,
  body[data-page-key="sales-workspace"] .followup-portal-workspace > .followup-schedule-panel {
    margin-right: 14px;
    margin-left: 14px;
  }
}

@media (max-width: 480px) {
  .sales-modal[data-sales-modal="contact"] .sales-contact-address-card {
    grid-template-columns: 1fr;
  }
}

.crm-record-modal {
  width: min(1040px, calc(100vw - 32px));
}

.crm-record-shell {
  max-height: min(86vh, 980px);
  overflow: auto;
}

.crm-record-eyebrow {
  display: inline-flex;
  margin-bottom: 5px;
  color: #155dfc;
  font-size: 0.78rem;
  font-weight: 950;
}

.crm-record-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.crm-record-provider-logo {
  width: auto;
  max-width: 112px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

.crm-record-body {
  display: grid;
  gap: 16px;
}

.crm-record-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.crm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crm-section-head h3 {
  margin: 0;
  color: #071f3d;
  font-size: 1rem;
}

.crm-info-grid,
.crm-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.crm-info-card {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 12px;
  background: #ffffff;
}

.crm-info-card-wide,
.crm-field-wide {
  grid-column: 1 / -1;
}

.crm-info-card span,
.crm-edit-grid label span {
  color: #607086;
  font-size: 0.76rem;
  font-weight: 950;
}

.crm-info-card strong {
  color: #071f3d;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.crm-product-utility-card {
  min-height: 0;
}

.crm-deal-amount-card {
  min-height: 0;
}

.crm-deal-amount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.crm-deal-amount-row input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  background: #ffffff;
  color: #071f3d;
  font: inherit;
  font-weight: 850;
}

.crm-deal-amount-row .resource-link {
  min-height: 42px;
}

.crm-product-utility-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.crm-product-utility-row label {
  display: grid;
  gap: 6px;
}

.crm-product-utility-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  background: #ffffff;
  color: #071f3d;
  font: inherit;
  font-weight: 850;
}

.crm-product-utility-row .resource-link {
  min-height: 42px;
}

.intake-review-head h2 {
  margin-top: 4px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.intake-review-grid {
  margin-top: 2px;
}

.intake-review-description p {
  margin: 0;
  color: #071f3d;
  font-size: 0.98rem;
  line-height: 1.42;
  font-weight: 650;
}

.intake-review-revenue input,
.intake-review-system-size input {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  color: #071f3d;
  font: inherit;
  font-weight: 900;
}

.intake-review-edit-field select,
.intake-review-edit-field textarea {
  width: 100%;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  color: #071f3d;
  font: inherit;
  font-weight: 850;
}

.intake-review-edit-field select {
  min-height: 44px;
  padding: 10px 12px;
  background: #ffffff;
}

.intake-review-edit-field textarea {
  min-height: 102px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.4;
}

.intake-review-folder {
  justify-content: center;
}

.intake-review-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.intake-review-actions .auth-feedback {
  margin: 0 auto 0 0;
}

.crm-edit-grid label {
  display: grid;
  gap: 6px;
}

.crm-edit-grid input,
.crm-appointment-edit input,
.crm-appointment-outcome-grid input,
.crm-appointment-outcome-grid select,
.crm-appointment-outcome-grid textarea {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(188, 204, 222, 0.9);
  border-radius: 10px;
  color: #071f3d;
  font: inherit;
  font-weight: 800;
}

.crm-appointment-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.crm-appointment-outcome-grid label {
  display: grid;
  gap: 6px;
}

.crm-appointment-outcome-grid label span {
  color: #607086;
  font-size: 0.76rem;
  font-weight: 950;
}

.crm-appointment-outcome-grid textarea {
  resize: vertical;
}

.crm-section-actions,
.crm-card-actions,
.crm-appointment-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.crm-upload-button {
  cursor: pointer;
}

@media (max-width: 720px) {
  .crm-info-grid,
  .crm-edit-grid,
  .crm-appointment-outcome-grid {
    grid-template-columns: 1fr;
  }

  .crm-product-utility-row {
    grid-template-columns: 1fr;
  }
}

/* Deal intake form */
body[data-page-key="deal-intake"] {
  --deal-intake-teal: #2f8a7d;
  --deal-intake-teal-dark: #247c70;
  --deal-intake-teal-soft: #edf8f6;
  --deal-intake-teal-line: #cfe6e2;
  --amber: var(--deal-intake-teal);
  --orange: var(--deal-intake-teal-dark);
  --line: var(--deal-intake-teal-line);
  background:
    radial-gradient(circle at top left, rgba(47, 138, 125, 0.16), transparent 24%),
    radial-gradient(circle at right 18%, rgba(95, 177, 165, 0.13), transparent 24%),
    linear-gradient(180deg, #eaf6f4 0%, #f8fcfb 54%, #edf8f6 100%);
}

body[data-page-key="deal-intake"] .lead-intake-shell {
  width: min(1120px, calc(100% - 40px));
}

@media (max-width: 720px) {
  body[data-page-key="deal-intake"] .lead-intake-shell {
    width: min(100% - 18px, 1120px);
  }
}

body[data-page-key="deal-intake"] .lead-intake-hero,
body[data-page-key="deal-intake"] .lead-intake-card {
  border-color: rgba(47, 138, 125, 0.12);
  box-shadow: 0 18px 36px rgba(24, 87, 78, 0.09);
}

body[data-page-key="deal-intake"] .auth-field input:focus,
body[data-page-key="deal-intake"] .auth-field select:focus,
body[data-page-key="deal-intake"] .auth-field textarea:focus {
  border-color: var(--deal-intake-teal);
  outline: 3px solid rgba(47, 138, 125, 0.14);
}

body[data-page-key="deal-intake"] .resource-link.primary {
  border-color: var(--deal-intake-teal);
  background: linear-gradient(135deg, #3b9a8d, var(--deal-intake-teal-dark));
  box-shadow: 0 12px 26px rgba(47, 138, 125, 0.24);
}

body[data-page-key="deal-intake"] .resource-link.primary:hover,
body[data-page-key="deal-intake"] .resource-link.primary:focus-visible {
  background: linear-gradient(135deg, var(--deal-intake-teal), #1f6d64);
  box-shadow: 0 15px 28px rgba(47, 138, 125, 0.3);
}

body[data-page-key="deal-intake"] .resource-link.secondary:hover,
body[data-page-key="deal-intake"] .resource-link.secondary:focus-visible {
  color: var(--deal-intake-teal-dark);
  border-color: rgba(47, 138, 125, 0.34);
  background: var(--deal-intake-teal-soft);
}

body[data-page-key="deal-intake"] .lead-intake-upload {
  border-color: rgba(47, 138, 125, 0.2);
}

body[data-page-key="deal-intake"] .lead-intake-upload-button {
  color: var(--deal-intake-teal-dark);
  background: linear-gradient(135deg, rgba(47, 138, 125, 0.13), rgba(95, 177, 165, 0.17));
}

body[data-page-key="deal-intake"] .lead-intake-upload-name.is-file-list {
  flex: 1 1 auto;
  overflow: visible;
  white-space: normal;
}

.deal-utility-file-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.deal-utility-file-chip {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(47, 138, 125, 0.24);
  border-radius: 10px;
  background: rgba(47, 138, 125, 0.08);
  color: var(--deal-intake-teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.deal-utility-file-chip b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--deal-intake-teal);
  color: #ffffff;
  font-size: 0.7rem;
}

.deal-utility-file-chip > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-utility-file-remove {
  position: relative;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.deal-utility-file-remove:hover,
.deal-utility-file-remove:focus-visible {
  background: #fee2e2;
  color: #b42318;
  outline: none;
}

@media (max-width: 760px) {
  body[data-page-key="deal-intake"] .lead-intake-upload {
    align-items: stretch;
    flex-direction: column;
  }

  .deal-utility-file-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.deal-intake-section-head {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 10px;
  padding-bottom: 2px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.deal-intake-section-head-sub {
  margin-top: 0;
  padding-top: 2px;
  border-top: 0;
}

.deal-intake-upload-note {
  margin: -8px 0 4px;
  font-size: 0.84rem;
  color: var(--muted);
}

.deal-intake-card .band-head p {
  max-width: 620px;
}

.deal-intake-contact-form {
  gap: 14px;
}

.deal-contact-field {
  position: relative;
  z-index: 20;
}

.deal-contact-search-wrap {
  position: relative;
  display: block;
}

.deal-contact-search-wrap::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--deal-intake-teal, #53677f);
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.deal-contact-search-wrap::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--deal-intake-teal, #53677f);
  transform: translateY(5px) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

.deal-contact-search-wrap input {
  padding-left: 42px !important;
}

.deal-contact-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 8px;
  max-height: 238px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(47, 138, 125, 0.18);
  border-radius: 16px;
  background: rgba(247, 252, 251, 0.88);
  box-shadow: 0 18px 42px rgba(24, 87, 78, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.deal-contact-picker[hidden] {
  display: none;
}

.deal-contact-picker button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 138, 125, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #08213f;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.deal-contact-picker button:hover,
.deal-contact-picker button:focus-visible,
.deal-contact-picker button.selected {
  border-color: rgba(47, 138, 125, 0.4);
  background: rgba(47, 138, 125, 0.09);
  outline: none;
}

.deal-contact-picker button:disabled {
  justify-content: flex-start;
  color: var(--muted);
  cursor: default;
  background: transparent;
}

.deal-contact-picker strong,
.deal-contact-picker span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-contact-picker strong {
  font-weight: 900;
}

.deal-contact-picker span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  flex: 0 1 auto;
}

.deal-intake-location-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(90px, 0.7fr) minmax(120px, 0.8fr);
}

.deal-submission-grid {
  grid-template-columns: minmax(124px, 0.7fr) minmax(132px, 0.72fr) minmax(100px, 0.55fr) minmax(116px, 0.62fr) minmax(104px, 0.55fr);
}

.deal-submission-grid .auth-field > span {
  white-space: nowrap;
}

.deal-intake-checklist-grid {
  grid-template-columns: minmax(92px, 0.72fr) minmax(86px, 0.62fr) minmax(150px, 1.05fr) minmax(150px, 1fr) minmax(132px, 0.9fr);
  align-items: end;
}

.deal-intake-checklist-grid .auth-field > span {
  min-height: 34px;
  display: flex;
  align-items: flex-end;
}

.deal-submission-grid input[readonly] {
  background: #f5fbfa;
}

.deal-contact-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.deal-contact-save-row span {
  color: var(--deal-intake-teal-dark, #247c70);
  font-weight: 900;
  font-size: 0.92rem;
}

.deal-utility-existing {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(47, 138, 125, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 138, 125, 0.09), rgba(95, 177, 165, 0.1));
}

.deal-utility-existing[hidden],
.lead-intake-upload[hidden] {
  display: none;
}

.deal-utility-existing a {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--deal-intake-teal-dark, #247c70);
  font-weight: 900;
  text-decoration: none;
}

.deal-utility-existing a:hover {
  text-decoration: underline;
}

.deal-utility-existing span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.deal-required {
  color: #b42318 !important;
  font-weight: 900;
}

/* Admin Settings — profile expand dialog */
.admin-profile-dialog {
  border: none;
  border-radius: 14px;
  padding: 0;
  width: min(1080px, calc(100vw - 32px));
  max-width: none;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(18, 38, 63, 0.18);
}

.admin-profile-dialog::backdrop {
  background: rgba(12, 26, 46, 0.45);
  backdrop-filter: blur(2px);
}

.admin-profile-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 30px 30px;
  gap: 20px;
}

.admin-profile-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3e8ef;
}

.admin-profile-dialog-head h3 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #12263f;
}

.admin-profile-dialog-head p {
  margin: 0;
  font-size: 0.88rem;
  color: #667487;
}

.admin-settings-hero .band-head {
  align-items: start;
}

.admin-settings-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 1;
}

.settings-page-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
}

.admin-settings-hero .frame-actions {
  margin-left: auto;
}

.admin-settings-hero .resource-link.secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.admin-settings-hero .resource-link.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.admin-profile-dialog-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #96a5b4;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
}

.admin-profile-dialog-close:hover {
  color: #12263f;
  background: #f0f3f7;
}

/* Admin Settings — role column layout */
.admin-role-admin-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-role-admin-section .admin-user-card {
  width: 100%;
}

.admin-role-admin-group {
  display: grid;
  margin-bottom: 28px;
}

.admin-hero-settings-row {
  position: absolute;
  top: 72px;
  right: 20px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.admin-settings-hero .hero-top-row {
  align-items: center;
}

.admin-inactive-settings-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

.admin-inactive-settings-button:hover,
.admin-inactive-settings-button:focus-visible {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  outline: none;
  transform: rotate(18deg) scale(1.06);
}

.admin-settings-gear {
  font-size: 1.55rem;
  line-height: 1;
}

.admin-inactive-popup,
.admin-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-inactive-popup[hidden],
.admin-confirm-overlay[hidden] {
  display: none;
}

.admin-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 32, 39, 0.64);
  backdrop-filter: blur(7px);
  cursor: default;
}

.admin-inactive-popup-card,
.admin-confirm-card {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(0, 139, 143, 0.22);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3, 38, 43, 0.3);
}

.admin-inactive-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 24px;
  border-bottom: 1px solid rgba(0, 139, 143, 0.14);
  background: linear-gradient(135deg, #edfafa, #f8fdfc);
}

.admin-popup-kicker {
  display: block;
  margin-bottom: 7px;
  color: #008b8f;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.admin-inactive-popup-head h2 {
  margin: 0;
  color: #123943;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.admin-inactive-popup-head p {
  margin: 8px 0 0;
  color: #5d747a;
  font-weight: 650;
}

.admin-popup-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 139, 143, 0.22);
  border-radius: 14px;
  background: #fff;
  color: #45666d;
}

.admin-inactive-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 26px 32px 32px;
}

.admin-inactive-user-grid .admin-user-card {
  width: 100%;
  background: linear-gradient(180deg, #fff, #f3f9f8);
}

.admin-inactive-user-grid .admin-user-head h3::after {
  content: "Inactive";
  padding: 4px 8px;
  border-radius: 999px;
  background: #e7f6f4;
  color: #007f82;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-inactive-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 46px 24px;
  border: 1px dashed rgba(0, 139, 143, 0.28);
  border-radius: 20px;
  background: #f5fbfa;
  color: #5d747a;
  text-align: center;
}

.admin-inactive-empty strong {
  color: #123943;
  font-size: 1.05rem;
}

.admin-confirm-overlay {
  z-index: 6000;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
}

.admin-confirm-overlay::backdrop {
  background: transparent;
}

.admin-confirm-card {
  width: min(520px, calc(100vw - 36px));
  padding: 32px;
  text-align: center;
}

.admin-confirm-overlay.is-anchored {
  display: block;
  padding: 0;
}

.admin-confirm-overlay.is-anchored .admin-confirm-card {
  position: fixed;
  margin: 0;
  max-height: calc(100dvh - 24px);
}

.admin-confirm-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, #008b8f, #05bfc4);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(0, 139, 143, 0.22);
}

.admin-confirm-card h2 {
  margin: 0;
  color: #123943;
  font-size: 1.55rem;
}

.admin-confirm-card p {
  margin: 12px auto 26px;
  max-width: 42ch;
  color: #5d747a;
  font-weight: 650;
  line-height: 1.55;
}

.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-confirm-actions .resource-link.primary {
  border-color: #008b8f;
  background: linear-gradient(135deg, #008b8f, #05adb2);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 139, 143, 0.2);
}

.admin-confirm-actions .resource-link.secondary {
  border-color: rgba(0, 139, 143, 0.22);
  color: #006d73;
}

body.admin-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .admin-inactive-popup,
  .admin-confirm-overlay {
    padding: 12px;
  }

  .admin-inactive-popup-head,
  .admin-inactive-user-grid,
  .admin-confirm-card {
    padding: 22px;
  }

  .admin-inactive-user-grid {
    grid-template-columns: 1fr;
  }

  .admin-inactive-settings-button {
    width: 34px;
    height: 34px;
  }
}

.admin-role-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.admin-role-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.admin-role-column .admin-role-column-head,
.admin-role-column .admin-role-column-empty {
  grid-column: 1 / -1;
}

.admin-role-column .admin-user-card {
  width: 100%;
}

.admin-role-featured-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}

.admin-role-featured-grid.is-single {
  grid-template-columns: 1fr;
  width: calc(50% - 6px);
  justify-self: center;
}

.admin-role-featured-grid.is-empty {
  min-height: 54.5px;
}

.admin-role-featured-grid .admin-user-card {
  width: 100%;
}

.admin-role-column-head {
  font-size: 1.12rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #006d73;
  padding-bottom: 12px;
  border-bottom: 2px solid #d7dfe7;
}

.admin-role-column-empty {
  color: #96a5b4;
  font-size: 0.9rem;
  padding: 8px 0;
}

@media (max-width: 900px) {
  .admin-role-admin-section,
  .admin-role-columns {
    grid-template-columns: 1fr;
  }

  .admin-role-featured-grid.is-empty {
    display: none;
  }
}

@media (max-width: 560px) {
  .admin-role-column {
    grid-template-columns: 1fr;
  }

  .admin-role-featured-grid {
    grid-template-columns: 1fr;
  }

  .admin-role-featured-grid.is-single {
    width: 100%;
  }
}

/* Admin Settings — teal theme */
body[data-page-key="admin"] {
  --orange: #008b8f;
  --amber: #05bfc4;
  background:
    radial-gradient(circle at top left, rgba(5, 191, 196, 0.16), transparent 18%),
    radial-gradient(circle at right 15%, rgba(47, 138, 125, 0.14), transparent 20%),
    linear-gradient(180deg, #e8f7f5 0%, #f8fcfc 52%, #edf8f7 100%);
}

body[data-page-key="admin"] .admin-profile-dialog {
  cursor: default;
}

body[data-page-key="admin"] .admin-inline-feedback {
  border-color: rgba(0, 139, 143, 0.2);
  background: #e8f8f6;
  color: #007f82;
}

body[data-page-key="admin"] .admin-access-section-label,
body[data-page-key="admin"] .admin-role-column-head {
  color: #006d73;
}

body[data-page-key="admin"] .admin-access-toggle {
  border-color: rgba(0, 139, 143, 0.18);
  background: rgba(5, 191, 196, 0.06);
  color: #007f82;
}

body[data-page-key="admin"] .admin-access-toggle.active {
  border-color: rgba(0, 139, 143, 0.34);
  background: rgba(5, 191, 196, 0.13);
  color: #005d62;
}

body[data-page-key="admin"] .admin-access-item {
  border-color: rgba(0, 139, 143, 0.1);
  background: rgba(5, 191, 196, 0.055);
}

body[data-page-key="admin"] input[type="checkbox"],
body[data-page-key="admin"] input[type="radio"] {
  accent-color: #008b8f;
}

body[data-page-key="admin"] .auth-field input:focus,
body[data-page-key="admin"] .auth-field select:focus,
body[data-page-key="admin"] .admin-goals-month input:focus,
body[data-page-key="admin"] .admin-goals-stat-input input:focus,
body[data-page-key="admin"] .admin-goals-control input:focus {
  border-color: rgba(0, 139, 143, 0.52);
  outline: 3px solid rgba(5, 191, 196, 0.16);
}

body[data-page-key="admin"] .admin-goals-rank-row:nth-child(even) {
  background: #eaf8f6;
  border-color: rgba(0, 139, 143, 0.18);
}

/* View-as banner (shown in sidebar when owner previews as a rep) */
.view-as-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.38);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.view-as-banner strong {
  font-weight: 800;
}

.view-as-exit {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  opacity: 0.85;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: underline;
}

.view-as-exit:hover {
  opacity: 1;
}

/* Admin role fields layout */
.admin-role-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-role-fields-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.settings-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.settings-profile-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 18px;
  background: rgba(239, 246, 252, 0.88);
}

.settings-profile-copy {
  display: grid;
  gap: 4px;
}

.settings-profile-copy strong,
.settings-profile-copy span {
  margin: 0;
}

.settings-profile-copy span {
  color: var(--muted);
}

.settings-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-role-fields-row-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .admin-role-fields-row-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-profile-dialog {
    width: calc(100vw - 20px);
  }

  .admin-role-fields-row-3,
  .admin-role-fields-row-4 {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="settings"] .resource-link.primary {
  border-color: #008b8f;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.2);
}

body[data-page-key="settings"] .resource-link.primary:hover,
body[data-page-key="settings"] .resource-link.primary:focus-visible {
  border-color: #003d46;
  background: linear-gradient(135deg, #003d46, #008b8f);
  box-shadow: 0 14px 28px rgba(0, 139, 143, 0.26);
}

body[data-page-key="settings"] .lead-intake-upload-button {
  background: linear-gradient(135deg, rgba(0, 139, 143, 0.12), rgba(5, 191, 196, 0.18));
  color: #006c72;
}

.settings-link-card {
  margin-top: 18px;
}

.workspace-theme-payouts {
  --training-accent: #16a06f;
  --training-accent-rgb: 22, 160, 111;
  --training-tint-a: rgba(22, 160, 111, 0.14);
  --training-tint-b: rgba(224, 250, 239, 0.36);
  --workspace-card-tint-mid: #f7fdf9;
  --workspace-card-tint-bottom: #ecf9f2;
}

.settings-pay-history {
  margin-top: 22px;
}

.settings-pay-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.settings-pay-history-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6f5a91;
  font-size: 13px;
  font-weight: 850;
}

.settings-pay-status-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
}

.settings-pay-status-dot.is-clawback {
  background: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.13);
}

.settings-pay-history-body {
  display: grid;
  gap: 24px;
}

.settings-pay-history-message {
  margin: 0;
  padding: 20px 0;
  color: #66758a;
  text-align: center;
}

.settings-pay-date-group {
  min-width: 0;
}

.settings-pay-date-group h3 {
  margin: 0;
  padding: 0 0 11px;
  color: #10243e;
  font-size: 21px;
  line-height: 1.1;
  text-align: center;
}

.settings-pay-table {
  border-top: 1px solid #dfe7ee;
}

.settings-pay-table-head,
.settings-pay-row,
.settings-pay-total {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(100px, 0.55fr) minmax(160px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #e4ebf1;
}

.settings-pay-table-head {
  min-height: 40px;
  color: #66758a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.settings-pay-row {
  color: #10243e;
  font-size: 15px;
  font-weight: 750;
}

.settings-pay-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-pay-row.is-clawback {
  background: rgba(139, 92, 246, 0.07);
  color: #6d45af;
}

.settings-pay-row strong,
.settings-pay-total strong {
  font-variant-numeric: tabular-nums;
}

.settings-pay-total {
  margin-top: 10px;
  border-top: 1px solid #cfdbe5;
  border-bottom: 0;
  color: #10243e;
  font-size: 16px;
}

@media (max-width: 620px) {
  .settings-pay-history-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-pay-table-head,
  .settings-pay-row,
  .settings-pay-total {
    grid-template-columns: minmax(110px, 1fr) minmax(75px, 0.55fr) minmax(110px, 1fr);
    gap: 10px;
    padding: 0 8px;
  }

  .settings-pay-table-head {
    font-size: 10px;
  }

  .settings-pay-row,
  .settings-pay-total {
    font-size: 13px;
  }
}

.admin-goals-shell {
  display: grid;
  gap: 16px;
}

.admin-goals-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-goals-title {
  display: grid;
  gap: 0;
}

.admin-goals-title h2 {
  margin: 0;
  color: #071b38;
  font-size: 2rem;
  line-height: 1;
}

.admin-goals-title span,
.admin-goals-month span,
.admin-goals-card-head span,
.admin-goals-stat-input span,
.admin-goals-person small {
  color: #667487;
  font-weight: 800;
}

.admin-goals-month {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  width: 380px;
}

.admin-goals-month-control {
  display: grid;
  grid-template-columns: auto 150px auto;
  gap: 6px;
  align-items: center;
  justify-content: end;
}

.admin-goals-month-control .mini-link {
  min-height: 38px;
  padding-inline: 10px;
}

.admin-goals-month input,
.admin-goals-stat-input input,
.admin-goals-control input {
  min-height: 46px;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #071b38;
  font: inherit;
  font-weight: 800;
  padding: 0 14px;
}

.admin-goals-company-card,
.admin-goals-card {
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(7, 27, 56, 0.07);
}

.admin-goals-company-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-goals-company-head,
.admin-goals-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-goals-company-head h3,
.admin-goals-card-head h3 {
  margin: 0;
  color: #071b38;
  font-size: 1.35rem;
}

.admin-goals-company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.admin-goals-stat-input {
  display: grid;
  gap: 8px;
}

.admin-goals-stat-input input {
  width: min(100%, 190px);
}

.admin-goals-actual {
  color: #7a8798;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-goals-actual.met {
  color: #078a58;
}

.admin-goals-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-goals-board-head h3 {
  margin: 0;
  color: #071b38;
  font-size: 1.35rem;
}

.admin-goals-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-goals-card {
  padding: 16px;
}

.admin-goals-rank-list {
  display: grid;
  gap: 8px;
}

.admin-goals-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-goals-rank-row:nth-child(even) {
  background: #edf5ff;
  border-color: rgba(45, 124, 255, 0.18);
}

.admin-goals-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-goals-person span {
  color: #071b38;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-goals-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-goals-control {
  display: grid;
  grid-template-columns: 118px;
  align-items: center;
}

.admin-goals-control input {
  min-height: 42px;
  width: 118px;
}

.admin-goals-control .resource-link {
  min-height: 42px;
  border-radius: 12px;
}

.admin-goals-empty {
  margin: 0;
  color: #667487;
}

.admin-goal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.admin-goal-item.compact {
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 180px) auto;
  padding: 12px 14px;
}

.admin-goal-item strong,
.admin-goal-item span {
  display: block;
}

.admin-goal-item span {
  margin-top: 4px;
  color: var(--muted);
}

.leaderboard-clean-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(77, 137, 199, 0.16), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, #edf3f8 100%);
  color: #071b38;
}

.leaderboard-clean-shell {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
}

.leaderboard-clean-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.leaderboard-clean-brand img {
  height: clamp(58px, 7vw, 86px);
  width: auto;
}

.leaderboard-clean-hero {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  box-shadow: 0 18px 36px rgba(16, 30, 48, 0.08);
}

.leaderboard-clean-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.leaderboard-title-month {
  display: inline-block;
}

.leaderboard-title-period-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.leaderboard-title-period-button:hover,
.leaderboard-title-period-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.leaderboard-period-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.leaderboard-period-controls[hidden] {
  display: none;
}

.leaderboard-period-controls button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-period-controls button:hover,
.leaderboard-period-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 720px) {
  .leaderboard-clean-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-period-controls {
    margin-left: 0;
  }
}

.leaderboard-title-dash {
  display: inline-block;
  transform: scaleX(1.7);
  transform-origin: center;
  margin: 0 0.16em 0 0.08em;
}

.leaderboard-clean-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.leaderboard-clean-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(7, 27, 56, 0.08);
}

.leaderboard-clean-card-wide {
  grid-column: auto;
}

.leaderboard-clean-list {
  display: grid;
  gap: 8px;
}

.leaderboard-clean-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) minmax(228px, auto);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 12px 12px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 8px;
  background: #fbfdff;
}

.leaderboard-clean-row.active {
  border-color: rgba(31, 104, 173, 0.25);
  background: #edf4ff;
}

.leaderboard-clean-row > strong {
  color: #215f97;
  font-size: 1.18rem;
}

.leaderboard-clean-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.leaderboard-clean-person-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.leaderboard-clean-person span,
.leaderboard-clean-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-clean-person span {
  font-size: 1.2rem;
  font-weight: 900;
}

.leaderboard-clean-person .leaderboard-clean-name-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.leaderboard-clean-person .leaderboard-clean-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-clean-name-button {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.leaderboard-clean-name-button:hover,
.leaderboard-clean-name-button:focus-visible {
  color: #0b63ce;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.leaderboard-detail-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 27, 56, 0.48);
  backdrop-filter: blur(6px);
}

.leaderboard-detail-modal {
  width: min(860px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(7, 27, 56, 0.24);
}

.leaderboard-detail-modal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.leaderboard-detail-title-block {
  display: grid;
  grid-template-columns: max-content;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.leaderboard-detail-title-block-stats {
  grid-template-columns: minmax(220px, 1fr) max-content;
  gap: 8px 24px;
  width: 100%;
}

.leaderboard-detail-title-block-doors {
  grid-template-columns: minmax(220px, 1fr) max-content max-content;
}

.leaderboard-detail-title-block h2 {
  grid-column: 1;
  margin: 0;
  color: #071b38;
  font-size: 2.45rem;
  font-weight: 950;
  line-height: 1.02;
}

.leaderboard-detail-title-block p {
  grid-column: 1;
  margin: 0;
  color: #071b38;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.08;
}

.leaderboard-detail-title-block span {
  color: #0b63ce;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.leaderboard-detail-modal-head button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(11, 99, 206, 0.22);
  border-radius: 999px;
  background: rgba(239, 246, 255, 0.92);
  color: #071b38;
  font-weight: 900;
  cursor: pointer;
}

.leaderboard-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-detail-title-block-stats strong {
  color: #071b38;
  font-size: 1.42rem;
  font-weight: 950;
  line-height: 1.05;
}

.leaderboard-detail-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.78fr) minmax(160px, 1fr) minmax(220px, 1.55fr) minmax(108px, 0.72fr) minmax(78px, 0.5fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
  color: #334155;
  font-size: 0.92rem;
  font-weight: 750;
}

.leaderboard-detail-row strong {
  color: #071b38;
  font-weight: 950;
}

.leaderboard-detail-row > span,
.leaderboard-detail-row > strong {
  min-width: 0;
}

.leaderboard-detail-row > span:nth-of-type(3),
.leaderboard-detail-row > span:nth-of-type(4) {
  white-space: nowrap;
}

.leaderboard-detail-row em {
  color: #0b63ce;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.leaderboard-detail-empty {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.86);
  color: #526783;
  font-weight: 800;
}

.leaderboard-clean-person .leaderboard-clean-name-line .name-status-badge,
.leaderboard-clean-score .name-status-badge {
  flex: 0 0 auto;
  margin-left: 0;
}

.leaderboard-clean-person .leaderboard-certified-mark,
.leaderboard-clean-score .leaderboard-certified-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.leaderboard-clean-person .leaderboard-certified-mark img,
.leaderboard-clean-score .leaderboard-certified-mark img {
  width: 49px;
  height: 49px;
  max-width: none;
  object-fit: cover;
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.14));
}

.leaderboard-clean-person small,
.leaderboard-clean-score small {
  color: #66758d;
  font-size: 0.76rem;
}

.leaderboard-clean-score {
  display: grid;
  grid-template-columns: 42px 42px 120px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.leaderboard-badge-slot {
  display: block;
  width: 42px;
  height: 42px;
}

.leaderboard-clean-score em {
  justify-self: end;
  min-width: 120px;
  text-align: right;
}

.leaderboard-clean-score em,
.leaderboard-clean-row > em {
  color: #078a58;
  font-style: normal;
  font-size: 1.32rem;
  font-weight: 900;
}

.command-home-training-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 14px 0;
  border-top: 1px solid #edf1f6;
}

.command-home-training-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.command-home-training-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #0b58d0;
  color: white;
}

.command-home-training-icon.product-batteries {
  background: linear-gradient(145deg, #f97316, #fb923c);
}

.command-home-training-icon.product-solar {
  background: linear-gradient(145deg, #f59e0b, #fbbf24);
}

.command-home-training-icon.product-windows {
  background: linear-gradient(145deg, #14b8a6, #2dd4bf);
}

.command-home-training-icon.product-hvac {
  background: linear-gradient(145deg, #3b82f6, #38bdf8);
}

.command-home-training-icon.product-roofing {
  background: linear-gradient(145deg, #475569, #64748b);
}

.command-home-training-icon.product-training {
  background: linear-gradient(145deg, #2563eb, #7c3aed);
}

.command-home-training-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.command-home-training-item strong,
.command-home-training-item p {
  margin: 0;
}

.command-home-training-item p {
  margin-top: 4px;
  color: #66758d;
}

.command-home-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-home-resource-pill {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid #dfe7f0;
  border-radius: 9px;
  background: white;
  color: #071b38;
  text-decoration: none;
  font-weight: 800;
}

.command-home-leaderboard {
  display: grid;
}

.command-home-leaderboard-row {
  display: grid;
  grid-template-columns: 35px 1fr auto;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
}

.command-home-leaderboard-row.active {
  background: #edf4ff;
  border-radius: 8px;
  border-bottom: 0;
}

.command-home-leaderboard-row strong {
  color: #071b38;
}

.command-home-leaderboard-row em {
  font-style: normal;
  color: #078a58;
  font-weight: 900;
}

.command-home-leaderboard-row.active em {
  color: #0b58d0;
}

.command-home-leaderboard-note {
  margin: 14px 0 0;
  color: #66758d;
}

@media (max-width: 1100px) {
  .shell-page {
    width: min(100%, calc(100% - 14px));
    margin: 7px auto;
    grid-template-columns: var(--shell-sidebar-width-compact) minmax(0, 1fr);
  }

  .shell-header {
    width: var(--shell-sidebar-width-compact);
    min-height: calc(100dvh - 14px);
    height: calc(100dvh - 14px);
    max-height: calc(100dvh - 14px);
    padding: 24px 20px 22px;
    border-radius: 28px;
  }

  .shell-footer {
    grid-column: 1;
  }

  .shell-nav {
    flex-direction: column;
  }

  .sidebar-utilities {
    margin-top: auto;
    padding-top: 18px;
  }

  .header-search-button {
    min-height: 44px;
    padding: 0 14px;
  }

  .nav-link {
    width: auto;
    justify-content: center;
  }

  .hero-grid,
  .grid-2,
  .trade-grid,
  .resource-grid,
  .launch-grid,
  .hub-grid,
  .sales-action-grid,
  .sales-summary-grid,
  .sales-workspace-grid,
  .sales-three-grid,
  .workflow-grid,
  .hub-stats,
  .hub-resource-grid,
  .dashboard-grid,
  .home-hero,
  .chooser-grid,
  .split-callout,
  .admin-access-grid,
  .hero-metrics,
  .adder-stats,
  .adder-summary-grid,
  .adder-project-grid,
  .finance-option-grid,
  .finance-detail-grid,
  .check-grid,
  .trade-rail,
  .insight-grid,
  .command-strip,
  .adder-grid {
    grid-template-columns: 1fr;
  }

  .training-hub-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    gap: 10px;
  }

  .workspace-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-hub-band {
    padding-inline: 16px;
  }

  .travel-tool-grid {
    display: block;
  }

  .travel-route-row {
    grid-template-columns: 1fr;
  }

  .homeowner-card {
    grid-template-columns: 1fr;
  }

  .homeowner-card .adder-control-row {
    grid-template-columns: 1fr;
    align-self: stretch;
  }

  .welcome-dashboard-grid,
  .month-review-card,
  .home-status-grid,
  .home-bottom-grid {
    grid-template-columns: 1fr;
  }

  .payment-adder-grid {
    grid-template-columns: 1fr;
  }

  .adder-list-split {
    grid-template-columns: 1fr;
  }

  .adder-group-grid {
    grid-template-columns: 1fr;
  }

  .adder-inline-meta {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .adder-section-meta {
    width: 100%;
    justify-content: space-between;
  }

  .adder-sheet-status {
    margin-left: 0;
    width: 100%;
    padding-left: 0;
  }

  .adder-section-meta-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .adder-row-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-top-card,
  .page-side-card {
    height: auto;
    min-height: 0;
  }

  .home-command-top {
    padding-right: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-meta-row,
  .two-column-dashboard,
  .workflow-grid,
  .bottom-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .command-home-status-row,
  .command-home-bottom-row,
  .command-home-performers-grid,
  .command-home-top-grid,
  .command-home-goal-grid,
  .admin-role-controls {
    grid-template-columns: 1fr;
  }

  body[data-page-key="home"] .command-home-hero .hero-search-anchor {
    position: static;
    margin-bottom: 0;
  }

  .command-home-hero-top {
    padding-right: 0;
  }

  .command-home-goal-stat {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid #e3e9f2;
  }

  .command-home-live-card {
    padding: 18px;
  }

  .command-home-live-columns {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .command-home-live-column .command-home-live-row:last-child {
    border-bottom: 1px solid #edf2f7;
  }

  .command-home-live-column:last-child .command-home-live-row:last-child {
    border-bottom: 0;
  }

  .command-home-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pipeline-mini-scale {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-profile-grid,
  .admin-goal-item {
    grid-template-columns: 1fr;
  }

  .training-cert-grid,
  .training-filter-grid,
  .training-module-grid,
  .training-quiz-grid,
  .training-lesson-grid,
  .training-mini-grid,
  .training-compare-grid {
    grid-template-columns: 1fr;
  }

  .training-module-card,
  .training-quiz-card {
    min-height: 0;
  }
}

@media (max-width: 1180px) and (min-width: 721px) {
  :root {
    --shell-sidebar-width-compact: 172px;
    --hero-radius: 22px;
  }

  .shell-page {
    width: min(100%, calc(100% - 12px));
    margin: 6px auto;
    gap: 12px;
    grid-template-columns: var(--shell-sidebar-width-compact) minmax(0, 1fr);
  }

  .shell-header {
    width: var(--shell-sidebar-width-compact);
    top: 6px;
    min-height: calc(100dvh - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
    padding: 18px 10px 16px;
    border-radius: 22px;
  }

  .brand-mark img {
    height: 68px;
  }

  .shell-nav,
  .sidebar-utilities {
    gap: 8px;
  }

  .shell-nav {
    margin-top: 16px;
  }

  .nav-link {
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 11px;
    gap: 8px;
    font-size: 0.92rem;
  }

  .nav-icon,
  .nav-icon svg {
    width: 17px;
    height: 17px;
  }

  .nav-link-break {
    margin-top: 13px;
  }

  .sidebar-utilities {
    padding-top: 12px;
  }

  .training-hub-grid {
    gap: 10px;
  }

  .training-hub-band {
    padding-inline: 16px;
  }

  body[data-page-key="home"] .shell-main.command-home-main {
    gap: 12px;
  }

  .hero.hero-home.command-home-hero,
  .command-home-hero {
    height: auto;
    min-height: 132px;
    padding: 18px 22px;
    border-radius: 22px;
  }

  .command-home-copy h1 {
    font-size: 31px;
    letter-spacing: 0;
  }

  .command-home-copy p {
    margin-top: 8px;
    font-size: 15px;
  }

  .command-home-alert {
    margin-top: 9px;
    font-size: 14px;
  }

  body[data-page-key="home"] .command-home-hero .hero-search-anchor {
    top: 18px;
    right: 18px;
    position: absolute;
    margin-bottom: 0;
  }

  body[data-page-key="home"] .command-home-hero .hero-search-anchor .header-search-button {
    min-height: 40px;
    min-width: 112px;
    padding: 0 12px;
    border-radius: 13px;
  }

  .command-home-hero-top {
    padding-right: 150px;
  }

  .command-home-goal {
    padding: 20px 22px;
    border-radius: 22px;
  }

  .command-home-top-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .command-home-goal-grid {
    gap: 12px;
  }

  .command-home-goal-main {
    gap: 12px;
  }

  .command-home-goal-mark,
  .command-home-goal-mark svg {
    width: 44px;
    height: 44px;
  }

  .command-home-goal-mark svg {
    width: 25px;
    height: 25px;
  }

  .command-home-goal-value {
    margin: 0;
    font-size: 31px;
    letter-spacing: 0;
  }

  .command-home-goal-stat {
    min-height: 54px;
    gap: 10px;
    padding-left: 14px;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid #d7dfe7;
  }

  .command-home-goal-stat-icon,
  .command-home-goal-stat-icon svg {
    width: 22px;
    height: 22px;
  }

  .command-home-goal-stat strong {
    font-size: 23px;
    line-height: 1;
  }

  .command-home-goal-stat span {
    font-size: 14px;
    line-height: 1.15;
  }

  .command-home-goal-bar {
    height: 12px;
    margin-top: 16px;
  }

  .command-home-goal-complete {
    margin-top: 10px;
    font-size: 18px;
  }

  .command-home-card {
    padding: 18px;
    border-radius: 14px;
  }

  .command-home-card-head {
    min-height: 34px;
    margin-bottom: 14px;
  }

  .command-home-card-value {
    min-height: 50px;
    font-size: 27px;
  }

  .command-home-callout {
    margin-top: 14px;
    padding: 14px;
  }

  .command-home-bottom-row,
  .command-home-status-row {
    gap: 12px;
  }

  .command-home-performers-grid {
    gap: 10px;
  }

  .command-home-performer-card {
    padding: 12px;
  }

  .command-home-performer-name {
    font-size: 1rem;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .command-home-status-row,
  .command-home-bottom-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-home-goal-grid {
    grid-template-columns: 44px repeat(3, minmax(0, 1fr)) 44px;
  }

  .command-home-performers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1280px) and (min-width: 901px) {
  .command-home-performers-grid {
    grid-template-columns: repeat(2, minmax(0, 376px));
    column-gap: 88px;
    row-gap: 14px;
    justify-content: center;
  }

  .command-home-performer-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-content: center;
  }

  .command-home-performer-badges {
    grid-column: 3;
    grid-row: 2;
    display: grid;
    grid-template-columns: 46px 46px;
    justify-content: end;
    gap: 6px;
    min-width: 0;
    margin-top: 0;
  }

  .name-status-badge.certified.command-home-certified-mark,
  .name-status-badge.elite.command-home-elite-mark,
  .command-home-badge-slot {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .name-status-badge.certified.command-home-certified-mark img,
  .name-status-badge.elite.command-home-elite-mark img {
    width: 46px;
    height: 46px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .command-home-performer-copy {
    grid-column: 2;
  }

  .command-home-performer-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .command-home-goal-sales.workspace-theme-deal .command-home-goal-sales-bg {
    right: 0;
  }
}

@media (max-width: 900px) and (min-width: 721px) {
  :root {
    --shell-sidebar-width-compact: 150px;
  }

  .shell-header {
    padding-inline: 8px;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .hero.hero-home.command-home-hero,
  .command-home-hero {
    height: auto;
    min-height: 126px;
    padding: 18px 20px;
  }

  .command-home-copy h1 {
    font-size: 30px;
  }

  .command-home-copy p,
  .command-home-alert {
    font-size: 14px;
  }

  .command-home-goal-grid {
    grid-template-columns: 40px repeat(3, minmax(0, 1fr)) 40px;
  }

  .command-home-goal-value {
    font-size: 30px;
  }

  .command-home-goal-stat {
    align-items: flex-start;
    gap: 7px;
    padding-left: 10px;
  }

  .command-home-goal-stat strong {
    font-size: 20px;
  }

  .command-home-goal-stat span {
    font-size: 12px;
  }

  .command-home-status-row,
  .command-home-bottom-row {
    grid-template-columns: 1fr;
  }

  .command-home-performers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) and (min-width: 721px) and (max-height: 820px) {
  .shell-header {
    padding: 12px 8px 10px;
  }

  .brand-mark img {
    height: 52px;
  }

  .shell-nav {
    margin-top: 10px;
    gap: 6px;
  }

  .sidebar-utilities {
    gap: 6px;
    padding-top: 8px;
  }

  .nav-link {
    min-height: 30px;
    padding: 6px 9px;
    border-radius: 10px;
    gap: 7px;
    font-size: 0.78rem;
  }

  .nav-icon,
  .nav-icon svg {
    width: 15px;
    height: 15px;
  }

  .nav-link-break {
    margin-top: 8px;
  }

  .nav-link-break::before {
    top: -6px;
  }
}

@media (max-width: 1180px) and (min-width: 721px) and (orientation: landscape) {
  .shell-page {
    margin: 4px auto;
    gap: 10px;
  }

  .shell-header {
    top: 4px;
    min-height: calc(100svh - 8px);
    height: calc(100svh - 8px);
    max-height: calc(100svh - 8px);
    padding: 8px 7px;
    border-radius: 18px;
  }

  .brand-mark img {
    height: 40px;
  }

  .shell-nav {
    margin-top: 7px;
    gap: 4px;
  }

  .sidebar-utilities {
    gap: 4px;
    padding-top: 6px;
  }

  .nav-link {
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 9px;
    gap: 6px;
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .nav-icon,
  .nav-icon svg {
    width: 13px;
    height: 13px;
  }

  .nav-link-break {
    margin-top: 6px;
  }

  .nav-link-break::before {
    top: -4px;
    left: -3px;
    right: -3px;
  }
}

@media (max-width: 1280px) and (min-width: 761px) {
  .admin-goals-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-goals-company-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .leaderboard-clean-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-clean-card {
    padding: 16px;
  }

  .leaderboard-clean-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 62px;
    padding: 12px 14px;
  }

  .leaderboard-clean-person-main {
    gap: 8px;
  }

  .leaderboard-clean-person span {
    font-size: 1rem;
  }

  .leaderboard-clean-score {
    grid-template-columns: 46px 46px minmax(94px, auto);
    gap: 6px;
  }

  .leaderboard-clean-person .name-status-badge.certified.leaderboard-certified-mark,
  .leaderboard-clean-person .name-status-badge.elite.leaderboard-elite-mark,
  .leaderboard-clean-score .name-status-badge.certified.leaderboard-certified-mark,
  .leaderboard-clean-score .name-status-badge.elite.leaderboard-elite-mark,
  .leaderboard-badge-slot {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .leaderboard-clean-person .name-status-badge.certified.leaderboard-certified-mark img,
  .leaderboard-clean-person .name-status-badge.elite.leaderboard-elite-mark img,
  .leaderboard-clean-score .name-status-badge.certified.leaderboard-certified-mark img,
  .leaderboard-clean-score .name-status-badge.elite.leaderboard-elite-mark img {
    width: 46px;
    height: 46px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .leaderboard-clean-score em {
    min-width: 94px;
  }

  .leaderboard-clean-score em,
  .leaderboard-clean-row > em {
    font-size: 1.18rem;
  }

  .leaderboard-detail-row {
    grid-template-columns: minmax(132px, 0.78fr) minmax(160px, 1fr) minmax(220px, 1.55fr) minmax(108px, 0.72fr) minmax(78px, 0.5fr);
  }
}

@media (max-width: 760px) {
  .admin-goals-company-grid,
  .admin-goals-board,
  .admin-goals-rank-row,
  .admin-goal-item.compact {
    grid-template-columns: 1fr;
  }

  .leaderboard-clean-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-clean-card {
    padding: 18px 14px;
  }

  .leaderboard-clean-row {
    grid-template-columns: 30px minmax(0, 1fr) minmax(228px, auto);
    min-height: 48px;
    padding: 10px;
  }

  .leaderboard-clean-person span {
    font-size: 1rem;
  }

  .leaderboard-detail-modal {
    padding: 20px;
  }

  .leaderboard-detail-modal-head {
    grid-template-columns: 1fr;
  }

  .leaderboard-detail-modal-head h2 {
    font-size: 1.9rem;
  }

  .leaderboard-detail-title-block p,
  .leaderboard-detail-title-block-stats strong {
    font-size: 1.1rem;
  }

  .leaderboard-detail-row {
    grid-template-columns: 1fr;
  }

  .leaderboard-detail-title-block-stats {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    gap: 8px 12px;
  }

  .leaderboard-detail-title-block-revenue {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .admin-goals-control {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-goals-toolbar,
  .admin-goals-company-head,
  .admin-goals-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-goal-item.compact {
    align-items: stretch;
  }

  .leaderboard-clean-score {
    justify-items: start;
  }
}

@media (max-width: 1320px) and (min-width: 1101px) {
  .command-home-status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-home-top-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 404 / Unauthorized page */
.unauth-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 48px 24px;
}

.unauth-code {
  margin: 0;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line);
}

.unauth-heading {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 768px) {
  .hero {
    min-height: 0;
    padding: 18px 16px;
  }
}

@media (max-width: 720px) {
  .shell-page {
    width: min(100% - 10px, 100%);
    margin: 5px auto;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .shell-header,
  .shell-footer { padding-left: 12px; padding-right: 12px; }
  .shell-header {
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 14px;
    border-radius: 22px;
    overflow: visible;
  }
  .shell-header .header-top {
    min-height: 0;
    line-height: 1;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .mobile-header-search {
    margin-left: auto;
  }
  .mobile-header-search .header-search-button,
  .mobile-header-search-button {
    min-height: 38px;
    min-width: 116px;
    padding: 0 13px;
    border-radius: 12px;
    gap: 8px;
    font-size: 0.95rem;
  }
  .mobile-header-search .header-search-button svg,
  .mobile-header-search-button svg {
    width: 17px;
    height: 17px;
  }
  .hero-search-anchor:empty,
  .page-search-toolbar:empty {
    display: none;
  }
  .shell-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }
  .shell-nav > .nav-link {
    grid-column: span 2;
  }
  .shell-nav > .nav-link[href="./batteries.html"],
  .shell-nav > .nav-link[data-sidebar-key="batteries"] {
    order: 1;
  }
  .shell-nav > .nav-link[href="./solar.html"],
  .shell-nav > .nav-link[data-sidebar-key="solar"] {
    order: 2;
  }
  .shell-nav > .nav-link[href="./windows.html"],
  .shell-nav > .nav-link[data-sidebar-key="windows"] {
    order: 3;
  }
  .shell-nav > .nav-link[href="./hvac.html"],
  .shell-nav > .nav-link[data-sidebar-key="hvac"] {
    order: 4;
  }
  .shell-nav > .nav-link[href="./roofing.html"],
  .shell-nav > .nav-link[data-sidebar-key="roofing"] {
    order: 5;
  }
  .shell-nav > .nav-link[href="./sales-workspace.html"],
  .shell-nav > .nav-link[data-sidebar-key="sales-workspace"] {
    order: 6;
  }
  .shell-nav > .nav-link[href="./calendar.html"],
  .shell-nav > .nav-link[data-sidebar-key="calendar"] {
    order: 7;
  }
  .shell-nav > .nav-link[href="./training.html"],
  .shell-nav > .nav-link[data-sidebar-key="training"] {
    order: 8;
  }
  .shell-nav > .nav-link[href="./quizzes.html"],
  .shell-nav > .nav-link[data-sidebar-key="quizzes"] {
    order: 9;
  }
  .shell-header .nav-link {
    min-height: 40px;
    padding: 7px 8px;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.05;
    gap: 5px;
  }
  .shell-header .nav-link:has(.nav-icon) {
    grid-template-columns: 18px minmax(0, 1fr) minmax(20px, auto);
    column-gap: 8px;
    justify-items: start;
  }
  .shell-header .nav-link:has(.nav-icon) .nav-label-text {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    white-space: nowrap;
  }
  .shell-header .nav-count-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 0.68rem;
  }
  .shell-header .nav-icon,
  .shell-header .nav-icon svg {
    width: 15px;
    height: 15px;
  }
  .shell-header .nav-link:has(.nav-icon) .nav-icon {
    justify-self: center;
  }
  .shell-header .nav-link-break {
    margin-top: 0;
  }
  .shell-header .nav-link-break::before {
    display: none;
  }
  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
  }
  .sidebar-settings-wrapper,
  .sidebar-settings-wrapper .nav-link,
  .auth-logout {
    width: 100%;
  }
  .sidebar-settings-panel {
    left: 0;
    right: auto;
    bottom: calc(100% + 8px);
    min-width: min(260px, calc(100vw - 48px));
  }
  .section-band { padding: 18px 14px; }
  .brand-mark img { height: 42px; }
  .shell-title { font-size: 2.1rem; }
  .frame-wrap { padding: 10px; }
  .portal-frame { height: calc(100vh - 276px); }

  .header-top { gap: 12px; }
  .page-search-toolbar {
    justify-content: stretch;
    margin-bottom: 0;
  }
  .page-search-toolbar .header-search-button {
    width: 100%;
    justify-content: center;
  }
  .hero-search-anchor {
    margin-bottom: 0;
  }

  .page-top-card {
    min-height: 0;
    padding: 18px;
    justify-content: flex-start;
  }

  .command-strip.hero-only .page-top-card {
    height: auto;
    min-height: 0;
  }

  .hero-copy {
    min-height: 0;
  }

  .page-top-card .hero-right {
    position: static !important;
    width: 100%;
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-banner.page-top-card .hero-search-anchor,
  .page-top-card > .hero-top-row > .hero-search-anchor,
  .page-top-card > .hero-search-anchor {
    position: static !important;
    width: 100%;
  }

  .home-welcome-card {
    padding: 22px 18px 12px;
  }

  .deal-ring {
    margin-left: 0;
  }

  .home-focus-stats {
    grid-template-columns: 1fr;
  }

  .home-goal-metrics,
  .home-pipeline-row {
    grid-template-columns: 1fr;
  }

  .home-utility-button {
    flex: 1 1 220px;
  }

  .home-hero-search-button {
    position: static;
    margin-left: 0;
  }

  .hero-search-anchor .header-search-button {
    width: 100%;
    justify-content: center;
  }

  .training-hero-card .hero-top-row {
    align-items: flex-start;
    gap: 10px;
  }

  .training-hero-copy {
    display: none;
  }

  .training-hero-status {
    grid-template-columns: 32px minmax(0, 1fr);
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .training-hero-status.is-certified {
    width: auto;
    justify-content: flex-end;
    padding: 0;
  }

  .training-hero-status.is-certified .training-elite-crest {
    width: 74px;
    height: 74px;
  }

  .training-badge-mark {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 0.9rem;
  }

  .training-hero-status span {
    font-size: 0.82rem;
  }

  .training-hero-status strong {
    display: none;
  }

  .site-search-modal {
    width: calc(100vw - 20px);
    margin-top: 12px;
    max-height: calc(100vh - 24px);
    padding: 18px;
    border-radius: 22px;
  }
  .site-search-head {
    align-items: stretch;
    flex-direction: column;
  }
  .site-search-close {
    align-self: flex-start;
  }

  .focus-stat-list,
  .resource-button-grid {
    grid-template-columns: 1fr;
  }

  .home-command-shell,
  .home-goal-band {
    padding: 20px 18px;
  }

  .command-home-hero {
    min-height: 126px;
    height: auto;
    padding: 18px 16px;
    align-items: flex-start;
    justify-content: center;
  }

  .command-home-copy h1 {
    font-size: 28px;
  }

  .command-home-goal-value {
    font-size: 30px;
    line-height: 1.08;
  }

  .command-home-goal {
    padding: 20px 18px;
  }

  .command-home-goal-main {
    align-items: flex-start;
  }

  .command-home-goal-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .command-home-goal-mark svg {
    width: 24px;
    height: 24px;
  }

  .command-home-goal-stat {
    min-height: 0;
    padding-top: 14px;
    border-top-color: #e3e9f2;
  }

  .command-home-goal-split {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 18px;
  }

  .training-list-item,
  .leaderboard-list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .goal-meta-row,
  .pipeline-mini-scale,
  .command-home-daily-list {
    grid-template-columns: 1fr;
  }

  .command-home-training-item {
    grid-template-columns: 1fr;
  }

  .quiz-question-editor {
    grid-template-columns: 1fr;
  }

  .quiz-attempt-history {
    grid-template-columns: 1fr;
  }

  .sales-form-row,
  .sales-form-row-three {
    grid-template-columns: 1fr;
  }

  .command-home-resource-grid {
    grid-template-columns: 1fr;
  }

  .lead-intake-grid,
  .lead-intake-interest-grid {
    grid-template-columns: 1fr;
  }

  .lead-intake-shell {
    width: min(100% - 18px, 820px);
    padding-top: 18px;
  }

  .lead-intake-hero,
  .lead-intake-card {
    padding: 18px;
    border-radius: 18px;
  }

  .phone-request-actions {
    grid-template-columns: 1fr;
  }

  .phone-number-request-page .lead-intake-address-grid {
    grid-template-columns: 1fr;
  }

  .pay-issue-grid {
    grid-template-columns: 1fr;
  }

  .pay-retainer-metrics {
    grid-template-columns: 1fr;
  }

  .pay-retainer-metric h3 {
    min-height: 0;
  }

  .phone-request-actions .frame-actions > button {
    width: 100%;
  }

  .training-detail-head {
    display: grid;
  }

  .training-hub-grid {
    grid-template-columns: minmax(220px, 300px);
    justify-content: center;
  }

  .workspace-action-section {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .workspace-action-head {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }

  .workspace-section-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .workspace-section-badge svg {
    width: 24px;
    height: 24px;
  }

  .workspace-action-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workspace-action-card {
    min-height: 252px;
    padding: 20px 16px 18px;
  }

  .workspace-action-medallion {
    width: 76px;
    height: 76px;
    transform: translateY(4px);
  }

  .workspace-action-medallion svg {
    width: 36px;
    height: 36px;
  }

  .workspace-dot-field {
    top: 62px;
    width: 46px;
    height: 46px;
    background-size: 9px 9px;
  }

  .workspace-dot-left {
    left: 26px;
  }

  .workspace-dot-right {
    right: 26px;
  }

  .training-section-view .training-module-grid {
    grid-template-columns: minmax(220px, 300px);
    justify-content: center;
  }

  .training-path-card {
    width: min(300px, 100%);
    margin-inline: auto;
  }

  .training-detail-head .resource-link {
    width: 100%;
  }

  .training-card-meta,
  .training-detail-meta {
    justify-content: flex-start;
  }
}

@media (min-width: 721px) and (max-width: 1180px) and (max-height: 900px) {
  .shell-page {
    width: calc(100% - 8px) !important;
    margin: 4px auto !important;
    gap: 8px !important;
    grid-template-columns: 172px minmax(0, 1fr) !important;
  }

  .shell-header {
    position: sticky !important;
    top: 4px !important;
    width: 172px !important;
    min-height: calc(100svh - 8px) !important;
    height: calc(100svh - 8px) !important;
    max-height: calc(100svh - 8px) !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .shell-header .brand-mark img {
    height: 68px !important;
  }

  .shell-nav {
    margin-top: 14px !important;
    gap: 8px !important;
  }

  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    margin-top: auto !important;
    padding-top: 12px !important;
    gap: 8px !important;
  }

  .shell-header .nav-link {
    min-height: 38px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    gap: 8px !important;
    font-size: 0.92rem !important;
    line-height: 1 !important;
  }

  .shell-header .nav-icon,
  .shell-header .nav-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  .shell-header .nav-link-break {
    margin-top: 10px !important;
  }

  .shell-header .nav-link-break::before {
    top: -7px !important;
    left: -2px !important;
    right: -2px !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) and (max-height: 700px) {
  .shell-header {
    padding-block: 6px !important;
  }

  .shell-header .brand-mark img {
    height: 48px !important;
  }

  .shell-nav,
  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    gap: 5px !important;
  }

  .shell-header .nav-link {
    min-height: 31px !important;
    padding-block: 5px !important;
    font-size: 0.82rem !important;
  }
}

@media (pointer: coarse) and (min-width: 721px) and (max-width: 1180px) {
  .shell-page {
    width: calc(100% - 8px) !important;
    margin: 4px auto !important;
    gap: 12px !important;
    grid-template-columns: 184px minmax(0, 1fr) !important;
  }

  .shell-header {
    top: 4px !important;
    width: 184px !important;
    min-height: calc(100svh - 8px) !important;
    height: calc(100svh - 8px) !important;
    max-height: calc(100svh - 8px) !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  .shell-header .header-top {
    min-height: 0 !important;
    line-height: 1 !important;
  }

  .shell-header .brand-mark img {
    height: 66px !important;
  }

  .shell-nav {
    margin-top: 10px !important;
    gap: 6px !important;
  }

  .top-actions.sidebar-utilities,
  .sidebar-utilities {
    margin-top: auto !important;
    padding-top: 8px !important;
    gap: 6px !important;
  }

  .shell-header .nav-link {
    min-height: 36px !important;
    padding: 7px 10px !important;
    border-radius: 11px !important;
    gap: 8px !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .shell-header .nav-icon,
  .shell-header .nav-icon svg {
    width: 16px !important;
    height: 16px !important;
  }

  .shell-header .nav-link-break {
    margin-top: 8px !important;
  }

  .shell-header .nav-link-break::before {
    top: -6px !important;
    left: -2px !important;
    right: -2px !important;
  }

  .training-hub-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr)) !important;
    gap: clamp(16px, 3vw, 34px) !important;
  }

  .workspace-path-card,
  .training-path-card {
    width: min(100%, 240px) !important;
  }
}

html.aros-ipad .shell-page {
  width: min(100%, calc(100% - 16px)) !important;
  margin: 6px auto !important;
  gap: 12px !important;
  grid-template-columns: 184px minmax(0, 1fr) !important;
  align-items: start !important;
}

html.aros-ipad .shell-header {
  position: sticky !important;
  top: 6px !important;
  width: 184px !important;
  min-height: calc(100svh - 12px) !important;
  height: calc(100svh - 12px) !important;
  max-height: calc(100svh - 12px) !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  overflow-y: auto !important;
}

html.aros-ipad .shell-header .header-top {
  min-height: 0 !important;
  line-height: 1 !important;
}

html.aros-ipad .shell-header .brand-mark img {
  height: 78px !important;
}

html.aros-ipad .shell-nav {
  margin-top: 10px !important;
  gap: 6px !important;
}

html.aros-ipad .top-actions.sidebar-utilities,
html.aros-ipad .sidebar-utilities {
  margin-top: auto !important;
  padding-top: 0 !important;
  gap: 6px !important;
}

html.aros-ipad .shell-header .nav-link {
  position: relative !important;
  min-height: 38px !important;
  padding: 7px 38px 7px 10px !important;
  border-radius: 11px !important;
  column-gap: 8px !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

html.aros-ipad .shell-header .nav-link:has(.nav-icon) {
  grid-template-columns: 18px minmax(0, 1fr) minmax(22px, auto) !important;
}

html.aros-ipad .shell-header .nav-link:has(.nav-icon) .nav-label-text {
  justify-self: start !important;
  text-align: left !important;
  white-space: nowrap !important;
}

html.aros-ipad .shell-header .auth-logout .nav-label-text {
  white-space: nowrap !important;
}

html.aros-ipad .shell-header .nav-count-badge {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  z-index: 2 !important;
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  font-size: 0.68rem !important;
  transform: translateY(-50%) !important;
}

html.aros-ipad .shell-header .nav-icon,
html.aros-ipad .shell-header .nav-icon svg {
  width: 16px !important;
  height: 16px !important;
}

html.aros-ipad .shell-header .nav-link-break {
  margin-top: 9px !important;
}

html.aros-ipad .shell-header .nav-link-break::before {
  top: -6px !important;
  left: -2px !important;
  right: -2px !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-prep-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-execution-grid {
  grid-template-columns: minmax(280px, 360px) !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-primary-grid,
html.aros-ipad body[data-page-key="batteries"] .batteries-rebate-grid,
html.aros-ipad body[data-page-key="batteries"] .batteries-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html.aros-ipad body[data-page-key="windows"] .trade-helpful-grid,
html.aros-ipad body[data-page-key="hvac"] .trade-helpful-grid,
html.aros-ipad body[data-page-key="roofing"] .trade-helpful-grid {
  grid-template-columns: minmax(0, 420px) !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-workflow-card,
html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card,
html.aros-ipad body[data-page-key="windows"] .batteries-resource-card,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card {
  min-height: 220px !important;
  padding: 22px !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card,
html.aros-ipad body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card {
  grid-template-columns: 62px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(72px, 1fr) auto !important;
  column-gap: 16px !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-execution-grid .solar-card-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 999px !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card h3,
html.aros-ipad body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card h3,
html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card h3 {
  font-size: 1.06rem !important;
  line-height: 1.12 !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-execution-grid .solar-workflow-card p,
html.aros-ipad body[data-page-key="solar"] .solar-prep-grid .solar-workflow-card p,
html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card p {
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-workflow-card .resource-actions,
html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card .resource-actions,
html.aros-ipad body[data-page-key="windows"] .batteries-resource-card .resource-actions,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card .resource-actions,
html.aros-ipad body[data-page-key="batteries"] .batteries-rebate-card .resource-actions,
html.aros-ipad body[data-page-key="windows"] .trade-helpful-card .resource-actions {
  align-self: end !important;
  margin-top: 12px !important;
  min-width: 0 !important;
}

html.aros-ipad body[data-page-key="solar"] .solar-workflow-card .resource-link.primary,
html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card .resource-link.primary,
html.aros-ipad body[data-page-key="windows"] .batteries-resource-card .resource-link.primary,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card .resource-link.primary,
html.aros-ipad body[data-page-key="batteries"] .batteries-rebate-card .resource-link.primary,
html.aros-ipad body[data-page-key="windows"] .trade-helpful-card .resource-link {
  max-width: 100% !important;
  min-height: 42px !important;
  padding: 9px 18px !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card,
html.aros-ipad body[data-page-key="windows"] .batteries-resource-card,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card {
  grid-template-columns: 78px minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(88px, 1fr) auto !important;
  column-gap: 18px !important;
}

html.aros-ipad body[data-page-key="batteries"] .batteries-resource-icon,
html.aros-ipad body[data-page-key="windows"] .batteries-resource-icon,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-icon {
  width: 60px !important;
  height: 60px !important;
}

html.aros-ipad body[data-page-key="windows"] .batteries-resource-card h3,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card h3 {
  grid-row: 1 !important;
}

html.aros-ipad body[data-page-key="windows"] .batteries-resource-card p,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card p {
  grid-row: 2 !important;
}

html.aros-ipad body[data-page-key="windows"] .batteries-resource-card .resource-actions,
html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card .resource-actions {
  grid-row: 3 !important;
}

html.aros-ipad body[data-page-key="windows"] .batteries-resource-card .resource-link.primary {
  white-space: nowrap !important;
}

html.aros-ipad body[data-page-key="roofing"] .batteries-resource-card .resource-link.primary {
  padding-inline: 12px !important;
  font-size: 0.78rem !important;
  white-space: nowrap !important;
}

html.aros-ipad body[data-page-key="windows"] .trade-helpful-card,
html.aros-ipad body[data-page-key="hvac"] .trade-helpful-card,
html.aros-ipad body[data-page-key="roofing"] .trade-helpful-card {
  width: min(100%, 420px) !important;
  height: auto !important;
  min-height: 220px !important;
  padding: 24px !important;
}

.rep-hub-main {
  max-width: 1320px;
  gap: 20px;
}

.rep-hub-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 28px;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.2);
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  box-shadow: 0 24px 58px rgba(0, 34, 51, 0.2);
}

.rep-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.74) 1px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
  pointer-events: none;
}

.rep-hub-hero::after {
  content: "";
  position: absolute;
  right: 32px;
  bottom: -52px;
  width: 360px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: rotate(-4deg);
  opacity: 0.46;
  pointer-events: none;
}

.rep-hub-hero-copy,
.rep-hub-cert-card {
  position: relative;
  z-index: 1;
}

.rep-hub-hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.3rem, 4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.rep-hub-hero-copy p {
  max-width: 660px;
  margin: 14px 0 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.rep-hub-hero .hero-search-anchor {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
}

.rep-hub-cert-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 38px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(14px);
}

.rep-hub-cert-card strong {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.15;
}

.rep-hub-cert-card p {
  margin: 6px 0 12px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.86rem;
  line-height: 1.4;
}

.rep-hub-icon,
.rep-hub-action-icon,
.rep-hub-metric-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
}

.rep-hub-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.14);
  color: #ddd6fe;
}

.rep-hub-icon svg,
.rep-hub-action-icon svg,
.rep-hub-metric-icon svg,
.rep-hub-empty svg,
.rep-hub-deal-card svg,
.rep-hub-task svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rep-hub-action-icon img.deal-handshake-icon {
  width: 34px;
  height: 34px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.rep-hub-progress-mini,
.rep-hub-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.42);
}

.rep-hub-progress-mini span,
.rep-hub-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2dd4bf);
}

.rep-hub-section,
.rep-hub-panel {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.rep-hub-section {
  padding: 24px;
}

.rep-hub-section-head,
.rep-hub-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.rep-hub-section-head h2,
.rep-hub-panel-head h2 {
  margin: 0;
  color: #071b3a;
  font-size: 1.2rem;
  line-height: 1.15;
}

.rep-hub-section-head p,
.rep-hub-panel-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.35;
}

.rep-hub-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.rep-hub-action-card,
.rep-hub-deal-card,
.rep-hub-metric-card,
.rep-hub-update,
.rep-hub-task,
.rep-hub-link-grid a {
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.rep-hub-action-card {
  position: relative;
  display: grid;
  min-height: 178px;
  padding: 20px;
  overflow: hidden;
  border-radius: 22px;
  color: #071b3a;
  text-decoration: none;
}

.rep-hub-action-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background: var(--rep-hub-card-bg, linear-gradient(180deg, #ffffff, #eef4ff));
  pointer-events: none;
}

.rep-hub-action-card > * {
  position: relative;
  z-index: 1;
}

.rep-hub-action-card:hover,
.rep-hub-deal-card:hover,
.rep-hub-link-grid a:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--rep-hub-accent, #2563eb) 30%, rgba(15, 23, 42, 0.07));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.rep-hub-theme-blue {
  --rep-hub-accent: #2563eb;
  --rep-hub-soft: #dbeafe;
  --rep-hub-card-bg: radial-gradient(circle at 50% 18%, #ffffff 0%, #ffffff 24%, transparent 52%), linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
}

.rep-hub-theme-teal {
  --rep-hub-accent: #0f766e;
  --rep-hub-soft: #ccfbf1;
  --rep-hub-card-bg: radial-gradient(circle at 50% 18%, #ffffff 0%, #ffffff 24%, transparent 52%), linear-gradient(180deg, #ffffff 0%, #edf9f7 100%);
}

.rep-hub-theme-green {
  --rep-hub-accent: #059669;
  --rep-hub-soft: #d1fae5;
  --rep-hub-card-bg: radial-gradient(circle at 50% 18%, #ffffff 0%, #ffffff 24%, transparent 52%), linear-gradient(180deg, #ffffff 0%, #edfdf6 100%);
}

.rep-hub-theme-purple {
  --rep-hub-accent: #7c3aed;
  --rep-hub-soft: #ede9fe;
  --rep-hub-card-bg: radial-gradient(circle at 50% 18%, #ffffff 0%, #ffffff 24%, transparent 52%), linear-gradient(180deg, #ffffff 0%, #f5efff 100%);
}

.rep-hub-action-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--rep-hub-accent, #2563eb);
  background: color-mix(in srgb, var(--rep-hub-soft, #dbeafe) 82%, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 12px 24px color-mix(in srgb, var(--rep-hub-accent, #2563eb) 18%, transparent);
}

.rep-hub-action-card h3 {
  margin: 0 0 8px;
  color: #071b3a;
  font-size: 1.03rem;
  line-height: 1.1;
}

.rep-hub-action-card p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.42;
}

.rep-hub-action-arrow {
  align-self: end;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--rep-hub-accent, #2563eb) 86%, #ffffff), var(--rep-hub-accent, #2563eb));
  box-shadow: 0 12px 24px color-mix(in srgb, var(--rep-hub-accent, #2563eb) 28%, transparent);
}

.rep-hub-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 1fr);
  gap: 20px;
  align-items: start;
}

.rep-hub-column {
  display: grid;
  gap: 20px;
}

.rep-hub-panel {
  padding: 22px;
}

.rep-hub-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.rep-hub-metric-card {
  position: relative;
  display: block;
  min-height: 112px;
  padding: 16px 14px;
  overflow: hidden;
  border-radius: 18px;
}

.rep-hub-metric-link {
  color: inherit;
  text-decoration: none;
}

.rep-hub-metric-link:hover,
.rep-hub-metric-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.22);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  outline: none;
}

.rep-hub-metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--rep-hub-metric-accent, #2563eb);
}

.rep-hub-metric-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  color: var(--rep-hub-metric-accent, #2563eb);
  background: color-mix(in srgb, var(--rep-hub-metric-accent, #2563eb) 12%, #ffffff);
}

.rep-hub-metric-card > div {
  min-width: 0;
}

.rep-hub-metric-card h3 {
  margin: 0;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.2;
}

.rep-hub-metric-card strong {
  display: block;
  margin-top: 6px;
  color: #071b3a;
  font-size: 1.8rem;
  line-height: 1;
}

.rep-hub-metric-card p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

.rep-hub-accent-blue { --rep-hub-metric-accent: #3b82f6; }
.rep-hub-accent-teal { --rep-hub-metric-accent: #14b8a6; }
.rep-hub-accent-green { --rep-hub-metric-accent: #10b981; }
.rep-hub-accent-orange { --rep-hub-metric-accent: #f59e0b; }
.rep-hub-accent-purple { --rep-hub-metric-accent: #8b5cf6; }

.rep-hub-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rep-hub-deal-card {
  display: grid;
  gap: 11px;
  padding: 16px;
  border-radius: 18px;
}

.rep-hub-card-top,
.rep-hub-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rep-hub-card-top h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #071b3a;
  font-size: 1.02rem;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-hub-card-top span {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 0.7rem;
  font-weight: 900;
}

.rep-hub-meta {
  margin: 0;
  color: #475569;
  font-size: 0.86rem;
}

.rep-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rep-hub-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.rep-hub-card-foot strong {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rep-hub-card-foot a,
.rep-hub-card-foot .workspace-card-open {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  color: #2563eb;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.14);
}

.rep-hub-card-foot .workspace-card-open {
  padding: 0;
  cursor: pointer;
}

.workspace-today-card-list .rep-hub-empty {
  grid-column: 1 / -1;
}

.rep-hub-pipeline {
  display: grid;
  gap: 12px;
}

.rep-hub-pipeline-row {
  display: grid;
  gap: 7px;
}

.rep-hub-pipeline-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 900;
}

.rep-hub-pipeline-row p {
  height: 9px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.rep-hub-pipeline-row p span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.rep-hub-total {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.rep-hub-training-card {
  display: grid;
  gap: 12px;
}

.rep-hub-training-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.rep-hub-training-score strong {
  color: #071b3a;
  font-size: 2rem;
  line-height: 1;
}

.rep-hub-training-score span {
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 900;
}

.rep-hub-training-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.35;
}

.rep-hub-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
  font-weight: 900;
  text-decoration: none;
}

.rep-hub-update-list,
.rep-hub-task-list {
  display: grid;
  gap: 10px;
}

.rep-hub-update {
  padding: 13px;
  border-radius: 16px;
}

.rep-hub-update span {
  color: #7c3aed;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rep-hub-update h3 {
  margin: 5px 0 4px;
  color: #071b3a;
  font-size: 0.94rem;
  line-height: 1.25;
}

.rep-hub-update p,
.rep-hub-update small {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.35;
}

.rep-hub-task {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
}

.rep-hub-task > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #2563eb;
  background: #eff6ff;
}

.rep-hub-task h3 {
  margin: 0;
  color: #071b3a;
  font-size: 0.9rem;
}

.rep-hub-task p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.78rem;
}

.rep-hub-link-grid {
  display: grid;
  gap: 10px;
}

.rep-hub-link-grid a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  color: #071b3a;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.rep-hub-empty {
  display: grid;
  place-items: center;
  min-height: 126px;
  padding: 18px;
  border: 1px dashed rgba(100, 116, 139, 0.34);
  border-radius: 18px;
  color: #64748b;
  text-align: center;
  background: rgba(248, 250, 252, 0.62);
}

.rep-hub-empty span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  border-radius: 14px;
  color: #64748b;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rep-hub-empty strong {
  color: #334155;
  font-size: 0.92rem;
}

.rep-hub-empty p {
  max-width: 290px;
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .rep-hub-action-grid,
  .rep-hub-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rep-hub-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .rep-hub-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .rep-hub-hero .hero-search-anchor {
    position: static;
    justify-self: start;
    order: -1;
  }

  .rep-hub-action-grid,
  .rep-hub-metric-grid,
  .rep-hub-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rep-hub-main {
    gap: 14px;
  }

  .rep-hub-section,
  .rep-hub-panel,
  .rep-hub-hero {
    border-radius: 20px;
    padding: 18px;
  }

  .rep-hub-action-grid,
  .rep-hub-metric-grid,
  .rep-hub-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
  }

  .login-brand-inner {
    min-height: auto;
    align-content: start;
    gap: 24px;
    max-width: none;
    padding: 28px;
    transform: none;
  }

  .login-brand-copy h1 {
    max-width: 620px;
    font-size: clamp(2.35rem, 10vw, 3.7rem);
  }

  .login-brand-copy,
  .login-feature-list {
    transform: none;
  }

  .login-feature-list {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .login-feature-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
  }

  .login-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .login-feature-icon svg {
    width: 21px;
    height: 21px;
  }

  .login-main {
    min-height: auto;
    padding: 34px 20px 28px;
  }
}

@media (max-width: 680px) {
  .login-feature-list {
    grid-template-columns: 1fr;
  }

  .login-brand-inner {
    padding: 24px 20px;
  }

  .login-brand-panel .brand-mark img {
    height: 70px;
  }

  .login-card {
    padding: 26px 20px;
    border-radius: 22px;
    transform: none;
  }

  .login-lock-badge {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
  }

  .login-copyright {
    transform: none;
  }
}

/* Training LMS refresh */
body[data-page-key="training"] .training-hero-card {
  min-height: 132px;
  overflow: hidden;
  border: 0;
  border-radius: var(--hero-radius);
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  box-shadow: none;
}

body[data-page-key="training"] .training-hero-card::before {
  display: none;
}

body[data-page-key="training"] .training-hero-card::after {
  display: none;
}

body[data-page-key="training"] .training-hero-card > * {
  position: relative;
  z-index: 1;
}

body[data-page-key="training"] .training-hub-band,
body[data-page-key="training"] .training-section-view,
body[data-page-key="training"] .training-updates-view,
body[data-page-key="training"] .training-filter-band,
body[data-page-key="training"] .training-detail-view {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

body[data-page-key="training"] .training-hub-grid,
body[data-page-key="training"] .training-section-view .training-module-grid,
body[data-page-key="training"] .training-update-circle-grid,
body[data-page-key="training"] .training-lesson-circle-grid {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  gap: 16px;
}

body[data-page-key="training"] .training-section-view .training-module-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

body[data-page-key="training"] .training-lms-card,
body[data-page-key="training"] .training-path-card.training-lms-card,
body[data-page-key="training"] .training-lesson-circle {
  position: relative;
  width: 100%;
  min-height: 232px;
  aspect-ratio: auto;
  justify-self: stretch;
  align-items: stretch;
  justify-content: flex-start;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 3px solid var(--training-accent);
  border-radius: 8px;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(var(--training-accent-rgb), 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.98), var(--training-tint-b, #f8fbff) 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body[data-page-key="training"] .training-lms-card::before,
body[data-page-key="training"] .training-lesson-circle::before {
  content: none;
}

body[data-page-key="training"] .training-lms-card::after,
body[data-page-key="training"] .training-lesson-circle::after {
  content: none;
}

body[data-page-key="training"] .training-lms-card > *,
body[data-page-key="training"] .training-lesson-circle > * {
  position: relative;
  z-index: 1;
}

body[data-page-key="training"] .training-lms-card-top {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

body[data-page-key="training"] .training-action-badge {
  position: absolute;
  top: -7px;
  left: 34px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  background: #d92d20;
  box-shadow: 0 8px 18px rgba(217, 45, 32, 0.26);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

body[data-page-key="training"] .training-card-icon {
  width: 48px;
  height: 48px;
  margin: 0;
  border-radius: 8px;
  color: var(--training-accent);
  background: rgba(var(--training-accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.16);
}

body[data-page-key="training"] .training-card-icon svg {
  width: 25px;
  height: 25px;
}

body[data-page-key="training"] .training-card-general-icon {
  color: #146ef5;
  background: #eef6ff;
  box-shadow:
    inset 0 0 0 1px rgba(20, 110, 245, 0.18),
    0 10px 20px rgba(20, 110, 245, 0.08);
}

body[data-page-key="training"] .training-card-general-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.25;
}

body[data-page-key="training"] .training-path-card h3,
body[data-page-key="training"] .training-update-card h3,
body[data-page-key="training"] .training-lesson-circle h3 {
  max-width: none;
  margin: 0;
  color: #071b38;
  font-size: 1.08rem;
  line-height: 1.15;
}

body[data-page-key="training"] .training-track-label,
body[data-page-key="training"] .training-lesson-count {
  display: inline-flex;
  margin-top: 5px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

body[data-page-key="training"] .training-lms-card p,
body[data-page-key="training"] .training-lesson-circle p {
  max-width: none;
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

body[data-page-key="training"] .training-update-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body[data-page-key="training"] .training-lms-progress-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

body[data-page-key="training"] .training-progress-summary {
  display: grid;
  gap: 2px;
  justify-items: start;
}

body[data-page-key="training"] .training-progress-summary strong {
  color: #071b38;
  font-size: 1.45rem;
}

body[data-page-key="training"] .training-progress-summary span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-page-key="training"] .training-progress-track,
body[data-page-key="training"] .training-path-card .training-progress-track {
  width: 100%;
  height: 8px;
  background: #e5edf6;
}

body[data-page-key="training"] .training-progress-track span {
  background: linear-gradient(90deg, var(--training-accent), color-mix(in srgb, var(--training-accent) 62%, #ffffff));
}

body[data-page-key="training"] .training-certified-badge,
body[data-page-key="training"] .training-lms-card .training-certified-badge {
  position: static;
  transform: none;
  width: auto;
  max-width: none;
  justify-self: end;
  padding: 6px 10px;
  color: #071b38;
  background: linear-gradient(135deg, #fef3c7, #f8c766);
}

body[data-page-key="training"] .training-lms-card .training-status-pill {
  justify-self: end;
  white-space: nowrap;
}

body[data-page-key="training"] .training-lms-card .training-card-meta {
  justify-content: flex-start;
  gap: 8px 14px;
  color: #64748b;
  font-size: 0.8rem;
}

body[data-page-key="training"] .training-lms-card .resource-actions,
body[data-page-key="training"] .training-path-card .resource-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 2px;
}

body[data-page-key="training"] .training-lms-card .resource-link,
body[data-page-key="training"] .training-path-card .resource-link {
  flex: 1 1 0;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

body[data-page-key="training"] .training-lms-card .resource-link.secondary {
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

body[data-page-key="training"] .training-update-read-toggle {
  min-width: 132px;
}

body[data-page-key="training"] .training-update-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-page-key="training"] .training-lesson-circle {
  min-height: 128px;
  gap: 8px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

body[data-page-key="training"] .training-lesson-circle .training-lms-card-top {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

body[data-page-key="training"] .training-lesson-circle .training-lms-card-top:has(.training-product-card-icon) {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
}

body[data-page-key="training"] .training-lesson-circle .training-card-icon {
  width: 38px;
  height: 38px;
}

body[data-page-key="training"] .training-lesson-circle .training-product-card-icon {
  width: 56px;
  height: 56px;
  margin: 0;
}

body[data-page-key="training"] .training-lesson-circle .training-product-card-icon.battery-platform-badge svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

body[data-page-key="training"] .training-lesson-circle h3 {
  font-size: 0.94rem;
  line-height: 1.08;
}

body[data-page-key="training"] .training-lesson-circle p {
  font-size: 0.8rem;
  line-height: 1.25;
}

body[data-page-key="training"] .training-lesson-circle .training-status-pill {
  display: none;
}

body[data-page-key="training"] .training-lesson-circle .training-progress-track {
  height: 5px;
  margin-top: auto;
}

body[data-page-key="training"] .training-lesson-circle:hover,
body[data-page-key="training"] .training-lesson-circle:focus-visible,
body[data-page-key="training"] .training-lesson-circle:focus-within,
body[data-page-key="training"] .training-lesson-circle.is-certified:hover,
body[data-page-key="training"] .training-lesson-circle.is-certified:focus-visible,
body[data-page-key="training"] .training-lesson-circle.is-certified:focus-within {
  transform: translateY(-3px);
  border-color: rgba(var(--training-accent-rgb), 0.3);
  border-top-color: var(--training-accent);
  background:
    radial-gradient(circle at 88% 14%, rgba(var(--training-accent-rgb), 0.16), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, rgba(var(--training-accent-rgb), 0.07) 100%);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.12),
    0 6px 18px rgba(var(--training-accent-rgb), 0.12),
    inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.08);
}

body[data-page-key="training"] .training-lesson-circle:focus-visible {
  outline: 3px solid rgba(var(--training-accent-rgb), 0.2);
  outline-offset: 3px;
}

body[data-page-key="training"] .training-filter-grid {
  margin-top: 0;
}

body[data-page-key="training"] .training-updates-grid {
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  gap: 16px;
}

body[data-page-key="training"] .training-updates-grid .hub-card,
body[data-page-key="training"] .training-update-detail-card {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body[data-page-key="training"] .training-detail-head {
  align-items: center;
}

body[data-page-key="training"] .training-hub-band {
  padding: 16px;
}

body[data-page-key="training"] .training-hub-grid:has(.training-dashboard) {
  display: block;
  max-width: none;
  width: 100%;
  margin: 0;
}

body[data-page-key="training"] .training-dashboard {
  display: grid;
  gap: 14px;
}

body[data-page-key="training"] .training-dashboard.is-loading {
  opacity: 0.98;
}

body[data-page-key="training"] .training-dashboard-panel {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 4%, rgba(37, 99, 235, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body[data-page-key="training"] .training-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body[data-page-key="training"] .training-dashboard-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body[data-page-key="training"] .training-dashboard-title h2,
body[data-page-key="training"] .training-dashboard-head h2 {
  margin: 0;
  color: #071b38;
  font-size: 1.12rem;
  line-height: 1.14;
}

body[data-page-key="training"] .training-dashboard-title p,
body[data-page-key="training"] .training-dashboard-head p {
  margin: 5px 0 0;
  color: #475b78;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.35;
}

body[data-page-key="training"] .training-dashboard-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--training-accent) 64%, #ffffff), var(--training-accent) 58%, color-mix(in srgb, var(--training-accent) 82%, #111827));
  box-shadow:
    0 16px 30px rgba(var(--training-accent-rgb), 0.24),
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

body[data-page-key="training"] .training-dashboard-icon .training-card-icon {
  width: 31px;
  height: 31px;
  color: currentColor;
  background: transparent;
  box-shadow: none;
}

body[data-page-key="training"] .training-dashboard-icon .training-card-icon svg {
  width: 30px;
  height: 30px;
}

body[data-page-key="training"] .training-admin-report {
  overflow: hidden;
}

body[data-page-key="training"] .training-team-progress-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

body[data-page-key="training"] .training-team-progress-launcher h2 {
  margin: 3px 0 0;
  color: #071b38;
  font-size: 1.12rem;
}

body[data-page-key="training"] .training-team-progress-launcher p {
  margin: 5px 0 0;
  color: #475b78;
  font-size: 0.86rem;
  font-weight: 650;
}

body[data-page-key="training"] .training-team-progress-launcher .resource-link {
  flex: 0 0 auto;
}

body[data-page-key="training"] .training-admin-list {
  display: grid;
  gap: 8px;
}

body[data-page-key="training"] .training-admin-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(3, minmax(100px, 0.55fr));
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

body[data-page-key="training"] .training-card-loading,
body[data-page-key="training"] .training-admin-row-loading {
  position: relative;
  overflow: hidden;
}

body[data-page-key="training"] .training-card-loading::after,
body[data-page-key="training"] .training-admin-row-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 8%, rgba(255, 255, 255, 0.58) 18%, transparent 30%);
  transform: translateX(-100%);
  animation: training-loading-sheen 1.4s ease-in-out infinite;
}

body[data-page-key="training"] .status-loading {
  color: #52657e;
  background: #eef4fb;
}

body[data-page-key="training"] .training-hero-status.is-loading .training-badge-mark {
  background: linear-gradient(135deg, #dbe7f5, #edf4fb);
  color: #52657e;
}

@keyframes training-loading-sheen {
  to {
    transform: translateX(100%);
  }
}

body[data-page-key="training"] .training-admin-row:hover,
body[data-page-key="training"] .training-admin-row:focus-visible {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  outline: none;
}

body[data-page-key="training"] .training-admin-person {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 2px 6px;
}

body[data-page-key="training"] .training-admin-row h3 {
  margin: 0;
  color: #071b38;
  font-size: 1rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page-key="training"] .training-admin-person span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body[data-page-key="training"] .training-admin-metric {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
  text-align: left;
}

body[data-page-key="training"] .training-admin-metric.is-complete {
  background: #eefbf6;
}

body[data-page-key="training"] .training-admin-metric:hover,
body[data-page-key="training"] .training-admin-metric:focus-visible {
  border-color: rgba(37, 99, 235, 0.24);
  background: #eef6ff;
  outline: none;
}

body[data-page-key="training"] .training-admin-metric strong {
  display: block;
  color: #071b38;
  font-size: 0.98rem;
  line-height: 1;
}

body[data-page-key="training"] .training-admin-metric span {
  display: block;
  color: #607086;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
}

body[data-page-key="training"] .training-progress-dialog {
  width: min(720px, calc(100vw - 28px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
}

body[data-page-key="training"] .training-progress-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

body[data-page-key="training"] .training-progress-dialog-sheet {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

body[data-page-key="training"] .training-progress-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 0%, rgba(60, 230, 224, 0.3), transparent 34%),
    linear-gradient(128deg, #003d46 0%, #006f75 58%, #05aeb3 100%);
}

body[data-page-key="training"] .training-progress-dialog-head h2,
body[data-page-key="training"] .training-progress-dialog-head .resource-type,
body[data-page-key="training"] .training-progress-dialog-head .mini-link {
  color: #ffffff;
}

body[data-page-key="training"] .training-progress-dialog-head h2 {
  margin: 4px 0 0;
}

body[data-page-key="training"] .training-progress-dialog-head .mini-link {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
}

body[data-page-key="training"] .training-progress-dialog-body {
  display: grid;
  gap: 10px;
  max-height: calc(88vh - 94px);
  overflow-y: auto;
  padding: 20px 22px 24px;
}

body[data-page-key="training"] [data-training-progress-dialog][data-report-view="team"] {
  width: min(1080px, calc(100vw - 28px));
}

body[data-page-key="training"] .training-progress-empty {
  margin: 0;
  padding: 28px;
  color: #64748b;
  font-weight: 750;
  text-align: center;
}

body[data-page-key="training"] [data-training-item-editor-dialog] {
  width: min(980px, calc(100vw - 28px));
  max-height: 92vh;
}

body[data-page-key="training"] .training-item-editor-sheet {
  overflow: hidden;
  gap: 0;
  padding: 0;
}

body[data-page-key="training"] .training-item-editor-sheet .training-progress-dialog-head {
  padding: 21px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--training-accent, #0f9d9f), color-mix(in srgb, var(--training-accent, #0f9d9f) 72%, #071b38));
}

body[data-page-key="training"] .training-item-editor-sheet .training-progress-dialog-head h2,
body[data-page-key="training"] .training-item-editor-sheet .training-progress-dialog-head .resource-type,
body[data-page-key="training"] .training-item-editor-sheet .training-progress-dialog-head .mini-link {
  color: #ffffff;
}

body[data-page-key="training"] .training-item-editor-sheet .training-progress-dialog-head .mini-link {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
}

body[data-page-key="training"] .training-item-editor-sheet .training-progress-dialog-body {
  max-height: calc(92vh - 90px);
  overflow-y: auto;
  padding: 20px 22px 24px;
}

body[data-page-key="training"] .training-item-editor-sheet .training-custom-item-card {
  border: 0;
  padding: 0;
  box-shadow: none;
}

body[data-page-key="training"] .training-lesson-dialog {
  width: min(880px, calc(100vw - 28px));
  max-height: min(90vh, 920px);
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}

body[data-page-key="training"] .training-lesson-dialog::backdrop {
  background: rgba(7, 27, 56, 0.58);
  backdrop-filter: blur(3px);
}

body[data-page-key="training"] .training-lesson-dialog-sheet {
  overflow: hidden;
  border: 1px solid rgba(var(--training-accent-rgb, 15, 157, 159), 0.34);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.3);
}

body[data-page-key="training"] .training-lesson-dialog-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(135deg, var(--training-accent, #0f9d9f), color-mix(in srgb, var(--training-accent, #0f9d9f) 72%, #071b38));
}

body[data-page-key="training"] .training-lesson-dialog-hero span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page-key="training"] .training-lesson-dialog-hero h2,
body[data-page-key="training"] .training-lesson-dialog-hero p {
  color: inherit;
}

body[data-page-key="training"] .training-lesson-dialog-hero h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

body[data-page-key="training"] .training-lesson-dialog-hero p {
  max-width: 650px;
  margin: 7px 0 0;
  opacity: 0.9;
}

body[data-page-key="training"] .training-lesson-dialog-hero button {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

body[data-page-key="training"] .training-lesson-dialog-body {
  max-height: calc(90vh - 150px);
  overflow-y: auto;
  padding: 24px 26px 28px;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-lesson-card {
  border: 0;
  padding: 0;
  box-shadow: none;
}

body[data-page-key="training"] .training-audience-picker {
  margin: 0;
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 14px;
  padding: 13px;
}

body[data-page-key="training"] .training-audience-picker legend {
  padding: 0 6px;
  color: #071b38;
  font-weight: 900;
}

body[data-page-key="training"] .training-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page-key="training"] .training-audience-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #c9d8e6;
  border-radius: 12px;
  padding: 11px 12px;
  color: #071b38;
  background: #f8fbff;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="training"] .training-audience-grid input {
  width: 17px;
  height: 17px;
  accent-color: #0f9d9f;
}

@media (max-width: 640px) {
  body[data-page-key="training"] .training-audience-grid {
    grid-template-columns: 1fr;
  }

  .inside-sales-hub-band .workspace-action-head { padding-right:54px; }
  .sales-extension-corner-tool { top:16px;right:14px;width:44px;height:44px;border-radius:13px; }
  .sales-extension-corner-tool img { width:24px;height:24px; }
  .sales-extension-dialog { width:min(100% - 14px,980px);border-radius:16px; }
  .sales-extension-dialog-head { grid-template-columns:36px minmax(0,1fr) 32px;padding:11px 12px; }
  .sales-extension-dialog-icon { width:36px;height:36px; }
  .sales-extension-dialog-icon img { width:30px;height:30px; }
  .sales-extension-dialog-head h2 { font-size:17px; }
  .sales-extension-dialog-body { max-height:86vh;padding:11px; }
  .sales-extension-setup-row { grid-template-columns:1fr; }
  .sales-extension-sync-head { align-items:flex-start; }
  .sales-extension-sync-head-actions { align-items:flex-end;flex-direction:column;gap:5px; }
  .sales-extension-sync-list { grid-template-columns:1fr;max-height:46vh; }
  .sales-extension-disposition-fields { grid-template-columns:58px minmax(0,1fr); }
  .sales-extension-disposition-fields label:nth-of-type(3),.sales-extension-disposition-fields label:nth-of-type(4) { grid-column:1 / -1; }
  .sales-extension-disposition-fields > button { grid-column:2;justify-self:end; }
  .sales-extension-sync-actions { grid-template-columns:1fr; }

  body[data-page-key="training"] .training-lesson-dialog-hero,
  body[data-page-key="training"] .training-lesson-dialog-body {
    padding: 19px;
  }
}

body[data-page-key="training"] .training-rich-editor {
  min-height: 180px;
  border-radius: 0 0 14px 14px;
  background: #ffffff;
}

body[data-page-key="training"] .training-rich-editor.ql-container {
  border-color: rgba(27, 36, 48, 0.14);
  font: inherit;
}

body[data-page-key="training"] .ql-toolbar.ql-snow {
  border-color: rgba(27, 36, 48, 0.14);
  border-radius: 14px 14px 0 0;
  background: #f8fbff;
}

body[data-page-key="training"] .ql-toolbar.ql-snow .ql-picker {
  color: #111827;
}

body[data-page-key="training"] .ql-toolbar.ql-snow .ql-picker-label,
body[data-page-key="training"] .ql-toolbar.ql-snow .ql-picker-item {
  border-radius: 8px;
}

body[data-page-key="training"] .ql-toolbar.ql-snow .ql-font {
  width: 160px;
}

body[data-page-key="training"] .ql-toolbar.ql-snow .ql-size {
  width: 86px;
}

body[data-page-key="training"] .ql-picker.ql-font .ql-picker-label[data-value="arial"]::before,
body[data-page-key="training"] .ql-picker.ql-font .ql-picker-item[data-value="arial"]::before {
  content: "Arial";
  font-family: Arial, Helvetica, sans-serif;
}

body[data-page-key="training"] .ql-picker.ql-font .ql-picker-label[data-value="times-new-roman"]::before,
body[data-page-key="training"] .ql-picker.ql-font .ql-picker-item[data-value="times-new-roman"]::before {
  content: "Times New Roman";
  font-family: "Times New Roman", Times, serif;
}

body[data-page-key="training"] .ql-picker.ql-font .ql-picker-label[data-value="georgia"]::before,
body[data-page-key="training"] .ql-picker.ql-font .ql-picker-item[data-value="georgia"]::before {
  content: "Georgia";
  font-family: Georgia, serif;
}

body[data-page-key="training"] .ql-picker.ql-font .ql-picker-label[data-value="verdana"]::before,
body[data-page-key="training"] .ql-picker.ql-font .ql-picker-item[data-value="verdana"]::before {
  content: "Verdana";
  font-family: Verdana, Geneva, sans-serif;
}

body[data-page-key="training"] .ql-picker.ql-font .ql-picker-label[data-value="courier-new"]::before,
body[data-page-key="training"] .ql-picker.ql-font .ql-picker-item[data-value="courier-new"]::before {
  content: "Courier New";
  font-family: "Courier New", Courier, monospace;
}

body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="12px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before { content: "12"; }
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before { content: "14"; }
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="16px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before { content: "16"; }
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="18px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="18px"]::before { content: "18"; }
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="20px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="20px"]::before { content: "20"; }
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="24px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="24px"]::before { content: "24"; }
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-label[data-value="32px"]::before,
body[data-page-key="training"] .ql-picker.ql-size .ql-picker-item[data-value="32px"]::before { content: "32"; }

body[data-page-key="training"] .training-rich-editor-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 10px;
  border-right: 1px solid rgba(27, 36, 48, 0.14);
  border-left: 1px solid rgba(27, 36, 48, 0.14);
  background: #ffffff;
}

body[data-page-key="training"] .training-rich-editor-controls label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #425672;
  font-size: 0.8rem;
  font-weight: 850;
}

body[data-page-key="training"] .training-rich-editor-controls select {
  min-height: 32px;
  border: 1px solid rgba(27, 36, 48, 0.14);
  border-radius: 999px;
  background: #f8fbff;
  padding: 0 10px;
  font: inherit;
}

body[data-page-key="training"] .training-rich-editor .ql-editor {
  min-height: 178px;
  color: #000000;
  font: inherit;
}

body[data-page-key="training"] .update-rich-editor {
  min-height: 360px;
}

body[data-page-key="training"] .update-rich-editor .ql-editor {
  min-height: 358px;
  line-height: 1.55;
}

body[data-page-key="training"] .training-rich-editor .ql-editor p,
body[data-page-key="training"] .training-rich-editor .ql-editor li {
  color: #000000;
}

body[data-page-key="training"] .training-rich-editor .ql-editor strong,
body[data-page-key="training"] .training-rich-editor .ql-editor b {
  color: inherit;
  font-weight: 850;
}

body[data-page-key="training"] .training-rich-content {
  padding: 0;
  max-width: 860px;
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.7;
}

body[data-page-key="training"] .training-rich-content p,
body[data-page-key="training"] .training-rich-content li,
body[data-page-key="training"] .training-rich-content span,
body[data-page-key="training"] .training-rich-content blockquote,
body[data-page-key="training"] .training-rich-content td,
body[data-page-key="training"] .training-rich-content th {
  color: inherit;
}

body[data-page-key="training"] .training-rich-content strong,
body[data-page-key="training"] .training-rich-content b {
  color: #102a4a;
  font-weight: 900;
}

body[data-page-key="training"] .training-rich-content p > strong:first-child,
body[data-page-key="training"] .training-rich-content p > b:first-child {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

body[data-page-key="training"] .ql-font-arial {
  font-family: Arial, Helvetica, sans-serif;
}

body[data-page-key="training"] .ql-font-times-new-roman {
  font-family: "Times New Roman", Times, serif;
}

body[data-page-key="training"] .ql-font-georgia {
  font-family: Georgia, serif;
}

body[data-page-key="training"] .ql-font-verdana {
  font-family: Verdana, Geneva, sans-serif;
}

body[data-page-key="training"] .ql-font-courier-new {
  font-family: "Courier New", Courier, monospace;
}

body[data-page-key="training"] .training-rich-content .ql-size-small {
  font-size: 0.75em;
}

body[data-page-key="training"] .training-rich-content .ql-size-large {
  font-size: 1.5em;
}

body[data-page-key="training"] .training-rich-content .ql-size-huge {
  font-size: 2.5em;
}

body[data-page-key="training"] .training-rich-content .ql-align-center {
  text-align: center;
}

body[data-page-key="training"] .training-rich-content .ql-align-right {
  text-align: right;
}

body[data-page-key="training"] .training-rich-content .ql-align-justify {
  text-align: justify;
}

body[data-page-key="training"] .training-rich-content h1,
body[data-page-key="training"] .training-rich-content h2,
body[data-page-key="training"] .training-rich-content h3 {
  color: #000000;
  margin: 0 0 6px;
}

body[data-page-key="training"] .training-rich-content h1 {
  font-size: 2em;
}

body[data-page-key="training"] .training-rich-content h2 {
  font-size: 1.5em;
}

body[data-page-key="training"] .training-rich-content h3 {
  font-size: 1.17em;
}

body[data-page-key="training"] .training-rich-content p,
body[data-page-key="training"] .training-rich-content ul,
body[data-page-key="training"] .training-rich-content ol {
  margin: 0 0 10px;
}

body[data-page-key="training"] .training-rich-content p:empty {
  margin: 0;
  min-height: 0;
}

body[data-page-key="training"] .training-rich-content ul,
body[data-page-key="training"] .training-rich-content ol {
  list-style-position: outside;
  padding-left: 1.45em;
}

body[data-page-key="training"] .training-rich-content ul {
  list-style-type: disc;
}

body[data-page-key="training"] .training-rich-content ol {
  list-style-type: decimal;
}

body[data-page-key="training"] .training-rich-content li {
  display: list-item;
  margin: 0 0 5px;
}

body[data-page-key="training"] .training-rich-editor [style*="color: rgb(31, 49, 72)"],
body[data-page-key="training"] .training-rich-content [style*="color: rgb(31, 49, 72)"],
body[data-page-key="training"] .training-rich-editor [style*="color:#1f3148"],
body[data-page-key="training"] .training-rich-content [style*="color:#1f3148"],
body[data-page-key="training"] .training-rich-editor [style*="color: #1f3148"],
body[data-page-key="training"] .training-rich-content [style*="color: #1f3148"],
body[data-page-key="training"] .training-rich-editor [style*="color:#071b38"],
body[data-page-key="training"] .training-rich-content [style*="color:#071b38"],
body[data-page-key="training"] .training-rich-editor [style*="color: #071b38"],
body[data-page-key="training"] .training-rich-content [style*="color: #071b38"] {
  color: #000000 !important;
}

body[data-page-key="training"] .training-progress-category {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 14px;
  background: #f8fbff;
}

body[data-page-key="training"] .training-progress-category > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body[data-page-key="training"] .training-progress-category h3,
body[data-page-key="training"] .training-progress-category p {
  margin: 0;
}

body[data-page-key="training"] .training-progress-category strong {
  color: #071b38;
}

body[data-page-key="training"] .training-progress-category ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

body[data-page-key="training"] .training-progress-score-list {
  display: grid;
  gap: 8px;
}

body[data-page-key="training"] .training-progress-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(90px, auto);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
}

body[data-page-key="training"] .training-progress-score-row span {
  min-width: 0;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="training"] .training-progress-score-row strong,
body[data-page-key="training"] .training-progress-score-row em {
  color: #071b38;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

body[data-page-key="training"] .training-progress-score-row em {
  color: #b42318;
}

body[data-page-key="training"] .training-progress-score-row.is-complete em {
  color: #067647;
}

body[data-page-key="training"] .training-update-read-report-button {
  width: auto;
  min-height: 34px;
  padding: 8px 12px;
}

body[data-page-key="training"] .training-updates-heading-row {
  position: relative;
}

body[data-page-key="training"] .training-post-update-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Modern teal Updates experience */
body[data-page-key="training"] .training-updates-view {
  border: 1px solid rgba(0, 111, 117, 0.09);
  background:
    radial-gradient(circle at 92% 2%, rgba(5, 191, 196, 0.08), transparent 24%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(7, 27, 56, 0.08);
}

body[data-page-key="training"] .training-updates-heading-row h2 {
  color: #063b43;
}

body[data-page-key="training"] .training-post-update-button {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgba(5, 191, 196, 0.35);
  border-radius: 14px;
  color: #ffffff;
  background: #00979d;
  box-shadow: 0 12px 26px rgba(0, 139, 145, 0.24);
}

body[data-page-key="training"] .training-post-update-button:hover,
body[data-page-key="training"] .training-post-update-button:focus-visible {
  transform: translate(-50%, calc(-50% - 2px));
  background: #007f85;
  box-shadow: 0 16px 30px rgba(0, 139, 145, 0.3);
}

body[data-page-key="training"] .training-update-card,
body[data-page-key="training"] .training-path-card.training-update-card {
  position: relative;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(0, 111, 117, 0.14);
  border-top: 0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(5, 191, 196, 0.1), transparent 30%),
    linear-gradient(160deg, #ffffff 0%, #f3fbfb 100%);
  box-shadow: 0 10px 28px rgba(7, 56, 63, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body[data-page-key="training"] .training-update-card::before {
  content: none;
}

body[data-page-key="training"] .training-update-card:hover,
body[data-page-key="training"] .training-update-card:focus-visible,
body[data-page-key="training"] .training-update-card:focus-within,
body[data-page-key="training"] .training-update-card.is-certified:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 151, 157, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(5, 191, 196, 0.14), transparent 32%),
    linear-gradient(160deg, #ffffff 0%, #effafa 100%);
  box-shadow: 0 18px 38px rgba(7, 56, 63, 0.14);
}

body[data-page-key="training"] .training-update-card .training-card-icon {
  border-radius: 14px;
  color: #007d83;
  background: linear-gradient(145deg, #e4f8f8, #c9f1f2);
  box-shadow: inset 0 0 0 1px rgba(0, 151, 157, 0.18), 0 8px 18px rgba(0, 151, 157, 0.12);
}

body[data-page-key="training"] .training-update-card .training-certified-badge,
body[data-page-key="training"] .training-update-card .training-status-pill.is-complete {
  color: #00656a;
  background: #dcf7f3;
  box-shadow: inset 0 0 0 1px rgba(0, 151, 157, 0.12);
}

body[data-page-key="training"] .training-update-card .training-progress-track {
  height: 5px;
  border-radius: 999px;
  background: #dceeee;
}

body[data-page-key="training"] .training-update-card .training-progress-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, #007d83, #18c4c8);
}

body[data-page-key="training"] .training-update-card .resource-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 8px;
  margin-top: auto;
}

body[data-page-key="training"] .training-update-card .resource-link {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 11px;
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #007d83, #05bfc4);
  box-shadow: 0 8px 16px rgba(0, 139, 145, 0.15);
}

body[data-page-key="training"] .training-update-card .resource-link.secondary {
  color: #00777c;
  border-color: rgba(0, 151, 157, 0.22);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

body[data-page-key="training"] .training-update-card .resource-link.secondary:hover,
body[data-page-key="training"] .training-update-card .resource-link.secondary:focus-visible {
  color: #005d62;
  border-color: rgba(0, 151, 157, 0.4);
  background: #e8f8f8;
}

body[data-page-key="training"] .training-update-card .danger-link {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: #fffafa;
}

body[data-page-key="training"] .training-update-card .training-update-read-report-button {
  grid-column: 1 / -1;
  width: 100%;
  color: #006f75;
  border-color: rgba(0, 151, 157, 0.18);
  background: #eaf8f8;
}

body[data-page-key="training"] .training-update-card .training-update-read-toggle {
  min-width: 0;
}

body[data-page-key="training"] .training-update-card [data-training-action="edit-update"],
body[data-page-key="training"] .training-update-card [data-training-action="delete-update"] {
  padding-inline: 8px;
  font-size: 0.82rem;
}

/* Product Training uses the same modern card language in each product color. */
body[data-page-key="training"] .training-detail-view[class*="training-theme-"] {
  border: 1px solid rgba(var(--training-accent-rgb), 0.12);
  background:
    radial-gradient(circle at 92% 2%, rgba(var(--training-accent-rgb), 0.1), transparent 25%),
    rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(7, 27, 56, 0.08);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-detail-head {
  padding-bottom: 4px;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-detail-head .resource-type,
body[data-page-key="training"] .training-detail-view[class*="training-theme-"] > h3 {
  color: var(--training-accent);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-detail-head h2 {
  color: #071b38;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-detail-head > .resource-link.primary {
  min-height: 46px;
  padding: 11px 20px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: var(--training-accent);
  box-shadow: 0 12px 26px rgba(var(--training-accent-rgb), 0.24);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-detail-head > .resource-link.primary:hover,
body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-detail-head > .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(0.9);
  box-shadow: 0 16px 30px rgba(var(--training-accent-rgb), 0.3);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle {
  min-height: 168px;
  padding: 18px;
  gap: 13px;
  border: 1px solid rgba(var(--training-accent-rgb), 0.16);
  border-top: 1px solid rgba(var(--training-accent-rgb), 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--training-accent-rgb), 0.11), transparent 30%),
    linear-gradient(160deg, #ffffff 0%, rgba(var(--training-accent-rgb), 0.055) 100%);
  box-shadow: 0 10px 28px rgba(7, 56, 63, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle .training-lms-card-top {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle .training-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--training-accent);
  background: rgba(var(--training-accent-rgb), 0.12);
  box-shadow: inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.18), 0 8px 18px rgba(var(--training-accent-rgb), 0.12);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle h3 {
  font-size: 1.02rem;
  line-height: 1.14;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle p {
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.38;
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle .training-certified-badge {
  color: color-mix(in srgb, var(--training-accent) 72%, #071b38);
  background: rgba(var(--training-accent-rgb), 0.14);
  box-shadow: inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.14);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle .training-progress-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--training-accent-rgb), 0.13);
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle .training-progress-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--training-accent), color-mix(in srgb, var(--training-accent) 65%, #ffffff));
}

body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle:hover,
body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle:focus-visible,
body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle:focus-within,
body[data-page-key="training"] .training-detail-view[class*="training-theme-"] .training-lesson-circle.is-certified:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--training-accent-rgb), 0.32);
  border-top-color: rgba(var(--training-accent-rgb), 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--training-accent-rgb), 0.15), transparent 32%),
    linear-gradient(160deg, #ffffff 0%, rgba(var(--training-accent-rgb), 0.085) 100%);
  box-shadow: 0 18px 38px rgba(var(--training-accent-rgb), 0.14);
}

/* Product lesson popups mirror the Updates popup in the active product color. */
body[data-page-key="training"] .training-lesson-dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: 88vh;
}

body[data-page-key="training"] .training-lesson-dialog-sheet {
  border-color: rgba(var(--training-accent-rgb), 0.34);
  background: #ffffff;
}

body[data-page-key="training"] .training-lesson-dialog-hero {
  min-height: auto;
  padding: 20px 24px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--training-accent) 58%, #071b38), var(--training-accent));
}

body[data-page-key="training"] .training-lesson-dialog-hero span {
  margin-bottom: 5px;
  font-size: 0.72rem;
}

body[data-page-key="training"] .training-lesson-dialog-hero h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

body[data-page-key="training"] .training-lesson-dialog-hero p {
  display: none;
}

body[data-page-key="training"] .training-lesson-dialog-hero button {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
}

body[data-page-key="training"] .training-lesson-dialog-body {
  max-height: calc(88vh - 105px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px 28px 30px;
  background: #ffffff;
}

body[data-page-key="training"] .training-lesson-dialog-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-page-key="training"]:has([data-training-lesson-dialog][open]) {
  overflow: hidden;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-lesson-view-content {
  gap: 10px;
  color: #071b38;
  font-size: 1rem;
  line-height: 1.55;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-lesson-view-content > .training-card-meta,
body[data-page-key="training"] .training-lesson-dialog-body .training-lesson-view-content > h3 {
  display: none;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-rich-content {
  line-height: 1.5;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-rich-content p {
  margin: 0 0 8px !important;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-rich-content p:empty,
body[data-page-key="training"] .training-lesson-dialog-body .training-rich-content p:has(> br:only-child) {
  display: none;
}

body[data-page-key="training"] .training-lesson-dialog-body .training-note-box {
  margin-top: 4px;
  border-color: rgba(var(--training-accent-rgb), 0.16);
  color: #334155;
  background: rgba(var(--training-accent-rgb), 0.07);
}

body[data-page-key="training"] .training-lesson-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

body[data-page-key="training"] .training-lesson-view-actions .resource-link.primary {
  border-color: var(--training-accent);
  background: var(--training-accent);
  box-shadow: 0 10px 22px rgba(var(--training-accent-rgb), 0.22);
}

body[data-page-key="training"] .update-composer-dialog {
  width: min(1400px, calc(100vw - 28px));
  max-height: none;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
}

body[data-page-key="training"] .update-composer-dialog::backdrop {
  background: rgba(7, 27, 56, 0.58);
  backdrop-filter: blur(3px);
}

body[data-page-key="training"] .update-composer-sheet {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(5, 191, 196, 0.36);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
  box-shadow: 0 28px 80px rgba(7, 27, 56, 0.3);
}

body[data-page-key="training"] .update-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  min-height: 158px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.28), transparent 32%),
    linear-gradient(135deg, #003d46, #008b8f);
}

body[data-page-key="training"] .update-composer-head span {
  color: #a7f3ef;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page-key="training"] .update-composer-head h2 {
  margin: 4px 0 0;
  color: #ffffff;
}

body[data-page-key="training"] .update-composer-head .mini-link {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

body[data-page-key="training"] .update-view-dialog {
  width: min(920px, calc(100vw - 28px));
}

body[data-page-key="training"] .update-view-head {
  min-height: auto;
}

body[data-page-key="training"] .update-view-body {
  max-height: calc(88vh - 105px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px 28px 30px;
}

body[data-page-key="training"] .update-view-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-page-key="training"]:has([data-update-view-dialog][open]) {
  overflow: hidden;
}

body[data-page-key="training"] .training-update-view-content {
  color: #071b38;
  font-size: 1rem;
  line-height: 1.55;
}

body[data-page-key="training"] .training-update-view-content .training-rich-content {
  line-height: 1.5;
}

body[data-page-key="training"] .training-update-view-content .training-rich-content p {
  margin: 0 0 8px !important;
}

body[data-page-key="training"] .training-update-view-content .training-rich-content p:empty,
body[data-page-key="training"] .training-update-view-content .training-rich-content p:has(> br:only-child) {
  display: none;
}

body[data-page-key="training"] .training-update-view-content .training-rich-content h1,
body[data-page-key="training"] .training-update-view-content .training-rich-content h2,
body[data-page-key="training"] .training-update-view-content .training-rich-content h3 {
  margin: 16px 0 8px !important;
}

body[data-page-key="training"] .training-update-view-content .training-rich-content > h1:first-child,
body[data-page-key="training"] .training-update-view-content .training-rich-content > h2:first-child,
body[data-page-key="training"] .training-update-view-content .training-rich-content > h3:first-child {
  margin-top: 0 !important;
}

body[data-page-key="training"] .training-update-view-content > :first-child {
  margin-top: 0;
}

body[data-page-key="training"] .training-update-view-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

body[data-page-key="training"] .training-update-view-actions .resource-link.primary {
  border-color: #008b91;
  background: linear-gradient(135deg, #006f75, #05bfc4);
  box-shadow: 0 10px 22px rgba(0, 139, 145, 0.2);
}

body[data-page-key="training"] .update-composer-dialog .training-updates-grid {
  max-height: none;
  overflow: visible;
  padding: 18px;
}

body[data-page-key="training"] .update-composer-dialog #post-update {
  border: 0;
  padding: 0;
  box-shadow: none;
}

body[data-page-key="training"] .update-composer-dialog [data-update-form] {
  margin-top: 0 !important;
}

body[data-page-key="training"] .update-composer-title-field,
body[data-page-key="training"] .update-composer-tag-field,
body[data-page-key="training"] .update-composer-audience {
  position: absolute;
  z-index: 2;
  top: 78px;
  margin: 0;
}

body[data-page-key="training"] .update-composer-title-field {
  left: 2%;
  width: 29%;
}

body[data-page-key="training"] .update-composer-tag-field {
  left: 33%;
  width: 14%;
}

body[data-page-key="training"] .update-composer-audience {
  left: 49%;
  right: 7%;
  border: 0;
  padding: 0;
  background: transparent;
}

body[data-page-key="training"] .update-composer-title-field > span,
body[data-page-key="training"] .update-composer-tag-field > span,
body[data-page-key="training"] .update-composer-audience legend {
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-page-key="training"] .update-composer-title-field input,
body[data-page-key="training"] .update-composer-tag-field select {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  color: #ffffff;
  background-color: transparent;
  box-shadow: none;
}

body[data-page-key="training"] .update-composer-title-field input {
  caret-color: #ffffff;
}

body[data-page-key="training"] .update-composer-tag-field select {
  appearance: none;
  padding-right: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='m5 7 4 4 4-4' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

body[data-page-key="training"] .update-composer-tag-field select option {
  color: #071b38;
}

body[data-page-key="training"] .update-composer-audience .audience-role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

body[data-page-key="training"] .update-composer-audience .audience-role-grid label {
  justify-content: center;
  min-height: 36px;
  gap: 6px;
  padding: 0 14px;
  border-color: transparent;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page-key="training"] .update-composer-audience input {
  width: 14px;
  height: 14px;
}

body[data-page-key="training"] .update-composer-dialog [name="audienceRoles"] {
  accent-color: #00979d;
}

body[data-page-key="training"] .update-composer-dialog input[name="title"]:focus {
  border-color: #00979d;
  outline: 2px solid #00979d;
  outline-offset: -1px;
  box-shadow: 0 0 0 3px rgba(0, 151, 157, 0.14);
}

body[data-page-key="training"] .update-composer-dialog [data-update-form] .tox.tox-tinymce {
  height: min(620px, calc(100vh - 285px)) !important;
  min-height: 300px !important;
  border-color: #00979d !important;
}

body[data-page-key="training"] .update-composer-dialog [data-update-form] .tox-edit-focus .tox-edit-area::before {
  border-color: #00979d !important;
}

body[data-page-key="training"] .update-composer-dialog [data-update-submit-label] {
  border-color: #008b91;
  color: #ffffff;
  background: linear-gradient(135deg, #006f75, #05bfc4);
  box-shadow: 0 10px 22px rgba(0, 139, 145, 0.22);
}

body[data-page-key="training"] .update-composer-dialog [data-update-submit-label]:hover,
body[data-page-key="training"] .update-composer-dialog [data-update-submit-label]:focus-visible {
  background: linear-gradient(135deg, #005d62, #009da3);
}

body[data-page-key="training"] .update-composer-dialog .update-detail-textarea,
body[data-page-key="training"] .update-composer-dialog .update-rich-editor,
body[data-page-key="training"] .update-composer-dialog .update-rich-editor .ql-editor {
  min-height: min(620px, calc(100vh - 285px)) !important;
}

@media (max-width: 720px) {
  body[data-page-key="training"] .training-updates-heading-row {
    padding-bottom: 62px;
  }

  body[data-page-key="training"] .training-post-update-button {
    top: auto;
    bottom: 10px;
  }

  body[data-page-key="training"] .update-composer-head {
    min-height: 278px;
  }

  body[data-page-key="training"] .update-composer-title-field {
    top: 78px;
    left: 5%;
    width: 90%;
  }

  body[data-page-key="training"] .update-composer-tag-field {
    top: 142px;
    left: 5%;
    width: 38%;
  }

  body[data-page-key="training"] .update-composer-audience {
    top: 204px;
    left: 5%;
    right: 5%;
  }

  body[data-page-key="training"] .update-composer-audience .audience-role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-sheet {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-head {
  padding: 22px 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
}

body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-head h2,
body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-head .resource-type,
body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-head .mini-link {
  color: #ffffff;
}

body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-head .mini-link {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.14);
}

body[data-page-key="training"] [data-update-read-report-dialog] .training-progress-dialog-body {
  padding: 18px;
}

body[data-page-key="training"] .training-update-read-group {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(204, 216, 230, 0.92);
  border-radius: 14px;
  background: #f8fbff;
}

body[data-page-key="training"] .training-update-read-group > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

body[data-page-key="training"] .training-update-read-department {
  display: grid;
  gap: 7px;
}

body[data-page-key="training"] .training-update-read-department h4 {
  margin: 5px 0 0;
  color: #006f75;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page-key="training"] .training-update-read-department-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body[data-page-key="training"] .training-update-read-group h3,
body[data-page-key="training"] .training-update-read-group p {
  margin: 0;
}

body[data-page-key="training"] .training-update-read-group strong {
  color: #071b38;
}

body[data-page-key="training"] .training-update-read-row {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #ffffff;
}

body[data-page-key="training"] .training-update-read-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body[data-page-key="training"] .training-update-read-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #006f75, #05bfc4);
  font-size: 0.74rem;
  font-weight: 950;
  border: 0;
  padding: 0;
  font-family: inherit;
}

body[data-page-key="training"] .training-update-read-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page-key="training"] .training-update-read-person > span:last-child {
  min-width: 0;
  color: #071b38;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="training"] .training-update-read-row small,
body[data-page-key="training"] .training-update-read-row time {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-page-key="training"] .training-dashboard-grid {
  display: grid;
  gap: 14px;
}

body[data-page-key="training"] .training-dashboard-grid-product {
  grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 28px) / 3)), 1fr));
}

body[data-page-key="training"] .training-dashboard-grid-general {
  grid-template-columns: repeat(auto-fit, minmax(max(220px, calc((100% - 28px) / 3)), 1fr));
}

@media (max-width: 900px) {
  body[data-page-key="training"] .training-update-read-department-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body[data-page-key="training"] .training-update-read-department-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="training"] .training-dashboard-grid-lead {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-page-key="training"] .training-theme-lead {
  --training-accent: #16a36a;
  --training-accent-rgb: 22, 163, 106;
}

body[data-page-key="training"] .lead-training-theme-blue {
  --training-accent: #2563eb;
  --training-accent-rgb: 37, 99, 235;
  --training-tint-b: #f3f7ff;
}

body[data-page-key="training"] .lead-training-theme-green {
  --training-accent: #16a36a;
  --training-accent-rgb: 22, 163, 106;
  --training-tint-b: #f1fbf6;
}

body[data-page-key="training"] .lead-training-card .lead-training-card-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="training"] .lead-training-card .lead-training-card-icon svg path:last-child {
  fill: none;
}

body[data-page-key="training"] .lead-training-card[data-lead-training-card^="video"] .lead-training-card-icon svg path:last-child {
  fill: currentColor;
  stroke: none;
}

body[data-page-key="training"] .lead-training-card[data-training-action="open-lead-script-group"] {
  cursor: pointer;
}

body[data-page-key="training"] .training-lead-script-dialog {
  --home-appointment-teal-deep: #003d46;
  --home-appointment-teal: #008b8f;
  --home-appointment-teal-bright: #05bfc4;
  width: min(980px, calc(100vw - 28px));
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-shell {
  overflow: auto;
  border-color: rgba(0, 139, 143, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-head {
  margin: -22px -22px 18px;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.28), transparent 32%),
    linear-gradient(135deg, var(--home-appointment-teal-deep), var(--home-appointment-teal));
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-time {
  color: #a7f3ef;
  font-size: 0.82rem;
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-head h2 {
  color: #ffffff;
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-head .mini-link {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body[data-page-key="training"] .training-lead-script-dialog .command-home-appointment-head .mini-link[aria-pressed="true"] {
  border-color: #ffffff;
  background: #ffffff;
  color: #007d84;
  box-shadow: 0 8px 20px rgba(0, 61, 70, 0.24);
}

body[data-page-key="training"] .training-lead-script-list {
  display: grid;
  gap: 12px;
}

body[data-page-key="training"] .training-lead-script-editor {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 139, 143, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(7, 27, 56, 0.07);
}

body[data-page-key="training"] .training-lead-script-editor[hidden] {
  display: none;
}

body[data-page-key="training"] .training-lead-script-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body[data-page-key="training"] .training-lead-script-editor-head h3 {
  margin: 0;
  color: #071b38;
  font-size: 1rem;
  font-weight: 950;
}

body[data-page-key="training"] .training-lead-script-editor-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border-color: rgba(0, 139, 143, 0.28);
  color: #007d84;
  font-size: 1.45rem;
  line-height: 1;
}

body[data-page-key="training"] .training-lead-script-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page-key="training"] .training-lead-script-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 900;
}

body[data-page-key="training"] .training-lead-script-form input,
body[data-page-key="training"] .training-lead-script-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 139, 143, 0.22);
  border-radius: 10px;
  background: #ffffff;
  color: #071b38;
  font: inherit;
  font-weight: 800;
}

body[data-page-key="training"] .training-lead-script-form input:focus,
body[data-page-key="training"] .training-lead-script-form select:focus {
  border-color: var(--home-appointment-teal);
  outline: 3px solid rgba(0, 139, 143, 0.2);
  outline-offset: 0;
  box-shadow: 0 0 0 1px var(--home-appointment-teal);
}

body[data-page-key="training"] .training-lead-script-form .resource-link.primary {
  border-color: var(--home-appointment-teal);
  background: linear-gradient(135deg, var(--home-appointment-teal), var(--home-appointment-teal-bright));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.2);
}

body[data-page-key="training"] .training-lead-script-form .resource-link.primary:hover,
body[data-page-key="training"] .training-lead-script-form .resource-link.primary:focus-visible {
  border-color: var(--home-appointment-teal-deep);
  background: linear-gradient(135deg, var(--home-appointment-teal-deep), var(--home-appointment-teal));
  box-shadow: 0 14px 28px rgba(0, 139, 143, 0.26);
}

body[data-page-key="training"] .training-lead-script-form .span-full {
  grid-column: 1 / -1;
}

body[data-page-key="training"] .training-lead-script-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-page-key="training"] .training-lead-script-form-actions .auth-feedback {
  margin: 0;
}

body[data-page-key="training"] .training-lead-script-status {
  min-height: 18px;
  margin: 0 0 8px;
  color: #007d84;
  font-size: 0.78rem;
  font-weight: 850;
}

body[data-page-key="training"] .training-lead-script-status:empty {
  display: none;
}

body[data-page-key="training"] .training-lead-script-status.is-error {
  color: #b42318;
}

body[data-page-key="training"] .training-lead-script-rep-group {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(7, 27, 56, 0.06);
}

body[data-page-key="training"] .training-lead-script-rep-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 60%;
  min-width: 0;
  justify-self: start;
}

body[data-page-key="training"] .training-lead-script-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body[data-page-key="training"] .training-lead-script-entry.is-admin-sortable {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  cursor: grab;
  user-select: none;
  transition: opacity 120ms ease, transform 120ms ease;
}

body[data-page-key="training"] .training-lead-script-entry.is-dragging {
  z-index: 2;
  opacity: 0.62;
  transform: scale(0.97);
  cursor: grabbing;
}

body[data-page-key="training"] .training-lead-script-entry.is-admin-sortable .training-lead-script-link {
  cursor: grab;
}

body[data-page-key="training"] .training-lead-script-entry.is-drop-target .training-lead-script-link {
  transform: translateY(-3px) scale(1.015);
  border-color: #05bfc4;
  background: rgba(5, 191, 196, 0.16);
  box-shadow: 0 14px 28px rgba(0, 139, 143, 0.22);
}

body[data-page-key="training"] .training-lead-script-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

body[data-page-key="training"] .training-lead-script-person strong {
  color: #071b38;
  font-size: 1.08rem;
  font-weight: 950;
}

body[data-page-key="training"] .training-lead-script-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #003d46, #008b8f);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 950;
}

body[data-page-key="training"] button.training-lead-script-avatar {
  cursor: pointer;
}

body[data-page-key="training"] .training-lead-script-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page-key="training"] .training-lead-script-link {
  position: relative;
  display: inline-flex;
  min-width: 0;
  width: 100%;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 10px;
  border: 1px solid rgba(var(--training-accent-rgb, 22, 163, 106), 0.25);
  border-radius: 12px;
  background: rgba(var(--training-accent-rgb, 22, 163, 106), 0.08);
  color: var(--training-accent, #008b8f);
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

body[data-page-key="training"] .training-lead-script-link > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="training"] .training-lead-script-dialog.is-editing-scripts .training-lead-script-link {
  border-color: #008b8f;
  background: rgba(5, 191, 196, 0.13);
  box-shadow: 0 10px 22px rgba(0, 139, 143, 0.14);
  cursor: pointer;
}

body[data-page-key="training"] .training-lead-script-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(0, 139, 143, 0.26);
  border-radius: 14px;
  color: #64748b;
  font-weight: 850;
  text-align: center;
}

body[data-page-key="training"] .training-lead-script-link:hover,
body[data-page-key="training"] .training-lead-script-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(var(--training-accent-rgb, 22, 163, 106), 0.14);
  box-shadow: 0 10px 20px rgba(var(--training-accent-rgb, 22, 163, 106), 0.12);
}

body[data-page-key="training"] .training-lead-script-product-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(var(--training-accent-rgb, 22, 163, 106), 0.18);
}

body[data-page-key="training"] .training-lead-script-product-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 560px) {
  body[data-page-key="training"] .training-lead-script-form {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-lead-script-form .span-full {
    grid-column: auto;
  }

  body[data-page-key="training"] .training-lead-script-rep-links {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-lead-script-entry.is-admin-sortable {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page-key="training"] .training-lead-script-link {
    justify-content: center;
  }

}

@media (max-width: 760px) {
  body[data-page-key="training"] .training-lead-script-rep-group {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-lead-script-rep-links {
    width: 100%;
  }
}

body[data-page-key="training"] .training-dashboard .training-lms-card {
  min-height: 202px;
  height: 202px;
  padding: 22px;
  gap: 14px;
  border-radius: 8px;
  border-top: 2px solid var(--training-accent);
  background:
    radial-gradient(circle at 54% 7%, #ffffff 0%, rgba(255, 255, 255, 0.86) 34%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--training-tint-b, #f8fbff) 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.075);
}

body[data-page-key="training"] .training-dashboard .training-lms-card::before {
  content: none;
}

body[data-page-key="training"] .training-dashboard .training-lms-card-top {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 12px;
  min-height: 56px;
  text-align: center;
}

body[data-page-key="training"] .training-dashboard .training-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(var(--training-accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--training-accent-rgb), 0.18), 0 12px 24px rgba(var(--training-accent-rgb), 0.08);
}

body[data-page-key="training"] .training-dashboard .training-card-icon svg {
  width: 28px;
  height: 28px;
}

body[data-page-key="training"] .training-dashboard .training-product-card-icon.battery-platform-badge svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.2;
}

body[data-page-key="training"] .training-dashboard-title .training-dashboard-icon .training-card-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  margin: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
}

body[data-page-key="training"] .training-dashboard-title .training-dashboard-icon .training-card-icon svg {
  width: 30px;
  height: 30px;
}

body[data-page-key="training"] .training-dashboard .training-lms-card h3 {
  font-size: 1.08rem;
  line-height: 1.1;
  text-align: center;
}

body[data-page-key="training"] .training-dashboard .training-lms-card p {
  color: #213752;
  font-size: 0.9rem;
  line-height: 1.5;
}

body[data-page-key="training"] .training-dashboard .training-track-label,
body[data-page-key="training"] .training-dashboard .training-lesson-count {
  font-size: 0.72rem;
}

body[data-page-key="training"] .training-dashboard .training-progress-summary strong {
  font-size: 0.9rem;
  color: var(--training-accent);
}

body[data-page-key="training"] .training-dashboard .training-progress-summary span {
  display: none;
}

body[data-page-key="training"] .training-dashboard .training-lms-progress-row {
  align-items: center;
}

body[data-page-key="training"] .training-dashboard .training-progress-track {
  height: 7px;
}

body[data-page-key="training"] .training-dashboard .training-card-meta {
  justify-content: space-between;
  gap: 6px;
  font-size: 0.72rem;
}

body[data-page-key="training"] .training-dashboard .training-status-pill,
body[data-page-key="training"] .training-dashboard .training-certified-badge {
  display: none;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  color: transparent;
  background:
    radial-gradient(circle at 50% 42%, rgba(var(--training-accent-rgb), 0.16), transparent 42%),
    rgba(var(--training-accent-rgb), 0.08);
  border: 1px solid rgba(var(--training-accent-rgb), 0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

body[data-page-key="training"] .training-dashboard .training-lms-progress-row,
body[data-page-key="training"] .training-dashboard .training-progress-track,
body[data-page-key="training"] .training-dashboard .training-card-meta {
  display: none;
}

body[data-page-key="training"] .training-dashboard .training-status-pill::before,
body[data-page-key="training"] .training-dashboard .training-certified-badge::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 6px auto 0;
  background: var(--training-accent);
  clip-path: path("M8 1.4 14 3.6v4.5c0 3.7-2.6 5.8-6 7-3.4-1.2-6-3.3-6-7V3.6L8 1.4Zm2.6 5.1 1 1-4.1 4.1-2.1-2.1 1-1 1.1 1.1 3.1-3.1Z");
}

body[data-page-key="training"] .training-dashboard .resource-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

body[data-page-key="training"] .training-dashboard .resource-link {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

body[data-page-key="training"] .training-dashboard .resource-link.primary {
  border: 1px solid rgba(37, 99, 235, 0.08);
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #2563eb, #0f5fd8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

body[data-page-key="training"] .training-dashboard .resource-link.secondary {
  padding: 9px 18px;
  border: 1px solid rgba(30, 64, 175, 0.26);
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body[data-page-key="training"] .training-dashboard .resource-link.primary:hover,
body[data-page-key="training"] .training-dashboard .resource-link.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

body[data-page-key="training"] .training-dashboard .resource-link.secondary:hover,
body[data-page-key="training"] .training-dashboard .resource-link.secondary:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

body[data-page-key="training"] .training-dashboard-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body[data-page-key="training"] .training-dashboard-update-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

body[data-page-key="training"] .training-dashboard-update-card h3,
body[data-page-key="training"] .training-dashboard-update-card p {
  margin: 0;
}

body[data-page-key="training"] .training-dashboard-update-card h3 {
  color: #071b38;
  font-size: 0.96rem;
}

body[data-page-key="training"] .training-dashboard-update-card p {
  color: #475b78;
  font-size: 0.84rem;
  line-height: 1.45;
}

body[data-page-key="training"] .training-dashboard-update-card .training-update-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-page-key="training"] .training-dashboard-update-meta,
body[data-page-key="training"] .training-dashboard-post-fields {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: #324461;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

body[data-page-key="training"] .training-read-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 950;
  line-height: 1;
}

body[data-page-key="training"] .training-read-status.is-read {
  color: #067647;
  background: #ecfdf3;
}

body[data-page-key="training"] .training-read-status.is-unread {
  color: #b42318;
  background: #fef3f2;
}

body[data-page-key="training"] .training-dashboard-post {
  display: grid;
  align-content: start;
  gap: 14px;
}

body[data-page-key="training"] .training-dashboard-post-fields span {
  flex: 1 1 110px;
  min-height: 38px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
}

@media (max-width: 1180px) {
  body[data-page-key="training"] .training-hub-grid,
  body[data-page-key="training"] .training-section-view .training-module-grid,
  body[data-page-key="training"] .training-update-circle-grid,
  body[data-page-key="training"] .training-lesson-circle-grid,
  body[data-page-key="training"] .training-updates-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page-key="training"] .training-lms-card-top {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  body[data-page-key="training"] .training-lms-card .training-status-pill,
  body[data-page-key="training"] .training-lms-card .training-certified-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body[data-page-key="training"] .training-admin-list {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-dashboard .training-lms-card-top {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  body[data-page-key="training"] .training-dashboard .training-lms-card {
    min-height: 232px;
    height: 232px;
    gap: 13px;
  }

  body[data-page-key="training"] .training-dashboard .resource-actions {
    margin-top: auto;
    padding-top: 4px;
  }
}

@media (max-width: 720px) {
  body[data-page-key="training"] .training-hero-card {
    min-height: 152px;
  }

  body[data-page-key="training"] .training-hub-grid,
  body[data-page-key="training"] .training-section-view .training-module-grid,
  body[data-page-key="training"] .training-update-circle-grid,
  body[data-page-key="training"] .training-lesson-circle-grid,
  body[data-page-key="training"] .training-updates-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-hub-band,
  body[data-page-key="training"] .training-section-view,
  body[data-page-key="training"] .training-updates-view,
  body[data-page-key="training"] .training-filter-band,
  body[data-page-key="training"] .training-detail-view {
    padding: 16px;
    border-radius: 18px;
  }

  body[data-page-key="training"] .training-lms-card,
  body[data-page-key="training"] .training-path-card.training-lms-card,
  body[data-page-key="training"] .training-lesson-circle {
    min-height: 0;
    padding: 16px;
  }

  body[data-page-key="training"] .training-lms-card .resource-actions {
    flex-direction: column;
  }

  body[data-page-key="training"] .training-dashboard-head {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-page-key="training"] .training-dashboard-bottom {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-dashboard-grid-lead {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-admin-list {
    grid-template-columns: 1fr;
  }

  body[data-page-key="training"] .training-admin-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page-key="training"] .training-admin-person {
    grid-column: 1 / -1;
  }

  body[data-page-key="training"] .training-team-progress-launcher {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page-key="training"] .training-team-progress-launcher .resource-link {
    width: 100%;
  }

  body[data-page-key="training"] .training-progress-score-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page-key="training"] .training-dashboard .training-lms-card {
    height: auto;
    min-height: 246px;
    overflow: visible;
  }

  body[data-page-key="training"] .training-dashboard .training-lms-card .resource-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
  }

  body[data-page-key="training"] .training-dashboard .training-lms-card .resource-link {
    width: 100%;
  }
}
body[data-page-key="calendar"] .calendar-main {
  gap: 0;
  padding: 0;
  background: #f3f7fb;
}

@media (min-width: 721px) {
  .shell-page,
  html.aros-ipad .shell-page {
    width: min(1720px, calc(100% - 24px)) !important;
    margin: 12px auto !important;
    gap: 18px !important;
    grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr) !important;
  }

  .shell-header,
  html.aros-ipad .shell-header {
    top: 12px !important;
    width: var(--shell-sidebar-width) !important;
    min-height: calc(100dvh - 24px) !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    padding: 24px 13px 22px !important;
    border-radius: 28px !important;
  }

  html.aros-ipad .shell-header .brand-mark img {
    height: 78px !important;
  }

  html.aros-ipad .shell-nav {
    margin-top: 16px !important;
    gap: 8px !important;
  }

  html.aros-ipad .shell-header .nav-link {
    position: relative !important;
    min-height: 38px !important;
    padding: 8px 38px 8px 11px !important;
    border-radius: 11px !important;
    gap: 8px !important;
    font-size: 0.92rem !important;
  }

  html.aros-ipad .shell-header .nav-count-badge {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    z-index: 2 !important;
    transform: translateY(-50%) !important;
  }

  .resource-grid,
  .library-grid,
  body[data-page-key="solar"] .solar-primary-grid,
  body[data-page-key="batteries"] .batteries-resource-grid,
  body[data-page-key="windows"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="hvac"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="roofing"] .solar-core-panel .solar-primary-grid,
  body[data-page-key="windows"] .trade-helpful-grid,
  body[data-page-key="hvac"] .trade-helpful-grid,
  body[data-page-key="roofing"] .trade-helpful-grid,
  html.aros-ipad body[data-page-key="solar"] .solar-primary-grid,
  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-grid,
  html.aros-ipad body[data-page-key="windows"] .trade-helpful-grid,
  html.aros-ipad body[data-page-key="hvac"] .trade-helpful-grid,
  html.aros-ipad body[data-page-key="roofing"] .trade-helpful-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-page-key="solar"] .solar-prep-grid,
  html.aros-ipad body[data-page-key="solar"] .solar-prep-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-page-key="solar"] .solar-execution-grid,
  html.aros-ipad body[data-page-key="solar"] .solar-execution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-page-key="batteries"] .batteries-resource-card,
  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card,
  body[data-page-key="solar"] .solar-workflow-card,
  html.aros-ipad body[data-page-key="solar"] .solar-workflow-card,
  body[data-page-key="windows"] .trade-helpful-card,
  html.aros-ipad body[data-page-key="windows"] .trade-helpful-card,
  body[data-page-key="hvac"] .trade-helpful-card,
  html.aros-ipad body[data-page-key="hvac"] .trade-helpful-card,
  body[data-page-key="roofing"] .trade-helpful-card,
  html.aros-ipad body[data-page-key="roofing"] .trade-helpful-card {
    width: auto !important;
    min-height: 260px !important;
    padding: 28px !important;
  }
}

@media (min-width: 721px) and (max-width: 1366px) {
  html.aros-ipad .shell-page {
    width: min(100%, calc(100% - 16px)) !important;
    max-width: 1180px !important;
    margin: 6px auto !important;
    gap: 12px !important;
    grid-template-columns: 184px minmax(0, 1fr) !important;
    transform: none !important;
    zoom: 1 !important;
  }

  html.aros-ipad .shell-header {
    top: 6px !important;
    width: 184px !important;
    min-height: calc(100svh - 12px) !important;
    height: calc(100svh - 12px) !important;
    max-height: calc(100svh - 12px) !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }

  html.aros-ipad .shell-main {
    min-width: 0 !important;
    overflow: visible !important;
  }

  html.aros-ipad .section-band {
    min-width: 0 !important;
    padding: 22px !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .solar-primary-grid,
  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .solar-platform-card,
  html.aros-ipad body[data-page-key="solar"] .solar-core-panel .solar-platform-card,
  html.aros-ipad body[data-page-key="windows"] .solar-core-panel .solar-platform-card,
  html.aros-ipad body[data-page-key="hvac"] .solar-core-panel .solar-platform-card,
  html.aros-ipad body[data-page-key="roofing"] .solar-core-panel .solar-platform-card,
  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card {
    width: auto !important;
    min-width: 0 !important;
    height: 238px !important;
    min-height: 238px !important;
    padding: 22px !important;
  }

  body[data-page-key="solar"] .solar-core-panel .solar-platform-card .resource-actions,
  html.aros-ipad body[data-page-key="solar"] .solar-core-panel .solar-platform-card .resource-actions,
  body[data-page-key="solar-helpful-resources"] .solar-core-panel .solar-platform-card .resource-actions,
  html.aros-ipad body[data-page-key="solar-helpful-resources"] .solar-core-panel .solar-platform-card .resource-actions,
  body[data-page-key="batteries"] .solar-core-panel .solar-platform-card .resource-actions,
  html.aros-ipad body[data-page-key="batteries"] .solar-core-panel .solar-platform-card .resource-actions,
  body[data-page-key="windows"] .solar-core-panel .solar-platform-card .resource-actions,
  html.aros-ipad body[data-page-key="windows"] .solar-core-panel .solar-platform-card .resource-actions,
  body[data-page-key="hvac"] .solar-core-panel .solar-platform-card .resource-actions,
  html.aros-ipad body[data-page-key="hvac"] .solar-core-panel .solar-platform-card .resource-actions,
  body[data-page-key="roofing"] .solar-core-panel .solar-platform-card .resource-actions,
  html.aros-ipad body[data-page-key="roofing"] .solar-core-panel .solar-platform-card .resource-actions {
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  body[data-page-key="solar"] .solar-core-panel .solar-platform-card .resource-link,
  html.aros-ipad body[data-page-key="solar"] .solar-core-panel .solar-platform-card .resource-link,
  body[data-page-key="solar-helpful-resources"] .solar-core-panel .solar-platform-card .resource-link,
  html.aros-ipad body[data-page-key="solar-helpful-resources"] .solar-core-panel .solar-platform-card .resource-link,
  body[data-page-key="batteries"] .solar-core-panel .solar-platform-card .resource-link,
  html.aros-ipad body[data-page-key="batteries"] .solar-core-panel .solar-platform-card .resource-link,
  body[data-page-key="windows"] .solar-core-panel .solar-platform-card .resource-link,
  html.aros-ipad body[data-page-key="windows"] .solar-core-panel .solar-platform-card .resource-link,
  body[data-page-key="hvac"] .solar-core-panel .solar-platform-card .resource-link,
  html.aros-ipad body[data-page-key="hvac"] .solar-core-panel .solar-platform-card .resource-link,
  body[data-page-key="roofing"] .solar-core-panel .solar-platform-card .resource-link,
  html.aros-ipad body[data-page-key="roofing"] .solar-core-panel .solar-platform-card .resource-link {
    flex: 0 1 auto !important;
    min-height: 38px !important;
    padding: 9px 12px !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card {
    grid-template-columns: 64px minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(70px, 1fr) auto !important;
    column-gap: 14px !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-icon {
    width: 56px !important;
    height: 56px !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card h3 {
    font-size: 1rem !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-card p {
    font-size: 0.88rem !important;
  }

  body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card,
  html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card {
    align-content: stretch !important;
    grid-template-rows: auto minmax(58px, 1fr) auto !important;
  }

  body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card h3,
  html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card h3 {
    grid-row: 1 !important;
  }

  body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card p,
  html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card p {
    grid-row: 2 !important;
  }

  body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card .resource-actions,
  html.aros-ipad body[data-page-key="batteries"] .solar-resource-stack-copy .batteries-resource-card .resource-actions {
    grid-row: 3 !important;
    align-self: end !important;
  }

  body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card,
  html.aros-ipad body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card {
    align-content: stretch !important;
    grid-template-rows: auto minmax(58px, 1fr) auto !important;
  }

  body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card h3,
  html.aros-ipad body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card h3 {
    grid-row: 1 !important;
  }

  body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card p,
  html.aros-ipad body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card p {
    grid-row: 2 !important;
  }

  body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card .resource-actions,
  html.aros-ipad body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card .resource-actions {
    grid-row: 3 !important;
    align-self: end !important;
  }

  body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card,
  html.aros-ipad body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card {
    align-content: stretch !important;
    grid-template-rows: auto minmax(58px, 1fr) auto !important;
  }

  body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card h3,
  html.aros-ipad body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card h3 {
    grid-row: 1 !important;
  }

  body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card p,
  html.aros-ipad body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card p {
    grid-row: 2 !important;
  }

  body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card .resource-actions,
  html.aros-ipad body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card .resource-actions {
    grid-row: 3 !important;
    align-self: end !important;
  }

  body[data-page-key="training"] .training-dashboard .training-lms-card,
  html.aros-ipad body[data-page-key="training"] .training-dashboard .training-lms-card {
    min-height: 236px !important;
    height: 236px !important;
    gap: 14px !important;
  }

  body[data-page-key="training"] .training-dashboard .resource-actions,
  html.aros-ipad body[data-page-key="training"] .training-dashboard .resource-actions {
    margin-top: auto !important;
    padding-top: 6px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1366px) {
  html.aros-ipad .shell-page {
    max-width: 1320px !important;
  }

  html.aros-ipad body[data-page-key="batteries"] .solar-primary-grid,
  html.aros-ipad body[data-page-key="batteries"] .batteries-resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.calendar-dashboard-shell {
  padding: 28px 28px 24px;
  border: 1px solid #d8e5f2;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(15, 39, 66, 0.08);
}

.calendar-toolbar,
.calendar-layout,
.calendar-agenda-head,
.calendar-controls,
.calendar-summary,
.calendar-range-actions {
  display: flex;
}

.calendar-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.calendar-title-block h2,
.calendar-agenda-head h3 {
  margin: 0;
  color: #0f2742;
}

.calendar-title-block h2 {
  font-size: clamp(1.7rem, 2vw, 2.05rem);
  line-height: 1.05;
}

.calendar-title-block p {
  margin: 4px 0 0;
  color: #5f6f85;
  font-size: 0.93rem;
  font-weight: 750;
}

.calendar-controls {
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.calendar-view-switcher {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border: 1px solid #d8e5f2;
  border-radius: 999px;
  background: #f8fbff;
}

.calendar-view-switcher .mini-link,
.calendar-range-actions .mini-link {
  min-height: 32px;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: none;
}

.calendar-view-switcher .mini-link.active {
  color: #ffffff;
  border-color: #146ef5;
  background: #146ef5;
}

.calendar-range-actions {
  position: relative;
  gap: 8px;
  padding-left: 18px;
}

.calendar-range-actions::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #d8e5f2;
}

.calendar-rep-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 6px 4px 12px;
  border: 1px solid #d8e5f2;
  border-radius: 999px;
  background: #ffffff;
}

.calendar-rep-filter span {
  color: #5f6f85;
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-rep-filter select {
  min-width: 148px;
  border: 0;
  border-radius: 999px;
  padding: 7px 28px 7px 9px;
  color: #0f2742;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid #d8e5f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 39, 66, 0.06);
}

.calendar-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #eff6ff;
  color: #146ef5;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.calendar-kpi-card:nth-child(2) .calendar-kpi-icon {
  background: #e9faef;
  color: #18a84f;
}

.calendar-kpi-card:nth-child(3) .calendar-kpi-icon {
  background: #f3eafe;
  color: #8a35ef;
}

.calendar-summary span,
.calendar-agenda-card span,
.calendar-agenda-card em,
.calendar-agenda-card small {
  display: block;
}

.calendar-summary span {
  color: #5f6f85;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calendar-summary strong {
  display: inline-block;
  margin-top: 3px;
  color: #0f2742;
  font-size: 1.3rem;
  line-height: 1;
}

.calendar-summary em {
  display: block;
  margin-top: 2px;
  color: #5f6f85;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 750;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(310px, 1fr);
  gap: 20px;
}

.calendar-card,
.calendar-agenda,
.calendar-table-card {
  border: 1px solid #d8e5f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 39, 66, 0.055);
}

.calendar-grid-card {
  min-width: 0;
  overflow: hidden;
}

.calendar-view-panel {
  min-width: 0;
  height: 100%;
}

.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.calendar-weekday {
  padding: 14px 10px;
  background: #ffffff;
  color: #5f6f85;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  min-height: 118px;
  padding: 10px;
  border-top: 1px solid #e6edf5;
  border-left: 1px solid #e6edf5;
  background: #ffffff;
}

.calendar-day:nth-child(7n + 1) {
  border-left: 0;
}

.calendar-day.muted {
  background: #f8fbff;
  color: #9aa7b7;
}

.calendar-day.today {
  background: #fbfdff;
}

.calendar-day.selected {
  box-shadow: inset 0 0 0 1.5px rgba(20, 110, 245, 0.72);
}

.calendar-day-number {
  font-weight: 900;
  color: #0f2742;
  font-size: 0.98rem;
}

.calendar-day-items {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.calendar-pill {
  display: block;
  width: 100%;
  padding: 7px 8px;
  border: 1px solid #c5dcff;
  border-radius: 7px;
  background: linear-gradient(180deg, #eff6ff, #e4f0ff);
  color: #0b5feb;
  font-size: 0.72rem;
  font-weight: 900;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(20, 110, 245, 0.08);
  cursor: pointer;
}

.calendar-pill span {
  display: block;
  color: #0b5feb;
  font-size: 0.68rem;
  opacity: 1;
}

.calendar-pill strong,
.calendar-pill em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-pill em {
  margin-top: 2px;
  font-size: 0.68rem;
  font-style: normal;
  opacity: 0.86;
}

.calendar-more-indicator {
  display: block;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #146ef5;
  font-size: 0.72rem;
  font-weight: 900;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-time-grid {
  display: grid;
  grid-template-columns: 74px repeat(7, minmax(112px, 1fr));
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
}

.calendar-day-grid {
  grid-template-columns: 74px minmax(260px, 1fr);
}

.calendar-time-corner,
.calendar-week-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 68px;
  padding: 12px 10px;
  border-bottom: 1px solid #e6edf5;
  background: #f7fbff;
}

.calendar-time-corner {
  left: 0;
  z-index: 4;
  border-right: 1px solid #e6edf5;
}

.calendar-week-head {
  text-align: center;
}

.calendar-week-head span {
  display: block;
  color: #5f6f85;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-week-head strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 4px;
  border-radius: 999px;
  color: #0f2742;
  font-size: 1rem;
}

.calendar-week-head.today strong {
  color: #ffffff;
  background: #146ef5;
}

.calendar-time-axis {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: repeat(12, 58px);
  border-right: 1px solid #e6edf5;
  background: #fbfdff;
}

.calendar-time-label {
  padding: 7px 8px 0 0;
  color: #5f6f85;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: right;
}

.calendar-time-column {
  position: relative;
  display: grid;
  grid-template-rows: repeat(12, 58px);
  min-height: 696px;
  border-right: 1px solid #e6edf5;
  background: #ffffff;
}

.calendar-time-column:last-child {
  border-right: 0;
}

.calendar-time-slot {
  border-bottom: 1px solid #e6edf5;
}

.calendar-timed-event {
  position: absolute;
  left: 7px;
  right: 7px;
  min-height: 52px;
  transform: none;
}

.calendar-day-event {
  right: 12px;
}

.calendar-pill-timed {
  min-height: 48px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #eff6ff, #e4f0ff);
}

.calendar-agenda {
  min-width: 0;
  padding: 16px;
  align-self: start;
  max-height: 660px;
  overflow: auto;
}

.calendar-agenda-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-agenda-head h3 {
  font-size: 1.05rem;
}

.calendar-agenda-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #146ef5;
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-agenda-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-agenda-card {
  position: relative;
  flex: 1 1 180px;
  max-width: 260px;
  min-height: 84px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px 36px 12px 13px;
  border: 1px solid color-mix(in srgb, var(--calendar-product-color, #64748b) 24%, #d8e5f2);
  border-left: 5px solid var(--calendar-product-color, #64748b);
  border-radius: 10px;
  background: color-mix(in srgb, var(--calendar-product-color, #64748b) 10%, #ffffff);
  color: #0f2742;
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.calendar-agenda-card:hover,
.calendar-agenda-card:focus-visible,
.calendar-mini-row:hover,
.calendar-mini-row:focus-visible {
  border-color: rgba(20, 110, 245, 0.45);
  box-shadow: 0 14px 30px rgba(20, 110, 245, 0.12);
  transform: translateY(-1px);
}

.calendar-agenda-card span {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 850;
}

.calendar-agenda-card strong {
  display: block;
  color: #0f2742;
  font-size: 0.94rem;
  line-height: 1.15;
}

.calendar-agenda-card em {
  color: #5f6f85;
  font-size: 0.76rem;
  font-weight: 800;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-agenda-card b {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--calendar-product-color, #64748b) 16%, #ffffff);
  color: var(--calendar-product-color, #146ef5);
  font-size: 1.15rem;
  line-height: 20px;
  text-align: center;
}

.calendar-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.calendar-table-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px 16px 16px;
  min-width: 0;
}

.calendar-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.calendar-table-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.calendar-table-head h3 {
  margin: 0;
  color: #0f2742;
  font-size: 0.96rem;
}

.calendar-table-head a {
  color: #146ef5;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.calendar-table-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eff6ff;
  color: #146ef5;
  font-size: 0.66rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.calendar-table-count {
  position: static;
  min-width: 22px;
  min-height: 22px;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff6ff;
  color: #146ef5;
  font-size: 0.78rem;
  font-weight: 1000;
}

.calendar-mini-table {
  display: grid;
  gap: 0;
  margin-top: 2px;
}

.calendar-mini-head,
.calendar-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.calendar-mini-head {
  padding: 0 0 8px;
  border-bottom: 1px solid #e6edf5;
  color: #5f6f85;
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-mini-row {
  width: 100%;
  min-height: 32px;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #e6edf5;
  border-radius: 0;
  background: #ffffff;
  color: #0f2742;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
  cursor: pointer;
}

.calendar-mini-row:last-child {
  border-bottom: 0;
}

.calendar-mini-row:hover,
.calendar-mini-row:focus-visible {
  border-color: #e6edf5;
  box-shadow: none;
  color: #146ef5;
  transform: translateX(2px);
}

.calendar-mini-row strong {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-muted-cell,
.calendar-mini-empty {
  color: #5f6f85 !important;
  font-weight: 800 !important;
}

.calendar-mini-empty {
  padding: 18px 10px;
  border: 1px dashed #d8e5f2;
  border-radius: 12px;
  background: #f8fbff;
  text-align: center;
}


.calendar-detail-modal {
  width: min(760px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 30px 80px rgba(8, 20, 38, 0.24);
}

.calendar-detail-modal::backdrop {
  background: rgba(8, 20, 38, 0.42);
}

.calendar-detail-modal:not(.calendar-block-modal) {
  --calendar-appointment-teal-deep: #003d46;
  --calendar-appointment-teal: #008b8f;
  --calendar-appointment-teal-bright: #05bfc4;
  width: min(780px, calc(100vw - 32px));
}

.calendar-detail-modal:not(.calendar-block-modal).is-appointment-editing {
  width: min(1120px, calc(100vw - 32px));
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-shell {
  overflow: hidden;
  border-color: rgba(0, 139, 143, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-head {
  margin: -22px -22px 0;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.28), transparent 32%),
    linear-gradient(135deg, var(--calendar-appointment-teal-deep), var(--calendar-appointment-teal));
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-head > div > span {
  color: #a7f3ef;
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-head h2,
.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-head h2 span {
  color: #ffffff;
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-head .mini-link {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-grid article,
.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-info-card {
  border-color: rgba(0, 139, 143, 0.2);
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-grid span,
.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-info-card > span {
  color: #007d84;
}

.calendar-detail-modal:not(.calendar-block-modal) .resource-link.primary {
  border-color: var(--calendar-appointment-teal);
  background: linear-gradient(135deg, var(--calendar-appointment-teal), var(--calendar-appointment-teal-bright));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.18);
}

.calendar-appointment-editor {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.calendar-appointment-summary .calendar-detail-grid article,
.calendar-appointment-summary .calendar-detail-info-card {
  padding: 14px;
}

.calendar-appointment-summary .calendar-detail-body {
  margin-top: 10px;
}

.calendar-detail-shell {
  padding: 22px;
  border: 1px solid rgba(190, 204, 222, 0.95);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.calendar-detail-head,
.calendar-detail-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.calendar-detail-head span {
  display: block;
  color: #155dfc;
  font-size: 0.82rem;
  font-weight: 900;
}

.calendar-detail-head h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  color: #10233f;
}

.calendar-detail-head h2 span {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.calendar-detail-provider-title-slot {
  flex: 0 0 auto;
}

.calendar-detail-provider-title-slot:empty {
  display: none;
}

.calendar-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.calendar-detail-grid article {
  padding: 12px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 14px;
  background: #ffffff;
}

.calendar-detail-grid span {
  display: block;
  color: #607086;
  font-size: 0.76rem;
  font-weight: 900;
}

.calendar-detail-grid strong {
  display: block;
  margin-top: 4px;
  color: #10233f;
}

.calendar-detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  color: #53657a;
  font-weight: 750;
}

.calendar-detail-body p,
.calendar-detail-body article {
  margin: 0;
}

.calendar-detail-info-card {
  padding: 12px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.calendar-detail-info-card-wide,
.calendar-detail-feedback {
  grid-column: 1 / -1;
}

.calendar-detail-info-card span {
  display: block;
  color: #607086;
  font-size: 0.76rem;
  font-weight: 900;
}

.calendar-detail-info-card strong {
  display: block;
  margin-top: 5px;
  color: #10233f;
  font-size: 0.94rem;
  line-height: 1.35;
  word-break: break-word;
}

.appointment-schedule-card {
  grid-column: 1 / -1;
}

.appointment-schedule-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  color: #007d84;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 950;
  text-align: left;
  cursor: pointer;
}

.appointment-schedule-toggle svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.appointment-schedule-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.appointment-schedule-toggle:hover,
.appointment-schedule-toggle:focus-visible {
  color: #005f65;
  outline: none;
}

.appointment-schedule-form {
  display: grid;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 139, 143, 0.16);
  gap: 0;
}

.appointment-schedule-form[hidden] {
  display: none;
}

.appointment-schedule-controls {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(135px, 0.8fr) minmax(120px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.appointment-schedule-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 50px;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid #c8e2e2;
  border-radius: 12px;
  background: #eef8f8;
}

.appointment-schedule-mode button {
  height: 40px;
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  color: #315c63;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.appointment-schedule-mode button:hover,
.appointment-schedule-mode button:focus-visible {
  color: #006f75;
  outline: 2px solid rgba(5, 191, 196, 0.25);
  outline-offset: 1px;
}

.appointment-schedule-mode button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  box-shadow: 0 7px 16px rgba(0, 139, 143, 0.2);
}

.appointment-schedule-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #527178;
  font-size: 0.72rem;
  font-weight: 900;
}

.appointment-schedule-controls input {
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #bdd9da;
  border-radius: 11px;
  color: #10233f;
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  outline: none;
}

.appointment-schedule-controls input:focus {
  border-color: #008b8f;
  box-shadow: 0 0 0 3px rgba(5, 191, 196, 0.16);
}

.appointment-schedule-save {
  min-height: 50px;
  align-self: end;
  justify-content: center;
}

@media (max-width: 720px) {
  .appointment-schedule-form {
    gap: 6px;
  }

  .appointment-schedule-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .appointment-schedule-mode,
  .appointment-schedule-save {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .appointment-schedule-controls {
    grid-template-columns: 1fr;
  }

  .appointment-schedule-mode,
  .appointment-schedule-save {
    grid-column: 1;
  }
}

.calendar-product-utility-card {
  min-height: 0;
}

.calendar-product-utility-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.calendar-product-utility-row label {
  display: grid;
  gap: 6px;
}

.calendar-product-utility-row select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  background: #ffffff;
  color: #10233f;
  font: inherit;
  font-weight: 850;
}

.calendar-product-utility-row .product-checkbox-dropdown {
  width: 100%;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  padding: 11px 12px;
  color: #10233f;
  font: inherit;
  font-weight: 850;
}

.calendar-product-utility-row .resource-link {
  min-height: 42px;
}

.calendar-contact-edit-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.94);
}

.calendar-contact-edit-form[hidden] {
  display: none;
}

.calendar-contact-edit-form label,
.calendar-contact-edit-products {
  display: grid;
  gap: 6px;
  margin: 0;
  color: #607086;
  font-size: 0.76rem;
  font-weight: 900;
}

.calendar-contact-edit-form input,
.calendar-contact-edit-form select,
.calendar-contact-edit-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  background: #ffffff;
  color: #10233f;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
}

.calendar-contact-edit-form textarea {
  min-height: 96px;
  resize: vertical;
}

.calendar-contact-edit-half {
  grid-column: span 3;
}

.calendar-contact-edit-third {
  grid-column: span 2;
}

.calendar-contact-edit-wide,
.calendar-contact-edit-actions {
  grid-column: 1 / -1;
}

.calendar-contact-edit-products {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(188, 204, 222, 0.95);
  border-radius: 11px;
  padding: 10px;
}

.calendar-contact-edit-products legend {
  grid-column: 1 / -1;
  padding: 0 4px;
  color: #607086;
}

.calendar-contact-edit-products label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #10233f;
  font-size: 0.86rem;
}

.calendar-contact-edit-products input {
  width: 16px;
  min-height: 16px;
}

.calendar-contact-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.calendar-detail-action-link {
  color: #10233f;
  text-decoration: none;
}

.calendar-detail-action-link:hover,
.calendar-detail-action-link:focus-visible {
  color: #155dfc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.calendar-detail-actions {
  margin-top: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.calendar-detail-feedback {
  min-height: 20px;
  color: #0f766e;
  font-weight: 900;
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-feedback:empty {
  display: none;
}

.calendar-detail-modal:not(.calendar-block-modal) .calendar-detail-actions {
  margin-top: 8px;
}

.calendar-detail-feedback[data-feedback-type="error"] {
  color: #b42318;
}

.sales-list-card-focused {
  border-color: rgba(37, 99, 235, 0.58);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 18px 40px rgba(15, 35, 63, 0.12);
}

.calendar-checkin-history {
  padding: 20px;
  border-radius: 22px;
}

.calendar-checkin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.calendar-checkin-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(204, 216, 230, 0.9);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 40, 70, 0.08);
}

.calendar-checkin-card span,
.calendar-checkin-card em,
.calendar-checkin-card small {
  display: block;
  color: #607086;
  font-size: 0.78rem;
  font-style: normal;
}

.calendar-checkin-card span {
  color: #155dfc;
  font-weight: 900;
}

.calendar-checkin-card strong {
  display: block;
  margin-top: 4px;
  color: #10233f;
}

.calendar-checkin-card small {
  text-align: right;
  white-space: nowrap;
}

.calendar-create-block-button {
  white-space: nowrap;
}

.calendar-pill-block {
  --calendar-product-color: #7c3aed;
}

.calendar-block-modal {
  --calendar-meeting-teal-deep: #003d46;
  --calendar-meeting-teal: #008b8f;
  --calendar-meeting-teal-bright: #05bfc4;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 20px);
  overflow: hidden;
}

.calendar-block-modal.is-summary-view {
  width: min(1120px, calc(100vw - 32px));
}

.calendar-block-modal.is-summary-view .calendar-block-shell {
  display: flex;
  max-height: calc(100dvh - 20px);
  flex-direction: column;
}

.calendar-block-modal.is-summary-view .calendar-block-summary:not([hidden]) {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-gutter: stable;
}

.calendar-block-shell {
  width: 100%;
  max-height: calc(100dvh - 20px);
  overflow: hidden;
  border-color: rgba(0, 139, 143, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.calendar-block-modal:not(.is-summary-view) .calendar-block-shell {
  display: flex;
  flex-direction: column;
}

.calendar-block-modal .calendar-detail-head {
  margin: -22px -22px 0;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 82% 10%, rgba(5, 191, 196, 0.28), transparent 32%),
    linear-gradient(135deg, var(--calendar-meeting-teal-deep), var(--calendar-meeting-teal));
}

.calendar-block-modal .calendar-detail-head h2 {
  color: #ffffff;
}

.calendar-block-modal .calendar-detail-head > div > span {
  color: #a7f3ef;
}

.calendar-block-modal .calendar-detail-head .mini-link {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.calendar-block-modal .calendar-detail-head .mini-link:hover,
.calendar-block-modal .calendar-detail-head .mini-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.2);
}

.calendar-block-form {
  margin-top: 18px;
}

.calendar-block-modal:not(.is-summary-view) .calendar-block-form:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.calendar-block-modal:not(.is-summary-view) .calendar-block-form:not([hidden]) .calendar-block-fields {
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 2px 0;
}

.calendar-block-modal:not(.is-summary-view) .calendar-block-form:not([hidden]) > .calendar-detail-feedback,
.calendar-block-modal:not(.is-summary-view) .calendar-block-form:not([hidden]) > .calendar-detail-actions {
  flex: 0 0 auto;
}

.calendar-block-modal:not(.is-summary-view) .calendar-block-form:not([hidden]) > .calendar-detail-feedback:empty {
  display: none;
}

.calendar-block-modal:not(.is-summary-view) .calendar-block-form:not([hidden]) > .calendar-detail-actions {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 139, 143, 0.16);
  background: linear-gradient(180deg, rgba(240, 251, 251, 0), #f0fbfb 28%);
}

.calendar-block-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.calendar-block-location-field {
  grid-column: auto;
}

.calendar-block-summary {
  margin-top: 18px;
}

.calendar-block-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calendar-block-modal.is-summary-view .calendar-block-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-block-modal.is-summary-view .calendar-block-summary-location-card {
  grid-column: auto;
}

.calendar-block-modal.is-summary-view .calendar-block-summary-wide {
  grid-column: auto;
}

.calendar-block-modal.is-summary-view .calendar-block-summary-grid article:last-child {
  grid-column: 1 / -1;
}

.calendar-block-summary-grid article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 16px;
  background: #ffffff;
}

.calendar-block-summary-grid article > span {
  display: block;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-block-summary-grid strong {
  display: block;
  margin-top: 7px;
  color: #10233f;
  font-size: 1rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.calendar-block-summary-wide {
  grid-column: 1 / -1;
}

.calendar-block-summary-invitees {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.calendar-block-summary-invitees span {
  padding: 7px 11px;
  border: 1px solid rgba(0, 139, 143, 0.26);
  border-radius: 999px;
  background: #eafafa;
  color: #007d84;
  font-size: 0.86rem;
  font-weight: 900;
}

.calendar-block-summary-invitees em {
  color: #607086;
  font-style: normal;
  font-weight: 800;
}

.calendar-block-summary-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.calendar-block-fields label,
.calendar-block-field-label {
  display: grid;
  gap: 7px;
  color: #007d84;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-block-invite-label {
  display: grid;
  gap: 7px;
}

.calendar-block-invite-label > span {
  display: block;
}

.calendar-block-invite-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 2px;
}

.calendar-block-invite-presets button {
  min-height: 30px;
  border: 1px solid rgba(0, 139, 143, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  background: #f2fbfb;
  color: #007d84;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.calendar-block-invite-presets button:hover {
  border-color: var(--calendar-meeting-teal);
  background: #e8f8f8;
}

.calendar-block-invite-presets button.active {
  border-color: var(--calendar-meeting-teal);
  background: #dff6f5;
  color: var(--calendar-meeting-teal-deep);
}

.calendar-block-fields input,
.calendar-block-fields select,
.calendar-block-fields textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0, 139, 143, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #05213f;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.calendar-block-fields > label > input,
.calendar-block-fields > label > select,
.calendar-block-fields > label > textarea {
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #10233f;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.4;
}

.calendar-block-fields > label > textarea {
  min-height: 72px;
  resize: vertical;
}

.calendar-block-fields select {
  min-height: 44px;
}

.calendar-block-fields input:focus,
.calendar-block-fields select:focus,
.calendar-block-fields textarea:focus {
  border-color: var(--calendar-meeting-teal);
  outline: 3px solid rgba(5, 191, 196, 0.14);
}

.calendar-block-fields > label > input:focus,
.calendar-block-fields > label > select:focus,
.calendar-block-fields > label > textarea:focus {
  border: 0;
  outline: 0;
}

.calendar-block-fields :disabled {
  cursor: default;
  opacity: 0.72;
}

.calendar-block-invitees {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 6px 12px;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  overflow-y: auto;
  border: 1px solid rgba(0, 139, 143, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
}

.calendar-block-invitees .calendar-block-invitee {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: #05213f;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.calendar-block-invitees .calendar-block-invitee input {
  width: 16px;
  min-height: 16px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  accent-color: var(--calendar-meeting-teal);
}

.calendar-block-modal .resource-link.primary {
  border-color: var(--calendar-meeting-teal);
  background: linear-gradient(135deg, var(--calendar-meeting-teal), var(--calendar-meeting-teal-bright));
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.2);
}

.calendar-block-modal .resource-link.primary:hover,
.calendar-block-modal .resource-link.primary:focus-visible {
  border-color: var(--calendar-meeting-teal-deep);
  background: linear-gradient(135deg, var(--calendar-meeting-teal-deep), var(--calendar-meeting-teal));
}

.calendar-block-invite-label select {
  font-size: 0.9rem;
  line-height: 1.65;
}

.calendar-block-invite-label option {
  padding: 5px 8px;
}

.calendar-block-fields textarea {
  min-height: 72px;
  resize: vertical;
}

.calendar-block-wide {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .calendar-block-fields,
  .calendar-block-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-block-location-field {
    grid-column: auto;
  }

  .calendar-block-modal.is-summary-view .calendar-block-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-block-invitees {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .calendar-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .calendar-block-fields,
  .calendar-block-summary-grid {
    grid-template-columns: 1fr;
  }

  .calendar-block-summary-wide {
    grid-column: auto;
  }

  .calendar-block-modal.is-summary-view .calendar-block-summary-grid {
    grid-template-columns: 1fr;
  }

  .calendar-block-modal.is-summary-view .calendar-block-summary-grid article:last-child {
    grid-column: auto;
  }

  body[data-page-key="calendar"] .calendar-main {
    padding: 14px;
  }

  .calendar-dashboard-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-controls,
  .calendar-rep-filter,
  .calendar-rep-filter select {
    width: 100%;
  }

  .calendar-summary {
    grid-template-columns: 1fr;
  }

  .calendar-month-grid {
    min-width: 720px;
  }

  .calendar-grid-card {
    overflow-x: auto;
  }

  .calendar-day {
    min-height: 112px;
  }

  .calendar-time-grid {
    grid-template-columns: 64px repeat(7, minmax(130px, 1fr));
  }

  .calendar-day-grid {
    grid-template-columns: 64px minmax(260px, 1fr);
  }

  .calendar-detail-grid {
    grid-template-columns: 1fr;
  }

  .calendar-detail-body {
    grid-template-columns: 1fr;
  }

  .calendar-product-utility-row {
    grid-template-columns: 1fr;
  }

  .calendar-contact-edit-form,
  .calendar-contact-edit-products {
    grid-template-columns: 1fr;
  }

  .calendar-contact-edit-half,
  .calendar-contact-edit-third {
    grid-column: 1 / -1;
  }

  .calendar-mini-head,
  .calendar-mini-row {
    grid-template-columns: 1fr;
  }

  .calendar-table-count {
    position: static;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body[data-page-key="roofing_workflow"] {
    overflow-x: hidden;
  }

  body[data-page-key="roofing_workflow"] .roofing-estimate-builder,
  body[data-page-key="roofing_workflow"] .roofing-start-grid,
  body[data-page-key="roofing_workflow"] .roofing-preview-grid,
  body[data-page-key="roofing_workflow"] .roofing-quote-details-grid,
  body[data-page-key="roofing_workflow"] .roofing-action-grid,
  body[data-page-key="roofing_workflow"] .roofing-metric-row {
    grid-template-columns: 1fr;
  }

  body[data-page-key="roofing_workflow"] .roofing-base-price-card,
  body[data-page-key="roofing_workflow"] .roofing-installer-price-card,
  body[data-page-key="roofing_workflow"] .roofing-buffer-card,
  body[data-page-key="roofing_workflow"] .roofing-commission-card,
  body[data-page-key="roofing_workflow"] .roofing-homeowner-final-card,
  body[data-page-key="roofing_workflow"] .roofing-files-card {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-page-key="roofing_workflow"] .roofing-choice-row,
  body[data-page-key="roofing_workflow"] .roofing-choice-row.three {
    grid-template-columns: 1fr;
  }

  body[data-page-key="roofing_workflow"] .roofing-contact-menu button {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  body[data-page-key="roofing_workflow"] .people-row-date {
    grid-column: 2 / -1;
    text-align: left;
  }
}
body[data-page-key="quizzes"].take-quiz-active {
  background: #f4f8fd;
}

body[data-page-key="quizzes"].take-quiz-active .shell-main {
  background: #f4f8fd;
}

.take-quiz-view {
  --take-quiz-accent: #008b8f;
  --take-quiz-accent-bright: #05bfc4;
  --take-quiz-accent-soft: #ecfdfd;
  --take-quiz-accent-shadow: rgba(0, 139, 143, .22);
  min-height: calc(100vh - 48px);
  padding: 10px 6px 118px;
  color: #071f45;
}

.take-quiz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.take-quiz-back {
  border: 0;
  background: transparent;
  color: var(--take-quiz-accent);
  font: 800 15px/1.2 inherit;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}

.take-quiz-head h1 {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.08;
  color: #061b3a;
  letter-spacing: 0;
}

.take-quiz-head p {
  margin: 0;
  color: #334a70;
  font-size: 15px;
  font-weight: 700;
}

.take-quiz-leave,
.take-prev-button,
.take-review-button {
  min-height: 44px;
  border: 1px solid #cdd9e8;
  border-radius: 8px;
  background: #fff;
  color: #071f45;
  padding: 0 18px;
  font: 900 15px/1 inherit;
  box-shadow: 0 10px 26px rgba(12, 36, 70, .05);
  cursor: pointer;
}

.take-quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 26px;
  align-items: start;
}

.take-quiz-left {
  display: grid;
  gap: 28px;
}

.take-question-card,
.take-side-card,
.take-tips-card,
.take-quiz-sticky {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(18, 43, 76, .07);
}

.take-question-card {
  padding: 30px;
}

.take-question-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: #183761;
  font-size: 15px;
  font-weight: 800;
}

.take-question-timer {
  color: #071f45;
  font-size: 17px;
  font-weight: 950;
}

.take-question-timer.is-paused {
  color: #b42318;
}

.take-timer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.take-pause-button {
  min-height: 34px;
  border: 1px solid #cdd9e8;
  border-radius: 8px;
  background: #ffffff;
  color: #071f45;
  padding: 0 12px;
  font: 900 13px/1 inherit;
  cursor: pointer;
}

.take-pause-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.take-question-progress {
  height: 8px;
  margin: 14px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}

.take-question-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--take-quiz-accent);
}

.take-question-card h2 {
  margin: 0 0 16px;
  color: #061b3a;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.take-question-card > p {
  margin: 0 0 22px;
  color: #334a70;
  font-size: 16px;
  font-weight: 700;
}

.take-answer-list {
  display: grid;
  gap: 14px;
}

.take-answer-option {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 62px;
  border: 1px solid #d9e3f0;
  border-radius: 8px;
  background: #fff;
  color: #071f45;
  padding: 12px 14px;
  text-align: left;
  font: 850 15px/1.35 inherit;
  cursor: pointer;
}

.take-answer-option.is-selected {
  border-color: var(--take-quiz-accent);
  background: var(--take-quiz-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 139, 143, .22);
}

.take-answer-badge {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--take-quiz-accent-soft);
  color: var(--take-quiz-accent);
  font-weight: 950;
}

.take-answer-option.is-selected .take-answer-badge {
  background: var(--take-quiz-accent);
  color: #fff;
}

.take-question-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e1e8f2;
}

.take-submit-total {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-right: auto;
  padding: 0 16px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.98), rgba(255, 251, 235, 0.92));
  color: #061b3a;
  font-size: 14px;
  font-weight: 950;
}

.take-report-link {
  border: 0;
  background: transparent;
  color: #466180;
  padding: 0;
  font: 800 14px/1 inherit;
  cursor: pointer;
}

.take-next-button,
.take-submit-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--take-quiz-accent);
  color: #fff;
  padding: 0 22px;
  font: 950 15px/1 inherit;
  box-shadow: 0 12px 24px var(--take-quiz-accent-shadow);
  cursor: pointer;
}

.take-side-card {
  padding: 24px;
  margin-bottom: 20px;
}

.take-side-card h2 {
  margin: 0 0 22px;
  color: #071f45;
  font-size: 18px;
  line-height: 1.2;
}

.take-progress-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

.take-donut {
  --quiz-progress: 0;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--take-quiz-accent) calc(var(--quiz-progress) * 1%), #e7ecf4 0);
  position: relative;
  flex: 0 0 auto;
}

.take-donut::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
}

.take-donut span {
  position: relative;
  z-index: 1;
  color: #071f45;
  font-size: 26px;
  font-weight: 950;
}

.take-progress-row p {
  margin: 0;
  color: #334a70;
  font-size: 14px;
  line-height: 1.45;
}

.take-progress-row strong {
  color: #071f45;
  font-size: 20px;
  font-weight: 950;
}

.take-progress-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  color: #334a70;
  font-size: 13px;
  font-weight: 750;
}

.take-progress-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.take-progress-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.take-progress-legend .answered { background: #58d486; }
.take-progress-legend .current { background: var(--take-quiz-accent); }
.take-progress-legend .unanswered { background: #d8dee9; }

.take-question-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.take-question-nav button {
  min-height: 50px;
  border: 1px solid #d6e1ee;
  border-radius: 7px;
  background: #fff;
  color: #183761;
  font: 900 15px/1 inherit;
  cursor: pointer;
}

.take-question-nav button.is-current {
  border-color: var(--take-quiz-accent);
  background: var(--take-quiz-accent);
  color: #fff;
  box-shadow: 0 12px 22px var(--take-quiz-accent-shadow);
}

.take-question-nav button.is-answered:not(.is-current) {
  border-color: #a9d7bd;
  background: #f1fbf5;
}

.take-review-button {
  width: 100%;
  margin-top: 16px;
}

.take-tips-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--take-quiz-accent-soft);
  border-color: rgba(5, 191, 196, 0.34);
  box-shadow: none;
}

.take-tips-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--take-quiz-accent);
  border-radius: 50%;
  color: var(--take-quiz-accent);
  font-weight: 950;
}

.take-tips-card h3 {
  margin: 0 0 8px;
  color: #00676b;
  font-size: 17px;
}

.take-tips-card p {
  margin: 0;
  color: #00676b;
  font-size: 14px;
  font-weight: 750;
}

.take-quiz-sticky {
  position: sticky;
  bottom: 18px;
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  align-items: center;
  gap: 18px;
  margin-top: 46px;
  padding: 24px;
}

.take-quiz-sticky > span {
  text-align: center;
  color: #466180;
  font-weight: 750;
}

.take-quiz-loading {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: #071f45;
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .take-quiz-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .take-quiz-left {
    gap: 0;
  }

  .take-question-card {
    padding: 22px;
  }

  .take-question-progress {
    margin: 10px 0 18px;
  }

  .take-question-card h2 {
    margin-bottom: 10px;
    font-size: 22px;
  }

  .take-question-card > p {
    margin-bottom: 14px;
  }

  .take-answer-list {
    gap: 10px;
  }

  .take-answer-option {
    min-height: 52px;
    padding: 8px 12px;
  }

  .take-answer-badge {
    width: 34px;
    height: 34px;
  }

  .take-question-foot {
    margin-top: 18px;
    padding-top: 18px;
  }

  .take-quiz-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .take-side-card {
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .take-quiz-head,
  .take-question-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .take-question-card {
    padding: 22px;
  }

  .take-quiz-side {
    grid-template-columns: 1fr;
  }

  .take-quiz-sticky {
    grid-template-columns: 1fr;
    position: static;
  }
}

.quiz-question-media-grid,
.quiz-question-media-preview-grid,
.take-question-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.quiz-question-media-grid img,
.quiz-question-media-preview-grid img,
.take-question-media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fbff;
}

.quiz-question-media-grid a,
.quiz-question-media-preview-grid a,
.take-question-media-grid a {
  display: block;
  border-radius: 10px;
  outline-offset: 3px;
}

.quiz-question-media-grid a:hover img,
.quiz-question-media-preview-grid a:hover img,
.take-question-media-grid a:hover img,
.quiz-question-media-grid a:focus-visible img,
.quiz-question-media-preview-grid a:focus-visible img,
.take-question-media-grid a:focus-visible img {
  border-color: rgba(31, 104, 173, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.take-short-answer {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  color: #071b38;
  background: #ffffff;
  font: inherit;
  line-height: 1.5;
}

.solar-scenario {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}

.quiz-scenario-config {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid rgba(27, 36, 48, 0.12);
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
}

.quiz-scenario-config legend {
  padding: 0 8px;
  color: #071f45;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.solar-scenario-band {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  box-shadow: 0 14px 30px rgba(18, 43, 76, 0.05);
}

.solar-scenario-band-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.solar-scenario-band-head h3 {
  margin: 0;
  color: #071f45;
  font-size: 21px;
  line-height: 1.15;
}

.solar-scenario-band-head p {
  margin: 6px 0 0;
  color: #516681;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.solar-scenario-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 110, 245, 0.16);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 251, 240, 0.95), rgba(239, 255, 253, 0.98));
}

.solar-scenario-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-color: rgba(20, 184, 166, 0.2);
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 240, 0.95), rgba(239, 255, 253, 0.98));
}

.solar-scenario-head span,
.solar-scenario-hero span,
.solar-scenario-summary span,
.solar-scenario-grid span,
.solar-scenario-notes span {
  display: block;
  color: #516681;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.solar-scenario-head strong,
.solar-scenario-hero strong {
  display: block;
  margin-top: 4px;
  color: #061b3a;
  font-size: 30px;
  line-height: 1;
}

.solar-scenario-head p,
.solar-scenario-hero p {
  max-width: 520px;
  margin: 0;
  color: #334a70;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.solar-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.solar-scenario-grid label,
.solar-scenario-notes {
  display: grid;
  gap: 7px;
}

.solar-scenario-address {
  grid-column: span 2;
}

.solar-scenario-grid input,
.solar-scenario-notes textarea,
.solar-scenario-adder input[type="number"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  background: #fff;
  color: #061b3a;
  padding: 0 12px;
  font: 800 14px/1.3 inherit;
}

.solar-scenario-grid .resource-link {
  min-height: 44px;
  justify-content: center;
  align-self: end;
}

.solar-scenario-grid .resource-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.solar-scenario-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.solar-scenario-summary div {
  padding: 14px;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  background: #f8fbff;
}

.solar-scenario-summary strong {
  display: block;
  margin-top: 5px;
  color: #071f45;
  font-size: 18px;
  font-weight: 950;
}

.solar-scenario-groups {
  display: grid;
  gap: 14px;
}

.solar-scenario-group {
  display: grid;
  gap: 10px;
}

.solar-scenario-group h3 {
  margin: 0;
  color: #071f45;
  font-size: 17px;
  line-height: 1.2;
}

.solar-scenario-adder-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.solar-scenario-travel-options {
  display: grid;
  gap: 10px;
}

.solar-scenario-travel-tier {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 50px;
  border: 1px solid #dce6f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px 16px;
  color: #071f45;
  font-size: 14px;
  font-weight: 800;
}

.solar-scenario-travel-tier.is-selected {
  border-color: #14b8a6;
  background: #effdfb;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.12);
}

.solar-scenario-travel-tier span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.solar-scenario-travel-tier strong {
  font-size: 14px;
  font-weight: 950;
}

.solar-scenario-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solar-scenario-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.solar-scenario-subcard {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  border: 1px solid rgba(27, 36, 48, 0.08);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(18, 43, 76, 0.04);
}

.solar-scenario-subcard-head h4 {
  margin: 0;
  color: #071f45;
  font-size: 18px;
  line-height: 1.2;
}

.solar-scenario-subcard-head p {
  margin: 8px 0 0;
  color: #516681;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.solar-scenario-adder-list-stacked {
  grid-template-columns: 1fr;
}

.solar-scenario-adder {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.solar-scenario-adder.is-selected {
  border-color: #14b8a6;
  background: #effdfb;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.12);
}

.solar-scenario-adder span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.solar-scenario-adder b {
  color: #071f45;
  font-size: 13px;
  line-height: 1.25;
}

.solar-scenario-adder small {
  flex: 0 0 auto;
  color: #516681;
  font-size: 12px;
  font-weight: 900;
}

.solar-scenario-adder input[type="number"] {
  max-width: 96px;
}

.solar-scenario-notes textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

@media (max-width: 920px) {
  .solar-scenario-grid,
  .solar-scenario-summary,
  .solar-scenario-adder-list,
  .solar-scenario-subgrid,
  .solar-scenario-payment-grid {
    grid-template-columns: 1fr;
  }

  .solar-scenario-address {
    grid-column: auto;
  }

  .solar-scenario-head,
  .solar-scenario-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .quiz-question-media-grid,
  .quiz-question-media-preview-grid,
  .take-question-media-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="batteries"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)),
body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)),
body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)),
body[data-page-key="hvac"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)),
body[data-page-key="roofing"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)) {
  grid-template-rows: 60px minmax(0, 1fr) !important;
}

body[data-page-key="batteries"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)) h3,
body[data-page-key="solar"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)) h3,
body[data-page-key="windows"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)) h3,
body[data-page-key="hvac"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)) h3,
body[data-page-key="roofing"] .batteries-stack-panel .batteries-resource-card:not(:has(> p)) h3 {
  align-self: center !important;
  transform: translateY(5px);
}

.portal-code-modal[hidden] {
  display: none;
}

.portal-code-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.portal-code-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 22, 40, 0.46);
  backdrop-filter: blur(10px);
}

.portal-code-card {
  position: relative;
  width: min(430px, 100%);
  overflow: hidden;
  padding: 30px 28px 26px;
  border: 1px solid rgba(255, 199, 118, 0.42);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf8 58%, #fff7e8 100%);
  box-shadow: 0 26px 60px rgba(15, 31, 52, 0.22);
}

.portal-code-card::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 26px;
  width: 100px;
  height: 76px;
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.44) 1.3px, transparent 1.7px);
  background-size: 12px 12px;
}

.portal-code-card h2,
.portal-code-card p,
.portal-code-card label,
.portal-code-card button {
  position: relative;
  z-index: 1;
}

.portal-code-logo {
  position: relative;
  z-index: 1;
  width: 136px;
  max-height: 78px;
  display: block;
  object-fit: contain;
  margin: 0 0 18px;
}

.portal-code-card h2 {
  margin: 0 0 8px;
  color: #334a70;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.portal-code-card p {
  margin: 0 0 18px;
  color: #5b6f8d;
  font-size: 15px;
  line-height: 1.45;
}

.portal-code-card label {
  display: grid;
  gap: 8px;
  color: #10243f;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-code-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9d8e8;
  border-radius: 12px;
  padding: 0 14px;
  background: #ffffff;
  color: #061d3d;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.portal-code-card input:focus {
  outline: 3px solid rgba(45, 108, 246, 0.16);
  border-color: #2d6cf6;
}

.portal-code-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.portal-code-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2d6cf6 0%, #0b5de7 100%);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(20, 110, 245, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.portal-code-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(20, 110, 245, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.portal-code-actions .portal-code-cancel {
  background: #ffffff;
  color: #0f2742;
  border: 1px solid #d8e5f2;
  box-shadow: 0 10px 22px rgba(15, 39, 66, 0.08);
}

.portal-code-error {
  min-height: 20px;
  margin: 12px 0 0 !important;
  color: #b91c1c !important;
  font-weight: 850;
}

body[data-page-key="training"] .training-updates-grid {
  grid-template-columns: 1fr;
}

body[data-page-key="training"] .training-updates-grid #post-update {
  width: 100%;
  max-width: none;
}

@media (max-width: 720px) {
  html:not(.aros-ipad) body[data-page-key="home"] .hero.hero-home.command-home-hero,
  html:not(.aros-ipad) body[data-page-key="home"] .command-home-hero {
    height: auto;
    min-height: 0;
    align-items: stretch;
    padding: 42px 22px 24px;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-hero-top {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-copy h1,
  html:not(.aros-ipad) body[data-page-key="home"] .command-home-copy p {
    transform: none;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-copy h1 {
    font-size: clamp(32px, 8.4vw, 44px);
    line-height: 1.05;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-copy p {
    margin-top: 8px;
    max-width: 100%;
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.22;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-alert {
    position: static;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    text-align: center;
    font-size: clamp(22px, 5.6vw, 30px);
    line-height: 1.16;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-alert [data-dashboard-hero-alert],
  html:not(.aros-ipad) body[data-page-key="home"] .command-home-alert strong,
  html:not(.aros-ipad) body[data-page-key="home"] .command-home-alert span span {
    white-space: normal;
  }

  html:not(.aros-ipad) body[data-page-key="home"] .command-home-alert span span {
    margin-top: 8px;
    font-size: clamp(16px, 4vw, 20px);
    line-height: 1.2;
  }
}

.command-home-goal-sales-count {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.command-home-goal-sales-count:hover,
.command-home-goal-sales-count:focus-visible {
  text-decoration: underline;
  outline: none;
}

.company-division-modal {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(15, 35, 62, 0.25);
}

.company-division-modal::backdrop {
  background: rgba(16, 35, 63, 0.42);
  backdrop-filter: blur(3px);
}

.company-division-shell {
  background: #fff;
  color: #001b3f;
  padding: 24px;
}

.company-division-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dbe6f3;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.company-division-head span {
  display: block;
  color: #60738e;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-division-head h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.company-division-list {
  display: grid;
  gap: 10px;
  max-height: min(560px, 66vh);
  overflow: auto;
  padding-right: 4px;
}

.company-division-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dbe6f3;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.company-division-main {
  min-width: 0;
}

.company-division-main strong,
.company-division-main span {
  display: block;
}

.company-division-main strong {
  font-size: 1rem;
  line-height: 1.25;
}

.company-division-main span {
  margin-top: 4px;
  color: #52657d;
  font-size: 0.88rem;
  font-weight: 800;
}

.company-division-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-division-controls select,
.company-division-product-dropdown summary {
  min-width: 86px;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  background: #fff;
  color: #10233f;
  font-weight: 900;
  padding: 10px 12px;
}

.company-division-product-dropdown {
  position: relative;
}

.company-division-product-dropdown summary {
  min-width: 132px;
  cursor: pointer;
  list-style: none;
}

.company-division-product-dropdown summary::-webkit-details-marker {
  display: none;
}

.company-division-product-options {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  display: grid;
  gap: 8px;
  min-width: 180px;
  border: 1px solid #cbd8e8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 35, 62, 0.16);
  padding: 10px;
}

.company-division-product-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10233f;
  font-size: 0.88rem;
  font-weight: 900;
}

.company-division-empty {
  border: 1px dashed #cbd8e8;
  border-radius: 14px;
  color: #60738e;
  font-weight: 800;
  padding: 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .company-division-row {
    grid-template-columns: 1fr;
  }

  .company-division-controls {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .command-home-goal-grid {
    grid-template-columns: 36px repeat(3, minmax(0, 1fr)) 36px;
    gap: 8px;
  }

  .command-home-month-arrow {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

.experience-pledge-panel {
  margin-top: 18px;
}

.experience-pledge-setup {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 8px;
  padding: 5px 10px;
}

.experience-pledge-setup:empty {
  display: none;
}

.experience-pledge-setup.is-demo {
  background: #fff7ed;
  color: #9a3412;
}

.experience-pledge-setup.is-production {
  background: #ecfdf5;
  color: #047857;
}

.experience-pledge-setup.is-blocked {
  background: #fef2f2;
  color: #b91c1c;
}

.experience-pledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.experience-pledge-form,
.experience-pledge-status {
  display: grid;
  gap: 12px;
}

.experience-pledge-lead-results {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.experience-pledge-lead-button,
.experience-pledge-status-row {
  width: 100%;
  border: 1px solid #e3edf5;
  border-radius: 12px;
  background: #ffffff;
  color: #10233f;
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  text-align: left;
}

.experience-pledge-lead-button {
  cursor: pointer;
  font: inherit;
}

.experience-pledge-lead-button:hover,
.experience-pledge-lead-button:focus-visible {
  border-color: #0e9e8e;
  outline: none;
}

.experience-pledge-lead-button strong,
.experience-pledge-status-row strong,
.experience-pledge-status h4 {
  color: #08213d;
  font-weight: 900;
}

.experience-pledge-lead-button span,
.experience-pledge-status-row span {
  color: #52657c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.experience-pledge-lead-button em {
  color: #0e766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.experience-pledge-selected-status {
  color: #52657c;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.experience-pledge-selected-status:empty {
  display: none;
}

.experience-pledge-selected-status.is-complete {
  color: #047857;
}

.experience-pledge-selected-status.is-pending {
  color: #9a3412;
}

.experience-pledge-status {
  align-content: start;
}

.experience-pledge-status section {
  display: grid;
  gap: 8px;
}

.experience-pledge-status h4 {
  margin: 0;
  font-size: 15px;
}

.experience-pledge-empty {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .experience-pledge-grid {
    grid-template-columns: 1fr;
  }
}


body[data-page-key="sales-workspace"] .pipeline-status-modal {
  width: min(1180px, calc(100vw - 28px));
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .pipeline-status-shell {
  max-width: 1180px;
  max-height: min(88vh, 920px);
  overflow-y: auto;
  overflow-x: hidden;
}

body[data-page-key="sales-workspace"] .pipeline-status-body {
  display: grid;
  gap: 18px;
}


body[data-page-key="sales-workspace"] .pipeline-project-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #dbe7f1;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: #171638;
  color: #ffffff;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon svg,
body[data-page-key="sales-workspace"] .pipeline-project-chip svg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

body[data-page-key="sales-workspace"] .pipeline-project-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-topline,
body[data-page-key="sales-workspace"] .pipeline-project-title,
body[data-page-key="sales-workspace"] .pipeline-project-products,
body[data-page-key="sales-workspace"] .pipeline-project-metrics,
body[data-page-key="sales-workspace"] .pipeline-project-people {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-topline {
  align-items: flex-start;
  justify-content: space-between;
}

body[data-page-key="sales-workspace"] .pipeline-project-title {
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3 {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 19px;
  margin-right: 5px;
  border-radius: 999px;
  background: #2563eb;
  vertical-align: -3px;
}

body[data-page-key="sales-workspace"] .pipeline-project-title strong {
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .pipeline-project-chip,
body[data-page-key="sales-workspace"] .pipeline-project-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid #d8e1ee;
  border-radius: 5px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-chip svg {
  width: 15px;
  height: 15px;
  stroke: var(--crm-product-color, #64748b);
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics {
  flex: 0 0 auto;
}

body[data-page-key="sales-workspace"] .pipeline-project-people {
  justify-content: space-between;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-person {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-project-person strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1f2937;
  font-size: 12px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .pipeline-project-person abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #0f766e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-person:nth-child(2) abbr {
  background: #facc15;
  color: #111827;
}

body[data-page-key="sales-workspace"] .pipeline-project-person:nth-child(3) abbr {
  background: #6366f1;
}

body[data-page-key="sales-workspace"] .pipeline-project-rail {
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  align-items: center;
  gap: 0;
  padding-right: 4px;
}

body[data-page-key="sales-workspace"] .pipeline-project-step {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-step::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 0;
  height: 1px;
  background: #cfd8e3;
}

body[data-page-key="sales-workspace"] .pipeline-project-step:last-child::before {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-step i {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 2px solid #cfd8e3;
  border-radius: 999px;
  background: #f8fafc;
}

body[data-page-key="sales-workspace"] .pipeline-project-step.is-complete i {
  border-color: #2fb36d;
  background: #dff8eb;
}

body[data-page-key="sales-workspace"] .pipeline-project-step.is-complete i::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: solid #16a34a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body[data-page-key="sales-workspace"] .pipeline-project-step.is-active i {
  border-color: #9db7f5;
  background: #eef4ff;
  box-shadow: 0 0 0 4px #eef4ff;
}

body[data-page-key="sales-workspace"] .pipeline-project-step b {
  position: absolute;
  left: 22px;
  max-width: 120px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f3b75;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 16px;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid #e2ecf4;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

body[data-page-key="sales-workspace"] .pipeline-current-status,
body[data-page-key="sales-workspace"] .pipeline-update-tags,
body[data-page-key="sales-workspace"] .pipeline-status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-stage-pill,
body[data-page-key="sales-workspace"] .pipeline-status-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 26px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  padding: 5px 10px;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .pipeline-stage-pill {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

body[data-page-key="sales-workspace"] .pipeline-status-pill {
  border: 1px solid #d8e4ec;
  background: #f8fafc;
  color: #475569;
}

body[data-page-key="sales-workspace"] .pipeline-status-pill.is-completed {
  border-color: #a7e3bf;
  background: var(--ops-status-completed-bg);
  color: var(--ops-status-completed);
}

body[data-page-key="sales-workspace"] .pipeline-status-pill.is-in_progress {
  border-color: #bfdbfe;
  background: var(--ops-status-in-progress-bg);
  color: var(--ops-status-in-progress);
}

body[data-page-key="sales-workspace"] .pipeline-status-pill.is-missing_information {
  border-color: #fed7aa;
  background: var(--ops-status-missing-bg);
  color: var(--ops-status-missing);
}

body[data-page-key="sales-workspace"] .pipeline-status-pill.is-blocked {
  border-color: #fecdd3;
  background: var(--ops-status-blocked-bg);
  color: var(--ops-status-blocked);
}

body[data-page-key="sales-workspace"] .pipeline-status-editor textarea {
  min-height: 120px;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head h3 {
  margin: 0;
  color: #08213d;
  font-size: 17px;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head span {
  color: #52657c;
  font-size: 12px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .pipeline-update-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page-key="sales-workspace"] .pipeline-update-list li,
body[data-page-key="sales-workspace"] .pipeline-update-empty {
  display: grid;
  gap: 8px;
  border: 1px solid #edf3f8;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-update-item {
  position: relative;
}

body[data-page-key="sales-workspace"] .pipeline-update-item.is-pinned {
  border-color: #fde68a;
  background: #fffbeb;
}

body[data-page-key="sales-workspace"] .pipeline-update-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  opacity: 0;
  padding: 3px;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

body[data-page-key="sales-workspace"] .pipeline-update-item:hover .pipeline-update-actions,
body[data-page-key="sales-workspace"] .pipeline-update-item:focus-within .pipeline-update-actions {
  opacity: 1;
  transform: translateY(0);
}

body[data-page-key="sales-workspace"] .pipeline-emoji-picker {
  position: absolute;
  top: 42px;
  right: 8px;
  z-index: 4;
  display: grid;
  gap: 8px;
  width: min(290px, calc(100vw - 72px));
  max-height: 330px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  padding: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-picker input {
  width: 100%;
  min-height: 36px;
  border: 1.5px solid #93c5fd;
  border-radius: 7px;
  color: #10243f;
  font: inherit;
  font-size: 13px;
  padding: 0 10px;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid-shell {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid-shell h4 {
  margin: 0 0 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid button:hover,
body[data-page-key="sales-workspace"] .pipeline-emoji-grid button:focus-visible {
  background: #edf5ff;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-empty {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-update-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-update-action:hover,
body[data-page-key="sales-workspace"] .pipeline-update-action:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-update-action.is-active {
  background: #edf5ff;
  color: #1d4ed8;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-pinned-badge,
body[data-page-key="sales-workspace"] .pipeline-reaction-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 8px;
}

body[data-page-key="sales-workspace"] .pipeline-pinned-badge {
  border: 1px solid #facc15;
  background: #fef3c7;
  color: #92400e;
}

body[data-page-key="sales-workspace"] .pipeline-reaction-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-page-key="sales-workspace"] .pipeline-reaction-chip {
  border: 1px solid #dbeafe;
  cursor: pointer;
  background: #eff6ff;
  color: #1e40af;
}

body[data-page-key="sales-workspace"] .pipeline-reaction-chip.is-active {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}
body[data-page-key="sales-workspace"] .pipeline-reply-form {
  display: grid;
  gap: 8px;
  border-left: 3px solid #dbeafe;
  padding-left: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form textarea {
  min-height: 76px;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-reply-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0 18px;
  padding: 0;
  list-style: none;
}

body[data-page-key="sales-workspace"] .pipeline-reply-list .pipeline-update-item {
  background: #fff7ed;
}

@media (hover: none) {
  body[data-page-key="sales-workspace"] .pipeline-update-actions {
    position: static;
    width: max-content;
    opacity: 1;
    transform: none;
  }
}

body[data-page-key="sales-workspace"] .pipeline-update-head {
  display: flex;
  padding-right: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-update-head strong,
body[data-page-key="sales-workspace"] .pipeline-update-list p {
  color: #08213d;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  margin: 0;
}

body[data-page-key="sales-workspace"] .pipeline-update-head time,
body[data-page-key="sales-workspace"] .pipeline-update-empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 980px) {
  body[data-page-key="sales-workspace"] .pipeline-project-card {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-topline,
  body[data-page-key="sales-workspace"] .pipeline-project-people {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-rail {
    grid-template-columns: repeat(7, minmax(18px, 1fr));
    row-gap: 10px;
  }
  body[data-page-key="sales-workspace"] .pipeline-status-layout {
    grid-template-columns: 1fr;
  }
}


body[data-page-key="sales-workspace"] .pipeline-checklist-panel,
body[data-page-key="sales-workspace"] .pipeline-adders-panel {
  display: grid;
  gap: 10px;
  border: 1px solid #e2ecf4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-section-head h3 {
  margin: 0;
  color: #08213d;
  font-size: 15px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .pipeline-section-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-check-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  padding: 0 10px;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-header,
body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
}

body[data-page-key="sales-workspace"] .pipeline-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
}

body[data-page-key="sales-workspace"] .pipeline-check-status {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-check-status span {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-check-status select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #d8e4ec;
  border-radius: 8px;
  background: #ffffff;
  color: #08213d;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 0 9px;
}

body[data-page-key="sales-workspace"] .pipeline-check-status select:focus {
  border-color: #0e9e8e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 158, 142, 0.12);
}
body[data-page-key="sales-workspace"] .pipeline-check-list,
body[data-page-key="sales-workspace"] .pipeline-adder-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-page-key="sales-workspace"] .pipeline-check-row,
body[data-page-key="sales-workspace"] .pipeline-adder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 1px solid #edf3f8;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px 10px;
}
body[data-page-key="sales-workspace"] .pipeline-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
}

body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-row {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-complete,
body[data-page-key="sales-workspace"] .pipeline-adder-row.is-complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-removed {
  opacity: 0.74;
  background: #f8fafc;
}

body[data-page-key="sales-workspace"] .pipeline-check-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #08213d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .pipeline-adder-row .pipeline-check-main {
  text-transform: none;
}

body[data-page-key="sales-workspace"] .pipeline-check-main input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid #d7deea;
  border-radius: 999px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .pipeline-check-main input:checked + .pipeline-check-indicator {
  border-color: #16a34a;
  background: #ecfdf5;
}

body[data-page-key="sales-workspace"] .pipeline-check-main input:checked + .pipeline-check-indicator::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #16a34a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body[data-page-key="sales-workspace"] .pipeline-check-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-page-key="sales-workspace"] .pipeline-mini-action {
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid #cbd8e8;
  border-radius: 999px;
  background: #ffffff;
  color: #52657c;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  padding: 0 10px;
}

body[data-page-key="sales-workspace"] .pipeline-mini-action.danger {
  border-color: #fed7aa;
  color: #c2410c;
}

body[data-page-key="sales-workspace"] .pipeline-mini-action:hover,
body[data-page-key="sales-workspace"] .pipeline-mini-action:focus-visible {
  border-color: #0e9e8e;
  color: #08213d;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-removed-list {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-removed-list summary {
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .pipeline-adder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-adder-create input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #d8e4ec;
  border-radius: 10px;
  background: #ffffff;
  color: #08213d;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  padding: 0 12px;
}

body[data-page-key="sales-workspace"] .pipeline-adder-actions {
  display: grid;
  margin-top: 8px;
}

@media (max-width: 640px) {

  body[data-page-key="sales-workspace"] .pipeline-check-row,
  body[data-page-key="sales-workspace"] .pipeline-adder-row,
  body[data-page-key="sales-workspace"] .pipeline-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page-key="sales-workspace"] .pipeline-check-row {
    align-items: stretch;
  }

  body[data-page-key="sales-workspace"] .pipeline-adder-create {
    grid-template-columns: 1fr;
  }
}
/* Sales pipeline modal polish */
body[data-page-key="sales-workspace"] .pipeline-status-shell {
  background: #f8fafc;
}

body[data-page-key="sales-workspace"] .pipeline-status-body {
  gap: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-status-head h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .pipeline-status-head p {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

body[data-page-key="sales-workspace"] .pipeline-project-card {
  border-color: #dbe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
  padding: 10px 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: #171638;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3 {
  color: #0f172a;
  font-size: 19px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-project-title strong {
  font-weight: 760;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3::before {
  width: 3px;
  height: 18px;
  margin-right: 6px;
  background: #2563eb;
}

body[data-page-key="sales-workspace"] .pipeline-project-chip,
body[data-page-key="sales-workspace"] .pipeline-project-metrics span {
  min-height: 22px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
}

body[data-page-key="sales-workspace"] .pipeline-project-people {
  color: #667085;
  font-size: 11px;
}

body[data-page-key="sales-workspace"] .pipeline-project-person,
body[data-page-key="sales-workspace"] .pipeline-project-person strong {
  font-size: 11px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-project-person abbr {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  font-size: 9px;
}

body[data-page-key="sales-workspace"] .pipeline-project-rail {
  padding: 2px 4px 0 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-step::before {
  background: #d5dde8;
}

body[data-page-key="sales-workspace"] .pipeline-project-step i {
  width: 16px;
  height: 16px;
  border-width: 1.5px;
  background: #f8fafc;
}

body[data-page-key="sales-workspace"] .pipeline-project-step.is-complete i {
  background: #d8f7e6;
  border-color: #86e0ad;
}

body[data-page-key="sales-workspace"] .pipeline-project-step.is-active i {
  border-color: #86a8ff;
  background: #edf4ff;
  box-shadow: 0 0 0 3px #edf4ff;
}

body[data-page-key="sales-workspace"] .pipeline-project-step b {
  min-height: 16px;
  border: 0;
  border-radius: 999px;
  background: #dfe8ff;
  color: #1e3a8a;
  font-size: 10px;
  font-weight: 650;
  padding: 1px 7px;
}


body[data-page-key="sales-workspace"] .pipeline-status-layout {
  grid-template-columns: minmax(420px, 0.94fr) minmax(360px, 1.06fr);
  gap: 16px;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  border-color: #dbe5ef;
  border-radius: 8px;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.025);
  padding: 16px;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel {
  background: #f1f1fb;
}

body[data-page-key="sales-workspace"] .pipeline-checklist-panel,
body[data-page-key="sales-workspace"] .pipeline-adders-panel {
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body[data-page-key="sales-workspace"] .pipeline-section-head {
  min-height: 28px;
}

body[data-page-key="sales-workspace"] .pipeline-section-head h3,
body[data-page-key="sales-workspace"] .pipeline-update-panel-head h3 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .pipeline-section-head span,
body[data-page-key="sales-workspace"] .pipeline-update-panel-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-check-header {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px);
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 10px;
}

body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-header,
body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-row {
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px) auto;
}

body[data-page-key="sales-workspace"] .pipeline-check-list,
body[data-page-key="sales-workspace"] .pipeline-adder-list {
  gap: 0;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .pipeline-check-row,
body[data-page-key="sales-workspace"] .pipeline-adder-row {
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: #ffffff;
  padding: 7px 10px;
}

body[data-page-key="sales-workspace"] .pipeline-check-row:last-child,
body[data-page-key="sales-workspace"] .pipeline-adder-row:last-child {
  border-bottom: 0;
}

body[data-page-key="sales-workspace"] .pipeline-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 160px);
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-complete,
body[data-page-key="sales-workspace"] .pipeline-adder-row.is-complete {
  border-color: #edf2f7;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .pipeline-check-main {
  gap: 9px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page-key="sales-workspace"] .pipeline-check-main strong {
  font-weight: 740;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator {
  width: 17px;
  height: 17px;
  border-width: 1.5px;
  border-color: #d5deea;
}

body[data-page-key="sales-workspace"] .pipeline-check-main input:checked + .pipeline-check-indicator {
  border-color: #22c55e;
  background: #e9fbf1;
}

body[data-page-key="sales-workspace"] .pipeline-check-status select {
  min-height: 31px;
  appearance: none;
  border-color: #d8e3ee;
  border-radius: 7px;
  background-color: #ffffff;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 650;
  padding: 0 26px 0 9px;
}

body[data-page-key="sales-workspace"] .pipeline-check-status select:hover {
  border-color: #b9c8d8;
}

body[data-page-key="sales-workspace"] .pipeline-mini-action {
  min-height: 26px;
  border-color: #d8e3ee;
  border-radius: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 650;
  padding: 0 9px;
}

body[data-page-key="sales-workspace"] .pipeline-update-list {
  gap: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-update-list li,
body[data-page-key="sales-workspace"] .pipeline-update-empty {
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: #fff7df;
  box-shadow: none;
  padding: 10px 12px;
}

body[data-page-key="sales-workspace"] .pipeline-update-item.is-pinned {
  background: #fff7df;
  box-shadow: inset 3px 0 0 #14b8a6;
}


body[data-page-key="sales-workspace"] .pipeline-update-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-update-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #8b5cf6;
  color: #ffffff;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0;
}
body[data-page-key="sales-workspace"] .pipeline-update-head strong {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .pipeline-update-head time {
  color: #667085;
  font-size: 11px;
  font-weight: 500;
}

body[data-page-key="sales-workspace"] .pipeline-stage-pill,
body[data-page-key="sales-workspace"] .pipeline-status-pill {
  min-height: 22px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
  padding: 3px 8px;
}

body[data-page-key="sales-workspace"] .pipeline-update-list p {
  color: #111827;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor textarea {
  min-height: 96px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 900px) {
  body[data-page-key="sales-workspace"] .pipeline-status-layout {
    grid-template-columns: 1fr;
  }
}
/* Sales pipeline modal polish v2 */
body[data-page-key="sales-workspace"] .pipeline-status-shell {
  gap: 14px;
  padding: 18px 18px 16px;
}

body[data-page-key="sales-workspace"] .pipeline-status-head {
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-status-head h2 {
  font-size: 17px;
  font-weight: 680;
}

body[data-page-key="sales-workspace"] .pipeline-status-head .mini-link {
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
  color: #0f172a;
  font-size: 13px;
  font-weight: 650;
  padding: 0 16px;
}

body[data-page-key="sales-workspace"] .pipeline-project-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon {
  width: 44px;
  height: 44px;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon svg {
  width: 19px;
  height: 19px;
}

body[data-page-key="sales-workspace"] .pipeline-project-main {
  gap: 7px;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3 {
  font-size: 18px;
  font-weight: 620;
  line-height: 1.12;
}

body[data-page-key="sales-workspace"] .pipeline-project-title strong {
  font-weight: 720;
}

body[data-page-key="sales-workspace"] .pipeline-project-chip,
body[data-page-key="sales-workspace"] .pipeline-project-metrics span {
  min-height: 21px;
  font-size: 10.5px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .pipeline-project-step i {
  width: 14px;
  height: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-project-step::before {
  left: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-project-step.is-complete i::after {
  left: 3px;
  top: 1px;
  width: 4px;
  height: 7px;
}

body[data-page-key="sales-workspace"] .pipeline-project-step b {
  left: 18px;
  min-height: 15px;
  font-size: 9.5px;
  font-weight: 620;
  padding: 1px 6px;
}


body[data-page-key="sales-workspace"] .pipeline-status-layout {
  align-items: start;
  gap: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  padding: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel {
  align-self: start;
  min-height: 0;
  background: #f3f3ff;
}

body[data-page-key="sales-workspace"] .pipeline-section-head h3,
body[data-page-key="sales-workspace"] .pipeline-update-panel-head h3 {
  font-size: 14.5px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-check-header {
  grid-template-columns: minmax(0, 1fr) minmax(124px, 150px);
  font-size: 9.5px;
  font-weight: 650;
  padding: 0 9px;
}

body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-header,
body[data-page-key="sales-workspace"] .pipeline-checklist-panel.is-editing .pipeline-check-row {
  grid-template-columns: minmax(0, 1fr) minmax(124px, 150px) auto;
}

body[data-page-key="sales-workspace"] .pipeline-check-row {
  grid-template-columns: minmax(0, 1fr) minmax(124px, 150px);
}

body[data-page-key="sales-workspace"] .pipeline-check-row,
body[data-page-key="sales-workspace"] .pipeline-adder-row {
  min-height: 42px;
  padding: 6px 10px;
}

body[data-page-key="sales-workspace"] .pipeline-check-main {
  color: #0f172a;
  font-size: 13px;
  font-weight: 580;
}

body[data-page-key="sales-workspace"] .pipeline-check-main strong {
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator {
  width: 16px;
  height: 16px;
}

body[data-page-key="sales-workspace"] .pipeline-check-main input:checked + .pipeline-check-indicator::after {
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-check-status select {
  min-height: 29px;
  border-color: #d7e1ec;
  background-color: #fbfdff;
  background-position: calc(100% - 13px) 12px, calc(100% - 8px) 12px;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 600;
}

body[data-page-key="sales-workspace"] .pipeline-mini-action {
  min-height: 25px;
  font-weight: 600;
}

body[data-page-key="sales-workspace"] .pipeline-update-list li,
body[data-page-key="sales-workspace"] .pipeline-update-empty {
  border-radius: 7px;
  padding: 9px 11px;
}

body[data-page-key="sales-workspace"] .pipeline-update-head {
  padding-right: 92px;
}

body[data-page-key="sales-workspace"] .pipeline-update-head strong {
  font-size: 11.5px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-update-list p {
  font-size: 13px;
  font-weight: 420;
}

body[data-page-key="sales-workspace"] .pipeline-stage-pill,
body[data-page-key="sales-workspace"] .pipeline-status-pill {
  min-height: 21px;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
}
/* Sales pipeline Coperniq header */
body[data-page-key="sales-workspace"] .pipeline-status-head {
  display: block;
  margin: -18px -18px 0;
  padding: 0;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-header {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 0 0 24px 0;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  background: #e8e7f7;
  padding: 0 16px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-identity,
body[data-page-key="sales-workspace"] .pipeline-coperniq-owner,
body[data-page-key="sales-workspace"] .pipeline-coperniq-owner strong,
body[data-page-key="sales-workspace"] .pipeline-coperniq-actions,
body[data-page-key="sales-workspace"] .pipeline-coperniq-meta,
body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-identity {
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-home,
body[data-page-key="sales-workspace"] .pipeline-coperniq-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #d9f4ee;
  color: #0f766e;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-home svg,
body[data-page-key="sales-workspace"] .pipeline-coperniq-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-action {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #ffffff;
  color: #2563eb;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-marker {
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: #0d9488;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-topline h2 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-actions {
  gap: 6px;
  margin-left: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-owner {
  gap: 8px;
  margin-left: auto;
  color: #667085;
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-owner strong {
  gap: 5px;
  color: #111827;
  font-weight: 600;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-owner abbr,
body[data-page-key="sales-workspace"] .pipeline-project-person abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: #facc15;
  color: #111827;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-close:hover,
body[data-page-key="sales-workspace"] .pipeline-coperniq-close:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta {
  flex-wrap: wrap;
  gap: 22px;
  min-height: 48px;
  border-bottom: 1px solid #e5edf5;
  background: #ffffff;
  padding: 0 18px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item {
  gap: 7px;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item i {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #eef2ff;
  color: #2563eb;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item i::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item i.is-ahj::before {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item i.is-utility::before {
  width: 10px;
  height: 6px;
  border-radius: 1px;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item em {
  color: #667085;
  font-style: normal;
  font-weight: 560;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-meta-item strong {
  color: #2563eb;
  font-weight: 560;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-price {
  margin-left: auto;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-price strong {
  color: #0f172a;
}

body[data-page-key="sales-workspace"] .pipeline-project-people.is-editing {
  align-items: end;
  justify-content: start;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-project-person.is-editable {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

body[data-page-key="sales-workspace"] .pipeline-project-person.is-editable span {
  color: #667085;
  font-size: 10px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .pipeline-project-person.is-editable select {
  min-height: 30px;
  border: 1px solid #d7e1ec;
  border-radius: 7px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 8px;
}

body[data-page-key="sales-workspace"] .pipeline-assignment-save {
  align-self: end;
  margin-bottom: 1px;
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .pipeline-coperniq-topline,
  body[data-page-key="sales-workspace"] .pipeline-coperniq-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  body[data-page-key="sales-workspace"] .pipeline-coperniq-owner,
  body[data-page-key="sales-workspace"] .pipeline-coperniq-price {
    margin-left: 0;
  }
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-action {
  position: relative;
  border: 0;
  cursor: help;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-tooltip {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 30;
  max-width: 260px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  background: #111827;
  transform: translateX(-50%) rotate(45deg);
}

body[data-page-key="sales-workspace"] .pipeline-coperniq-action:hover .pipeline-coperniq-tooltip,
body[data-page-key="sales-workspace"] .pipeline-coperniq-action:focus-visible .pipeline-coperniq-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

body[data-page-key="sales-workspace"] .pipeline-assignment-actions {
  display: inline-flex;
  align-items: end;
  gap: 6px;
  margin-left: auto;
}

body[data-page-key="sales-workspace"] .pipeline-project-people.is-editing .pipeline-assignment-actions {
  margin-left: 0;
}
body[data-page-key="sales-workspace"] .deal-product-dropdown {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid #d8e4ec;
  border-radius: 12px;
  background: #ffffff;
  color: #08213d;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 12px;
}

body[data-page-key="sales-workspace"] .deal-product-dropdown summary {
  min-height: 20px;
}

body[data-page-key="sales-workspace"] .deal-product-dropdown[open] {
  border-color: #0e9e8e;
  box-shadow: 0 0 0 3px rgba(14, 158, 142, 0.14);
}
body[data-page-key="sales-workspace"] .pipeline-status-head {
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-summary {
  flex: 1 1 auto;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-finance-view {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

body[data-page-key="sales-workspace"] .pipeline-finance-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 6px 18px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

body[data-page-key="sales-workspace"] .pipeline-finance-lines span {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-page-key="sales-workspace"] .pipeline-finance-lines strong {
  color: #52657c;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit label {
  display: grid;
  gap: 4px;
  color: #52657c;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.calendar-block-fields > label,
.calendar-block-fields > .calendar-block-invite-label {
  min-width: 0;
  min-height: 76px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 16px;
  background: #ffffff;
}

.calendar-block-fields > label:has(input:focus-visible),
.calendar-block-fields > label:has(select:focus-visible),
.calendar-block-fields > label:has(textarea:focus-visible),
.calendar-block-fields > .calendar-block-invite-label:has(input:focus-visible) {
  border-color: var(--calendar-meeting-teal-bright);
  box-shadow: 0 0 0 3px rgba(5, 191, 196, 0.14);
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit input {
  min-height: 34px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 0 9px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-actions {
  display: inline-flex;
  align-items: end;
  gap: 6px;
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .pipeline-finance-view {
    flex-direction: column;
  }

  body[data-page-key="sales-workspace"] .pipeline-finance-lines,
  body[data-page-key="sales-workspace"] .pipeline-finance-edit {
    grid-template-columns: 1fr;
  }
}

/* Adders quick editor */
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-adders {
  position: relative;
  padding-right: 42px !important;
}

body[data-page-key="sales-workspace"] .pipeline-adders-edit {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d4e0ed;
  border-radius: 50%;
  background: #ffffff;
  color: #17304f;
  transform: translateY(-50%);
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-adders-edit:hover,
body[data-page-key="sales-workspace"] .pipeline-adders-edit:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-adders-edit.is-open {
  border-color: #b79ae8;
  background: #f6f0ff;
  color: #7c3aed;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-adders-edit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover {
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  visibility: hidden;
  display: grid;
  gap: 10px;
  width: min(470px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 24px));
  overflow: auto;
  padding: 14px;
  border: 1px solid #d8c9ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 36, 62, 0.24);
  color: #10243e;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover-head,
body[data-page-key="sales-workspace"] .pipeline-adders-popover-head > div,
body[data-page-key="sales-workspace"] .pipeline-adders-popover-head-actions {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover-head {
  justify-content: space-between;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover-head > div {
  gap: 9px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover-head strong {
  font-size: 15px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover-head span {
  color: #725c91;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover-head-actions {
  gap: 7px !important;
}

body[data-page-key="sales-workspace"] .pipeline-popover-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: #ffffff;
  color: #52647d;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover .pipeline-adder-create,
body[data-page-key="sales-workspace"] .pipeline-adders-popover .pipeline-adder-list,
body[data-page-key="sales-workspace"] .pipeline-adders-popover .pipeline-adder-actions {
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body[data-page-key="sales-workspace"] .pipeline-adder-amount-field {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #d8c9ef;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbf9ff, #f4efff);
}

body[data-page-key="sales-workspace"] .pipeline-adder-amount-field > span {
  color: #725c91;
  font-size: 11px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-adder-amount-field input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid #cfc0e8;
  border-radius: 10px;
  background: #ffffff;
  color: #10243e;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-adder-amount-field input:focus {
  border-color: #8b5cf6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}

body[data-page-key="sales-workspace"] .pipeline-adder-amount-field small {
  color: #7d7190;
  font-size: 10px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .pipeline-adders-popover .pipeline-adder-actions {
  margin-top: 2px !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout.has-integrated-checklist.is-adders-popover-layout {
  grid-template-columns: 1fr !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor.is-actions-only {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor.is-actions-only .pipeline-status-actions {
  justify-content: flex-end;
  padding: 0 !important;
}

@media (max-width: 520px) {
  body[data-page-key="sales-workspace"] .pipeline-adders-popover .pipeline-adder-create {
    grid-template-columns: 1fr !important;
  }
}
body[data-page-key="sales-workspace"] .pipeline-project-finance {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e7eef5;
}

body[data-page-key="sales-workspace"] .pipeline-project-finance .pipeline-finance-lines {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

body[data-page-key="sales-workspace"] .pipeline-project-finance .pipeline-finance-view {
  align-items: start;
}

body[data-page-key="sales-workspace"] .pipeline-update-item.is-synthetic {
  border-color: #dbeafe;
  background: #f8fbff;
}

body[data-page-key="sales-workspace"] .pipeline-update-list p {
  white-space: pre-line;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout {
  align-items: stretch;
  min-height: min(760px, calc(100vh - 240px));
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  max-height: min(760px, calc(100vh - 240px));
  min-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  background: #eeeefb;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head {
  padding: 14px 16px 0;
}

body[data-page-key="sales-workspace"] .pipeline-update-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px 14px;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer {
  display: grid;
  gap: 0;
  margin: 0 0 8px;
  background: #fff5d8;
  border-bottom: 1px solid #e6ddc4;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor {
  min-height: 82px;
  padding: 14px 16px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #8a94a6;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button,
body[data-page-key="sales-workspace"] .pipeline-rich-toolbar select {
  height: 30px;
  min-width: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:hover,
body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-rich-toolbar select:focus-visible {
  background: #e5e7ff;
  color: #1d4ed8;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-rich-send {
  margin-left: auto;
  background: #dfe3f4 !important;
  color: #94a3b8 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 8px;
  padding: 0 10px 10px;
}

body[data-page-key="sales-workspace"] .pipeline-update-search,
body[data-page-key="sales-workspace"] .pipeline-update-search-row select {
  min-height: 34px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .pipeline-update-search {
  position: relative;
  display: block;
}

body[data-page-key="sales-workspace"] .pipeline-update-search input {
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  padding: 0 36px 0 10px;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-update-search svg {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #8aa0ba;
  stroke-width: 2;
}

body[data-page-key="sales-workspace"] .pipeline-update-search-row select {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  padding: 0 10px;
}

body[data-page-key="sales-workspace"] .pipeline-update-body {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
  white-space: normal;
}

body[data-page-key="sales-workspace"] .pipeline-update-body p,
body[data-page-key="sales-workspace"] .pipeline-update-body div,
body[data-page-key="sales-workspace"] .pipeline-update-body ul,
body[data-page-key="sales-workspace"] .pipeline-update-body ol {
  margin: 0 0 8px;
}

body[data-page-key="sales-workspace"] .pipeline-update-body p:last-child,
body[data-page-key="sales-workspace"] .pipeline-update-body div:last-child,
body[data-page-key="sales-workspace"] .pipeline-update-body ul:last-child,
body[data-page-key="sales-workspace"] .pipeline-update-body ol:last-child {
  margin-bottom: 0;
}

body[data-page-key="sales-workspace"] .pipeline-update-action.danger {
  color: #b42318;
}

body[data-page-key="sales-workspace"] .pipeline-update-action.danger:hover,
body[data-page-key="sales-workspace"] .pipeline-update-action.danger:focus-visible {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  body[data-page-key="sales-workspace"] .pipeline-status-editor,
  body[data-page-key="sales-workspace"] .pipeline-update-panel {
    max-height: none;
    min-height: 0;
  }

  body[data-page-key="sales-workspace"] .pipeline-update-search-row {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="sales-workspace"] .pipeline-status-modal {
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-shell {
  height: min(88vh, 920px) !important;
  max-height: min(88vh, 920px) !important;
  overflow: hidden !important;
  display: grid;
  grid-template-rows: 0 minmax(0, 1fr) auto;
}

body[data-page-key="sales-workspace"] .pipeline-status-head {
  display: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

body[data-page-key="sales-workspace"] .pipeline-status-layout {
  min-height: 0 !important;
  height: 100%;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  height: 100%;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel {
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-scroll {
  overflow-y: auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 360px;
  overflow: hidden;
  border: 1px solid #d8e1ee;
  border-radius: 5px;
  background: #ffffff;
  color: #52657c;
  font-size: 12px;
  font-weight: 760;
  padding: 2px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator,
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1.5px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #b45309;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator::after {
  content: "?";
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator::after {
  content: "�";
  transform: none;
  width: auto;
  height: auto;
  border: 0;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-main input + .pipeline-check-indicator {
  border-color: #22c55e;
  background: #22c55e;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-main input + .pipeline-check-indicator::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body[data-page-key="sales-workspace"] .pipeline-status-shell {
  display: flex !important;
  flex-direction: column !important;
  height: min(88vh, 920px) !important;
  max-height: min(88vh, 920px) !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-title {
  gap: 10px 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a {
  color: #2563eb;
  font-size: 12px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a:hover,


body[data-page-key="sales-workspace"] .pipeline-status-body .pipeline-status-layout {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body .pipeline-update-panel {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body .pipeline-update-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}
body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta span {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics span {
  min-height: 30px;
  font-size: 15px !important;
  font-weight: 950 !important;
  padding: 4px 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-people {
  gap: 18px !important;
  margin-top: 2px;
}

body[data-page-key="sales-workspace"] .pipeline-project-person {
  gap: 5px;
}

body[data-page-key="sales-workspace"] .pipeline-project-finance {
  margin-top: 10px;
  padding-top: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-lines {
  gap: 12px 24px !important;
  line-height: 1.45 !important;
}

body[data-page-key="sales-workspace"] .pipeline-finance-lines span {
  min-height: 20px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit {
  gap: 12px 14px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search-row {
  grid-template-columns: minmax(0, 1fr) !important;
}


/* Projects listing redesign */
html[data-workspace-view="pipeline"] body[data-page-key="sales-workspace"],
html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] {
  background: #eef4f8;
}

html[data-workspace-view="pipeline"] body[data-page-key="sales-workspace"] .command-strip.hero-only {
  display: none;
}

html[data-workspace-view="pipeline"] body[data-page-key="sales-workspace"] .sales-detail-grid {
  margin-top: 0;
}

body[data-page-key="sales-workspace"] [data-workspace-panel="pipeline"] {
  width: 100%;
}

body[data-page-key="sales-workspace"] .projects-page-shell {
  display: block;
  width: 100%;
}

body[data-page-key="sales-workspace"] .projects-page-shell .sales-list {
  display: grid;
  gap: 20px;
  margin-top: 0;
}

body[data-page-key="sales-workspace"] .projects-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 20px 24px;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.34), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(5, 191, 196, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(180deg, #002233 0%, #004f58 62%, #05bfc4 100%);
  box-shadow: none;
  color: #ffffff;
}

body[data-page-key="sales-workspace"] .projects-hero-title,
body[data-page-key="sales-workspace"] .projects-hero-actions,
body[data-page-key="sales-workspace"] .project-client-cell,
body[data-page-key="sales-workspace"] .project-card-meta,
body[data-page-key="sales-workspace"] .project-toolbar,
body[data-page-key="sales-workspace"] .project-view-toggle,
body[data-page-key="sales-workspace"] .projects-pagination {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .projects-hero-title {
  gap: 20px;
  min-width: 240px;
}

body[data-page-key="sales-workspace"] .projects-hero-card svg,
body[data-page-key="sales-workspace"] .projects-stats-card svg,
body[data-page-key="sales-workspace"] .projects-main-card svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .projects-hero-title .hub-hero-title {
  margin: 0;
}

body[data-page-key="sales-workspace"] .projects-hero-title .page-hero-copy {
  margin-top: 7px;
}

body[data-page-key="sales-workspace"] .projects-hero-actions {
  gap: 14px;
  justify-content: flex-end;
  flex: 1 1 auto;
}

body[data-page-key="sales-workspace"] .projects-search-field {
  position: relative;
  width: min(100%, 360px);
  color: rgba(255, 255, 255, 0.86);
}

body[data-page-key="sales-workspace"] .projects-search-field svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .projects-search-field input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(7, 56, 74, 0.48);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  padding: 0 16px 0 48px;
  outline: none;
}

body[data-page-key="sales-workspace"] .projects-search-field input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page-key="sales-workspace"] .projects-filter-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .projects-filter-button {
  min-width: 132px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 56, 74, 0.48);
  color: #ffffff;
}


body[data-page-key="sales-workspace"] .projects-stats-card,
body[data-page-key="sales-workspace"] .projects-main-card {
  border: 1px solid #dbe5ec;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 36, 62, 0.06);
}

body[data-page-key="sales-workspace"] .projects-stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .followups-stats-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page-key="sales-workspace"] .followup-summary-all-slot,
body[data-page-key="sales-workspace"] .followup-summary-go-back-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 19px 18px;
  border-left: 1px solid #e6edf3;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .followup-summary-all-slot {
  gap: 9px;
  border-left: 0;
}

body[data-page-key="sales-workspace"] .followup-summary-go-back-slot {
  gap: 9px;
}

body[data-page-key="sales-workspace"] .followups-stats-card > .project-stat + .project-stat {
  border-left: 0;
}

body[data-page-key="sales-workspace"] .followup-summary-count {
  color: #10243e;
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 17px;
  border: 1px solid #9fdde0;
  border-radius: 999px;
  background: #ffffff;
  color: #007d84;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-summary-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e6f7fa;
  color: #009eb0;
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .followup-summary-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-summary-pill:hover,
body[data-page-key="sales-workspace"] .followup-summary-pill:focus-visible,
body[data-page-key="sales-workspace"] .followup-summary-pill.active {
  border-color: #008b8f;
  background: #e6f7f8;
  color: #006a70;
}

body[data-page-key="sales-workspace"] .followup-summary-pill:focus-visible {
  outline: 3px solid rgba(0, 158, 176, 0.22);
  outline-offset: -3px;
}

body[data-page-key="sales-workspace"] .project-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 18px;
  background: #ffffff;
  border-radius: 0;
}

body[data-page-key="sales-workspace"] .project-stat + .project-stat {
  border-left: 1px solid #e6edf3;
}

body[data-page-key="sales-workspace"] .project-stat > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex: 0 0 auto;
}

body[data-page-key="sales-workspace"] .project-stat-info > span {
  background: #e6f7fa;
  color: #009eb0;
}

body[data-page-key="sales-workspace"] .project-stat-success > span {
  background: #eaf7ee;
  color: #2e9f58;
}

body[data-page-key="sales-workspace"] .project-stat-warning > span {
  background: #fff5df;
  color: #e59b18;
}

body[data-page-key="sales-workspace"] .project-stat-neutral > span {
  background: #eef2f6;
  color: #52657c;
}

body[data-page-key="sales-workspace"] .project-stat-purple > span {
  background: #f0e9ff;
  color: #7c3aed;
}

body[data-page-key="sales-workspace"] .project-stat small {
  display: block;
  color: #66758a;
  font-size: 12px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .project-stat strong {
  display: block;
  margin-top: 5px;
  color: #10243e;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .projects-main-card {
  padding: 0 22px 20px;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .project-tabs-row {
  min-height: 54px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-bottom: 1px solid #e6edf3;
}

body[data-page-key="sales-workspace"] .project-tabs {
  min-width: 0;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
}

body[data-page-key="sales-workspace"] .project-tab {
  position: relative;
  min-height: 0;
  border: 0;
  background: transparent;
  color: #34465e;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  padding: 0 0 10px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .project-tab.active {
  color: #075466;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .project-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #009eb0;
}


body[data-page-key="sales-workspace"] .project-toolbar {
  gap: 12px;
  flex: 0 0 auto;
  transform: translateY(-5px);
}

body[data-page-key="sales-workspace"] .project-view-toggle {
  gap: 8px;
}

body[data-page-key="sales-workspace"] .project-view-toggle button {
  width: 40px;
  height: 40px;
  border: 1px solid #cfe3e9;
  border-radius: 11px;
  background: #ffffff;
  color: #5d7288;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(7, 56, 74, 0.06);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

body[data-page-key="sales-workspace"] .project-view-toggle button.active {
  border-color: #17c7b6;
  background: linear-gradient(135deg, #1ac9b8 0%, #00a9b8 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 158, 176, 0.28);
}

body[data-page-key="sales-workspace"] .project-filter-panel {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(160px, 1.1fr) minmax(145px, .9fr) minmax(140px, .9fr) minmax(140px, .9fr) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #e2ebf2;
  border-radius: 12px;
  background: #f8fbfd;
}

body[data-page-key="sales-workspace"] .project-filter-panel.is-rep-filter-hidden {
  grid-template-columns: minmax(160px, 1.1fr) minmax(145px, .9fr) minmax(140px, .9fr) minmax(140px, .9fr) auto;
}

body[data-page-key="sales-workspace"] .project-filter-select {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #66758a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .project-filter-select select,
body[data-page-key="sales-workspace"] .project-filter-select input[type="date"] {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe5ec;
  border-radius: 9px;
  background: #ffffff;
  color: #10243e;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 11px;
}

body[data-page-key="sales-workspace"] .project-filter-select select:focus,
body[data-page-key="sales-workspace"] .project-filter-select input[type="date"]:focus {
  border-color: #009eb0;
  box-shadow: 0 0 0 3px rgba(0, 158, 176, 0.13);
  outline: none;
}

body[data-page-key="sales-workspace"] .project-clear-filters {
  height: 40px;
  border: 1px solid #dbe5ec;
  border-radius: 9px;
  background: #ffffff;
  color: #075466;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 14px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .project-clear-filters:hover,
body[data-page-key="sales-workspace"] .project-clear-filters:focus-visible {
  border-color: #009eb0;
  background: #e6f7fa;
  outline: none;
}

body[data-page-key="sales-workspace"] .project-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-page-key="sales-workspace"] .project-sort-head {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  text-align: left;
}

body[data-page-key="sales-workspace"] .project-sort-head:hover,
body[data-page-key="sales-workspace"] .project-sort-head:focus-visible,
body[data-page-key="sales-workspace"] .project-sort-head.active {
  color: #075466;
  outline: none;
}

body[data-page-key="sales-workspace"] .project-sort-head span {
  color: #009eb0;
  font-size: 11px;
}

body[data-page-key="sales-workspace"] .projects-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

body[data-page-key="sales-workspace"] .projects-table-scroll:focus-visible {
  outline: 3px solid rgba(0, 158, 176, 0.2);
  outline-offset: 3px;
  border-radius: 12px;
}

body[data-page-key="sales-workspace"] .projects-table {
  min-width: 820px;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .projects-table-head,
body[data-page-key="sales-workspace"] .project-table-row {
  display: grid;
  grid-template-columns: 72px minmax(330px, 2.2fr) minmax(230px, 1.35fr) minmax(135px, .75fr) minmax(125px, .65fr) 40px;
  align-items: center;
  gap: 18px;
}

body[data-page-key="sales-workspace"] .projects-table-head {
  min-height: 48px;
  padding: 0 20px;
  background: #f8fbfd;
  color: #52657c;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .project-table-row {
  position: relative;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-top: 1px solid #e7eef5;
  background: #ffffff;
  color: #10243e;
  box-shadow: 0 0 0 rgba(16, 36, 62, 0);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
  font: inherit;
  padding: 0 20px;
  text-align: left;
}

body[data-page-key="sales-workspace"] .project-table-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: color-mix(in srgb, var(--project-type-color, #009eb0) 75%, #ffffff);
}

body[data-page-key="sales-workspace"] .project-table-row:hover,
body[data-page-key="sales-workspace"] .project-table-row:focus-visible,
body[data-page-key="sales-workspace"] .project-table-row.is-payout-focus {
  z-index: 1;
  background: #f8fbfd;
  border-top-color: #cbdce8;
  box-shadow: 0 3px 10px rgba(16, 36, 62, 0.08);
  outline: none;
}

body[data-page-key="sales-workspace"] .project-table-row.is-payout-focus,
body[data-page-key="sales-workspace"] .project-grid-card.is-payout-focus {
  z-index: 4;
  border-color: #05bfc4;
  background: linear-gradient(135deg, #dffafa 0%, #f1ffff 100%);
  box-shadow:
    0 0 0 4px rgba(5, 191, 196, 0.34),
    0 18px 42px rgba(0, 96, 105, 0.22);
  animation: project-calendar-focus-pulse 900ms ease-in-out 3;
  outline: none;
}

body[data-page-key="sales-workspace"] .project-table-row.is-payout-focus::before {
  width: 8px;
  background: #05bfc4;
}

body[data-page-key="sales-workspace"] .project-table-row.is-payout-focus::after,
body[data-page-key="sales-workspace"] .project-grid-card.is-payout-focus::after {
  content: "Opened from Calendar";
  position: absolute;
  top: 7px;
  right: 14px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: #007d84;
  color: #ffffff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

@keyframes project-calendar-focus-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(5, 191, 196, 0.28),
      0 18px 42px rgba(0, 96, 105, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(5, 191, 196, 0.18),
      0 22px 52px rgba(0, 96, 105, 0.3);
  }
}

body[data-page-key="sales-workspace"] .project-client-cell {
  gap: 22px;
  min-width: 0;
}


body[data-page-key="sales-workspace"] .project-client-cell > span:last-child,
body[data-page-key="sales-workspace"] .project-status-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body[data-page-key="sales-workspace"] .project-client-cell strong {
  color: #10243e;
  font-size: 14px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .project-total-cell,
body[data-page-key="sales-workspace"] .project-card-detail strong {
  color: #10243e;
  font-size: 14px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .project-client-cell small,
body[data-page-key="sales-workspace"] .project-status-cell small,
body[data-page-key="sales-workspace"] .project-card-detail small {
  color: #66758a;
  font-size: 12px;
  font-weight: 450;
}

body[data-page-key="sales-workspace"] .project-client-cell small {
  font-weight: 500;
}

body[data-page-key="sales-workspace"] .project-client-rep {
  color: #7a8796;
  font-weight: 400;
}

body[data-page-key="sales-workspace"] .project-client-separator {
  display: inline-block;
  margin: 0 6px;
  color: #9aa9b8;
  font-weight: 500;
}

body[data-page-key="sales-workspace"] .project-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--project-type-color, #009eb0) 13%, #ffffff);
  color: var(--project-type-color, #009eb0);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--project-type-color, #009eb0) 20%, transparent);
  font-size: 13px;
  font-weight: 950;
  flex: 0 0 auto;
}

body[data-page-key="sales-workspace"] .project-avatar.is-product-icon {
  color: var(--project-avatar-icon-color);
  background: var(--project-avatar-icon-bg);
  box-shadow: inset 0 0 0 1px var(--project-avatar-icon-border);
}

body[data-page-key="sales-workspace"] .project-avatar.is-product-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .project-avatar.is-solar {
  --project-avatar-icon-color: #f5a000;
  --project-avatar-icon-bg: #fff8e8;
  --project-avatar-icon-border: #ffd58a;
}

body[data-page-key="sales-workspace"] .project-avatar.is-battery {
  --project-avatar-icon-color: #f97316;
  --project-avatar-icon-bg: #fff4ec;
  --project-avatar-icon-border: #ffc9a8;
}

body[data-page-key="sales-workspace"] .project-avatar.is-hes {
  --project-avatar-icon-color: #047c70;
  --project-avatar-icon-bg: #edf9f7;
  --project-avatar-icon-border: #a9ddd6;
}

body[data-page-key="sales-workspace"] .project-avatar.is-hes img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.appointment-smud-logo-stack {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 960 / 213;
}

.command-home-appointment-smud-logo {
  width: 132px;
}

.calendar-appointment-smud-logo {
  width: 126px;
}

.appointment-smud-logo-stack .command-home-appointment-provider-logo,
.appointment-smud-logo-stack .calendar-provider-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.appointment-smud-logo-stack .appointment-smud-logo-white {
  clip-path: inset(0 0 0 25%);
  filter: brightness(0) invert(1);
}


body[data-page-key="sales-workspace"] .project-status-cell {
  justify-items: start;
}

body[data-page-key="sales-workspace"] .project-type-cell {
  min-width: 0;
  display: flex;
  justify-content: center;
}

body[data-page-key="sales-workspace"] .projects-table-head > :first-child {
  justify-content: center;
  text-align: center;
}

body[data-page-key="sales-workspace"] .projects-table-head > :nth-child(5) {
  width: 100%;
  justify-self: stretch;
  justify-content: flex-end;
  text-align: right;
}

body[data-page-key="sales-workspace"] .project-financing-cell {
  min-width: 0;
}

body[data-page-key="sales-workspace"] .project-financing-badge {
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #eef2f6;
  color: #52657c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .project-financing-badge.is-ppa {
  background: #eaf2ff;
  color: #1463d8;
}

body[data-page-key="sales-workspace"] .project-financing-badge.is-loan-prepaid {
  background: #f1e9ff;
  color: #7c3aed;
}

body[data-page-key="sales-workspace"] .project-financing-badge.is-cash {
  background: #eaf7ee;
  color: #287c4a;
}

body[data-page-key="sales-workspace"] .project-total-cell {
  width: 100%;
  justify-self: stretch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body[data-page-key="sales-workspace"] .project-type-badge,
body[data-page-key="sales-workspace"] .project-status-badge {
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] {
  --ops-status-not-started: #64748b;
  --ops-status-not-started-bg: #f1f5f9;
  --ops-status-in-progress: #147dff;
  --ops-status-in-progress-bg: #eff6ff;
  --ops-status-completed: #25aa67;
  --ops-status-completed-bg: #eaf7ee;
  --ops-status-missing: #f06a21;
  --ops-status-missing-bg: #fff7ed;
  --ops-status-blocked: #d64550;
  --ops-status-blocked-bg: #fff1f2;
}

body[data-page-key="sales-workspace"] .project-type-badge {
  background: rgba(var(--project-type-rgb, 0, 158, 176), 0.11);
  color: var(--project-type-color, #009eb0);
}

body[data-page-key="sales-workspace"] .project-status-badge svg {
  width: 14px;
  height: 14px;
}

body[data-page-key="sales-workspace"] .project-status-badge.is-paid {
  background: #eaf7ee;
  color: #2e9f58;
}

body[data-page-key="sales-workspace"] .project-status-badge.is-unpaid {
  background: #fff5df;
  color: #e59b18;
}

body[data-page-key="sales-workspace"] .project-status-badge.is-checklist-status {
  background: var(--ops-status-not-started-bg);
  color: var(--ops-status-not-started);
}

body[data-page-key="sales-workspace"] .project-status-badge.is-checklist-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page-key="sales-workspace"] .project-status-badge.is-checklist-status em {
  color: currentColor;
  font-style: normal;
  opacity: .55;
}

body[data-page-key="sales-workspace"] .project-status-badge.is-checklist-status svg,
body[data-page-key="sales-workspace"] .project-status-mark {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .project-status-badge.is-completed {
  background: var(--ops-status-completed-bg);
  color: var(--ops-status-completed);
}

body[data-page-key="sales-workspace"] .project-status-badge.is-missing_information {
  background: var(--ops-status-missing-bg);
  color: var(--ops-status-missing);
}

body[data-page-key="sales-workspace"] .project-status-badge.is-blocked {
  background: var(--ops-status-blocked-bg);
  color: var(--ops-status-blocked);
}

body[data-page-key="sales-workspace"] .project-status-badge.is-in_progress {
  background: var(--ops-status-in-progress-bg);
  color: var(--ops-status-in-progress);
}


body[data-page-key="sales-workspace"] .project-chevron {
  color: #52657c;
  justify-self: end;
  transition: transform 160ms ease, color 160ms ease;
}

body[data-page-key="sales-workspace"] .project-table-row:hover .project-chevron,
body[data-page-key="sales-workspace"] .project-table-row:focus-visible .project-chevron {
  color: #075466;
  transform: translateX(4px);
}

body[data-page-key="sales-workspace"] .projects-grid-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body[data-page-key="sales-workspace"] .project-grid-card {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  background: #ffffff;
  color: #10243e;
  cursor: pointer;
  font: inherit;
  padding: 16px;
  text-align: left;
}

body[data-page-key="sales-workspace"] .project-grid-card:hover,
body[data-page-key="sales-workspace"] .project-grid-card:focus-visible,
body[data-page-key="sales-workspace"] .project-grid-card.is-payout-focus {
  border-color: #b7ceda;
  background: #f8fbfd;
  outline: none;
}

body[data-page-key="sales-workspace"] .project-card-meta {
  gap: 8px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .project-card-detail {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .projects-empty-state {
  border: 1px solid #e7eef5;
  border-radius: 12px;
  background: #f8fbfd;
  padding: 18px;
}

body[data-page-key="sales-workspace"] .projects-pagination {
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
}

body[data-page-key="sales-workspace"] .projects-pagination button {
  min-width: 40px;
  height: 40px;
  border: 1px solid #dbe5ec;
  border-radius: 9px;
  background: #ffffff;
  color: #10243e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .projects-pagination button.active {
  border-color: #009eb0;
  background: #009eb0;
  color: #ffffff;
}

body[data-page-key="sales-workspace"] .projects-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (max-width: 1100px) {
  body[data-page-key="sales-workspace"] .projects-hero-card {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page-key="sales-workspace"] .projects-hero-actions,
  body[data-page-key="sales-workspace"] .project-toolbar {
    justify-content: flex-start;
  }

  body[data-page-key="sales-workspace"] .projects-search-field {
    width: 100%;
  }

  body[data-page-key="sales-workspace"] .projects-stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page-key="sales-workspace"] .project-stat:nth-child(odd) {
    border-left: 0;
  }

  body[data-page-key="sales-workspace"] .project-filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .project-date-range {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .projects-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .projects-filter-button {
    width: 100%;
  }

  body[data-page-key="sales-workspace"] .projects-stats-card {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .project-stat {
    border-left: 0;
    border-top: 1px solid #e6edf3;
  }

  body[data-page-key="sales-workspace"] .project-stat:first-child {
    border-top: 0;
  }

  body[data-page-key="sales-workspace"] .project-tabs-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  body[data-page-key="sales-workspace"] .project-toolbar {
    flex-wrap: wrap;
  }

  body[data-page-key="sales-workspace"] .project-filter-panel {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .projects-table-scroll {
    overflow-x: visible;
    padding-bottom: 0;
  }

  body[data-page-key="sales-workspace"] .projects-table {
    min-width: 0;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 12px;
  }

  body[data-page-key="sales-workspace"] .projects-table-head {
    display: none;
  }

  body[data-page-key="sales-workspace"] .project-table-row {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border: 1px solid #e7eef5;
    border-radius: 12px;
    padding: 16px;
  }

  body[data-page-key="sales-workspace"] .project-table-row > span:not(.project-client-cell):not(.project-chevron) {
    display: flex;
    justify-content: space-between;
  }

  body[data-page-key="sales-workspace"] .project-status-cell {
    display: grid;
    align-items: flex-start;
    justify-content: start;
  }

  body[data-page-key="sales-workspace"] .project-total-cell {
    justify-self: stretch;
    text-align: left;
  }

  body[data-page-key="sales-workspace"] .project-chevron {
    position: absolute;
    right: 16px;
    top: 18px;
  }

  body[data-page-key="sales-workspace"] .projects-grid-view {
    grid-template-columns: 1fr;
  }
}


/* Project detail modal redesign */
body[data-page-key="sales-workspace"] .pipeline-status-modal {
  width: min(1400px, calc(100vw - 48px)) !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: transparent !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-modal::backdrop {
  background: rgba(15, 23, 42, 0.58) !important;
  backdrop-filter: blur(6px);
}

body[data-page-key="sales-workspace"] .pipeline-status-shell {
  width: 100% !important;
  max-width: none !important;
  height: min(90vh, 940px) !important;
  max-height: min(90vh, 940px) !important;
  padding: 0 !important;
  border: 1px solid rgba(219, 229, 236, 0.95) !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  box-shadow: 0 30px 80px rgba(16, 36, 62, 0.25) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-head {
  display: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 0 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-card {
  position: relative !important;
  padding: 26px 28px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #dbe5ec !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d6e2eb;
  background: #f8fbfd;
  color: #66758a;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-modal-close:hover {
  color: #10243e;
  border-color: #b8cad8;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .pipeline-project-header-main {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: flex-start !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #17153d;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(23, 21, 61, 0.18);
}

body[data-page-key="sales-workspace"] .pipeline-project-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .pipeline-project-main {
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-topline {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 24px !important;
  align-items: start !important;
  padding-right: 28px;
}

body[data-page-key="sales-workspace"] .pipeline-project-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3 {
  margin: 0;
  color: #101936;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3 strong {
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-project-products {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-utility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 38px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
}

body[data-page-key="sales-workspace"] .pipeline-project-utility img {
  display: block;
  width: auto;
  max-width: 72px;
  height: 20px;
  object-fit: contain;
}

body[data-page-key="sales-workspace"] .pipeline-project-utility.is-pge {
  padding: 1px 5px;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .pipeline-project-utility.is-pge img {
  width: 26px;
  max-width: none;
  height: 26px;
  transform: scale(1.7);
  transform-origin: center;
}

body[data-page-key="sales-workspace"] .pipeline-product-chip,
body[data-page-key="sales-workspace"] .pipeline-project-chip,
body[data-page-key="sales-workspace"] .pipeline-project-products .project-type-badge {
  border-radius: 6px !important;
  border: 1px solid rgba(var(--crm-product-rgb, 249, 115, 22), 0.38) !important;
  background: rgba(var(--crm-product-rgb, 249, 115, 22), 0.09) !important;
  color: var(--crm-product-color, #f06a21) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  padding: 6px 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: #10243e;
  font-size: 14px;
  line-height: 1.45;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #10243e;
  font-weight: 700;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a span {
  color: #147dff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(2px);
}

body[data-page-key="sales-workspace"] .pipeline-project-side {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics {
  min-width: 150px;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  padding: 16px 20px !important;
  text-align: center;
  box-shadow: 0 14px 34px rgba(16, 36, 62, 0.07);
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics strong {
  display: block;
  color: #101936;
  font-size: 27px;
  line-height: 1;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics small {
  display: block;
  margin-top: 8px;
  color: #56667c;
  font-size: 13px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .pipeline-edit-project-button,
body[data-page-key="sales-workspace"] .pipeline-mini-action {
  height: 40px;
  border-radius: 6px;
  border: 1px solid #cbd9e5;
  background: #ffffff;
  color: #10243e;
  font-weight: 800;
  padding: 0 16px;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-edit-project-button:hover,
body[data-page-key="sales-workspace"] .pipeline-mini-action:hover {
  border-color: #8fb0c8;
  box-shadow: 0 8px 18px rgba(16, 36, 62, 0.08);
}

body[data-page-key="sales-workspace"] .pipeline-project-people {
  margin-top: 26px;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto auto !important;
  gap: 14px 32px !important;
  align-items: end !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-person {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-person > span:first-child,
body[data-page-key="sales-workspace"] .pipeline-project-person-label {
  color: #445570 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-person-avatar,
body[data-page-key="sales-workspace"] .pipeline-project-person abbr,
body[data-page-key="sales-workspace"] .profile-initials {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-person strong {
  color: #10243e;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-person select {
  min-width: 150px;
  height: 36px;
  border: 1px solid #d6e2eb;
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .pipeline-stage-rail {
  margin: 24px -28px 0 !important;
  padding: 28px 50px 8px !important;
  border-top: 1px solid #dbe5ec !important;
  overflow-x: auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-track {
  min-width: 1080px;
  display: grid !important;
  grid-template-columns: repeat(11, minmax(82px, 1fr)) !important;
  align-items: start !important;
  position: relative;
}

body[data-page-key="sales-workspace"] .pipeline-stage-track::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 12px;
  height: 2px;
  background: #cbd9e5;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node {
  position: relative;
  z-index: 1;
  display: grid !important;
  justify-items: center !important;
  gap: 11px !important;
  color: #10243e;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

body[data-page-key="sales-workspace"] .pipeline-stage-dot {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  border: 3px solid #cfdbe6 !important;
  background: #e8eef4 !important;
  box-shadow: 0 0 0 3px #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-complete .pipeline-stage-dot {
  border-color: var(--ops-status-completed) !important;
  background: var(--ops-status-completed) !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-active .pipeline-stage-dot {
  border-color: #147dff !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px #dbeafe !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-complete .pipeline-stage-dot::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  display: block;
  margin: 6px auto 0;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node b {
  max-width: 105px;
  color: inherit;
}

body[data-page-key="sales-workspace"] .pipeline-summary-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card {
  min-height: 66px;
  border: 1px solid #e0e9f1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 36, 62, 0.04);
  padding: 12px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-summary-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef6ff;
  color: #147dff;
  font-size: 12px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card.is-green .pipeline-summary-icon { background: #eaf7ee; color: #2e9f58; }
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-teal .pipeline-summary-icon { background: rgba(20, 184, 166, 0.11); color: #14b8a6; }
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-blue .pipeline-summary-icon { background: rgba(59, 130, 246, 0.11); color: #3b82f6; }
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-orange .pipeline-summary-icon { background: rgba(249, 115, 22, 0.11); color: #f97316; }
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-yellow .pipeline-summary-icon { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-slate .pipeline-summary-icon { background: rgba(71, 85, 105, 0.1); color: #475569; }
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-purple .pipeline-summary-icon { background: #f1e9ff; color: #7c3aed; }

body[data-page-key="sales-workspace"] .pipeline-summary-card small {
  display: block;
  color: #334662;
  font-size: 11px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card strong {
  display: block;
  margin-top: 3px;
  color: #10243e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body[data-page-key="sales-workspace"] .pipeline-project-finance {
  margin-top: 18px;
  border-top: 1px solid #e5edf4;
  padding-top: 14px;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr) !important;
  gap: 18px !important;
  padding: 16px 18px 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  min-height: 0 !important;
  border: 1px solid #dbe5ec !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(16, 36, 62, 0.04) !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor {
  padding: 0 !important;
  overflow-y: auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-checklist {
  padding: 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-checklist h4,
body[data-page-key="sales-workspace"] .pipeline-update-panel h3 {
  color: #10243e !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-header,
body[data-page-key="sales-workspace"] .pipeline-check-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 158px !important;
  gap: 14px !important;
  align-items: center !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-header {
  color: #52647d !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid #e6edf3 !important;
  padding: 0 0 9px !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row {
  min-height: 44px !important;
  border-bottom: 1px solid #e6edf3 !important;
  padding: 8px 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  border: 1.5px solid #cbd9e5 !important;
  background: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-indicator {
  border-color: #2e9f58 !important;
  background: #2e9f58 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-indicator::after { content: "?"; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator { border-color: #f06a21 !important; color: #f06a21; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator::after { content: "!"; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator { border-color: #d64550 !important; color: #d64550; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator::after { content: "x"; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-indicator { border-color: #147dff !important; color: #147dff; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-indicator::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #147dff; }

body[data-page-key="sales-workspace"] .pipeline-check-status select {
  width: 100% !important;
  height: 34px !important;
  border-radius: 6px !important;
  border: 1px solid #d6e2eb !important;
  background-color: #ffffff !important;
  color: #10243e !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 0 28px 0 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-status select { color: #16834b !important; background: #f4fbf6 !important; border-color: #bee7cf !important; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-status select { color: #f06a21 !important; background: #fff7ed !important; border-color: #ffc7a8 !important; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-status select { color: #1463d8 !important; background: #eff6ff !important; border-color: #bfdbfe !important; }
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-status select { color: #d64550 !important; background: #fff1f2 !important; border-color: #fecdd3 !important; }

body[data-page-key="sales-workspace"] .pipeline-update-panel {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel > header {
  flex: 0 0 auto;
  padding: 18px 18px 12px !important;
  border-bottom: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer {
  flex: 0 0 auto;
  margin: 0 18px 12px !important;
  border: 1px solid #ffe7a8 !important;
  border-radius: 8px !important;
  background: #fff4cf !important;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor {
  min-height: 74px !important;
  padding: 14px 14px 6px !important;
  color: #10243e !important;
  outline: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #8793a5;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 8px 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #637995;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #10243e;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar .pipeline-rich-send {
  margin-left: auto;
  min-width: 46px;
  background: #12bfb3 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 18px rgba(18, 191, 179, 0.24);
}

body[data-page-key="sales-workspace"] .pipeline-update-search-row {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 140px !important;
  gap: 10px !important;
  padding: 0 18px 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search,
body[data-page-key="sales-workspace"] .pipeline-update-filter select {
  height: 38px !important;
  border: 1px solid #dbe5ec !important;
  border-radius: 7px !important;
  background: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search {
  display: flex;
  align-items: center;
  padding: 0 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-weight: 600;
}

body[data-page-key="sales-workspace"] .pipeline-update-search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #6f83a0;
  stroke-width: 2;
}

body[data-page-key="sales-workspace"] .pipeline-update-filter select {
  width: 100%;
  padding: 0 10px;
  color: #334662;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .pipeline-update-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 0 18px 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border: 1px solid #e0e9f1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-card {
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e6edf3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  padding: 14px 14px 14px 52px !important;
  position: relative;
}

body[data-page-key="sales-workspace"] .pipeline-update-card:last-child {
  border-bottom: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-avatar {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-meta {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  color: #66758a !important;
  font-size: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-meta strong {
  color: #10243e !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-body {
  margin-top: 7px !important;
  color: #10243e !important;
  font-size: 13px !important;
  line-height: 1.48 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 4px;
}

body[data-page-key="sales-workspace"] .pipeline-update-actions button {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #66758a;
}

body[data-page-key="sales-workspace"] .pipeline-update-empty {
  border: 1px dashed #c7d8e7;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #66758a;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-status-feedback {
  position: absolute;
  left: 24px;
  bottom: 10px;
  margin: 0 !important;
}

@media (max-width: 1180px) {
  body[data-page-key="sales-workspace"] .pipeline-project-topline,
  body[data-page-key="sales-workspace"] .pipeline-status-layout {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-status-body {
    overflow-y: auto !important;
    grid-template-rows: auto auto !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-status-editor,
  body[data-page-key="sales-workspace"] .pipeline-update-panel {
    max-height: 520px;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .pipeline-status-modal {
    width: calc(100vw - 18px) !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-card {
    padding: 20px 16px 14px !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-header-main,
  body[data-page-key="sales-workspace"] .pipeline-project-people,
  body[data-page-key="sales-workspace"] .pipeline-update-search-row {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-icon {
    display: none;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* Project detail modal mid-size refinements */
@media (min-width: 1181px) and (max-width: 1320px) {
  body[data-page-key="sales-workspace"] .pipeline-project-card {
    padding: 24px 28px 14px !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-topline {
    display: block !important;
    padding-right: 330px !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-side {
    position: absolute;
    top: 34px;
    right: 56px;
    align-items: flex-start;
    padding-top: 0;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-title h3 {
    font-size: 24px;
    max-width: 100%;
  }

  body[data-page-key="sales-workspace"] .pipeline-project-people {
    margin-top: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto !important;
    gap: 12px 24px !important;
    padding-right: 0;
  }

  body[data-page-key="sales-workspace"] .pipeline-stage-rail {
    margin-top: 24px !important;
    padding: 26px 30px 6px !important;
    overflow-x: hidden !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-stage-track {
    min-width: 0 !important;
    width: 100%;
    grid-template-columns: repeat(11, minmax(0, 1fr)) !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-stage-node {
    font-size: 11px;
  }

  body[data-page-key="sales-workspace"] .pipeline-stage-node b {
    max-width: 92px;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-card {
    min-height: 58px;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-card strong {
    overflow-wrap: normal;
    word-break: normal;
  }
}


/* Project detail modal old-layout reset */
body[data-page-key="sales-workspace"] .pipeline-project-card {
  display: block !important;
}

/* Dense Projects workspace modal refinement */
body[data-page-key="sales-workspace"] .pipeline-status-shell {
  height: min(88vh, 900px) !important;
  max-height: min(88vh, 900px) !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto 104px auto !important;
  gap: 0 !important;
  padding: 18px 28px 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-card > * {
  min-width: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-modal-close {
  top: 16px !important;
  right: 18px !important;
  border: 0 !important;
  background: transparent !important;
  color: #13213a !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-header-main {
  grid-template-columns: 50px minmax(0, 1fr) !important;
  gap: 16px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-icon {
  width: 50px !important;
  height: 50px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-topline {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: start !important;
  padding-right: 54px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-title h3 {
  font-size: 22px !important;
  line-height: 1.1 !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta {
  margin-top: 8px !important;
  gap: 8px 14px !important;
  font-size: 13px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-side {
  padding-top: 0 !important;
  gap: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics {
  min-width: 138px !important;
  padding: 12px 16px !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics strong {
  font-size: 24px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics small {
  margin-top: 5px !important;
  font-size: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-edit-project-button,
body[data-page-key="sales-workspace"] .pipeline-mini-action {
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-people {
  margin-top: 12px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-people::before {
  content: "";
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-person {
  gap: 7px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-person + .pipeline-project-person::before,
body[data-page-key="sales-workspace"] .pipeline-assignment-save::before {
  content: "\00b7";
  margin-right: 10px;
  color: #7b8ca3;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-project-person > span:first-child {
  font-size: 12px !important;
  color: #334662 !important;
  text-transform: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-person abbr {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-person strong {
  font-size: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-person select {
  height: 32px !important;
  min-width: 136px !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-rail {
  margin: 16px -28px 0 !important;
  padding: 18px 44px 4px !important;
  min-height: 94px !important;
  max-height: 108px !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-track {
  min-width: 1030px !important;
  grid-template-columns: repeat(11, minmax(78px, 1fr)) !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-track::before {
  top: 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node {
  gap: 8px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-dot {
  width: 21px !important;
  height: 21px !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node b {
  max-width: 92px !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-grid {
  margin-top: 14px !important;
  gap: 0 !important;
  grid-template-columns: repeat(var(--pipeline-summary-count, 8), minmax(112px, 1fr)) !important;
  border: 1px solid #dfe8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card {
  min-height: 58px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  border-right: 1px solid #e5edf4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card:nth-child(8n) {
  border-right: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-icon {
  width: 31px !important;
  height: 31px !important;
  font-size: 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card small {
  font-size: 10px !important;
  color: #52647d !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card strong {
  font-size: 12px !important;
  line-height: 1.18 !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card.is-commission strong {
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card.is-commission {
  position: relative;
  padding-right: 42px !important;
}

body[data-page-key="sales-workspace"] .pipeline-commission-edit {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d4e0ed;
  border-radius: 50%;
  background: #ffffff;
  color: #17304f;
  transform: translateY(-50%);
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-commission-edit:hover,
body[data-page-key="sales-workspace"] .pipeline-commission-edit:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-commission-edit.is-open {
  border-color: #8bb8e8;
  background: #eef6ff;
  color: #0b66d4;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-commission-edit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover {
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  visibility: hidden;
  width: min(430px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 36, 62, 0.24);
  color: #10243e;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-head,
body[data-page-key="sales-workspace"] .pipeline-commission-popover-head > div,
body[data-page-key="sales-workspace"] .pipeline-commission-popover-actions {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-head > div {
  min-width: 0;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-head strong {
  font-size: 15px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-head span {
  color: #008f98;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-head > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: #ffffff;
  color: #52647d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-list {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 6px;
  padding: 5px;
  border: 1px solid #cfe1e7;
  border-radius: 7px;
  background: #f7fbfc;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-row input {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #ffffff;
  color: #18344a;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-row input[data-commission-payout-amount] {
  background: #e8f8f7;
  color: #007d84;
  text-align: right;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-row input:focus {
  border-color: #147dff;
  outline: 2px solid rgba(20, 125, 255, 0.14);
  outline-offset: 0;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-actions .pipeline-mini-action {
  height: 36px;
  padding: 0 14px;
}

@media (max-width: 520px) {
  body[data-page-key="sales-workspace"] .pipeline-commission-popover-head > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  body[data-page-key="sales-workspace"] .pipeline-commission-payout-row {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="sales-workspace"] .pipeline-status-layout {
  grid-template-columns: minmax(360px, 0.4fr) minmax(520px, 0.6fr) !important;
  gap: 14px !important;
  padding: 14px 18px 16px !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-editor,
body[data-page-key="sales-workspace"] .pipeline-update-panel {
  border: 1px solid #e3ebf2 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-checklist {
  padding: 14px 16px !important;
}

body[data-page-key="sales-workspace"] .pipeline-checklist h4,
body[data-page-key="sales-workspace"] .pipeline-update-panel h3 {
  font-size: 16px !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row {
  min-height: 42px !important;
  padding: 7px 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-actions {
  padding: 0 16px 14px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head {
  padding: 15px 16px 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer {
  margin: 0 16px 10px !important;
  border-color: #f4d996 !important;
  background: #fff7dc !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor {
  min-height: 45px !important;
  padding: 10px 12px 2px !important;
  font-size: 13px !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar {
  padding: 6px 8px !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button {
  min-width: 27px !important;
  height: 27px !important;
  font-size: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar .pipeline-rich-send {
  min-width: 44px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search-row {
  grid-template-columns: minmax(0, 1fr) 132px !important;
  padding: 0 16px 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-search,
body[data-page-key="sales-workspace"] .pipeline-update-filter select {
  height: 34px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-scroll {
  padding: 0 16px 14px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-list {
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-item {
  position: relative !important;
  margin: 0 !important;
  padding: 12px 72px 12px 43px !important;
  border: 0 !important;
  border-bottom: 1px solid #e6edf3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-item:last-child {
  border-bottom: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-item.is-pinned {
  background: #fffaf0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-head {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-author {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-avatar {
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  width: 29px !important;
  height: 29px !important;
  border-radius: 999px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-head strong {
  font-size: 13px !important;
  font-weight: 850 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-head time {
  font-size: 12px !important;
  color: #78879a !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-tags {
  margin-top: 6px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-body {
  margin-top: 5px !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-actions {
  right: 0 !important;
  top: 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-action {
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  background: transparent !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-action[data-edit-update],
body[data-page-key="sales-workspace"] .pipeline-update-action[data-delete-update] {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 7px !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-action[data-edit-update] {
  margin-left: 3px !important;
  border-left: 1px solid #d9e4ec !important;
  border-radius: 0 6px 6px 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-reaction-summary {
  margin-top: 8px !important;
}

@media (max-width: 1180px) {
  body[data-page-key="sales-workspace"] .pipeline-project-card {
    grid-template-rows: auto auto auto !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr)) !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-summary-card:nth-child(4n) {
    border-right: 0 !important;
  }
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #13213a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(2px);
}

body[data-page-key="sales-workspace"] .pipeline-update-filter .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .pipeline-project-people {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-people-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-people-slot.is-project-action {
  justify-content: center;
}

body[data-page-key="sales-workspace"] .pipeline-project-people-slot.is-project-manager {
  justify-content: flex-end;
}

body[data-page-key="sales-workspace"] .pipeline-project-person + .pipeline-project-person::before,
body[data-page-key="sales-workspace"] .pipeline-assignment-save::before {
  content: none !important;
  display: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics {
  min-width: 112px !important;
  padding: 10px 14px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics small {
  display: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-title-row {
  align-items: baseline !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta {
  display: flex !important;
  width: 100% !important;
  margin-top: 3px !important;
  padding-left: 0 !important;
  gap: 8px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta a {
  flex: 0 1 auto !important;
  width: fit-content !important;
  max-width: 100% !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact {
  position: relative;
  flex: 0 0 auto;
}

body[data-page-key="sales-workspace"] .pipeline-project-quick-edit {
  position: relative;
  flex: 0 0 auto;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact > button,
body[data-page-key="sales-workspace"] .pipeline-project-quick-edit > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid #d4e0ed;
  border-radius: 50%;
  background: #ffffff;
  color: #17304f;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact > button:hover,
body[data-page-key="sales-workspace"] .pipeline-project-contact > button:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-project-contact.is-open > button,
body[data-page-key="sales-workspace"] .pipeline-project-quick-edit > button:hover,
body[data-page-key="sales-workspace"] .pipeline-project-quick-edit > button:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-project-quick-edit.is-open > button {
  border-color: #8bb8e8;
  background: #eef6ff;
  color: #0b66d4;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill.has-upload > button {
  border-color: #9ddbdc;
  color: #00888d;
  background: #f1fbfb;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill.has-upload > button:hover,
body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill.has-upload > button:focus-visible {
  border-color: #00aeb4;
  color: #00757a;
  background: #e5f8f8;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill .pipeline-project-contact-popover {
  left: 50%;
  min-width: max-content;
  padding: 7px 9px;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact > button svg,
body[data-page-key="sales-workspace"] .pipeline-project-quick-edit > button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-popover {
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  visibility: hidden;
  width: min(430px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 36, 62, 0.24);
  color: #10243e;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-head,
body[data-page-key="sales-workspace"] .pipeline-project-edit-actions {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-head strong {
  font-size: 15px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: #ffffff;
  color: #52647d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid label.is-wide {
  grid-column: 1 / -1;
}

body[data-page-key="sales-workspace"] .pipeline-quick-edit-products {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-page-key="sales-workspace"] .pipeline-quick-edit-products legend {
  margin-bottom: 6px;
  padding: 0;
  color: #52647d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

body[data-page-key="sales-workspace"] .pipeline-quick-edit-products > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid .pipeline-quick-edit-products label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 6px;
  border: 1px solid #cfddea;
  border-radius: 6px;
  color: #52647d;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid .pipeline-quick-edit-products label:has(input:checked) {
  border-color: #7cb4ef;
  background: #eef6ff;
  color: #0b66d4;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid .pipeline-quick-edit-products input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  accent-color: #147dff;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid .pipeline-quick-edit-products span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta .pipeline-project-edit-grid label > span {
  display: block;
  min-height: 0;
  max-width: none;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #52647d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  overflow: visible;
  white-space: normal;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid input,
body[data-page-key="sales-workspace"] .pipeline-project-edit-grid select {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid #cfddea;
  border-radius: 6px;
  background: #ffffff;
  color: #10243e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-grid input:focus,
body[data-page-key="sales-workspace"] .pipeline-project-edit-grid select:focus {
  border-color: #147dff;
  outline: 2px solid rgba(20, 125, 255, 0.14);
  outline-offset: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-edit-actions .pipeline-mini-action {
  height: 36px;
  padding: 0 14px;
}

@media (max-width: 560px) {
  body[data-page-key="sales-workspace"] .pipeline-project-edit-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .pipeline-quick-edit-products > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-page-key="sales-workspace"] .pipeline-project-contact-popover {
  position: absolute;
  z-index: 12;
  top: calc(100% + 7px);
  left: 50%;
  min-width: max-content;
  max-width: min(320px, calc(100vw - 40px));
  padding: 9px 11px;
  border: 1px solid #d4e0ed;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 35, 60, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact-popover small {
  display: block;
  margin-bottom: 2px;
  color: #61738a;
  font-size: 11px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-project-inline-meta .pipeline-project-contact-popover a,
body[data-page-key="sales-workspace"] .pipeline-project-contact-popover strong {
  display: block;
  width: auto !important;
  color: #10243e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact:hover .pipeline-project-contact-popover,
body[data-page-key="sales-workspace"] .pipeline-project-contact:focus-within .pipeline-project-contact-popover,
body[data-page-key="sales-workspace"] .pipeline-project-contact.is-open .pipeline-project-contact-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill .pipeline-bill-menu {
  min-width: 146px;
  padding: 6px;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill .pipeline-bill-menu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill .pipeline-bill-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  color: #10243e;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill .pipeline-bill-menu button:hover,
body[data-page-key="sales-workspace"] .pipeline-project-contact.is-uploaded-bill .pipeline-bill-menu button:focus-visible {
  color: #006f74;
  background: #e9f8f8;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-address .pipeline-project-contact-popover {
  left: 0;
  transform: translate(0, -4px);
}

body[data-page-key="sales-workspace"] .pipeline-project-contact.is-address:hover .pipeline-project-contact-popover,
body[data-page-key="sales-workspace"] .pipeline-project-contact.is-address:focus-within .pipeline-project-contact-popover,
body[data-page-key="sales-workspace"] .pipeline-project-contact.is-address.is-open .pipeline-project-contact-popover {
  transform: translate(0, 0);
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .pipeline-project-contact-popover {
    left: 0;
    transform: translate(0, -4px);
  }

  body[data-page-key="sales-workspace"] .pipeline-project-contact:hover .pipeline-project-contact-popover,
  body[data-page-key="sales-workspace"] .pipeline-project-contact:focus-within .pipeline-project-contact-popover,
  body[data-page-key="sales-workspace"] .pipeline-project-contact.is-open .pipeline-project-contact-popover {
    transform: translate(0, 0);
  }
}

/* Project detail modal checklist and composer polish */
body[data-page-key="sales-workspace"] .pipeline-checklist-panel {
  padding: 18px 20px !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-header,
body[data-page-key="sales-workspace"] .pipeline-check-row {
  grid-template-columns: minmax(0, 1fr) 172px !important;
  gap: 18px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-header {
  padding-bottom: 10px !important;
  border-bottom: 0 !important;
  position: relative !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-header::after,
body[data-page-key="sales-workspace"] .pipeline-check-row::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 1px;
  background: #e6edf3;
}

body[data-page-key="sales-workspace"] .pipeline-check-row:last-child::after {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-check-list {
  padding: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row {
  min-height: 45px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 0 !important;
  position: relative !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-main {
  gap: 11px !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-main strong {
  font-size: 13px !important;
  line-height: 1.25 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-status select {
  height: 32px !important;
  border-radius: 7px !important;
  padding-right: 24px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer {
  margin: 0 16px 12px !important;
  border: 1px solid #f2d287 !important;
  border-radius: 8px !important;
  background: #fff6d8 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor {
  min-height: 58px !important;
  padding: 13px 14px 4px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 9px 9px !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button {
  min-width: 24px !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 5px !important;
  color: #203a5b !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:hover,
body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:focus-visible {
  background: rgba(255, 255, 255, 0.78) !important;
  color: #08213d !important;
  outline: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar .pipeline-rich-send {
  width: auto !important;
  min-width: 48px !important;
  height: 28px !important;
  margin-left: auto !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  background: #12bfb3 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

/* Match Adders panel spacing to Checklist */
body[data-page-key="sales-workspace"] .pipeline-adders-panel {
  padding: 18px 20px !important;
}

body[data-page-key="sales-workspace"] .pipeline-adders-panel .pipeline-section-head,
body[data-page-key="sales-workspace"] .pipeline-adder-create,
body[data-page-key="sales-workspace"] .pipeline-adder-list,
body[data-page-key="sales-workspace"] .pipeline-adder-actions {
  margin-left: 12px !important;
  margin-right: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-adder-create {
  grid-template-columns: minmax(0, 1fr) 64px !important;
  gap: 8px !important;
}

body[data-page-key="sales-workspace"] .pipeline-adder-list {
  width: auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-adder-actions {
  margin-top: 16px !important;
}

/* Center project timeline checkmarks */
body[data-page-key="sales-workspace"] .pipeline-stage-dot {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-complete .pipeline-stage-dot::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -60%) rotate(-45deg) !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-status-missing_information .pipeline-stage-dot {
  border-color: var(--ops-status-missing) !important;
  background: var(--ops-status-missing-bg) !important;
  color: var(--ops-status-missing) !important;
  box-shadow: 0 0 0 4px #fff1e8 !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-status-missing_information .pipeline-stage-dot::after {
  content: "!" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  color: var(--ops-status-missing) !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-0.5px) !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-status-in_progress:not(.is-complete) .pipeline-stage-dot {
  border-color: var(--ops-status-in-progress) !important;
  background: #ffffff !important;
  color: var(--ops-status-in-progress) !important;
  box-shadow: 0 0 0 4px #dbeafe !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-status-in_progress:not(.is-complete) .pipeline-stage-dot svg {
  width: 13px !important;
  height: 13px !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 2.3 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-status-blocked:not(.is-complete) .pipeline-stage-dot {
  border-color: var(--ops-status-blocked) !important;
  background: var(--ops-status-blocked-bg) !important;
  color: var(--ops-status-blocked) !important;
  box-shadow: 0 0 0 4px #ffe4e6 !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node.is-status-blocked:not(.is-complete) .pipeline-stage-dot::after {
  content: "\00d7" !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  color: var(--ops-status-blocked) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  transform: translateY(-1px) !important;
}

/* Center checklist status marks */
body[data-page-key="sales-workspace"] .pipeline-check-indicator {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator::after {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  margin: 0 !important;
  line-height: 1 !important;
  transform: translate(-50%, -50%) !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-indicator::after {
  content: "\2713" !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator::after,
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator::after {
  font-size: 12px !important;
  font-weight: 900 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-indicator::after {
  transform: translate(-50%, -50%) !important;
}

/* Center project list controls */
body[data-page-key="sales-workspace"] .project-view-toggle button,
body[data-page-key="sales-workspace"] .project-chevron {
  display: inline-grid !important;
  place-items: center !important;
  line-height: 1 !important;
}

body[data-page-key="sales-workspace"] .project-view-toggle button svg,
body[data-page-key="sales-workspace"] .project-chevron svg {
  display: block !important;
  margin: 0 !important;
}

body[data-page-key="sales-workspace"] .project-chevron {
  align-self: center !important;
  justify-self: center !important;
  width: 24px !important;
  height: 24px !important;
}

/* Match active pagination teal to project view toggle */
body[data-page-key="sales-workspace"] .projects-pagination button.active {
  border-color: #17c7b6 !important;
  background: linear-gradient(135deg, #1ac9b8 0%, #00a9b8 100%) !important;
  box-shadow: 0 10px 24px rgba(0, 158, 176, 0.28) !important;
}

/* Modernize project activity composer and emoji picker */
body[data-page-key="sales-workspace"] .pipeline-update-composer {
  position: relative !important;
  margin: 0 16px 12px !important;
  border: 1px solid #d7e4ef !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05) !important;
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor {
  min-height: 64px !important;
  padding: 14px 16px 6px !important;
  color: #08213d !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-editor:focus-visible {
  outline: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer:focus-within {
  border-color: #91d8d2 !important;
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12), 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 10px 10px !important;
  border-top: 1px solid #eef4f8 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #425a74 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:hover,
body[data-page-key="sales-workspace"] .pipeline-rich-toolbar button:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-update-composer.is-emoji-open [data-toggle-composer-emoji] {
  border-color: #cfe0ea !important;
  background: #f5fafc !important;
  color: #08213d !important;
  outline: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar .pipeline-rich-send {
  width: auto !important;
  min-width: 52px !important;
  height: 30px !important;
  margin-left: auto !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #12bfb3 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(18, 191, 179, 0.22) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

body[data-page-key="sales-workspace"] .pipeline-rich-toolbar .pipeline-rich-send:hover,
body[data-page-key="sales-workspace"] .pipeline-rich-toolbar .pipeline-rich-send:focus-visible {
  background: #0e9e8e !important;
  color: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form {
  gap: 10px !important;
  border-left-color: rgba(18, 191, 179, 0.28) !important;
  padding-left: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form textarea {
  min-height: 76px !important;
  padding: 10px 12px !important;
  border: 1px solid #cfe0ea !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #08213d !important;
  font: inherit !important;
  line-height: 1.45 !important;
  resize: vertical !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form textarea:focus {
  border-color: #12bfb3 !important;
  outline: 3px solid rgba(18, 191, 179, 0.14) !important;
  outline-offset: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form > div {
  gap: 8px !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link {
  min-width: 52px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link.primary {
  border: 0 !important;
  background: #12bfb3 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(18, 191, 179, 0.22) !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link.primary:hover,
body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link.primary:focus-visible {
  background: #0e9e8e !important;
  color: #ffffff !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link.secondary {
  border: 1px solid #cfe0ea !important;
  background: #ffffff !important;
  color: #425672 !important;
}

body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link.secondary:hover,
body[data-page-key="sales-workspace"] .pipeline-reply-form .resource-link.secondary:focus-visible {
  border-color: #9fc6c2 !important;
  background: #f2fbfa !important;
  color: #0e756c !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
  position: absolute !important;
  left: 188px !important;
  bottom: 48px !important;
  z-index: 20 !important;
  width: min(340px, calc(100% - 28px)) !important;
  max-height: 336px !important;
  display: none !important;
  border: 1px solid #d7e4ef !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.18) !important;
  padding: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer.is-emoji-open .pipeline-composer-emoji-popover {
  display: grid !important;
  gap: 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search input {
  width: 100% !important;
  height: 38px !important;
  border: 1px solid #d8e4ec !important;
  border-radius: 10px !important;
  background: #f8fbfd !important;
  color: #08213d !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 0 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search input:focus {
  border-color: #12bfb3 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(18, 191, 179, 0.12) !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll {
  max-height: 258px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll section {
  display: grid !important;
  gap: 7px !important;
  margin-bottom: 12px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll h4 {
  margin: 0 !important;
  color: #52657c !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr) !important;
  gap: 5px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: #f8fbfd !important;
  cursor: pointer !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button:hover,
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button:focus-visible {
  border-color: #bfe8e4 !important;
  background: #e9fbf8 !important;
  outline: none !important;
  transform: translateY(-1px) !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-empty {
  margin: 10px 0 2px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
}
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button[hidden],
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll section[hidden],
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-empty[hidden] {
  display: none !important;
}
/* Restore crisp checklist status icons */
body[data-page-key="sales-workspace"] .pipeline-check-indicator {
  position: relative !important;
  box-sizing: border-box !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  display: inline-grid !important;
  place-items: center !important;
  overflow: visible !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator::after {
  box-sizing: border-box !important;
  display: block !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-indicator svg {
  display: none !important;
  width: 12px !important;
  height: 12px !important;
  overflow: visible !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-indicator svg,
body[data-page-key="sales-workspace"] .pipeline-adder-row.is-complete .pipeline-check-indicator svg {
  display: block !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-completed .pipeline-check-indicator::after,
body[data-page-key="sales-workspace"] .pipeline-adder-row.is-complete .pipeline-check-indicator::after {
  content: none !important;
  display: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-missing_information .pipeline-check-indicator::after,
body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-blocked .pipeline-check-indicator::after {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  transform: translateY(-0.5px) !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-indicator::after {
  position: static !important;
  width: 8px !important;
  height: 8px !important;
  transform: none !important;
}
/* Make the composer emoji picker roomier and remove nested scroll wonk */
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
  left: 98px !important;
  right: auto !important;
  bottom: 46px !important;
  width: min(456px, calc(100% - 32px)) !important;
  max-height: 430px !important;
  border-radius: 16px !important;
  padding: 12px !important;
  overflow: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll {
  max-height: 340px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px 4px 2px 0 !important;
  scrollbar-width: thin !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid {
  grid-template-columns: repeat(10, 36px) !important;
  justify-content: start !important;
  gap: 6px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 19px !important;
  line-height: 1 !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search {
  display: block !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search input {
  box-sizing: border-box !important;
  margin: 0 !important;
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
    left: 10px !important;
    width: calc(100% - 20px) !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid {
    grid-template-columns: repeat(8, 36px) !important;
  }
}
/* Let emoji picker breathe beyond the composer column */
body[data-page-key="sales-workspace"] .pipeline-update-panel,
body[data-page-key="sales-workspace"] .pipeline-update-scroll {
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
  left: 0 !important;
  bottom: 46px !important;
  width: clamp(520px, 62vw, 720px) !important;
  max-width: calc(100vw - 96px) !important;
  max-height: min(560px, calc(100vh - 220px)) !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll {
  max-height: min(456px, calc(100vh - 330px)) !important;
  overflow-x: hidden !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid {
  grid-template-columns: repeat(auto-fill, minmax(38px, 38px)) !important;
  gap: 7px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  font-size: 20px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll section {
  margin-bottom: 16px !important;
}

@media (max-width: 820px) {
  body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
    left: 0 !important;
    width: min(520px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
  }
}
/* Phone-style emoji keyboard tray */
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 34px !important;
  transform: translateX(-50%) !important;
  width: min(760px, calc(100vw - 56px)) !important;
  max-width: calc(100vw - 56px) !important;
  height: min(520px, calc(100vh - 118px)) !important;
  max-height: min(520px, calc(100vh - 118px)) !important;
  z-index: 9999 !important;
  display: none !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(203, 217, 229, 0.92) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 80px rgba(8, 33, 61, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.78) inset !important;
  overflow: hidden !important;
  backdrop-filter: blur(18px) !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-composer.is-emoji-open .pipeline-composer-emoji-popover {
  display: grid !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover::before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  left: 50% !important;
  width: 48px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #cbd9e5 !important;
  transform: translateX(-50%) !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search {
  display: block !important;
  padding-top: 10px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search input {
  height: 44px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #edf3f8 !important;
  box-shadow: inset 0 0 0 1px rgba(203, 217, 229, 0.72) !important;
  color: #08213d !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  padding: 0 16px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search input::placeholder {
  color: #718298 !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll {
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 4px 10px 0 !important;
  scrollbar-color: #b9c9d8 transparent !important;
  scrollbar-width: thin !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll section {
  gap: 10px !important;
  margin: 0 0 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-scroll h4 {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 7px 2px 5px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 70%, rgba(255,255,255,0)) !important;
  color: #52657c !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(44px, 44px)) !important;
  gap: 8px !important;
  justify-content: start !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #f5f8fb !important;
  box-shadow: inset 0 0 0 1px rgba(216, 228, 236, 0.72) !important;
  color: #08213d !important;
  font-size: 24px !important;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button:hover,
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button:focus-visible {
  background: #e9fbf8 !important;
  box-shadow: inset 0 0 0 1px #aee5df, 0 8px 18px rgba(18, 191, 179, 0.16) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

body[data-page-key="sales-workspace"] .pipeline-composer-emoji-empty {
  align-self: center !important;
  padding: 32px !important;
  border-radius: 18px !important;
  background: #f8fbfd !important;
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .pipeline-composer-emoji-popover {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    height: min(520px, calc(100vh - 34px)) !important;
    transform: none !important;
    border-radius: 24px !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(42px, 42px)) !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-composer-emoji-grid button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    font-size: 23px !important;
  }
}
body[data-page-key="sales-workspace"] .pipeline-composer-emoji-search .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* Phone-style emoji tray for activity reactions */
body[data-page-key="sales-workspace"] .pipeline-emoji-picker {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 34px !important;
  transform: translateX(-50%) !important;
  width: min(760px, calc(100vw - 56px)) !important;
  max-width: calc(100vw - 56px) !important;
  height: min(520px, calc(100vh - 118px)) !important;
  max-height: min(520px, calc(100vh - 118px)) !important;
  z-index: 10000 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(203, 217, 229, 0.92) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 28px 80px rgba(8, 33, 61, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.78) inset !important;
  overflow: hidden !important;
  backdrop-filter: blur(18px) !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-picker::before {
  content: "" !important;
  position: absolute !important;
  top: 8px !important;
  left: 50% !important;
  width: 48px !important;
  height: 5px !important;
  border-radius: 999px !important;
  background: #cbd9e5 !important;
  transform: translateX(-50%) !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-picker input {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin-top: 10px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #edf3f8 !important;
  box-shadow: inset 0 0 0 1px rgba(203, 217, 229, 0.72) !important;
  color: #08213d !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  padding: 0 16px !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-picker input::placeholder {
  color: #718298 !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid-shell {
  min-height: 0 !important;
  max-height: none !important;
  height: 100% !important;
  display: grid !important;
  gap: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 4px 10px 0 !important;
  scrollbar-color: #b9c9d8 transparent !important;
  scrollbar-width: thin !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid-shell section {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 18px !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid-shell h4 {
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
  margin: 0 !important;
  padding: 7px 2px 5px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 70%, rgba(255,255,255,0)) !important;
  color: #52657c !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(44px, 44px)) !important;
  gap: 8px !important;
  justify-content: start !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: #f5f8fb !important;
  box-shadow: inset 0 0 0 1px rgba(216, 228, 236, 0.72) !important;
  color: #08213d !important;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 24px !important;
  line-height: 1 !important;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-grid button:hover,
body[data-page-key="sales-workspace"] .pipeline-emoji-grid button:focus-visible {
  background: #e9fbf8 !important;
  box-shadow: inset 0 0 0 1px #aee5df, 0 8px 18px rgba(18, 191, 179, 0.16) !important;
  outline: none !important;
  transform: translateY(-2px) scale(1.04) !important;
}

body[data-page-key="sales-workspace"] .pipeline-emoji-empty {
  align-self: center !important;
  margin: 0 !important;
  padding: 32px !important;
  border-radius: 18px !important;
  background: #f8fbfd !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .pipeline-emoji-picker {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    height: min(520px, calc(100vh - 34px)) !important;
    transform: none !important;
    border-radius: 24px !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(42px, 42px)) !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-emoji-grid button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    font-size: 23px !important;
  }
}
/* Contacts workspace aligned with Projects */
html[data-workspace-view="contacts"] body[data-page-key="sales-workspace"] .command-strip.hero-only {
  display: none !important;
}

html[data-workspace-view="contacts"] body[data-page-key="sales-workspace"] .sales-detail-grid {
  margin-top: 0;
}

body[data-page-key="sales-workspace"] .contacts-page-shell {
  display: grid;
  gap: 20px;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .contacts-hero-card {
  min-height: 150px;
}

body[data-page-key="sales-workspace"] .contacts-hero-card .people-search {
  display: block;
  position: relative;
  width: min(100%, 360px);
  overflow: visible;
}

body[data-page-key="sales-workspace"] .contacts-hero-card .people-search input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(7,56,74,.48);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  padding: 0 16px 0 48px;
  outline: none;
}

body[data-page-key="sales-workspace"] .contacts-hero-card .people-search input::placeholder {
  color: rgba(255,255,255,.72);
}

body[data-page-key="sales-workspace"] .contacts-hero-card .people-search > svg {
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .contacts-stats-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-page-key="sales-workspace"] .contacts-stats-card svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Project stage checklist integration */
body[data-page-key="sales-workspace"] .pipeline-project-card {
  grid-template-rows: auto auto auto !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-rail.has-open-stage {
  max-height: 108px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding-bottom: 4px !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-track {
  grid-template-columns: repeat(var(--pipeline-stage-count, 11), minmax(78px, 1fr)) !important;
}

body[data-page-key="sales-workspace"] button.pipeline-stage-node {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] button.pipeline-stage-node:hover,
body[data-page-key="sales-workspace"] button.pipeline-stage-node:focus-visible,
body[data-page-key="sales-workspace"] button.pipeline-stage-node.is-open {
  color: #0b66d4;
  outline: none;
}

body[data-page-key="sales-workspace"] button.pipeline-stage-node:focus-visible .pipeline-stage-dot,
body[data-page-key="sales-workspace"] button.pipeline-stage-node.is-open .pipeline-stage-dot {
  box-shadow: 0 0 0 4px #dbeafe !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-node small {
  margin-top: -5px;
  color: #16834b;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  visibility: hidden;
  width: min(430px, calc(100vw - 24px));
  max-height: min(360px, calc(100vh - 24px));
  margin: 0;
  padding: 12px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 36, 62, 0.24);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover.is-single-stage {
  width: min(480px, calc(100vw - 24px));
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover.is-single-stage .pipeline-stage-check-row {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover.is-single-stage .pipeline-stage-check-main {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover-head,
body[data-page-key="sales-workspace"] .pipeline-stage-popover-head > div {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover-head > div {
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover-head strong {
  color: #10243e;
  font-size: 14px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .pipeline-stage-popover-head button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d6e2eb;
  border-radius: 6px;
  background: #ffffff;
  color: #52647d;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-list {
  display: grid;
  gap: 7px;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid #e3ebf2;
  border-radius: 7px;
  background: #fbfdff;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #10243e;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-main input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-main strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-completed .pipeline-check-indicator {
  border-color: #25aa67 !important;
  background: #25aa67 !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-completed .pipeline-check-indicator svg {
  opacity: 1;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-missing_information .pipeline-check-indicator {
  border-color: #f06a21 !important;
  background: #fff7ed !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-in_progress .pipeline-check-indicator {
  border-color: #147dff !important;
  background: #eff6ff !important;
}

body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-blocked .pipeline-check-indicator {
  border-color: #d64550 !important;
  background: #fff1f2 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-icon-clock,
body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-in_progress .pipeline-check-icon-clock {
  display: block !important;
  fill: none !important;
  stroke: var(--ops-status-in-progress) !important;
  stroke-width: 1.7 !important;
}

body[data-page-key="sales-workspace"] .pipeline-check-row.is-status-in_progress .pipeline-check-indicator::after,
body[data-page-key="sales-workspace"] .pipeline-stage-check-row.is-status-in_progress .pipeline-check-indicator::after {
  content: none !important;
  display: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout.has-integrated-checklist {
  grid-template-columns: minmax(300px, 0.32fr) minmax(560px, 0.68fr) !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-layout.has-integrated-checklist .pipeline-status-editor {
  align-content: start;
}

@media (max-width: 1180px) {
  body[data-page-key="sales-workspace"] .pipeline-status-layout.has-integrated-checklist {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .pipeline-stage-popover {
    width: calc(100vw - 24px);
    padding: 10px;
  }

  body[data-page-key="sales-workspace"] .pipeline-stage-check-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

body[data-page-key="sales-workspace"] .contact-metric-skeleton {
  min-height: 80px;
  background: linear-gradient(90deg, #f4f7fa 25%, #eaf0f4 50%, #f4f7fa 75%);
  background-size: 200% 100%;
  animation: contacts-skeleton 1.2s ease-in-out infinite;
}

body[data-page-key="sales-workspace"] .contact-metric-skeleton + .contact-metric-skeleton {
  border-left: 1px solid #e6edf3;
}

@keyframes contacts-skeleton {
  to { background-position: -200% 0; }
}

body[data-page-key="sales-workspace"] .contacts-main-card {
  padding-bottom: 18px;
}

body[data-page-key="sales-workspace"] .contacts-tabs-row {
  align-items: flex-start;
}

body[data-page-key="sales-workspace"] .contacts-add-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: -6px;
  border: 0;
  border-radius: 9px;
  background: #12bfb3;
  color: #fff;
  box-shadow: 0 8px 18px rgba(18,191,179,.22);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  padding: 0 16px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .contacts-add-button:hover,
body[data-page-key="sales-workspace"] .contacts-add-button:focus-visible {
  background: #0e9e8e;
  outline: none;
}

body[data-page-key="sales-workspace"] .contacts-filter-panel {
  display: none;
  position: static;
  margin: 14px 0 18px;
  border: 1px solid #e2ebf2;
  border-radius: 12px;
  background: #f8fbfd;
  box-shadow: none;
  padding: 14px;
}

body[data-page-key="sales-workspace"] .contacts-filter-panel.is-visible {
  display: grid;
  gap: 14px;
}

body[data-page-key="sales-workspace"] .contacts-filter-panel .people-filter-grid {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(300px, 1.35fr);
}

body[data-page-key="sales-workspace"] .contact-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0;
}

body[data-page-key="sales-workspace"] .contact-filter-chips[hidden] {
  display: none;
}

body[data-page-key="sales-workspace"] .contact-filter-chips button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #bfe4e1;
  border-radius: 999px;
  background: #eefaf8;
  color: #0e756c;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 4px 10px;
}

body[data-page-key="sales-workspace"] .contact-filter-chips button span {
  font-size: 16px;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .contacts-table-region {
  min-width: 0;
  padding-top: 18px;
}

body[data-page-key="sales-workspace"] .contacts-table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
}

body[data-page-key="sales-workspace"] .contacts-table {
  min-width: 1120px;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .contacts-table-head,
body[data-page-key="sales-workspace"] .contact-table-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.55fr) minmax(120px, .8fr) minmax(150px, 1fr) minmax(130px, .8fr) minmax(220px, 1.35fr) minmax(150px, 1fr) 72px;
  align-items: center;
  gap: 14px;
}

body[data-page-key="sales-workspace"] .contacts-table-head {
  min-height: 48px;
  padding: 0 18px;
  background: #f8fbfd;
  color: #52657c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .contact-table-row {
  position: relative;
  min-height: 70px;
  padding: 0 18px;
  border-top: 1px solid #e7eef5;
  background: #fff;
  color: #10243e;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

body[data-page-key="sales-workspace"] .contact-table-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--contact-status-color, #009eb0);
}

body[data-page-key="sales-workspace"] .contact-table-row:hover,
body[data-page-key="sales-workspace"] .contact-table-row:focus-visible {
  z-index: 1;
  background: #f8fbfd;
  box-shadow: 0 3px 10px rgba(16,36,62,.08);
  outline: none;
}

body[data-page-key="sales-workspace"] .contact-name-cell,
body[data-page-key="sales-workspace"] .contact-appointment-cell,
body[data-page-key="sales-workspace"] .contact-last-cell,
body[data-page-key="sales-workspace"] .contact-actions-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .contact-name-cell > span:last-child,
body[data-page-key="sales-workspace"] .contact-appointment-cell > span,
body[data-page-key="sales-workspace"] .contact-last-cell > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body[data-page-key="sales-workspace"] .contact-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--contact-status-color, #009eb0) 12%, #fff);
  color: var(--contact-status-color, #009eb0);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--contact-status-color, #009eb0) 22%, transparent);
  font-size: 12px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .contact-name-cell strong,
body[data-page-key="sales-workspace"] .contact-appointment-cell strong,
body[data-page-key="sales-workspace"] .contact-last-cell strong {
  overflow: hidden;
  color: #10243e;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .contact-name-cell small,
body[data-page-key="sales-workspace"] .contact-appointment-cell small,
body[data-page-key="sales-workspace"] .contact-last-cell small {
  color: #66758a;
  font-size: 11px;
  font-weight: 550;
  text-transform: capitalize;
}

body[data-page-key="sales-workspace"] .contact-status-pill {
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  background: #eef2f6;
  color: #52657c;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  padding: 6px 9px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .contact-status-pill.is-new { background: #fff5df; color: #b77906; }
body[data-page-key="sales-workspace"] .contact-status-pill.is-lead,
body[data-page-key="sales-workspace"] .contact-status-pill.is-contacted { background: #fff0e7; color: #d65316; }
body[data-page-key="sales-workspace"] .contact-status-pill.is-appointment { background: #e6f7fa; color: #087f8f; }
body[data-page-key="sales-workspace"] .contact-status-pill.is-customer { background: #eaf7ee; color: #287c4a; }
body[data-page-key="sales-workspace"] .contact-status-pill.is-past,
body[data-page-key="sales-workspace"] .contact-status-pill.is-archived { background: #eef2f6; color: #52657c; }
body[data-page-key="sales-workspace"] .contact-status-pill.is-nurturing { background: #eaf2ff; color: #1463d8; }

body[data-page-key="sales-workspace"] .contact-appointment-cell svg,
body[data-page-key="sales-workspace"] .contact-last-cell > svg,
body[data-page-key="sales-workspace"] .contact-actions-cell svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #718298;
}

body[data-page-key="sales-workspace"] .contact-phone-cell,
body[data-page-key="sales-workspace"] .contact-email-cell {
  min-width: 0;
  overflow: hidden;
  color: #52657c;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .contact-phone-cell a,
body[data-page-key="sales-workspace"] .contact-email-cell a {
  color: inherit;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .contact-phone-cell a:hover,
body[data-page-key="sales-workspace"] .contact-email-cell a:hover {
  color: #087f8f;
  text-decoration: underline;
}

body[data-page-key="sales-workspace"] .contact-last-cell.is-recent > svg,
body[data-page-key="sales-workspace"] .contact-last-cell.is-recent strong { color: #287c4a; }
body[data-page-key="sales-workspace"] .contact-last-cell.is-stale > svg,
body[data-page-key="sales-workspace"] .contact-last-cell.is-stale strong { color: #b77906; }
body[data-page-key="sales-workspace"] .contact-last-cell.is-critical > svg,
body[data-page-key="sales-workspace"] .contact-last-cell.is-critical strong,
body[data-page-key="sales-workspace"] .contact-last-cell.is-never > svg,
body[data-page-key="sales-workspace"] .contact-last-cell.is-never strong { color: #b42318; }

body[data-page-key="sales-workspace"] .contact-actions-cell {
  justify-content: flex-end;
}

body[data-page-key="sales-workspace"] .contact-actions-cell button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #52657c;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .contact-actions-cell > span {
  color: #718298;
  font-size: 20px;
}

body[data-page-key="sales-workspace"] .contact-sort-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
}

body[data-page-key="sales-workspace"] .contact-sort-head.active,
body[data-page-key="sales-workspace"] .contact-sort-head:hover {
  color: #075466;
}

body[data-page-key="sales-workspace"] .contact-sort-head span {
  color: #009eb0;
}

body[data-page-key="sales-workspace"] .contacts-pagination {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #66758a;
  font-size: 12px;
  font-weight: 750;
  padding: 14px 4px 0;
}

body[data-page-key="sales-workspace"] .contacts-pagination nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .contacts-pagination nav button {
  min-width: 36px;
  height: 36px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #10243e;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .contacts-pagination nav button.active {
  border-color: #009eb0;
  background: #009eb0;
  color: #fff;
}

body[data-page-key="sales-workspace"] .contacts-pagination nav button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

body[data-page-key="sales-workspace"] .contacts-pagination > label {
  justify-self: end;
}

body[data-page-key="sales-workspace"] .contacts-pagination select {
  height: 36px;
  border: 1px solid #dbe5ec;
  border-radius: 8px;
  background: #fff;
  color: #52657c;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 0 28px 0 10px;
}

body[data-page-key="sales-workspace"] .contact-page-ellipsis {
  align-self: center;
  color: #718298;
  padding: 0 3px;
}

body[data-page-key="sales-workspace"] .contacts-empty-state {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  background: #f8fbfd;
  color: #66758a;
  text-align: center;
}

body[data-page-key="sales-workspace"] .contacts-empty-state strong {
  color: #10243e;
  font-size: 16px;
}

body[data-page-key="sales-workspace"] .contacts-empty-state button {
  min-height: 36px;
  margin-top: 5px;
  border: 0;
  border-radius: 8px;
  background: #12bfb3;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 14px;
}

body[data-page-key="sales-workspace"] .contacts-table-loading {
  display: grid;
  gap: 1px;
  border: 1px solid #e7eef5;
  border-radius: 12px;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .contacts-table-loading span {
  display: block;
  height: 70px;
  background: linear-gradient(90deg, #f8fbfd 20%, #edf3f7 50%, #f8fbfd 80%);
  background-size: 200% 100%;
  animation: contacts-skeleton 1.2s ease-in-out infinite;
}

body[data-page-key="sales-workspace"] .contacts-detail-card {
  margin-top: 0;
}

@media (max-width: 1100px) {
  body[data-page-key="sales-workspace"] .contacts-stats-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page-key="sales-workspace"] .contacts-stats-card .project-stat:nth-child(odd) {
    border-left: 0;
  }

  body[data-page-key="sales-workspace"] .contacts-filter-panel .people-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  body[data-page-key="sales-workspace"] .contacts-table {
    min-width: 820px;
  }

  body[data-page-key="sales-workspace"] .contacts-table-head,
  body[data-page-key="sales-workspace"] .contact-table-row {
    grid-template-columns: minmax(210px, 1.5fr) minmax(120px, .8fr) minmax(150px, 1fr) minmax(150px, 1fr) 68px;
  }

  body[data-page-key="sales-workspace"] .contacts-table-head > :nth-child(4),
  body[data-page-key="sales-workspace"] .contacts-table-head > :nth-child(5),
  body[data-page-key="sales-workspace"] .contact-phone-cell,
  body[data-page-key="sales-workspace"] .contact-email-cell {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .contacts-hero-card {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page-key="sales-workspace"] .contacts-hero-card .projects-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .contacts-hero-card .people-search,
  body[data-page-key="sales-workspace"] .contacts-hero-card .projects-filter-button {
    width: 100%;
  }

  body[data-page-key="sales-workspace"] .contacts-stats-card {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .contacts-stats-card .project-stat {
    border-left: 0;
    border-top: 1px solid #e6edf3;
  }

  body[data-page-key="sales-workspace"] .contacts-stats-card .project-stat:first-child {
    border-top: 0;
  }

  body[data-page-key="sales-workspace"] .contacts-tabs-row {
    align-items: stretch;
  }

  body[data-page-key="sales-workspace"] .contacts-add-button {
    width: 100%;
    margin: 0 0 12px;
  }

  body[data-page-key="sales-workspace"] .contacts-filter-panel .people-filter-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .contacts-table-scroll {
    overflow: visible;
  }

  body[data-page-key="sales-workspace"] .contacts-table {
    min-width: 0;
    display: grid;
    gap: 12px;
    border: 0;
    border-radius: 0;
  }

  body[data-page-key="sales-workspace"] .contacts-table-head {
    display: none;
  }

  body[data-page-key="sales-workspace"] .contact-table-row {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border: 1px solid #e7eef5;
    border-radius: 12px;
    padding: 15px;
  }

  body[data-page-key="sales-workspace"] .contact-name-cell {
    grid-column: 1;
  }

  body[data-page-key="sales-workspace"] .contact-status-cell {
    grid-column: 2;
    grid-row: 1;
  }

  body[data-page-key="sales-workspace"] .contact-appointment-cell,
  body[data-page-key="sales-workspace"] .contact-last-cell {
    grid-column: 1 / -1;
    display: flex;
    padding-top: 9px;
    border-top: 1px solid #edf2f6;
  }

  body[data-page-key="sales-workspace"] .contact-actions-cell {
    position: absolute;
    right: 12px;
    bottom: 12px;
  }

  body[data-page-key="sales-workspace"] .contacts-pagination {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  body[data-page-key="sales-workspace"] .contacts-pagination > label {
    justify-self: center;
  }
}
/* Project commission payout installments */
body[data-page-key="sales-workspace"] .pipeline-payout-editor {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #cfe1e7;
  border-radius: 8px;
  background: #f7fbfc;
}

body[data-page-key="sales-workspace"] .pipeline-payout-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #18344a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .pipeline-payout-heading strong {
  color: #008f98;
  font-size: 12px;
  text-transform: none;
}

body[data-page-key="sales-workspace"] .pipeline-payout-pills,
body[data-page-key="sales-workspace"] .pipeline-payout-view {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
}

body[data-page-key="sales-workspace"] .pipeline-payout-pills {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit .pipeline-payout-pill {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) minmax(76px, .7fr);
  gap: 4px;
  padding: 5px;
  border: 1px solid #b9d8dc;
  border-radius: 999px;
  background: #fff;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit .pipeline-payout-pill input {
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 9px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit .pipeline-payout-pill .pipeline-payout-title {
  color: #315268;
}

body[data-page-key="sales-workspace"] .pipeline-finance-edit .pipeline-payout-pill .pipeline-payout-amount {
  background: #e8f8f7;
  color: #007d84;
  text-align: right;
}

body[data-page-key="sales-workspace"] .pipeline-payout-view {
  grid-column: 1 / -1;
  margin-top: 4px;
}

body[data-page-key="sales-workspace"] .pipeline-payout-view > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #dce8ee;
  border-radius: 999px;
  background: #fff;
}

body[data-page-key="sales-workspace"] .pipeline-payout-view small {
  color: #52657c;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-payout-view .pipeline-payout-remaining {
  border-color: #9fd9d5;
  background: #e8f8f7;
  color: #007d84;
}

body[data-page-key="sales-workspace"] .project-total-cell {
  white-space: normal;
}

/* Commission payout preview and dated editor */
body[data-page-key="sales-workspace"] .pipeline-summary-grid {
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card.is-commission {
  padding: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  padding: 10px 42px 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-trigger:focus-visible {
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px #67a8ec !important;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview {
  position: absolute;
  z-index: 10000;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  visibility: hidden;
  width: min(430px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 36, 62, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
}

body[data-page-key="sales-workspace"] .pipeline-summary-card.is-commission:hover .pipeline-commission-preview,
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-commission.is-preview-open .pipeline-commission-preview {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body[data-page-key="sales-workspace"] .pipeline-summary-card.is-commission.is-editor-open .pipeline-commission-preview {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-head,
body[data-page-key="sales-workspace"] .pipeline-commission-preview-row,
body[data-page-key="sales-workspace"] .pipeline-commission-preview-status {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-head {
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-head > strong {
  color: #10243e;
  font-size: 15px !important;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-head > span {
  color: #008f98;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-list {
  display: grid;
  gap: 7px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid #dce8ee;
  border-radius: 7px;
  background: #f7fbfc;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-row strong,
body[data-page-key="sales-workspace"] .pipeline-commission-preview-row b {
  color: #15304e;
  font-size: 13px !important;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-row time,
body[data-page-key="sales-workspace"] .pipeline-commission-preview-status time {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-list p {
  margin: 0;
  padding: 12px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .pipeline-commission-preview-status {
  justify-content: space-between;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #e8f8f7;
  color: #007d84;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover {
  width: min(620px, calc(100vw - 24px));
}

body[data-page-key="sales-workspace"] .pipeline-commission-total-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #cfe1e7;
  border-radius: 7px;
  background: #f7fbfc;
}

body[data-page-key="sales-workspace"] .pipeline-commission-total-field > span {
  color: #15304e;
  font-size: 13px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-commission-total-field > input {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #9fd9d5;
  border-radius: 6px;
  background: #e8f8f7;
  color: #007d84;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

body[data-page-key="sales-workspace"] .pipeline-commission-total-field > input:focus {
  border-color: #147dff;
  outline: 2px solid rgba(20, 125, 255, 0.14);
  outline-offset: 0;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-row {
  grid-template-columns: minmax(0, 1fr) 120px 142px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-payout-row input[type="date"] {
  color: #52647d;
  font-size: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-popover-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

body[data-page-key="sales-workspace"] .pipeline-commission-paid-out-controls {
  display: grid;
  grid-template-columns: 120px 142px;
  gap: 7px;
}

body[data-page-key="sales-workspace"] .pipeline-commission-paid-out-controls[hidden] {
  display: none;
}

body[data-page-key="sales-workspace"] .pipeline-commission-paid-out-controls select,
body[data-page-key="sales-workspace"] .pipeline-commission-paid-out-controls input {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #cfddea;
  border-radius: 6px;
  background: #ffffff;
  color: #15304e;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 680px) {
  body[data-page-key="sales-workspace"] .pipeline-commission-total-field,
  body[data-page-key="sales-workspace"] .pipeline-commission-payout-row,
  body[data-page-key="sales-workspace"] .pipeline-commission-popover-actions,
  body[data-page-key="sales-workspace"] .pipeline-commission-paid-out-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .pipeline-payout-pills,
  body[data-page-key="sales-workspace"] .pipeline-payout-view {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .pipeline-payout-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Full-screen project workspace */
html.pipeline-project-open,
body.pipeline-project-open {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body[data-page-key="sales-workspace"] .pipeline-status-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-shell {
  width: 100% !important;
  height: 100dvh !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body,
body[data-page-key="sales-workspace"] .pipeline-update-scroll,
body[data-page-key="sales-workspace"] .pipeline-stage-popover {
  overscroll-behavior: contain !important;
}

body[data-page-key="sales-workspace"] .pipeline-modal-close {
  width: 40px !important;
  height: 40px !important;
  color: #dc2626 !important;
  font-size: 32px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

body[data-page-key="sales-workspace"] .pipeline-modal-close:hover,
body[data-page-key="sales-workspace"] .pipeline-modal-close:focus-visible {
  background: #fff1f2 !important;
  color: #b91c1c !important;
  outline: 2px solid #fecaca !important;
  outline-offset: 0 !important;
}

/* Full-screen contact and follow-up workspace */
html.contact-profile-open,
body.contact-profile-open {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body[data-page-key="sales-workspace"] .contact-profile-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f3f7fa;
}

body[data-page-key="sales-workspace"] .contact-profile-modal::backdrop {
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}

body[data-page-key="sales-workspace"] .contact-profile-shell {
  width: 100%;
  height: 100dvh;
  padding: 0;
  display: block;
  overflow: hidden;
  background: #f3f7fa;
}

body[data-page-key="sales-workspace"] .contact-profile-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-card {
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f3f7fa;
  box-shadow: none;
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-card.is-visible {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-head {
  position: relative;
  z-index: 3;
  min-height: 112px;
  flex: 0 0 auto;
  padding: 24px 190px 24px 28px;
  border-bottom: 1px solid #dbe5ec;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 36, 62, 0.06);
}

body[data-page-key="sales-workspace"] .contact-profile-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

body[data-page-key="sales-workspace"] .contact-profile-heading > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

body[data-page-key="sales-workspace"] .contact-profile-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #17153d;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 21, 61, 0.18);
}

body[data-page-key="sales-workspace"] .contact-profile-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .contact-profile-eyebrow {
  color: #087f8f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-title {
  flex-wrap: wrap;
  color: #101936;
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 850;
  line-height: 1.12;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-actions {
  position: absolute;
  top: 20px;
  right: 20px;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border-color: #fecaca;
  background: #fff1f2;
  color: #dc2626;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-close:hover,
body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-close:focus-visible {
  border-color: #fca5a5;
  background: #ffe4e6;
  color: #b91c1c;
  outline: 2px solid #fecaca;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-close svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.6;
}

body[data-page-key="sales-workspace"] .contact-profile-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 40px;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-grid {
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-item {
  min-height: 92px;
  padding: 17px 18px;
  border-color: #dce7ef;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

body[data-page-key="sales-workspace"] .contact-profile-modal .lead-admin-edit-panel,
body[data-page-key="sales-workspace"] .contact-profile-modal .followup-edit-panel {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 20px;
  border-color: #dce7ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-head {
    min-height: 96px;
    padding: 18px 64px 18px 16px;
  }

  body[data-page-key="sales-workspace"] .contact-profile-heading {
    gap: 12px;
  }

  body[data-page-key="sales-workspace"] .contact-profile-icon {
    width: 46px;
    height: 46px;
  }

  body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-actions {
    top: 16px;
    right: 12px;
  }

  body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-actions .filter-action {
    display: none;
  }

  body[data-page-key="sales-workspace"] .contact-profile-scroll {
    padding: 16px 14px 28px;
  }

  body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .contact-profile-modal .lead-detail-item.wide {
    grid-column: 1;
  }
}

/* Focused project finance editors */
body[data-page-key="sales-workspace"] .pipeline-summary-card.is-finance-editable {
  position: relative;
  padding-right: 42px !important;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-edit {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #d4e0ed;
  border-radius: 50%;
  background: #ffffff;
  color: #17304f;
  transform: translateY(-50%);
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-edit:hover,
body[data-page-key="sales-workspace"] .pipeline-finance-field-edit:focus-visible,
body[data-page-key="sales-workspace"] .pipeline-finance-field-edit.is-open {
  border-color: #8bb8e8;
  background: #eef6ff;
  color: #0b66d4;
  outline: none;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-edit svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics {
  position: relative;
  min-width: 160px !important;
  padding-right: 48px !important;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics .pipeline-finance-field-edit {
  right: 10px;
  width: 30px;
  height: 30px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover {
  position: fixed;
  z-index: 10002;
  top: 0;
  left: 0;
  visibility: hidden;
  width: min(320px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 36, 62, 0.24);
  color: #10243e;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-head,
body[data-page-key="sales-workspace"] .pipeline-finance-field-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-head strong {
  font-size: 16px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d4e0ed;
  border-radius: 6px;
  background: #ffffff;
  color: #52647d;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover > label {
  display: block;
  margin-top: 10px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfddea;
  border-radius: 6px;
  background: #ffffff;
  color: #10243e;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

/* Product costs sit beneath the pills without changing the header row height. */
body[data-page-key="sales-workspace"] .pipeline-project-product-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .pipeline-project-utility-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-page-key="sales-workspace"] .pipeline-project-product-cost {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  color: #10243e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .pipeline-project-system-size {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  color: #10243e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-product-editor > label,
body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-project-cost-editor > label {
  display: grid;
  gap: 5px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-product-editor > label + label,
body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-project-cost-editor > label + label {
  margin-top: 9px;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-product-editor > label > span,
body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-project-cost-editor > label > span {
  color: #52647d;
  font-size: 11px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .pipeline-finance-field-popover.is-project-cost-editor {
  width: min(560px, calc(100vw - 24px));
}

body[data-page-key="sales-workspace"] .pipeline-project-cost-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 12px;
}

body[data-page-key="sales-workspace"] .pipeline-project-cost-field {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
}

body[data-page-key="sales-workspace"] .pipeline-project-cost-field > span {
  display: block;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #52647d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
}

/* Let the full project workspace scroll as one continuous page */
body[data-page-key="sales-workspace"] .pipeline-status-body {
  display: block !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body .pipeline-status-layout {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body .pipeline-update-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-status-body .pipeline-update-scroll {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
}

/* Keep project financial shortcuts in the Activity / Updates header. */
body[data-page-key="sales-workspace"] .pipeline-update-panel-head {
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 16px 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head .pipeline-summary-grid {
  grid-template-columns: repeat(3, minmax(190px, 220px)) !important;
  justify-content: end;
  width: max-content;
  min-width: 0;
  gap: 6px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-page-key="sales-workspace"] .pipeline-update-panel-head .pipeline-summary-card {
  min-height: 58px !important;
  border: 0 !important;
  border-right: 0 !important;
}

@media (max-width: 900px) {
  body[data-page-key="sales-workspace"] .pipeline-update-panel-head {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-update-panel-title {
    border: 0;
  }

  body[data-page-key="sales-workspace"] .pipeline-update-panel-head .pipeline-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
  }
}

@media (max-width: 620px) {
  body[data-page-key="sales-workspace"] .pipeline-update-panel-head .pipeline-summary-grid {
    grid-template-columns: 1fr !important;
  }

  body[data-page-key="sales-workspace"] .pipeline-update-panel-head .pipeline-summary-card {
    border-right: 0 !important;
    border-bottom: 0 !important;
  }
}

/* Keep project cost and update search visually direct. */
body[data-page-key="sales-workspace"] .pipeline-project-metrics {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics > strong {
  display: block;
  color: #101936;
  font-size: 27px !important;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .pipeline-project-metrics .pipeline-finance-field-edit {
  position: static;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  transform: none;
}

body[data-page-key="sales-workspace"] .pipeline-update-search-row {
  grid-template-columns: minmax(0, 1fr) !important;
}

body[data-page-key="sales-workspace"] .contacts-workspace-nav {
  display: flex;
  gap: 8px;
  width: fit-content;
  padding: 6px;
  border: 1px solid #dfe8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

body[data-page-key="sales-workspace"] .contacts-workspace-nav .project-tab {
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .payouts-page-shell {
  display: grid;
  gap: 20px;
}

body[data-page-key="sales-workspace"] .payouts-page-loader {
  display: none;
}

html[data-workspace-view="payouts"]:not(.payouts-workspace-ready) body[data-page-key="sales-workspace"] .payouts-page-loader {
  display: block;
}

html[data-workspace-view="payouts"]:not(.payouts-workspace-ready) body[data-page-key="sales-workspace"] .command-strip.hero-only,
html[data-workspace-view="payouts"]:not(.payouts-workspace-ready) body[data-page-key="sales-workspace"] .sales-detail-grid {
  display: none !important;
}

body[data-page-key="sales-workspace"] .payouts-hero-actions {
  display: none;
  align-items: center;
  gap: 12px;
  width: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
  margin-left: auto;
}

body[data-page-key="sales-workspace"] .payouts-hero-copy .page-hero-copy { display: none; }
html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .payouts-hero-copy .page-hero-copy { display: block; }

body[data-page-key="sales-workspace"] .payouts-hero-search { display: flex; flex: 0 1 360px; width: min(100%, 360px); }

body[data-page-key="sales-workspace"] .payouts-hero-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .payouts-hero-actions {
  display: flex;
}

html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .sales-workspace-hero > .hero-search-anchor {
  display: none !important;
}

html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .sales-workspace-hero {
  min-height: 132px;
  padding: 20px 24px;
  border-radius: 24px;
}

html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .shell-main {
  gap: 20px;
}

html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .sales-detail-grid {
  margin-top: 0;
}

body[data-page-key="sales-workspace"] .payouts-filter-menu-wrap { flex: 0 0 auto; }
body[data-page-key="sales-workspace"] .payouts-filter-button { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(7,56,74,.48); }
body[data-page-key="sales-workspace"] .payouts-filter-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body[data-page-key="sales-workspace"] .payouts-filter-panel { display: grid; grid-template-columns: 1.15fr 1.15fr .9fr .9fr .9fr auto; gap: 14px; align-items: end; margin: 14px 0 18px; padding: 18px; border: 1px solid #dce7ef; border-radius: 16px; background: #f6f9fc; }
body[data-page-key="sales-workspace"] .payouts-filter-panel.is-rep-only { grid-template-columns: 1.15fr .9fr .9fr .9fr auto; }
body[data-page-key="sales-workspace"] .payouts-filter-panel[hidden] { display: none; }
body[data-page-key="sales-workspace"] .payouts-filter-panel label { display: grid; gap: 7px; color: #64748b; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
body[data-page-key="sales-workspace"] .payouts-filter-panel select,
body[data-page-key="sales-workspace"] .payouts-filter-panel input { width: 100%; height: 46px; border: 1px solid #d6e2eb; border-radius: 10px; background: #fff; color: #10233f; font: inherit; font-size: 14px; font-weight: 800; padding: 0 12px; }
body[data-page-key="sales-workspace"] .payouts-clear-filters { height: 46px; padding: 0 17px; border: 1px solid #d6e2eb; border-radius: 10px; background: #fff; color: #07556b; cursor: pointer; font: inherit; font-weight: 900; }

body[data-page-key="sales-workspace"] .payouts-stats-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }

body[data-page-key="sales-workspace"] .payouts-status-key {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  color: #63748a;
  font-size: 12px;
  font-weight: 800;
  justify-content: flex-end;
  margin: 14px 20px 0;
}

body[data-page-key="sales-workspace"] .payouts-status-key > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .payouts-add-button { height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #1ac9b8, #00a9b8); color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 900; box-shadow: 0 10px 24px rgba(0,158,176,.22); }
body[data-page-key="sales-workspace"] .payouts-add-button[hidden] { display: none; }
body[data-page-key="sales-workspace"] .payouts-add-button span { font-size: 20px; line-height: 1; }

body[data-page-key="sales-workspace"] .payouts-status-key i,
body[data-page-key="sales-workspace"] .payout-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #20a777;
  box-shadow: 0 0 0 4px rgba(32, 167, 119, .12);
}

body[data-page-key="sales-workspace"] .payouts-status-key i.is-risk { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
body[data-page-key="sales-workspace"] .payouts-status-key i.is-clawed-back { background: #d92d20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
body[data-page-key="sales-workspace"] .payouts-table-scroll { overflow-x: auto; }
body[data-page-key="sales-workspace"] .payouts-table { min-width: 760px; }
body[data-page-key="sales-workspace"] .payouts-table-head,
body[data-page-key="sales-workspace"] .payouts-table-row { display: grid; grid-template-columns: 120px minmax(180px, 1.5fr) minmax(160px, 1.2fr) 150px 110px; gap: 16px; align-items: center; padding: 16px 20px; }
body[data-page-key="sales-workspace"] .payouts-table-head { border-bottom: 1px solid #e7edf3; color: #718096; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
body[data-page-key="sales-workspace"] .payout-sort-head { display: inline-flex; min-width: 0; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; transition: color .15s ease; }
body[data-page-key="sales-workspace"] .payout-sort-head i { color: #a4b0bf; font-size: 12px; font-style: normal; line-height: 1; transition: color .15s ease, transform .15s ease; }
body[data-page-key="sales-workspace"] .payout-sort-head:hover,
body[data-page-key="sales-workspace"] .payout-sort-head:focus-visible,
body[data-page-key="sales-workspace"] .payout-sort-head.active { color: #07556b; }
body[data-page-key="sales-workspace"] .payout-sort-head:hover i,
body[data-page-key="sales-workspace"] .payout-sort-head:focus-visible i,
body[data-page-key="sales-workspace"] .payout-sort-head.active i { color: #00a9b8; }
body[data-page-key="sales-workspace"] .payout-sort-head:focus-visible { border-radius: 4px; outline: 2px solid rgba(0,169,184,.35); outline-offset: 4px; }
body[data-page-key="sales-workspace"] .payout-sort-head:last-child { justify-self: end; }
body[data-page-key="sales-workspace"] .payouts-table-row { border-bottom: 1px solid #edf1f5; color: #53657a; text-decoration: none; transition: background .15s ease, transform .15s ease; }
body[data-page-key="sales-workspace"] .payouts-table-row:hover { background: #f7fafc; transform: translateY(-1px); }
body[data-page-key="sales-workspace"] .payouts-table-row > span:nth-child(4) { display: inline-flex; align-items: center; gap: 9px; color: #17805f; font-weight: 850; }
body[data-page-key="sales-workspace"] .payouts-table-row.is-risk { background: linear-gradient(90deg, rgba(139, 92, 246, .07), transparent 55%); }
body[data-page-key="sales-workspace"] .payouts-table-row.is-risk > span:nth-child(4),
body[data-page-key="sales-workspace"] .payouts-table-row.is-risk > strong:last-child { color: #7c3aed; }
body[data-page-key="sales-workspace"] .payouts-table-row .is-negative,
body[data-page-key="sales-workspace"] .payout-card-head .is-negative { color: #b42318 !important; }
body[data-page-key="sales-workspace"] .payouts-table-row.is-risk .payout-status-dot { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
body[data-page-key="sales-workspace"] .payouts-table-row.is-clawed-back { background: linear-gradient(90deg, rgba(217, 45, 32, .07), transparent 55%); }
body[data-page-key="sales-workspace"] .payouts-table-row.is-clawed-back > span:nth-child(4),
body[data-page-key="sales-workspace"] .payouts-table-row.is-clawed-back > strong:last-child { color: #b42318; }
body[data-page-key="sales-workspace"] .payouts-table-row.is-clawed-back .payout-status-dot { background: #d92d20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .12); }
body[data-page-key="sales-workspace"] .payouts-empty { display: grid; justify-items: center; gap: 7px; padding: 56px 24px; color: #718096; text-align: center; }
body[data-page-key="sales-workspace"] .payouts-empty strong { color: #10233f; font-size: 18px; }
body[data-page-key="sales-workspace"] .payouts-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
body[data-page-key="sales-workspace"] .payout-card { display: grid; gap: 9px; min-width: 0; padding: 18px; border: 1px solid #dce7ef; border-radius: 15px; background: #fff; color: #53657a; text-decoration: none; box-shadow: 0 8px 24px rgba(15,23,42,.06); transition: transform .15s ease, box-shadow .15s ease; }
body[data-page-key="sales-workspace"] .payout-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.11); }
body[data-page-key="sales-workspace"] .payout-card.is-risk { border-color: #dfd0ff; background: linear-gradient(145deg, #fff, #faf7ff); }
body[data-page-key="sales-workspace"] .payout-card.is-clawed-back { border-color: #f3b7b2; background: linear-gradient(145deg, #fff, #fff7f6); }
body[data-page-key="sales-workspace"] .payout-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body[data-page-key="sales-workspace"] .payout-card-head span { color: #718096; font-size: 12px; font-weight: 850; }
body[data-page-key="sales-workspace"] .payout-card-head strong { color: #10233f; font-size: 20px; }
body[data-page-key="sales-workspace"] .payout-card.is-risk .payout-card-head strong { color: #7c3aed; }
body[data-page-key="sales-workspace"] .payout-card.is-clawed-back .payout-card-head strong { color: #b42318; }
body[data-page-key="sales-workspace"] .payout-card h3 { margin: 7px 0 0; color: #10233f; font-size: 17px; }
body[data-page-key="sales-workspace"] .payout-card p { margin: 0; }
body[data-page-key="sales-workspace"] .payout-card-status { display: flex; align-items: center; gap: 9px; margin-top: 5px; color: #17805f; font-size: 12px; font-weight: 900; }
body[data-page-key="sales-workspace"] .payout-card.is-risk .payout-card-status { color: #7c3aed; }
body[data-page-key="sales-workspace"] .payout-card.is-risk .payout-status-dot { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139,92,246,.12); }
body[data-page-key="sales-workspace"] .payout-card.is-clawed-back .payout-card-status { color: #b42318; }
body[data-page-key="sales-workspace"] .payout-card.is-clawed-back .payout-status-dot { background: #d92d20; box-shadow: 0 0 0 4px rgba(217,45,32,.12); }

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .payouts-stats-card { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .payouts-stats-card .project-stat { border-left: 0; border-bottom: 1px solid #e6edf3; }
  body[data-page-key="sales-workspace"] .payouts-stats-card .project-stat:last-child { border-bottom: 0; }
  body[data-page-key="sales-workspace"] .contacts-workspace-nav { width: 100%; }
  body[data-page-key="sales-workspace"] .contacts-workspace-nav .project-tab { flex: 1; text-align: center; }
  html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .sales-workspace-hero .hero-top-row { align-items: stretch; flex-direction: column; gap: 14px; }
  html[data-workspace-view="payouts"] body[data-page-key="sales-workspace"] .payouts-hero-actions { width: 100%; margin-left: 0; }
  body[data-page-key="sales-workspace"] .payouts-filter-panel { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .payouts-card-grid { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page-key="sales-workspace"] .payouts-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Purposeful homeowner project updates */
body[data-page-key="sales-workspace"] .homeowner-update-center {
  margin: 16px 18px 0;
  border: 1px solid #cbdcf0;
  border-radius: 18px;
  background: linear-gradient(145deg, #f7fbff 0%, #fff 65%);
  box-shadow: 0 12px 30px rgba(20, 54, 92, .08);
  overflow: hidden;
}

body[data-page-key="sales-workspace"] .homeowner-update-center-head,
body[data-page-key="sales-workspace"] .homeowner-update-outgoing-title,
body[data-page-key="sales-workspace"] .homeowner-update-recipient,
body[data-page-key="sales-workspace"] .homeowner-update-send-row,
body[data-page-key="sales-workspace"] .homeowner-update-alert {
  display: flex;
  align-items: center;
}

body[data-page-key="sales-workspace"] .homeowner-update-center-head {
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid #dce8f5;
}

body[data-page-key="sales-workspace"] .homeowner-update-center-head h3 {
  margin: 2px 0;
  color: #102a4a;
  font-size: 17px;
}

body[data-page-key="sales-workspace"] .homeowner-update-center-head p,
body[data-page-key="sales-workspace"] .homeowner-update-center-head span,
body[data-page-key="sales-workspace"] .homeowner-update-outgoing-title span {
  margin: 0;
  color: #64758b;
  font-size: 12px;
}

body[data-page-key="sales-workspace"] .homeowner-update-center-head > div > span {
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .homeowner-update-center-head > button:not(.resource-link),
body[data-page-key="sales-workspace"] .homeowner-update-alert button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .homeowner-update-composer {
  display: grid;
  gap: 13px;
  padding: 18px;
  border-bottom: 1px solid #dce8f5;
  background: #fff;
}

body[data-page-key="sales-workspace"] .homeowner-update-recipient {
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #eef6ff;
  color: #16365c;
}

body[data-page-key="sales-workspace"] .homeowner-update-recipient span {
  color: #64758b;
  font-size: 12px;
}

body[data-page-key="sales-workspace"] .homeowner-update-channels {
  display: flex;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .homeowner-update-channels label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #ccdaea;
  border-radius: 999px;
  color: #233e5f;
  font-size: 12px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .homeowner-update-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-page-key="sales-workspace"] .homeowner-update-composer label {
  display: grid;
  gap: 6px;
}

body[data-page-key="sales-workspace"] .homeowner-update-composer label > span {
  color: #4e6178;
  font-size: 11px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .homeowner-update-composer input:not([type="checkbox"]),
body[data-page-key="sales-workspace"] .homeowner-update-composer select,
body[data-page-key="sales-workspace"] .homeowner-update-composer textarea {
  width: 100%;
  border: 1px solid #cbd8e7;
  border-radius: 10px;
  background: #fff;
  color: #132a47;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  padding: 9px 10px;
}

body[data-page-key="sales-workspace"] .homeowner-update-composer textarea {
  min-height: 76px;
  resize: vertical;
}

body[data-page-key="sales-workspace"] .homeowner-update-composer textarea.is-message { min-height: 112px; }

body[data-page-key="sales-workspace"] .homeowner-update-send-row {
  align-items: end;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .homeowner-update-send-row label { flex: 1; }
body[data-page-key="sales-workspace"] .homeowner-update-send-row button { margin-left: auto; }
body[data-page-key="sales-workspace"] .homeowner-update-note { margin: 0; color: #64758b; font-size: 11px; }

body[data-page-key="sales-workspace"] .homeowner-update-outgoing { padding: 15px 18px 18px; }
body[data-page-key="sales-workspace"] .homeowner-update-outgoing-title { justify-content: space-between; gap: 12px; margin-bottom: 10px; }
body[data-page-key="sales-workspace"] .homeowner-update-outgoing-title strong { color: #183656; font-size: 13px; }
body[data-page-key="sales-workspace"] .homeowner-update-empty { padding: 14px; border: 1px dashed #c8d8e8; border-radius: 12px; color: #6b7c91; font-size: 12px; text-align: center; }
body[data-page-key="sales-workspace"] .homeowner-update-alert-list { display: grid; gap: 8px; }

body[data-page-key="sales-workspace"] .homeowner-update-alert {
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #d7e3ef;
  border-radius: 12px;
  background: #fff;
}

body[data-page-key="sales-workspace"] .homeowner-update-alert > div { display: grid; gap: 2px; min-width: 0; flex: 1; }
body[data-page-key="sales-workspace"] .homeowner-update-alert strong { color: #173656; font-size: 12px; }
body[data-page-key="sales-workspace"] .homeowner-update-alert span:not(.homeowner-update-channel) { color: #566a82; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-page-key="sales-workspace"] .homeowner-update-alert small { color: #2563eb; font-size: 10px; font-weight: 800; text-transform: capitalize; }
body[data-page-key="sales-workspace"] .homeowner-update-channel { min-width: 48px; padding: 5px 8px; border-radius: 999px; background: #e8f2ff; color: #1761c9; font-size: 10px; font-weight: 900; text-align: center; }
body[data-page-key="sales-workspace"] .homeowner-update-alert.is-sent { opacity: .7; }
body[data-page-key="sales-workspace"] .homeowner-update-alert.is-canceled { opacity: .55; }
body[data-page-key="sales-workspace"] .homeowner-update-alert > b { color: #607286; font-size: 10px; text-transform: uppercase; }

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .homeowner-update-fields { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .homeowner-update-send-row { align-items: stretch; flex-direction: column; }
  body[data-page-key="sales-workspace"] .homeowner-update-recipient { align-items: flex-start; flex-direction: column; }
}

/* Follow-Ups workspace aligned with Projects */
html[data-workspace-view="followups"] body[data-page-key="sales-workspace"] .command-strip.hero-only {
  display: none !important;
}

html[data-workspace-view="followups"] body[data-page-key="sales-workspace"] .sales-detail-grid {
  margin-top: 0;
}

body[data-page-key="sales-workspace"] .followups-page-shell {
  display: grid;
  gap: 18px;
}

body[data-page-key="sales-workspace"] .followups-hero-card {
  background:
    radial-gradient(circle at 78% 12%, rgba(5, 191, 196, 0.3), transparent 28%),
    radial-gradient(circle at 7% 88%, rgba(0, 139, 143, 0.28), transparent 38%),
    linear-gradient(180deg, #003d46 0%, #008b8f 62%, #05bfc4 100%);
}

body[data-page-key="sales-workspace"] .followups-stats-card:empty {
  min-height: 92px;
}

body[data-page-key="sales-workspace"] .followups-main-card {
  min-height: 420px;
}

body[data-page-key="sales-workspace"] .followups-main-card .projects-empty-state {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px 26px;
}

body[data-page-key="sales-workspace"] .followups-main-card .projects-empty-state strong,
body[data-page-key="sales-workspace"] .followups-main-card .projects-empty-state span {
  display: block;
}

body[data-page-key="sales-workspace"] .followups-main-card .projects-empty-state strong {
  color: #263a50;
  font-size: 15px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followups-main-card .projects-empty-state span {
  color: #718096;
  font-size: 13px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .followups-contacts-link {
  color: #075466;
  text-decoration: none;
}

body[data-page-key="sales-workspace"] .followups-page-shell .followup-filter-stack {
  margin: 14px 0 18px;
}

body[data-page-key="sales-workspace"] .followups-page-shell .followup-filter-stack.is-collapsed {
  display: none;
}


body[data-page-key="sales-workspace"] .followups-projects-table {
  min-width: 900px;
}

body[data-page-key="sales-workspace"] .followups-projects-table .projects-table-head,
body[data-page-key="sales-workspace"] .followups-projects-table .followup-project-row {
  grid-template-columns: 64px minmax(300px, 1.7fr) minmax(190px, 1fr) minmax(210px, 1.1fr) 36px;
}

body[data-page-key="sales-workspace"] .followup-sort-head {
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 6px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
}

body[data-page-key="sales-workspace"] .followup-sort-head i {
  color: #8aa0b5;
  font-size: 12px;
  font-style: normal;
  opacity: 0;
  transition: color 150ms ease, opacity 150ms ease;
}

body[data-page-key="sales-workspace"] .followup-sort-head:hover,
body[data-page-key="sales-workspace"] .followup-sort-head:focus-visible,
body[data-page-key="sales-workspace"] .followup-sort-head.is-active {
  color: #007d84;
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-sort-head:hover i,
body[data-page-key="sales-workspace"] .followup-sort-head:focus-visible i,
body[data-page-key="sales-workspace"] .followup-sort-head.is-active i {
  color: #008b8f;
  opacity: 1;
}

body[data-page-key="sales-workspace"] .followup-project-row.is-selected,
body[data-page-key="sales-workspace"] .followup-project-row:hover,
body[data-page-key="sales-workspace"] .followup-project-row:focus-visible {
  border-color: rgba(0, 158, 176, 0.28);
  background: #f2fbfc;
  box-shadow: inset 3px 0 0 #009eb0;
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-project-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-type-color, #009eb0) 28%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--project-type-color, #009eb0) 12%, white);
  color: var(--project-type-color, #009eb0);
}

body[data-page-key="sales-workspace"] .followup-project-avatar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-project-avatar.is-hes img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

body[data-page-key="sales-workspace"] .followup-product-cell,
body[data-page-key="sales-workspace"] .followup-status-cell,
body[data-page-key="sales-workspace"] .followup-date-cell {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

body[data-page-key="sales-workspace"] .followup-product-cell {
  align-items: center;
}

body[data-page-key="sales-workspace"] .followup-product-cell strong,
body[data-page-key="sales-workspace"] .followup-date-cell strong {
  min-width: 0;
  overflow: hidden;
  color: #263a50;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-status-cell small {
  overflow: hidden;
  color: #718096;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-timing-pill {
  width: max-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
}

body[data-page-key="sales-workspace"] .followup-timing-pill.is-upcoming {
  background: #eaf2ff;
  color: #1463d8;
}

body[data-page-key="sales-workspace"] .followup-timing-pill.is-today {
  background: #eaf7ee;
  color: #287c4a;
}

body[data-page-key="sales-workspace"] .followup-timing-pill.is-overdue {
  background: #fff1e8;
  color: #c94f08;
}

body[data-page-key="sales-workspace"] .followup-timing-pill.is-archived {
  background: #eef2f6;
  color: #526174;
}

body[data-page-key="sales-workspace"] .followup-project-row .project-chevron svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .followups-page-shell .followup-advanced-grid {
    grid-template-columns: 1fr;
  }

  body[data-page-key="sales-workspace"] .followups-main-card {
    padding-inline: 14px;
  }

  body[data-page-key="sales-workspace"] .followups-main-card .project-tabs-row {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-page-key="sales-workspace"] .followups-main-card .project-toolbar {
    align-self: flex-start;
    transform: none;
  }
}

/* Preserved My Metrics icon archive */
body[data-page-key="battery-icons"] .performance-icon-archive-mark,
body[data-page-key="battery-icons"] .performance-archive-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

body[data-page-key="battery-icons"] .performance-icon-archive-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(145deg, #05bfc4, #0f766e);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.2);
}

body[data-page-key="battery-icons"] .performance-icon-archive-mark svg,
body[data-page-key="battery-icons"] .performance-archive-icon svg {
  width: 30px;
  height: 30px;
}

body[data-page-key="battery-icons"] .performance-icon-archive-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body[data-page-key="battery-icons"] .battery-performance-icon-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-page-key="battery-icons"] .performance-archive-icon {
  width: 64px;
  height: 64px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 10%, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 22px rgba(15, 23, 42, 0.08);
}

body[data-page-key="battery-icons"] .performance-archive-icon.is-blue { color: #2563eb; }
body[data-page-key="battery-icons"] .performance-archive-icon.is-purple { color: #7c3aed; }
body[data-page-key="battery-icons"] .performance-archive-icon.is-green { color: #059669; }

@media (max-width: 1100px) {
  body[data-page-key="battery-icons"] .battery-performance-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  body[data-page-key="battery-icons"] .battery-performance-icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Compact project-style follow-up profile */
body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-head {
  min-height: 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 12px 78px 12px 24px;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-heading {
  align-items: center;
  gap: 14px;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-heading > div {
  gap: 2px;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 7px;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
}

body[data-page-key="sales-workspace"] .followup-profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-top: 4px;
  color: #40516a;
  font-size: 12px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .followup-profile-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-page-key="sales-workspace"] .followup-profile-meta strong {
  color: #087f8f;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5e2ec;
  border-radius: 50%;
  color: #173d63;
  background: #f9fcfe;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions a:hover,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions a:focus-visible {
  border-color: #82cfd1;
  background: #eefafa;
  outline: none;
  transform: translateY(-1px);
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-profile-next {
  min-width: 174px;
  display: grid;
  gap: 4px;
  padding: 10px 16px;
  border-left: 1px solid #dbe5ec;
  text-align: right;
}

body[data-page-key="sales-workspace"] .followup-profile-next span {
  color: #64748b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-profile-next strong {
  color: #101936;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-actions {
  top: 14px;
  right: 14px;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-scroll {
  flex: 0 0 auto;
  min-height: auto;
  gap: 14px;
  overflow: visible;
  padding: 14px 24px 30px;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .followup-detail-card.is-followup-profile {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce7ef;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-item {
  min-height: 62px;
  padding: 11px 15px;
  border: 0;
  border-right: 1px solid #e4ecf2;
  border-bottom: 1px solid #e4ecf2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-item.wide {
  grid-column: span 2;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .followup-edit-panel {
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

@media (max-width: 900px) {
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-head {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-right: 64px;
  }
  body[data-page-key="sales-workspace"] .followup-profile-next {
    min-width: 0;
    margin-left: 66px;
    padding: 2px 0 0;
    border-left: 0;
    text-align: left;
  }
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-head {
    padding: 14px 58px 14px 14px;
  }
  body[data-page-key="sales-workspace"] .followup-profile-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  body[data-page-key="sales-workspace"] .followup-profile-next {
    margin-left: 60px;
  }
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-scroll {
    padding: 12px 10px 24px;
  }
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-grid {
    grid-template-columns: 1fr;
  }
  body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-item.wide {
    grid-column: 1;
  }
}

/* Exact Projects header parity for follow-ups */
body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-heading > div {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-profile-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-title {
  position: relative;
  padding-left: 10px;
  color: #101936;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-title::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: #147dff;
}

body[data-page-key="sales-workspace"] .followup-profile-badges {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-page-key="sales-workspace"] .followup-profile-product-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--followup-product-color) 42%, transparent);
  border-radius: 6px;
  color: var(--followup-product-color);
  background: color-mix(in srgb, var(--followup-product-color) 9%, #ffffff);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .followup-profile-product-chip svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-profile-badges .lead-detail-provider-logo {
  width: auto;
  max-width: 72px;
  height: 24px;
  margin: 0 3px;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions {
  margin-top: 0;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions a,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d5e2ec;
  border-radius: 50%;
  color: #173d63;
  background: #f9fcfe;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions a:hover,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions a:focus-visible,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions button:hover,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions button:focus-visible {
  border-color: #86bfff;
  color: #147dff;
  background: #eff7ff;
  outline: none;
  transform: translateY(-1px);
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions svg {
  width: 14px;
  height: 14px;
}

body[data-page-key="sales-workspace"] .contact-profile-modal .followup-detail-card.is-followup-profile .followup-profile-editor {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  width: 100%;
  max-height: none;
  margin: 0;
  justify-self: center;
  overflow: visible;
  padding: 8px 0 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .contact-profile-scroll {
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .followup-profile-editor-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px -2px 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2ecef;
}

body[data-page-key="sales-workspace"] .followup-editor-description {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #bfe1e3;
  border-left: 4px solid #08a0a7;
  border-radius: 13px;
  background: linear-gradient(135deg, #f0fbfb, #f8fdfd);
}

body[data-page-key="sales-workspace"] .followup-editor-description span {
  color: #087f85;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-editor-description p {
  margin: 0;
  color: #10243e;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

body[data-page-key="sales-workspace"] .followup-profile-editor-head h3 {
  margin: 0;
  color: #10243e;
  font-size: 21px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .followup-profile-editor-head p {
  margin: 4px 0 0;
  color: #66778d;
  font-size: 13px;
  font-weight: 650;
}

body[data-page-key="sales-workspace"] .followup-profile-editor-head button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cddde6;
  border-radius: 10px;
  color: #52647d;
  background: #f7fafc;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-profile-editor-head button:hover,
body[data-page-key="sales-workspace"] .followup-profile-editor-head button:focus-visible {
  border-color: #8fcfd2;
  color: #007c82;
  background: #eefafa;
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-action-row,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-appointment-panel,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-outcome-card,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-work-grid,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-schedule-panel,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-history-panel,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-edit-actions {
  grid-column: 1 / -1;
}

body[data-page-key="sales-workspace"] .followup-outcome-card {
  display: grid;
  gap: 16px;
  padding: 19px;
  border: 1px solid #c8e2e4;
  border-radius: 15px;
  background: linear-gradient(145deg, #f8fdfd, #f4fafb);
}

body[data-page-key="sales-workspace"] .followup-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

body[data-page-key="sales-workspace"] .followup-section-heading span {
  color: #00858a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-section-heading h3 {
  margin: 3px 0 0;
  color: #10243e;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

body[data-page-key="sales-workspace"] .followup-section-heading small {
  color: #6c7e91;
  font-size: 12px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .followup-outcome-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 13px;
}

body[data-page-key="sales-workspace"] .followup-outcome-grid > label,
body[data-page-key="sales-workspace"] .followup-sit-field,
body[data-page-key="sales-workspace"] .followup-conversation-panel label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #40546d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-sit-field {
  grid-column: span 5;
  padding: 0;
  border: 0;
}

body[data-page-key="sales-workspace"] .followup-sit-field legend {
  margin-bottom: 7px;
  padding: 0;
}

body[data-page-key="sales-workspace"] .followup-offer-field {
  grid-column: span 7;
}

body[data-page-key="sales-workspace"] .followup-cost-field {
  grid-column: span 3;
}

body[data-page-key="sales-workspace"] .followup-date-field {
  grid-column: span 5;
}

body[data-page-key="sales-workspace"] .followup-status-field {
  grid-column: span 4;
}

body[data-page-key="sales-workspace"] .followup-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

body[data-page-key="sales-workspace"] .followup-segmented-control label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .followup-segmented-control span {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid #cadbe4;
  border-radius: 11px;
  color: #40546d;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

body[data-page-key="sales-workspace"] .followup-segmented-control input:checked + span {
  border-color: #0aa2a8;
  color: #007a80;
  background: #e9fafa;
  box-shadow: inset 0 0 0 1px rgba(10, 162, 168, .22);
}

body[data-page-key="sales-workspace"] .followup-segmented-control input:focus-visible + span {
  outline: 3px solid rgba(10, 162, 168, .16);
}

body[data-page-key="sales-workspace"] .followup-money-input {
  position: relative;
  display: block;
}

body[data-page-key="sales-workspace"] .followup-money-input b {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  color: #718297;
  font-size: 14px;
  transform: translateY(-50%);
}

body[data-page-key="sales-workspace"] .followup-money-input input {
  padding-left: 28px;
}

body[data-page-key="sales-workspace"] .followup-work-grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.2fr);
  gap: 15px;
  align-items: stretch;
}

body[data-page-key="sales-workspace"] .followup-work-grid .followup-appointment-panel {
  align-content: start;
  padding: 16px;
  background: #f8fafc;
}

body[data-page-key="sales-workspace"] .followup-conversation-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #dbe7f0;
  border-radius: 12px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .followup-conversation-panel textarea {
  min-height: 126px;
}

body[data-page-key="sales-workspace"] .followup-bill-field input[type="file"] {
  min-height: 44px;
  padding: 5px 7px;
  color: #63758b;
  background: #f8fbfc;
}

body[data-page-key="sales-workspace"] .followup-bill-field input[type="file"]::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  padding: 6px 11px;
  border: 1px solid #a9d7da;
  border-radius: 8px;
  color: #007d83;
  background: #eaf9f9;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-profile-editor > label,
body[data-page-key="sales-workspace"] .followup-profile-editor .followup-schedule-panel label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #40546d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .025em;
}

body[data-page-key="sales-workspace"] .followup-profile-editor select,
body[data-page-key="sales-workspace"] .followup-profile-editor input,
body[data-page-key="sales-workspace"] .followup-profile-editor textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cfdee7;
  border-radius: 11px;
  color: #10243e;
  background: #fbfdfe;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

body[data-page-key="sales-workspace"] .followup-profile-editor select:focus,
body[data-page-key="sales-workspace"] .followup-profile-editor input:focus,
body[data-page-key="sales-workspace"] .followup-profile-editor textarea:focus {
  border-color: #16a3aa;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 163, 170, .12);
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-profile-editor textarea {
  min-height: 104px;
  resize: vertical;
}

body[data-page-key="sales-workspace"] .followup-profile-editor .followup-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

body[data-page-key="sales-workspace"] .followup-profile-editor .followup-action-row .filter-action {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 12px;
}

body[data-page-key="sales-workspace"] .followup-profile-editor .followup-edit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid #cce5e6;
  border-radius: 13px;
  background: #f5fbfb;
}

body[data-page-key="sales-workspace"] .followup-profile-editor .followup-edit-actions > span {
  color: #607389;
  font-size: 12px;
  font-weight: 750;
}

body[data-page-key="sales-workspace"] .followup-profile-editor .followup-edit-actions .filter-action {
  min-width: 190px;
  min-height: 46px;
  border-color: #058f95;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #087e84, #10aeb5);
  box-shadow: 0 10px 24px rgba(8, 143, 149, .2);
}

@media (max-width: 680px) {
  body[data-page-key="sales-workspace"] .followup-profile-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  body[data-page-key="sales-workspace"] .contact-profile-modal .followup-detail-card.is-followup-profile .followup-profile-editor {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    padding: 4px 0 22px;
    border-radius: 0;
  }
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-action-row,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-appointment-panel,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-outcome-card,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-work-grid,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-schedule-panel,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-history-panel,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-edit-actions,
  body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-editor-description {
    grid-column: 1;
  }
  body[data-page-key="sales-workspace"] .followup-outcome-grid,
  body[data-page-key="sales-workspace"] .followup-work-grid {
    grid-template-columns: 1fr;
  }
  body[data-page-key="sales-workspace"] .followup-sit-field,
  body[data-page-key="sales-workspace"] .followup-offer-field,
  body[data-page-key="sales-workspace"] .followup-cost-field,
  body[data-page-key="sales-workspace"] .followup-date-field,
  body[data-page-key="sales-workspace"] .followup-status-field {
    grid-column: 1;
  }
  body[data-page-key="sales-workspace"] .followup-section-heading,
  body[data-page-key="sales-workspace"] .followup-profile-editor .followup-edit-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  body[data-page-key="sales-workspace"] .followup-profile-editor .followup-edit-actions .filter-action {
    width: 100%;
  }
}

/* Exact follow-up close and title finishing */
body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-title strong {
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #dc2626;
  background: transparent;
}

body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-close:hover,
body[data-page-key="sales-workspace"] .followup-detail-card.is-followup-profile .lead-detail-close:focus-visible {
  border: 0;
  color: #b91c1c;
  background: transparent;
  outline: none;
  transform: scale(1.06);
}

/* Follow-up contact controls use the Projects component unchanged */
body[data-page-key="sales-workspace"] .followup-profile-contact-actions.pipeline-project-inline-meta {
  width: 100% !important;
  margin-top: 3px !important;
  gap: 8px !important;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-contact > button,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-quick-edit > button {
  width: 30px;
  height: 30px;
  border: 1px solid #d4e0ed;
  border-radius: 50%;
  color: #17304f;
  background: #ffffff;
  transform: none;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-contact > button:hover,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-contact > button:focus-visible,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-contact.is-open > button,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-quick-edit > button:hover,
body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-quick-edit > button:focus-visible {
  border-color: #8bb8e8;
  color: #0b66d4;
  background: #eef6ff;
  transform: none;
}

body[data-page-key="sales-workspace"] .followup-profile-contact-actions .pipeline-project-contact-popover a {
  display: block;
  width: auto !important;
  max-width: none !important;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #10243e;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  transform: none;
}


/* Follow-Ups use the Projects header component directly. */
body[data-page-key="sales-workspace"] .pipeline-project-card.followup-project-header {
  min-height: 130px;
  grid-template-rows: auto !important;
  border-bottom: 0 !important;
}

body[data-page-key="sales-workspace"] .followup-project-header .pipeline-modal-close:focus,
body[data-page-key="sales-workspace"] .followup-project-header .pipeline-modal-close:focus-visible {
  outline: none !important;
  color: #dc2626 !important;
  background: transparent !important;
}


/* Separate project details from follow-up scheduling. */
body[data-page-key="sales-workspace"] .followup-profile-next .followup-next-edit {
  justify-self: end;
  margin-top: 2px;
}


body[data-page-key="sales-workspace"] .followup-detail-card .pipeline-project-edit-grid select:disabled {
  color: #64748b;
  background: #f1f5f9;
  cursor: not-allowed;
  opacity: 1;
}


body[data-page-key="sales-workspace"] .followup-project-header .pipeline-project-title .pipeline-project-edit-popover {
  width: min(480px, calc(100vw - 24px));
}

body[data-page-key="sales-workspace"] .followup-project-header .followup-edit-action {
  align-items: center;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment,
body[data-page-key="sales-workspace"] .followup-header-center {
  display: grid;
  gap: 3px;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment {
  position: relative;
  text-align: right;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-summary > div {
  display: grid;
  gap: 3px;
}

body[data-page-key="sales-workspace"] [data-toggle-followup-initial-appointment] {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d2e0ea;
  border-radius: 50%;
  color: #31506f;
  background: #fff;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] [data-toggle-followup-initial-appointment]:hover,
body[data-page-key="sales-workspace"] [data-toggle-followup-initial-appointment]:focus-visible,
body[data-page-key="sales-workspace"] [data-toggle-followup-initial-appointment][aria-expanded="true"] {
  border-color: #72c7cb;
  color: #00868c;
  background: #eefafa;
  outline: none;
}

body[data-page-key="sales-workspace"] [data-toggle-followup-initial-appointment] svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(340px, calc(100vw - 24px));
  gap: 13px;
  padding: 16px;
  border: 1px solid #cfe0e8;
  border-radius: 14px;
  text-align: left;
  white-space: normal;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 39, 63, .18), 0 3px 10px rgba(13, 39, 63, .08);
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover[hidden] {
  display: none !important;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover > strong {
  color: #13213a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover label {
  display: grid;
  gap: 7px;
  color: #52647c;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover input {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfdde7;
  border-radius: 9px;
  color: #13213a;
  background: #fff;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-picker {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cfdde7;
  border-radius: 9px;
  background: #fff;
  letter-spacing: 0;
  text-transform: none;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-picker:focus-within {
  border-color: #55c3c1;
  box-shadow: 0 0 0 3px rgba(0, 139, 143, .12);
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-picker .live-appointment-schedule-trigger:focus-visible {
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover > div > button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d2e0ea;
  border-radius: 9px;
  color: #31506f;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-popover > div > button.is-primary {
  border-color: #079da3;
  color: #fff;
  background: #079da3;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-summary span,
body[data-page-key="sales-workspace"] .followup-header-center span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-initial-appointment-summary strong,
body[data-page-key="sales-workspace"] .followup-header-center strong {
  color: #13213a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

body[data-page-key="sales-workspace"] .followup-header-center {
  min-width: 190px;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

body[data-page-key="sales-workspace"] .followup-header-center span {
  color: #397b80;
}

body[data-page-key="sales-workspace"] .followup-header-center strong {
  color: #10243e;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

body[data-page-key="sales-workspace"] .followup-header-center.is-reschedule strong {
  color: #00868a;
}

@media (max-width: 1180px) {
  body[data-page-key="sales-workspace"] .followup-project-header .followup-edit-action {
    justify-self: end;
    margin-top: 10px;
  }
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .followup-project-header .followup-edit-action {
    justify-self: stretch;
    justify-content: space-between;
  }

  body[data-page-key="sales-workspace"] .followup-initial-appointment {
    text-align: left;
  }

  body[data-page-key="sales-workspace"] .followup-header-center {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }
}

/* Final cascade guard for the portal-style Follow-Up workspace */
body[data-page-key="sales-workspace"] .contact-profile-modal .followup-detail-card.is-followup-profile form.followup-profile-editor {
  display: block;
  grid-template-columns: none;
  gap: 0;
  width: 100%;
  padding: 0;
}

body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-progress-rail,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-next-move,
body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-portal-workspace {
  width: 100%;
  grid-column: 1 / -1;
}

body[data-page-key="sales-workspace"] .followup-profile-editor > .followup-portal-workspace {
  position: relative;
}

body[data-page-key="sales-workspace"] .followup-portal-heading {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #e0e9f0;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article {
  min-height: 38px;
  padding: 0 10px;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article:first-child {
  padding-left: 0;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article:last-child {
  padding-right: 4px;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article > div {
  flex: 1 1 auto;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-icon {
  width: 32px;
  height: 32px;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-search-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #c9e4e7;
  border-radius: 50%;
  color: #087f8f;
  background: #f0fbfb;
  padding: 0;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-search-icon:hover,
body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-search-icon:focus-visible,
body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-search-icon[aria-expanded="true"] {
  border-color: #33aeb6;
  color: #006f78;
  background: #def7f7;
  box-shadow: 0 0 0 4px rgba(8, 159, 167, .1);
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-search-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1051px) {
  body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip {
    grid-template-columns: 190px 220px 220px minmax(280px, 320px);
    justify-content: start;
  }

  body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article {
    padding-right: 8px;
    padding-left: 8px;
  }
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article > button {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 0;
  border: 1px solid #d2e0ea;
  border-radius: 50%;
  color: #31506f;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article > button:hover,
body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article > button:focus-visible,
body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article > button[aria-expanded="true"] {
  border-color: #72c7cb;
  color: #00868c;
  background: #eefafa;
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article > button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-portal-fields[hidden],
body[data-page-key="sales-workspace"] .followup-portal-fields > [hidden] {
  display: none !important;
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor] {
  position: absolute;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(620px, calc(100% - 24px));
  margin: 0;
  padding: 16px;
  border: 1px solid #cfe0e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 39, 63, .18), 0 3px 10px rgba(13, 39, 63, .08);
}

body[data-page-key="sales-workspace"] .followup-portal-workspace:has(.followup-portal-fields[data-active-editor]) {
  overflow: visible;
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor] button.is-primary {
  border-color: #008b8f;
  background: #008b8f;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 139, 143, .2);
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor] button.is-primary:hover,
body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor] button.is-primary:focus-visible {
  border-color: #006f73;
  background: #006f73;
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor] > [data-followup-editor-panel] {
  grid-column: 1;
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor="offer"] {
  width: min(760px, calc(100% - 24px));
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor="products"] {
  width: min(560px, calc(100% - 24px));
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor="next"] {
  width: min(520px, calc(100% - 24px));
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor="sat"] > .followup-sit-field {
  width: 100%;
}

body[data-page-key="sales-workspace"] .followup-portal-fields[data-active-editor="next"] > .followup-next-workspace {
  width: 100%;
}

body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-sit-field,
body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-products-workspace,
body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-offer-workspace,
body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-next-workspace {
  grid-column: auto;
  align-self: start;
}

body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-sit-field,
body[data-page-key="sales-workspace"] .followup-portal-fields .followup-segmented-control {
  align-content: start;
}

body[data-page-key="sales-workspace"] .followup-portal-fields .followup-segmented-control span {
  height: 42px;
  min-height: 42px;
}

body[data-page-key="sales-workspace"] .followup-portal-fields input,
body[data-page-key="sales-workspace"] .followup-portal-fields select {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
}

body[data-page-key="sales-workspace"] .followup-products-workspace {
  display: grid;
  gap: 13px;
}

body[data-page-key="sales-workspace"] .followup-products-workspace > strong {
  color: #13213a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body[data-page-key="sales-workspace"] .followup-product-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-product-picker label {
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-product-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-page-key="sales-workspace"] .followup-product-picker span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 8px;
  border: 1px solid #d2e0ea;
  border-radius: 9px;
  color: #41546d;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

body[data-page-key="sales-workspace"] .followup-product-picker input:checked + span {
  border-color: #14a6ab;
  color: #007f84;
  background: #eaf9f9;
  box-shadow: inset 0 0 0 1px rgba(20, 166, 171, .12);
}

body[data-page-key="sales-workspace"] .followup-products-workspace > button {
  justify-self: end;
  min-height: 38px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #079da3;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-update-composer textarea {
  min-height: 112px;
  padding: 16px 17px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

body[data-page-key="sales-workspace"] .followup-history-panel {
  padding: 0 22px 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-page-key="sales-workspace"] .followup-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1050px) {
  body[data-page-key="sales-workspace"] .followup-portal-heading {
    grid-template-columns: 1fr;
  }
  body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-next-workspace {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .followup-product-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page-key="sales-workspace"] .followup-portal-heading {
    padding-right: 14px;
    padding-left: 14px;
  }
  body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }
  body[data-page-key="sales-workspace"] .followup-portal-heading .followup-summary-strip article:nth-child(2) {
    border-right: 0;
  }
  body[data-page-key="sales-workspace"] .followup-portal-fields > .followup-next-workspace {
    grid-column: auto;
  }
  body[data-page-key="sales-workspace"] .followup-history-panel {
    padding-right: 14px;
    padding-left: 14px;
  }
}


/* Follow-up pinned update cards */
body[data-page-key="sales-workspace"] .followup-pinned-notes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 22px 20px;
}

body[data-page-key="sales-workspace"] .followup-pinned-card {
  --note-accent: #52749a;
  --note-surface: #f5f8fc;
  --note-border: #bdd0e3;
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--note-border);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--note-surface), #fff 78%);
  box-shadow: 0 12px 28px rgba(19, 47, 73, .08);
}

body[data-page-key="sales-workspace"] .followup-pinned-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--note-accent);
}

body[data-page-key="sales-workspace"] .followup-pinned-card.is-appointment {
  --note-accent: #c77720;
  --note-surface: #fff9f0;
  --note-border: #ebcb9f;
}

body[data-page-key="sales-workspace"] .followup-pinned-card.is-followup {
  --note-accent: #2f8a7d;
  --note-surface: #f2f9f7;
  --note-border: #add8d0;
}

body[data-page-key="sales-workspace"] .followup-pinned-card {
  grid-column: span 2;
}

body[data-page-key="sales-workspace"] .followup-pinned-notes > .followup-add-note-button {
  grid-column: 1 / -1;
  grid-row: 1;
}

body[data-page-key="sales-workspace"] .followup-pinned-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body[data-page-key="sales-workspace"] .followup-pinned-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--note-accent);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--note-accent) 24%, transparent);
}

body[data-page-key="sales-workspace"] .followup-pinned-heading-copy {
  display: grid;
  min-width: 0;
}

body[data-page-key="sales-workspace"] .followup-pinned-heading-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 12px;
}

body[data-page-key="sales-workspace"] .followup-contact-method-icon {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 9px;
  color: #176f63;
  background: #e2f5f1;
}

body[data-page-key="sales-workspace"] .followup-contact-method-icon svg { width: 14px; height: 14px; }
body[data-page-key="sales-workspace"] .followup-contact-method-icon svg * { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page-key="sales-workspace"] .followup-contact-method-icon.is-call { color: #087d68; background: #dff5ef; }
body[data-page-key="sales-workspace"] .followup-contact-method-icon.is-text { color: #1769aa; background: #e2f1ff; }
body[data-page-key="sales-workspace"] .followup-contact-method-icon.is-email { color: #7b51bd; background: #eee6fb; }

body[data-page-key="sales-workspace"] .followup-pinned-card h4 {
  margin: 0;
  color: #10243e;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

body[data-page-key="sales-workspace"] .followup-pinned-card time {
  color: var(--note-accent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-note-author {
  color: #405873;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-heat-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid #d5e0e8;
  border-radius: 999px;
  color: #718096;
  background: #f4f7f9;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-heat-badge svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

body[data-page-key="sales-workspace"] .is-hot svg.heat-icon-hot {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

body[data-page-key="sales-workspace"] .is-hot svg.heat-icon-hot .heat-icon-fill {
  fill: currentColor;
  stroke: none;
}

body[data-page-key="sales-workspace"] .is-hot svg.heat-icon-hot .heat-icon-core {
  fill: #fff1f2;
  stroke: none;
}

body[data-page-key="sales-workspace"] .followup-heat-badge.is-hot { border-color: #fecaca; color: #b91c1c; background: #fff1f2; }
body[data-page-key="sales-workspace"] .followup-heat-badge.is-warm { border-color: #fed7aa; color: #c2410c; background: #fff7ed; }
body[data-page-key="sales-workspace"] .followup-heat-badge.is-cool { border-color: #99e4e6; color: #087b80; background: #effcfc; }
body[data-page-key="sales-workspace"] .followup-heat-badge.is-cold { border-color: #bfdbfe; color: #1d4ed8; background: #eff6ff; }

body[data-page-key="sales-workspace"] .followup-pinned-card-head .followup-card-actions > button,
body[data-page-key="sales-workspace"] .followup-pinned-editor button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--note-accent) 30%, white);
  border-radius: 8px;
  color: var(--note-accent);
  background: rgba(255, 255, 255, .78);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-page-key="sales-workspace"] .followup-card-actions > button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border-radius: 9px;
}

body[data-page-key="sales-workspace"] .followup-card-edit-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-card-edit-button:hover,
body[data-page-key="sales-workspace"] .followup-card-edit-button:focus-visible {
  border-color: var(--note-accent);
  background: color-mix(in srgb, var(--note-accent) 10%, white);
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-note-delete-button {
  display: inline-grid !important;
  width: 32px;
  height: 32px;
  min-height: 32px !important;
  place-items: center;
  padding: 0 !important;
  border-radius: 9px !important;
  color: #c24141 !important;
  border-color: #f3c4c4 !important;
  background: #fffafa !important;
}

body[data-page-key="sales-workspace"] .followup-note-delete-button:hover,
body[data-page-key="sales-workspace"] .followup-note-delete-button:focus-visible {
  color: #b91c1c !important;
  border-color: #dc2626 !important;
  background: #fff1f2 !important;
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-note-delete-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor-actions .followup-note-delete-button {
  margin-right: auto;
}

body[data-page-key="sales-workspace"] .followup-card-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-page-key="sales-workspace"] .followup-pinned-card > p {
  min-height: 54px;
  margin: 18px 0 13px;
  padding-top: 16px;
  color: #263f5b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-wrap;
}

body[data-page-key="sales-workspace"] .followup-pinned-next,
body[data-page-key="sales-workspace"] .followup-history-next-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(44, 148, 99, .18);
}

body[data-page-key="sales-workspace"] .followup-pinned-next span,
body[data-page-key="sales-workspace"] .followup-history-next-contact span {
  color: #708198;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-pinned-next strong,
body[data-page-key="sales-workspace"] .followup-history-next-contact strong {
  color: var(--note-accent, #257b55);
  text-align: right;
}

body[data-page-key="sales-workspace"] .followup-pinned-next strong {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}

body[data-page-key="sales-workspace"] .followup-history-next-contact strong {
  font-size: 10px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .followup-pinned-card.is-appointment,
body[data-page-key="sales-workspace"] .followup-pinned-card.is-followup {
  padding-bottom: 44px;
}

body[data-page-key="sales-workspace"] .followup-pinned-card.is-appointment .followup-pinned-next,
body[data-page-key="sales-workspace"] .followup-pinned-card.is-followup .followup-pinned-next {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: block;
  padding: 0;
  border: 0;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor {
  display: grid;
  gap: 18px;
}

body[data-page-key="sales-workspace"] .followup-note-popup-backdrop {
  position: fixed;
  z-index: 2600;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 25, 43, .56);
  backdrop-filter: blur(7px);
}

body[data-page-key="sales-workspace"] .followup-note-popup {
  position: relative;
  width: min(920px, calc(100vw - 56px));
  max-height: min(760px, calc(100vh - 56px));
  margin: 0;
  padding: 30px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--note-accent, #2f8a7d) 24%, #d8e3ea);
  border-radius: 24px;
  background: linear-gradient(155deg, #ffffff 0%, color-mix(in srgb, var(--note-accent, #2f8a7d) 4%, #ffffff) 100%);
  box-shadow: 0 38px 110px rgba(5, 23, 40, .34), 0 8px 28px rgba(8, 30, 48, .16);
}

body[data-page-key="sales-workspace"] .followup-note-popup::before {
  display: none;
}

body[data-page-key="sales-workspace"] .followup-note-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -30px -30px 0;
  padding: 28px 30px 24px;
  border-bottom: 0;
  border-radius: 23px 23px 0 0;
  color: #ffffff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--note-accent, #2f8a7d) 82%, #173149), var(--note-accent, #2f8a7d));
  box-shadow: 0 16px 34px color-mix(in srgb, var(--note-accent, #2f8a7d) 20%, transparent);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.02em;
}

body[data-page-key="sales-workspace"] .followup-note-popup-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0;
}

body[data-page-key="sales-workspace"] .followup-note-popup-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 10px 22px rgba(8, 28, 44, .16), inset 0 1px 0 rgba(255, 255, 255, .18);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .01em;
}

body[data-page-key="sales-workspace"] .followup-note-popup-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-note-popup-title small {
  color: rgba(255, 255, 255, .76);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-note-popup-title strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-note-popup-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 0;
}

body[data-page-key="sales-workspace"] .followup-note-popup-badges .pipeline-project-chip {
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 6px 15px rgba(6, 28, 42, .14);
}

body[data-page-key="sales-workspace"] .followup-note-popup-badges .pipeline-project-utility {
  min-height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 15px rgba(6, 28, 42, .14);
}

body[data-page-key="sales-workspace"] .followup-add-method-icons {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-add-result-options {
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-add-choice-group { min-width: 0; }

body[data-page-key="sales-workspace"] .followup-add-method-icons > button {
  display: inline-flex;
  min-width: 92px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #b9dfcf;
  border-radius: 999px;
  color: #315a54;
  background: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

body[data-page-key="sales-workspace"] .followup-add-method-icons > button:hover,
body[data-page-key="sales-workspace"] .followup-add-method-icons > button:focus-visible,
body[data-page-key="sales-workspace"] .followup-add-method-icons > button.is-selected {
  border-color: #2f9f79;
  background: #f1fbf7;
  box-shadow: 0 0 0 3px rgba(47, 159, 121, .1);
  outline: none;
  transform: translateY(-1px);
}

body[data-page-key="sales-workspace"] .followup-add-method-icons .followup-contact-method-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  background: transparent;
}

body[data-page-key="sales-workspace"] .followup-add-result-option {
  display: flex !important;
  width: 100%;
  min-height: 36px;
  align-items: center;
  gap: 7px !important;
  padding: 7px 10px;
  border: 1px solid #d5e2e8;
  border-radius: 999px;
  color: #40586b !important;
  background: #f8fbfc;
  font-size: 10px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .followup-add-result-options {
    grid-template-columns: 1fr;
  }
}

body[data-page-key="sales-workspace"] .followup-add-result-option:has(input:checked) {
  border-color: #2f9f79;
  color: #176a54 !important;
  background: #eaf8f2;
  box-shadow: 0 0 0 2px rgba(47, 159, 121, .09);
}

body[data-page-key="sales-workspace"] .followup-add-result-option:not(:has(input:checked)):hover {
  border-color: #78bea5;
  color: #176a54 !important;
  background: #f0faf6;
  box-shadow: 0 0 0 2px rgba(47, 159, 121, .07);
}

body[data-page-key="sales-workspace"] .followup-add-result-option input {
  width: 16px !important;
  min-height: 16px !important;
  margin: 0;
  padding: 0 !important;
  accent-color: #2f9f79;
}

body[data-page-key="sales-workspace"] .followup-note-popup-title span {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

body[data-page-key="sales-workspace"] .followup-note-popup-context {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-note-timezone-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #173f3a;
  background: #d9f5ef;
  box-shadow: 0 6px 16px rgba(8, 35, 39, .16);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-note-popup-head > button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, .13);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-note-popup-head > button:hover,
body[data-page-key="sales-workspace"] .followup-note-popup-head > button:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .22);
  outline: 3px solid rgba(255, 255, 255, .16);
}

body[data-page-key="sales-workspace"] .followup-pinned-editor label,
body[data-page-key="sales-workspace"] .followup-history-editor label {
  display: grid;
  gap: 8px;
  color: #52677b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor textarea,
body[data-page-key="sales-workspace"] .followup-pinned-editor input,
body[data-page-key="sales-workspace"] .followup-pinned-editor select,
body[data-page-key="sales-workspace"] .followup-history-editor textarea,
body[data-page-key="sales-workspace"] .followup-history-editor input {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #c7d6e0;
  border-radius: 13px;
  color: #243a55;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-transform: none;
  box-shadow: inset 0 1px 2px rgba(16, 36, 62, .04);
}

body[data-page-key="sales-workspace"] .followup-pinned-editor textarea { min-height: 210px; resize: vertical; line-height: 1.55; }
body[data-page-key="sales-workspace"] .followup-note-popup input[type="date"],
body[data-page-key="sales-workspace"] .followup-note-popup input[type="time"],
body[data-page-key="sales-workspace"] .followup-note-popup input[type="datetime-local"] {
  accent-color: var(--note-accent, #2f8a7d);
}
body[data-page-key="sales-workspace"] .followup-note-popup .followup-themed-datetime-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
body[data-page-key="sales-workspace"] .followup-themed-datetime {
  position: relative;
  display: block;
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--note-accent, #2f8a7d) 30%, #c7d6e0);
  border-radius: 13px;
  color: #243a55;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-trigger .live-appointment-calendar-icon,
body[data-page-key="sales-workspace"] .followup-themed-datetime-trigger .live-appointment-calendar-icon::before {
  border-color: var(--note-accent, #2f8a7d);
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-trigger .live-appointment-calendar-icon::after {
  background: var(--note-accent, #2f8a7d);
  box-shadow: 8px 0 var(--note-accent, #2f8a7d);
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-trigger:focus-visible,
body[data-page-key="sales-workspace"] .followup-themed-datetime-trigger[aria-expanded="true"] {
  border-color: var(--note-accent, #2f8a7d);
  outline: 3px solid color-mix(in srgb, var(--note-accent, #2f8a7d) 18%, transparent);
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup {
  position: fixed;
  z-index: 2700;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 72px));
  height: min(410px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(330px, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--note-accent, #2f8a7d) 34%, #d8e3ea);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 26px 64px rgba(10, 30, 45, .28);
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup[hidden] { display: none; }
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-head button:hover,
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-head button:focus-visible,
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-actions button:hover,
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-actions button:focus-visible,
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-days button.is-selected,
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-time-column button.is-selected {
  color: #ffffff;
  border-color: var(--note-accent, #2f8a7d);
  background: var(--note-accent, #2f8a7d);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--note-accent, #2f8a7d) 25%, transparent);
}
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-head button,
body[data-page-key="sales-workspace"] .followup-themed-datetime-popup .live-appointment-calendar-actions button {
  color: var(--note-accent, #2f8a7d);
}
@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .followup-themed-datetime-popup {
    width: calc(100vw - 32px);
    height: min(680px, calc(100vh - 32px));
    grid-template-columns: 1fr;
    grid-template-rows: minmax(330px, 1fr) minmax(250px, .8fr);
  }
}
body[data-page-key="sales-workspace"] .followup-pinned-editor-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 18px; border-top: 1px solid #e3ebf0; }
body[data-page-key="sales-workspace"] .followup-pinned-editor-actions > button { min-width: 108px; min-height: 44px; border-radius: 12px; font-size: 12px; }
body[data-page-key="sales-workspace"] .followup-pinned-editor button.is-primary { color: #fff; border-color: var(--note-accent); background: var(--note-accent); }

body[data-page-key="sales-workspace"] .followup-pinned-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor-grid.is-single { grid-template-columns: 1fr; }

body[data-page-key="sales-workspace"] .followup-heat-meter {
  --heat-color: #94a3b8;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--heat-color) 30%, #dce6ed);
  border-radius: 13px;
  background: color-mix(in srgb, var(--heat-color) 6%, #ffffff);
}

body[data-page-key="sales-workspace"] .followup-heat-meter.is-hot { --heat-color: #dc2626; }
body[data-page-key="sales-workspace"] .followup-heat-meter.is-warm { --heat-color: #f97316; }
body[data-page-key="sales-workspace"] .followup-heat-meter.is-cool { --heat-color: #0f9ca3; }
body[data-page-key="sales-workspace"] .followup-heat-meter.is-cold { --heat-color: #2563eb; }

body[data-page-key="sales-workspace"] .followup-heat-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .followup-heat-meter-head span {
  color: #607389;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-heat-meter-head strong {
  color: var(--heat-color);
  font-size: 12px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-heat-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf2;
}

body[data-page-key="sales-workspace"] .followup-heat-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #0f9ca3 38%, #f97316 68%, #dc2626 100%);
}

body[data-page-key="sales-workspace"] .followup-heat-meter > small,
body[data-page-key="sales-workspace"] .followup-heat-setting > small {
  color: #6b7f92;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

body[data-page-key="sales-workspace"] .followup-heat-meter.is-compact {
  gap: 5px;
  margin-top: 12px;
  padding: 9px 11px;
}

body[data-page-key="sales-workspace"] .followup-heat-meter.is-compact .followup-heat-track { height: 5px; }

body[data-page-key="sales-workspace"] .followup-heat-setting,
body[data-page-key="sales-workspace"] .followup-reheat-control {
  display: grid;
  gap: 9px;
}

body[data-page-key="sales-workspace"] .followup-heat-setting-label {
  color: #52677c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-heat-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-heat-choices button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid currentColor;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease, filter 160ms ease;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-heat-choices button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-heat-choices button.is-hot svg.heat-icon-hot {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

body[data-page-key="sales-workspace"] .followup-heat-choices button.is-hot { color: #b91c1c; background: #fff1f2; }
body[data-page-key="sales-workspace"] .followup-heat-choices button.is-warm { color: #c2410c; background: #fff7ed; }
body[data-page-key="sales-workspace"] .followup-heat-choices button.is-cool { color: #087b80; background: #effcfc; }
body[data-page-key="sales-workspace"] .followup-heat-choices button.is-cold { color: #1d4ed8; background: #eff6ff; }

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-heat-choices button:hover:not(:disabled) {
  filter: saturate(1.15);
  transform: translateY(-1px);
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-heat-choices button.is-selected {
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 24%, transparent);
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-heat-choices button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .followup-heat-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-page-key="sales-workspace"] .followup-reheat-fields {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr);
  gap: 12px;
}

body[data-page-key="sales-workspace"] .followup-heat-projection {
  color: #607389;
  font-size: 10px;
  font-weight: 750;
  text-transform: none;
}

body[data-page-key="sales-workspace"] .followup-heat-projection strong {
  color: #176f73;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .followup-quick-date-field {
  display: grid;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .followup-quick-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body[data-page-key="sales-workspace"] .followup-quick-date-presets {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-quick-date-presets button {
  min-height: 28px;
  padding: 4px 9px;
  border-color: #b8d9da;
  border-radius: 999px;
  color: #176f73;
  background: #f3fbfb;
  font-size: 10px;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-quick-date-presets button:hover,
body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-quick-date-presets button:focus-visible,
body[data-page-key="sales-workspace"] .followup-pinned-editor .followup-quick-date-presets button.is-selected {
  border-color: #079da3;
  color: #ffffff;
  background: #079da3;
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-quick-touch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
}

body[data-page-key="sales-workspace"] .followup-quick-touch > span {
  margin-right: 2px;
  color: #567068;
  font-size: 11px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .followup-quick-touch > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-quick-touch button {
  display: inline-flex;
  width: 42px;
  min-height: 34px;
  justify-content: center;
  align-items: center;
  padding: 3px;
  border: 1px solid #b9dfcf;
  border-radius: 999px;
  color: #205e4d;
  background: rgba(255, 255, 255, .82);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body[data-page-key="sales-workspace"] .followup-pinned-notes > .followup-add-note-button {
  min-height: 36px;
  width: auto;
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px 7px 11px;
  border: 1px solid #add8d0;
  border-radius: 999px;
  color: #276f66;
  background: #f2f9f7;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body[data-page-key="sales-workspace"] .followup-pinned-notes > .followup-add-note-button:hover,
body[data-page-key="sales-workspace"] .followup-pinned-notes > .followup-add-note-button:focus-visible {
  border-color: #2f8a7d;
  box-shadow: 0 7px 16px rgba(47, 138, 125, .14);
  transform: translateY(-1px);
  outline: none;
}

body[data-page-key="sales-workspace"] .followup-history-card-outcome {
  display: inline-flex;
  width: fit-content;
  margin-top: -7px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #176b4f;
  background: #daf3e6;
  font-size: 10px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .followup-add-note-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body[data-page-key="sales-workspace"] .followup-add-note-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #2f8a7d;
  font-size: 19px;
  font-weight: 700;
}

body[data-page-key="sales-workspace"] .followup-quick-touch button .followup-contact-method-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  background: transparent;
}

body[data-page-key="sales-workspace"] .followup-quick-touch button:hover {
  border-color: #58ad88;
  box-shadow: 0 6px 14px rgba(29, 122, 83, .12);
  transform: translateY(-1px);
}

body[data-page-key="sales-workspace"] .followup-quick-panel {
  display: grid;
  gap: 11px;
  border: 1px solid #acd8c4;
  border-radius: 13px;
  background: rgba(246, 253, 249, .94);
  box-shadow: 0 10px 24px rgba(30, 108, 75, .1);
}

body[data-page-key="sales-workspace"] .followup-quick-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #173f34;
  font-size: 13px;
}

body[data-page-key="sales-workspace"] .followup-quick-panel-head > button {
  width: 28px;
  height: 28px;
  margin-left: auto;
  border: 0;
  border-radius: 8px;
  color: #547068;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-quick-fields {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(150px, 1.2fr) minmax(180px, 1.15fr);
  gap: 9px;
}

body[data-page-key="sales-workspace"] .followup-quick-fields label {
  display: grid;
  gap: 5px;
  color: #5f756e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .followup-quick-fields input,
body[data-page-key="sales-workspace"] .followup-quick-fields select,
body[data-page-key="sales-workspace"] .followup-quick-fields textarea {
  width: 100%;
  min-height: 37px;
  padding: 8px 9px;
  border: 1px solid #c9ded5;
  border-radius: 9px;
  color: #203e36;
  background: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

body[data-page-key="sales-workspace"] .followup-quick-fields.is-note-only {
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr);
}

body[data-page-key="sales-workspace"] .followup-quick-fields textarea {
  min-height: 90px;
  resize: vertical;
}

body[data-page-key="sales-workspace"] .followup-quick-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .followup-quick-presets > span {
  margin-right: 2px;
  color: #617770;
  font-size: 10px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .followup-quick-presets button {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #bddccd;
  border-radius: 999px;
  color: #346756;
  background: #fff;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-quick-presets button.is-selected {
  border-color: #218457;
  color: #fff;
  background: #218457;
}

body[data-page-key="sales-workspace"] .followup-quick-save {
  min-height: 36px;
  justify-self: end;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #197a50;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 7px 15px rgba(25, 122, 80, .18);
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .followup-history-row-head > div { display: grid; gap: 3px; }
body[data-page-key="sales-workspace"] .followup-history-row-head time { color: #7b8da1; font-size: 10px; font-weight: 700; }
body[data-page-key="sales-workspace"] .followup-history-next-contact { max-width: 430px; margin-top: 10px; }
body[data-page-key="sales-workspace"] .followup-history-editor { display: grid; gap: 10px; margin-top: 10px; }

@media (max-width: 1180px) {
  body[data-page-key="sales-workspace"] .followup-pinned-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-key="sales-workspace"] .followup-pinned-card { grid-column: auto; }
  body[data-page-key="sales-workspace"] .followup-pinned-notes > .followup-add-note-button { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .followup-pinned-notes { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .followup-pinned-notes > * { grid-column: 1 / -1 !important; }
  body[data-page-key="sales-workspace"] .followup-pinned-notes { margin-right: 14px; margin-left: 14px; }
  body[data-page-key="sales-workspace"] .followup-quick-fields,
  body[data-page-key="sales-workspace"] .followup-quick-fields.is-note-only,
  body[data-page-key="sales-workspace"] .followup-pinned-editor-grid { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .followup-quick-touch { align-items: flex-start; flex-wrap: wrap; }
  body[data-page-key="sales-workspace"] .followup-note-popup-backdrop { padding: 12px; }
  body[data-page-key="sales-workspace"] .followup-note-popup { width: calc(100vw - 24px); padding: 16px; }
  body[data-page-key="sales-workspace"] .followup-note-popup-head { margin: -16px -16px 0; padding: 20px 16px 18px; }
  body[data-page-key="sales-workspace"] .followup-note-popup-avatar { width: 44px; height: 44px; border-radius: 13px; }
  body[data-page-key="sales-workspace"] .followup-note-popup-title strong { font-size: 18px; }
  body[data-page-key="sales-workspace"] .followup-quick-date-head { align-items: flex-start; flex-direction: column; }
  body[data-page-key="sales-workspace"] .followup-quick-date-presets { justify-content: flex-start; }
  body[data-page-key="sales-workspace"] .followup-reheat-fields { grid-template-columns: 1fr; }
}

/* Go Backs: long-range prospects that have not scheduled an appointment yet. */
body[data-page-key="sales-workspace"] .followups-main-card .project-tabs-row {
  align-items: flex-start;
}

body[data-page-key="sales-workspace"] .followup-status-filter {
  flex: 1 1 auto;
}

body[data-page-key="sales-workspace"] .go-back-add-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid #008b8f;
  border-radius: 13px;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 139, 143, 0.2);
  cursor: pointer;
}

body[data-page-key="sales-workspace"] .go-back-add-button span {
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

body[data-page-key="sales-workspace"] .go-back-add-button:hover,
body[data-page-key="sales-workspace"] .go-back-add-button:focus-visible {
  background: linear-gradient(135deg, #003d46, #008b8f);
  outline: 3px solid rgba(5, 191, 196, 0.2);
  outline-offset: 2px;
  transform: translateY(-1px);
}

body[data-page-key="sales-workspace"] .go-back-list-view {
  position: relative;
  display: grid;
  gap: 0;
}

body[data-page-key="sales-workspace"] .go-back-list-actions {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 20px;
}

body[data-page-key="sales-workspace"] .go-back-list-view .projects-table-scroll {
  margin-top: 0;
}

@media (max-width: 760px) {
  body[data-page-key="sales-workspace"] .go-back-list-view {
    gap: 12px;
  }

  body[data-page-key="sales-workspace"] .go-back-list-actions {
    position: static;
  }
}

body[data-page-key="sales-workspace"] .go-back-list-row {
  --project-type-color: #008b8f;
}

body[data-page-key="sales-workspace"] .go-back-list-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 139, 143, 0.18);
}

body[data-page-key="sales-workspace"] .go-back-list-category {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8f8f8;
  color: #007d84;
  font-size: 9px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .go-back-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
}

body[data-page-key="sales-workspace"] .go-back-list-surface,
body[data-page-key="sales-workspace"] .go-back-empty {
  position: relative;
  margin-top: 0;
  border: 1px solid #d9e5ec;
  border-radius: 14px;
  background: #f5f9fc;
}

body[data-page-key="sales-workspace"] .go-back-list-surface {
  min-height: 150px;
  padding: 70px 18px 18px;
}

body[data-page-key="sales-workspace"] .go-back-empty {
  min-height: 112px;
  padding-right: 82px;
}

body[data-page-key="sales-workspace"] .go-back-list-surface > .go-back-add-button,
body[data-page-key="sales-workspace"] .go-back-empty > .go-back-add-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

body[data-page-key="sales-workspace"] .go-back-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 20px;
  background: linear-gradient(150deg, #ffffff 0%, #f4fcfc 100%);
  color: #08213d;
  box-shadow: 0 12px 26px rgba(8, 33, 61, 0.07);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body[data-page-key="sales-workspace"] .go-back-card:hover,
body[data-page-key="sales-workspace"] .go-back-card:focus-visible,
body[data-page-key="sales-workspace"] .go-back-card.is-selected {
  border-color: #05aeb3;
  box-shadow: 0 18px 34px rgba(0, 139, 143, 0.14);
  outline: none;
  transform: translateY(-2px);
}

body[data-page-key="sales-workspace"] .go-back-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

body[data-page-key="sales-workspace"] .go-back-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .go-back-card-head small,
body[data-page-key="sales-workspace"] .go-back-card-foot small,
body[data-page-key="sales-workspace"] .go-back-contact-panel small,
body[data-page-key="sales-workspace"] .go-back-note-next small {
  display: block;
  color: #6d8095;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .go-back-card h3 {
  margin: 2px 0 0;
  overflow: hidden;
  color: #08213d;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .go-back-card-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #52657c;
  font-size: 12px;
  font-weight: 800;
}

body[data-page-key="sales-workspace"] .go-back-card-contact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .go-back-card-contact .is-address {
  grid-column: 1 / -1;
}

body[data-page-key="sales-workspace"] .go-back-card-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(0, 139, 143, 0.13);
}

body[data-page-key="sales-workspace"] .go-back-card-foot strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #16324f;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .go-back-modal {
  width: min(900px, calc(100vw - 36px));
  max-width: 900px;
}

body[data-page-key="sales-workspace"] .go-back-modal .command-home-appointment-shell {
  border-color: rgba(0, 139, 143, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0fbfb 100%);
}

body[data-page-key="sales-workspace"] .go-back-modal .command-home-appointment-head {
  margin: -22px -22px 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #003d46, #008b8f);
}

body[data-page-key="sales-workspace"] .go-back-modal .command-home-appointment-time { color: #a7f3ef; }
body[data-page-key="sales-workspace"] .go-back-modal .command-home-appointment-head h2 { color: #ffffff; }

body[data-page-key="sales-workspace"] .go-back-modal .command-home-appointment-head .mini-link {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body[data-page-key="sales-workspace"] .go-back-modal .resource-link.primary {
  border-color: #008b8f;
  background: linear-gradient(135deg, #008b8f, #05bfc4);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 139, 143, 0.18);
}

body[data-page-key="sales-workspace"] .go-back-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

body[data-page-key="sales-workspace"] .go-back-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page-key="sales-workspace"] .go-back-form-grid .span-two { grid-column: span 2; }
body[data-page-key="sales-workspace"] .go-back-form-grid .span-full { grid-column: 1 / -1; }

body[data-page-key="sales-workspace"] .go-back-form .command-home-appointment-field {
  display: grid;
  gap: 7px;
  min-height: 74px;
  padding: 12px 13px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-radius: 13px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .go-back-form .command-home-appointment-field > span {
  color: #007d84;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .go-back-form input,
body[data-page-key="sales-workspace"] .go-back-form select,
body[data-page-key="sales-workspace"] .go-back-form textarea {
  width: 100%;
  min-height: 27px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #08213d;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
}

body[data-page-key="sales-workspace"] .go-back-form textarea {
  min-height: 62px;
  resize: vertical;
}

body[data-page-key="sales-workspace"] .go-back-form .command-home-appointment-field:focus-within {
  border-color: #05bfc4;
  box-shadow: 0 0 0 3px rgba(0, 139, 143, 0.12);
}

body[data-page-key="sales-workspace"] .go-back-quick-dates,
body[data-page-key="sales-workspace"] .followup-quick-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-page-key="sales-workspace"] .go-back-quick-dates > span {
  margin-right: 3px;
  color: #52657c;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

body[data-page-key="sales-workspace"] .go-back-quick-dates button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(0, 139, 143, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #007d84;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

body[data-page-key="sales-workspace"] .go-back-quick-dates button.is-selected {
  border-color: #008b8f;
  background: #008b8f;
  color: #ffffff;
}

body[data-page-key="sales-workspace"] .go-back-project-header .pipeline-project-title small {
  color: #008b8f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

body[data-page-key="sales-workspace"] .go-back-source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 139, 143, 0.18);
  border-radius: 999px;
  background: #eafafa;
  color: #007d84;
  font-size: 11px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .go-back-category-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

body[data-page-key="sales-workspace"] .go-back-category-pills > span:not(.go-back-source-pill) {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(0, 139, 143, 0.24);
  border-radius: 999px;
  background: #008b8f;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .go-back-profile-scroll {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 16px 22px 28px;
  overflow-y: auto;
}

body[data-page-key="sales-workspace"] .go-back-contact-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-page-key="sales-workspace"] .go-back-contact-panel article {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dce8ed;
  border-radius: 14px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .go-back-contact-panel .is-wide { grid-column: span 2; }

body[data-page-key="sales-workspace"] .go-back-contact-panel strong,
body[data-page-key="sales-workspace"] .go-back-contact-panel a {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #08213d;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page-key="sales-workspace"] .go-back-workspace {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 139, 143, 0.17);
  border-radius: 20px;
  background: linear-gradient(150deg, #ffffff, #f4fcfc);
}

body[data-page-key="sales-workspace"] .go-back-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body[data-page-key="sales-workspace"] .go-back-workspace-head > div:first-child > span {
  color: #008b8f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

body[data-page-key="sales-workspace"] .go-back-workspace-head h3 {
  margin: 3px 0 0;
  color: #08213d;
  font-size: 20px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .go-back-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-page-key="sales-workspace"] .go-back-note-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 170px;
  padding: 15px;
  border: 1px solid rgba(0, 139, 143, 0.2);
  border-left: 5px solid #05aeb3;
  border-radius: 16px;
  background: #ffffff;
}

body[data-page-key="sales-workspace"] .go-back-note-card-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

body[data-page-key="sales-workspace"] .go-back-note-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #008b8f;
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

body[data-page-key="sales-workspace"] .go-back-note-card-head strong,
body[data-page-key="sales-workspace"] .go-back-note-card-head time {
  display: block;
}

body[data-page-key="sales-workspace"] .go-back-note-card-head strong { color: #08213d; font-size: 13px; font-weight: 950; }
body[data-page-key="sales-workspace"] .go-back-note-card-head time { margin-top: 2px; color: #6d8095; font-size: 10px; font-weight: 800; }
body[data-page-key="sales-workspace"] .go-back-note-card p { margin: 0; color: #173654; font-size: 13px; font-weight: 750; line-height: 1.5; }
body[data-page-key="sales-workspace"] .go-back-note-next { align-self: end; padding-top: 10px; border-top: 1px solid #e5eff2; }
body[data-page-key="sales-workspace"] .go-back-note-next strong { display: block; margin-top: 4px; color: #007d84; font-size: 11px; font-weight: 950; }

body[data-page-key="sales-workspace"] .go-back-workspace > .followup-add-note-button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid #008b8f;
  border-radius: 12px;
  background: #008b8f;
  color: #ffffff;
}

@media (max-width: 1100px) {
  body[data-page-key="sales-workspace"] .go-back-card-grid,
  body[data-page-key="sales-workspace"] .go-back-note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-key="sales-workspace"] .go-back-contact-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body[data-page-key="sales-workspace"] .go-back-card-grid,
  body[data-page-key="sales-workspace"] .go-back-note-grid,
  body[data-page-key="sales-workspace"] .go-back-form-grid,
  body[data-page-key="sales-workspace"] .go-back-contact-panel { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .go-back-form-grid .span-two,
  body[data-page-key="sales-workspace"] .go-back-form-grid .span-full,
  body[data-page-key="sales-workspace"] .go-back-contact-panel .is-wide { grid-column: 1; }
  body[data-page-key="sales-workspace"] .go-back-card-foot { grid-template-columns: 1fr; }
  body[data-page-key="sales-workspace"] .go-back-workspace-head { align-items: flex-start; flex-direction: column; }
  body[data-page-key="sales-workspace"] .go-back-profile-scroll { padding-right: 14px; padding-left: 14px; }

  .workspace-action-section-intakes .workspace-action-head {
    padding-right: 102px;
  }

  .intakes-corner-tool {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .intakes-corner-tool svg {
    width: 25px;
    height: 25px;
  }

  .intakes-corner-tool-money {
    right: 66px;
    font-size: 25px;
  }
}
