@layer platino-legacy {
#section-sdr {
  --sdr-navy: #123a59;
  --sdr-ocean: #0878bd;
  --sdr-ocean-dark: #075b8f;
  --sdr-surface: #ffffff;
  --sdr-canvas: #f4f7fa;
  --sdr-line: #d7e0e7;
  --sdr-muted: #657687;
  color: #233c52;
}

.sdr-shell {
  max-width: 96rem;
  margin: 0 auto;
  font-family: "Inter", Arial, sans-serif;
}

.sdr-shell h1,
.sdr-shell h2,
.sdr-shell h3,
.sdr-shell h4,
.sdr-shell button {
  font-family: "Montserrat", "Inter", Arial, sans-serif;
}

.sdr-topbar,
.sdr-panel,
.sdr-metric,
.sdr-form-card {
  border: 1px solid var(--sdr-line);
  background: var(--sdr-surface);
  box-shadow: 0 12px 30px rgba(18, 58, 89, 0.06);
}

.sdr-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-radius: 1.25rem;
}

.sdr-command-hero {
  position: relative;
  display: flex;
  min-height: 10.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  overflow: visible;
  padding: clamp(1.35rem, 3vw, 2.1rem);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 86% 0%, rgba(96, 165, 250, 0.2), transparent 34%),
    linear-gradient(120deg, #071a35 0%, #10335f 58%, #314350 100%);
  box-shadow: 0 22px 45px rgba(15, 36, 61, 0.17);
}

.sdr-command-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20rem;
  height: 9rem;
  border: 1px solid rgba(191, 219, 254, 0.13);
  border-radius: 50%;
  transform: rotate(-10deg);
  pointer-events: none;
}

.sdr-command-copy,
.sdr-command-actions { position: relative; z-index: 1; }
.sdr-command-copy { max-width: 50rem; }

.sdr-command-eyebrow {
  display: block;
  margin-bottom: 0.42rem;
  color: #f7d97d;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#section-sdr .sdr-command-hero .sdr-title {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.sdr-command-hero .sdr-title span { color: #dbeafe; font-weight: 720; }
#section-sdr .sdr-command-hero .sdr-subtitle { max-width: 46rem; color: #d6e5f4; line-height: 1.6; }

.sdr-command-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  color: #9fc4e9;
  font-size: 0.68rem;
  font-weight: 750;
}

.sdr-command-status span {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12), 0 0 12px rgba(52, 211, 153, 0.7);
}

.sdr-command-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.sdr-hero-primary,
.sdr-hero-secondary {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 0.95rem;
  border-radius: 0.78rem;
  font-size: 0.72rem;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease;
}

.sdr-hero-primary { color: #0b2b54; background: linear-gradient(135deg, #fff1ab, #f4cf63); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.sdr-hero-secondary { border: 1px solid rgba(255, 255, 255, 0.34); color: #f8fbff; background: rgba(255, 255, 255, 0.11); backdrop-filter: blur(10px); }
.sdr-hero-primary:hover,.sdr-hero-secondary:hover { transform: translateY(-1px); }

.sdr-title {
  color: var(--sdr-navy);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 900;
}

.sdr-subtitle {
  margin-top: 0.25rem;
  color: var(--sdr-muted);
  font-size: 0.82rem;
}

.sdr-primary,
.sdr-secondary,
.sdr-danger,
.sdr-success {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.76rem;
  font-weight: 800;
  transition: 160ms ease;
}

.sdr-primary {
  background: linear-gradient(135deg, var(--sdr-ocean-dark), var(--sdr-ocean));
  color: #fff;
  box-shadow: 0 10px 20px rgba(8, 120, 189, 0.2);
}

.sdr-primary:hover { transform: translateY(-1px); }
.sdr-primary:disabled { cursor: not-allowed; opacity: 0.48; transform: none; }

.sdr-secondary {
  border: 1px solid #c8d4dc;
  background: #fff;
  color: var(--sdr-navy);
}

.sdr-danger { background: #b42318; color: #fff; }
.sdr-success { background: #177245; color: #fff; }

.sdr-view-tabs,
.sdr-stepper {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
}

.sdr-progress-header {
  flex: 0 0 auto;
  padding: 0.8rem 1rem 0.7rem;
  border-bottom: 1px solid var(--sdr-line);
  background: #fff;
}

.sdr-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.sdr-progress-copy span {
  color: #718397;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sdr-progress-copy strong {
  color: var(--sdr-navy);
  font-size: 0.78rem;
}

.sdr-progress-track {
  height: 0.3rem;
  margin-top: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2eaf0;
}

.sdr-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sdr-ocean-dark), #21a8df);
  transition: width 180ms ease;
}

.sdr-progress-header .sdr-stepper {
  justify-content: space-between;
  margin-top: 0.55rem;
  padding-bottom: 0;
}

.sdr-view-tab,
.sdr-step {
  flex: 0 0 auto;
  border: 1px solid var(--sdr-line);
  border-radius: 999px;
  background: #fff;
  color: #607486;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.6rem 0.85rem;
}

.sdr-progress-header .sdr-step {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  font-size: 0.64rem;
}

.sdr-step-number {
  display: grid;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: #e9eff4;
  color: #61758a;
  font-size: 0.62rem;
}

.sdr-step[aria-current="step"] .sdr-step-number {
  background: var(--sdr-ocean);
  color: #fff;
}

.sdr-view-tab[aria-selected="true"],
.sdr-step[aria-current="step"] {
  border-color: #72b5d9;
  background: #eaf6fc;
  color: var(--sdr-ocean-dark);
  box-shadow: inset 0 -3px var(--sdr-ocean);
}

.sdr-metrics {
  display: grid;
  gap: 0.55rem;
}

.sdr-metrics-primary,
.sdr-metrics-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.sdr-portfolio-metric {
  position: relative;
  min-height: 5.9rem;
  overflow: hidden;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d7e0e7;
  border-top: 3px solid #7aa2ca;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 58, 89, 0.06);
  text-align: left;
  transition: 160ms ease;
}

button.sdr-portfolio-metric:hover,
.sdr-portfolio-metric[aria-pressed="true"] { border-color: #6fa9d1; background: #f4f9fd; transform: translateY(-1px); }
.sdr-portfolio-metric[data-tone="amber"] { border-top-color: #f4ad25; }
.sdr-portfolio-metric[data-tone="green"] { border-top-color: #29b875; }
.sdr-portfolio-metric[data-tone="rose"] { border-top-color: #ef5c70; }

.sdr-portfolio-metric > span {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  color: #61768a;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.sdr-portfolio-metric > span i { color: #3d77a9; font-size: 0.95rem; }
.sdr-portfolio-metric > strong { display: block; margin-top: 0.72rem; color: #123a59; font-size: 1.45rem; line-height: 1; }
.sdr-portfolio-metric > small { display: block; margin-top: 0.38rem; color: #a9c7e8; font-size: 0.6rem; }

.sdr-conversion-metric {
  border-color: #d0ad48;
  border-top-color: #f2cb55;
  background: linear-gradient(145deg, #174a82, #0d325c);
}

.sdr-conversion-metric > span,
.sdr-conversion-metric > span i { color: #dbeafe; }
.sdr-conversion-metric > strong { color: #fff; }

.sdr-metric {
  min-height: 4.2rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  text-align: left;
}

.sdr-metric[aria-pressed="true"] {
  border-color: #6eb2d7;
  background: #edf8fd;
  box-shadow: inset 0 -3px var(--sdr-ocean), 0 12px 26px rgba(8, 120, 189, 0.09);
}

.sdr-metric span {
  display: block;
  color: var(--sdr-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.sdr-metric strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--sdr-navy);
  font-size: 1.25rem;
}

.sdr-metrics-more {
  border: 1px solid var(--sdr-line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.sdr-metrics-more > summary,
.sdr-expandable > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.sdr-metrics-more > summary {
  padding: 0.65rem 0.8rem;
  color: #557086;
  font-size: 0.7rem;
  font-weight: 800;
}

.sdr-metrics-more > summary span { display: inline-flex; align-items: center; gap: 0.4rem; }
.sdr-metrics-more > summary::-webkit-details-marker,
.sdr-expandable > summary::-webkit-details-marker { display: none; }
.sdr-metrics-more[open] > summary > .ph-caret-down,
.sdr-expandable[open] > summary > .ph-caret-down { transform: rotate(180deg); }
.sdr-metrics-more > summary > .ph-caret-down,
.sdr-expandable > summary > .ph-caret-down { transition: transform 160ms ease; }
.sdr-metrics-secondary { padding: 0 0.65rem 0.65rem; }

.sdr-layout {
  display: grid;
  gap: 1rem;
}

.sdr-queue {
  min-width: 0;
  border-radius: 1.2rem;
  padding: 0.9rem;
  align-self: start;
}

.sdr-filters {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sdr-control {
  width: 100%;
  min-height: 2.7rem;
  border: 1px solid #cbd6de;
  border-radius: 0.75rem;
  background: #fff;
  color: #29445b;
  padding: 0.62rem 0.75rem;
  outline: none;
  font-size: 0.82rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.sdr-control[readonly] { cursor: default; background: #edf2f6; color: #64788a; }

.sdr-control:focus {
  border-color: var(--sdr-ocean);
  box-shadow: 0 0 0 4px rgba(8, 120, 189, 0.1);
}

.sdr-field {
  display: grid;
  gap: 0.38rem;
  color: #405b71;
  font-size: 0.73rem;
  font-weight: 750;
}

.sdr-required { color: #b42318; }
.sdr-help { color: #778897; font-size: 0.66rem; font-weight: 500; }

.sdr-lead-list {
  display: grid;
  max-height: 64vh;
  gap: 0.55rem;
  margin-top: 0.85rem;
  overflow: auto;
}

.sdr-lead-card {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d7e0e7;
  border-radius: 0.9rem;
  background: #fff;
  text-align: left;
}

.sdr-lead-card:hover,
.sdr-lead-card[aria-selected="true"] {
  border-color: #78b7d9;
  background: #f1f9fd;
}

.sdr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #eaf1f6;
  color: #466176;
  font-size: 0.61rem;
  font-weight: 850;
}

.sdr-badge.hot,
.sdr-badge.approved { background: #dcf6e8; color: #146c43; }
.sdr-badge.warm,
.sdr-badge.waiting { background: #fff1c7; color: #8a5a00; }
.sdr-badge.rejected { background: #fee4e2; color: #a9281d; }
.sdr-badge.forwarded { background: #dff5fb; color: #087096; }

.sdr-workspace {
  min-width: 0;
  overflow: hidden;
  border-radius: 1.2rem;
}

.sdr-workspace > form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.sdr-lead-header {
  position: relative;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--sdr-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.sdr-lead-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
}

.sdr-icon-action {
  display: inline-grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #cfdae3;
  border-radius: 0.72rem;
  color: #315b7f;
  background: #f8fbfd;
  font-size: 1.05rem;
}

.sdr-icon-action:hover { border-color: #6fa9d1; color: #0878bd; background: #eef8fd; }
.sdr-icon-action.whatsapp { color: #177245; }

.sdr-forward-action {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.72rem;
  border-radius: 0.72rem;
  color: #fff;
  background: #123a59;
  font-size: 0.68rem;
  font-weight: 850;
}

.sdr-form-body {
  min-height: 0;
  padding: 1rem;
  background: var(--sdr-canvas);
}

.sdr-form-card {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
}

.sdr-form-card + .sdr-form-card { margin-top: 0.85rem; }

.sdr-form-card h3 {
  color: var(--sdr-navy);
  font-size: 1rem;
  font-weight: 850;
}

.sdr-form-card > p {
  margin-top: 0.25rem;
  color: var(--sdr-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.sdr-document-options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.sdr-document-option {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #d9e4ec;
  border-radius: 0.9rem;
  background: #f9fcfe;
}

.sdr-document-option > i {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(145deg, #164d7c, #0a3158);
  font-size: 1.25rem;
}

.sdr-document-option strong { color: #183c5d; font-size: 0.78rem; }
.sdr-document-option p { margin-top: 0.18rem; color: #6b7e8f; font-size: 0.67rem; line-height: 1.45; }

.sdr-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sdr-card-heading p {
  max-width: 42rem;
  margin-top: 0.25rem;
  color: var(--sdr-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.sdr-eyebrow {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--sdr-ocean-dark);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sdr-required-note,
.sdr-call-timer {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: #edf5fa;
  color: #516f85;
  font-size: 0.62rem;
  font-weight: 800;
}

.sdr-required-note b { color: #b42318; }
.sdr-call-card { border-color: #a9d1e6; box-shadow: 0 14px 30px rgba(8, 120, 189, 0.09); }

.sdr-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.sdr-essential-grid {
  padding: 0.8rem;
  border: 1px solid #dce7ee;
  border-radius: 0.85rem;
  background: #f9fcfe;
}

.sdr-expandable {
  margin-top: 0.75rem;
  overflow: hidden;
  border: 1px solid #d7e1e8;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 7px 20px rgba(18, 58, 89, 0.035);
}

.sdr-expandable > summary { padding: 0.8rem 0.9rem; }
.sdr-expandable > summary span { display: grid; gap: 0.12rem; }
.sdr-expandable > summary strong { color: #294b65; font-size: 0.76rem; }
.sdr-expandable > summary small { color: #75899a; font-size: 0.65rem; }
.sdr-expandable-body { padding: 0 0.9rem 0.9rem; border-top: 1px solid #edf1f4; }
.sdr-expandable-body > .sdr-grid:first-child { margin-top: 0.85rem; }
.sdr-expandable-body > .sdr-field:first-child { margin-top: 0.85rem; }
.sdr-expandable-body > .sdr-grid + .sdr-field { margin-top: 0.8rem; }

.sdr-question {
  border: 1px solid #d4dee5;
  border-radius: 1rem;
  background: #fff;
  padding: 0.95rem 1rem;
}

.sdr-question-list { display: grid; gap: 0.75rem; margin-top: 0.75rem; }

.sdr-question-heading {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.sdr-question-heading > span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--sdr-navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.sdr-question-heading h3 { color: var(--sdr-navy); font-size: 0.82rem; font-weight: 850; }
.sdr-question-heading p { margin-top: 0.18rem; color: #607486; font-size: 0.72rem; line-height: 1.45; }
.sdr-question-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.7rem; margin-top: 0.55rem; }
.sdr-question-footer > label { display: inline-flex; align-items: center; gap: 0.4rem; padding-top: 0.65rem; color: #617486; font-size: 0.68rem; }
.sdr-question-footer .sdr-expandable { min-width: min(20rem, 100%); margin-top: 0; }

.sdr-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0;
}

.sdr-shortcut {
  border: 1px solid #c9d6df;
  border-radius: 999px;
  background: #f8fafc;
  color: #49657a;
  padding: 0.42rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.sdr-score-chip { flex: 0 0 auto; padding: 0.55rem 0.7rem; border-radius: 0.75rem; background: #eaf6fc; text-align: right; }
.sdr-score-chip span { display: block; color: #5b7488; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.sdr-score-chip strong { display: block; margin-top: 0.1rem; color: var(--sdr-ocean-dark); font-size: 0.82rem; }
.sdr-info-note { display: flex; gap: 0.45rem; align-items: center; margin-top: 0.8rem; padding: 0.7rem; border-radius: 0.7rem; background: #f1f5f8; color: #607486; font-size: 0.68rem; }

.sdr-shortcut[aria-pressed="true"] {
  border-color: #65add3;
  background: #e9f6fc;
  color: var(--sdr-ocean-dark);
}

.sdr-analysis-progress {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8ee;
}

.sdr-analysis-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sdr-ocean-dark), #20a9df);
  transition: width 450ms ease;
}

.sdr-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.sdr-result-card {
  border: 1px solid #bcd7e7;
  border-radius: 0.9rem;
  background: #f1f9fd;
  padding: 0.8rem;
}

.sdr-result-card span { color: #60788c; font-size: 0.63rem; font-weight: 800; }
.sdr-result-card strong { display: block; margin-top: 0.3rem; color: var(--sdr-navy); font-size: 1rem; }

.sdr-actionbar {
  position: relative;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--sdr-line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.sdr-save-button { background: #f5f8fa; }

.sdr-save-status {
  margin-right: auto;
  align-self: center;
  color: #617486;
  font-size: 0.68rem;
  font-weight: 700;
}

.sdr-empty {
  display: grid;
  min-height: 14rem;
  place-items: center;
  padding: 2rem;
  color: #758695;
  text-align: center;
}

.sdr-notifications {
  position: relative;
}

.sdr-notification-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.6rem);
  right: 0;
  width: min(25rem, calc(100vw - 2rem));
  max-height: 32rem;
  overflow: auto;
  border: 1px solid var(--sdr-line);
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 24px 55px rgba(18, 58, 89, 0.18);
}

.sdr-notification {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: #425e73;
  text-align: left;
}

.sdr-notification.unread { background: #edf8fd; }

.sdr-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(9, 29, 46, 0.6);
}

.sdr-modal[hidden] { display: none; }
.sdr-modal-card {
  width: min(38rem, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 1.2rem;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 30px 80px rgba(5, 20, 32, 0.3);
}

@media (min-width: 700px) {
  .sdr-metrics-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sdr-metrics-secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sdr-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdr-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .sdr-metrics-primary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sdr-layout { grid-template-columns: minmax(19rem, 0.68fr) minmax(0, 1.62fr); }
  .sdr-queue { position: sticky; top: 5.6rem; max-height: calc(100vh - 6.5rem); overflow: hidden; }
  .sdr-lead-list { max-height: calc(100vh - 15rem); }
  .sdr-workspace { display: flex; height: min(48rem, calc(100vh - 6.5rem)); flex-direction: column; }
  .sdr-form-body { overflow-y: auto; scrollbar-gutter: stable; }
}

@media (max-width: 699px) {
  #section-sdr { padding: 0 !important; }
  .sdr-shell { padding-bottom: 4.5rem; }
  .sdr-topbar { top: 0; border-radius: 0; }
  .sdr-command-hero { align-items: stretch; flex-direction: column; gap: 1rem; border-radius: 0; }
  .sdr-command-actions { justify-content: stretch; }
  .sdr-command-actions > button { flex: 1 1 auto; }
  .sdr-command-actions .sdr-notifications { flex: 0 0 auto; }
  .sdr-subtitle { display: none; }
  .sdr-layout.is-editing .sdr-queue { display: none; }
  .sdr-layout:not(.is-editing) .sdr-workspace { display: none; }
  .sdr-lead-header { top: 0; }
  .sdr-form-body { padding: 0.65rem; }
  .sdr-actionbar { position: fixed; right: 0; bottom: 0; left: 0; }
  .sdr-actionbar button { flex: 1 1 0; min-width: 0; padding-inline: 0.55rem; }
  .sdr-save-status { flex: 1 0 100%; order: -1; margin: 0; text-align: center; }
  .sdr-step-label { display: none; }
  .sdr-progress-header .sdr-step { flex: 1 0 auto; padding-inline: 0.3rem; }
  .sdr-progress-header .sdr-stepper { gap: 0.3rem; }
  .sdr-progress-copy { align-items: center; }
  .sdr-card-heading { align-items: flex-start; flex-direction: column; gap: 0.55rem; }
  .sdr-required-note,.sdr-call-timer { align-self: flex-start; }
  .sdr-question-footer { flex-direction: column; }
  .sdr-question-footer .sdr-expandable { width: 100%; }
  .sdr-shortcuts { flex-wrap: nowrap; margin-inline: -0.2rem; padding: 0 0.2rem 0.25rem; overflow-x: auto; scrollbar-width: thin; }
  .sdr-shortcut { flex: 0 0 auto; }
  .sdr-metrics-primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sdr-portfolio-metric { min-height: 5.35rem; padding: 0.72rem; }
  .sdr-portfolio-metric > span { font-size: 0.55rem; }
  .sdr-portfolio-metric > strong { margin-top: 0.55rem; font-size: 1.2rem; }
  .sdr-lead-toolbar { flex: 1 1 100%; justify-content: flex-start; }
  .sdr-document-option { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .sdr-document-option > i { width: 2.5rem; height: 2.5rem; }
  .sdr-document-option > button { grid-column: 1 / -1; width: 100%; }
  .sdr-metric { min-height: 3.9rem; }
  .sdr-result-grid { grid-template-columns: 1fr; }
}
}
