:root {
  --app-zoom: 0.75;
  --bg: #071726;
  --paper: #10253b;
  --paper-soft: #16304b;
  --paper-strong: #0c1c2d;
  --ink: #eef6ff;
  --muted: #9bb0c4;
  --line: rgba(129, 160, 191, 0.28);
  --navy: #1d4f82;
  --navy-strong: #0a2742;
  --blue: #4d8fc8;
  --mist: #18344f;
  --mist-strong: #214463;
  --orange: #ef7c2f;
  --orange-soft: #ffb26c;
  --shadow: 0 24px 64px rgba(3, 11, 20, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --calendar-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Crect x='1.25' y='2.25' width='13.5' height='12.5' rx='2.25' fill='%23fff7ea' stroke='%2384310b' stroke-width='1.5'/%3E%3Crect x='1.25' y='2.25' width='13.5' height='3.25' rx='2.25' fill='%23ef7c2f'/%3E%3Cpath d='M4 1.5v3M12 1.5v3' stroke='%2384310b' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M4.2 8h7.6M4.2 10.8h5.2' stroke='%2384310b' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E")
    4 2,
    pointer;
}

* {
  box-sizing: border-box;
}

html {
  zoom: var(--app-zoom);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(77, 143, 200, 0.2), transparent 28%),
    radial-gradient(circle at right 10% top 18%, rgba(239, 124, 47, 0.18), transparent 22%),
    linear-gradient(180deg, #081523 0%, #0a1b2b 42%, #09111d 100%);
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
  opacity: 0.9;
}

body::before {
  width: 340px;
  height: 340px;
  top: 80px;
  right: -80px;
  background: radial-gradient(circle, rgba(239, 124, 47, 0.24), transparent 62%);
  animation: driftOne 13s ease-in-out infinite;
}

body::after {
  width: 380px;
  height: 380px;
  bottom: 40px;
  left: -100px;
  background: radial-gradient(circle, rgba(77, 143, 200, 0.2), transparent 64%);
  animation: driftTwo 16s ease-in-out infinite;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background:
    linear-gradient(135deg, rgba(12, 28, 45, 0.98), rgba(18, 48, 75, 0.96)),
    linear-gradient(90deg, rgba(239, 124, 47, 0.12), transparent 40%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: calc(var(--radius-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 124, 47, 0.22), transparent 62%);
  animation: pulseGlow 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.hero-controls {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: none;
  min-width: 220px;
  position: relative;
  z-index: 1;
}

.hero-session-panel {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.hero-session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-session-copy {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.hero-session-line {
  margin: 0;
  color: #eef6ff;
}

.hero-session-line--identity {
  font-size: 1rem;
  font-weight: 800;
}

.hero-session-line--identity span {
  font-weight: 500;
}

.hero-session-line--environment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 224, 191, 0.32);
  background: linear-gradient(135deg, rgba(34, 114, 99, 0.92), rgba(26, 90, 78, 0.96));
  color: #d8fff1;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(17, 73, 63, 0.18);
}

.hero-session-line--environment.sandbox {
  border-color: rgba(255, 187, 120, 0.42);
  background: linear-gradient(135deg, rgba(239, 124, 47, 0.96), rgba(201, 92, 22, 0.96));
  color: #fff8ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(179, 84, 20, 0.24);
}

.hero-session-action,
.hero-session-switch {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.hero-session-action {
  border: 1px solid rgba(255, 187, 120, 0.42);
  background: linear-gradient(135deg, rgba(239, 124, 47, 0.98), rgba(201, 92, 22, 0.96));
  color: #fff8ef;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(239, 124, 47, 0.22);
}

.hero-session-switch {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(24, 52, 79, 0.92), rgba(15, 33, 52, 0.94)),
    radial-gradient(circle at center, rgba(255, 168, 80, 0.08), transparent 65%);
  color: #eef6ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(10, 24, 40, 0.18);
}

.hero-session-action:hover:not(:disabled),
.hero-session-action:focus-visible:not(:disabled),
.hero-session-switch:hover:not(:disabled),
.hero-session-switch:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  outline: none;
}

.hero-session-action:hover:not(:disabled),
.hero-session-action:focus-visible:not(:disabled) {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 28px rgba(239, 124, 47, 0.28);
}

.hero-session-switch:hover:not(:disabled),
.hero-session-switch:focus-visible:not(:disabled) {
  border-color: rgba(255, 187, 120, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(10, 24, 40, 0.24);
}

.hero-session-action:disabled,
.hero-session-switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hero-session-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-session-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 187, 120, 0.38);
  background:
    linear-gradient(180deg, rgba(24, 52, 79, 0.92), rgba(15, 33, 52, 0.94)),
    radial-gradient(circle at center, rgba(255, 168, 80, 0.12), transparent 60%);
  color: #fff4e6;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hero-link-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 196, 135, 0.64);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-icon-button {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 187, 120, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(24, 52, 79, 0.92), rgba(15, 33, 52, 0.94)),
    radial-gradient(circle at center, rgba(255, 168, 80, 0.1), transparent 60%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff4e6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.hero-icon-link {
  text-decoration: none;
}

.hero-icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 196, 135, 0.64);
  color: #ffdcb4;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.akto-registrations-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
}

.akto-registrations-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 30, 0.56);
  backdrop-filter: blur(9px);
}

.akto-registrations-dialog {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  max-height: min(82vh, 860px);
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(95, 140, 194, 0.3);
  background:
    linear-gradient(180deg, rgba(15, 36, 59, 0.98), rgba(8, 22, 38, 0.99)),
    radial-gradient(circle at top right, rgba(255, 168, 80, 0.14), transparent 56%);
  box-shadow:
    0 30px 90px rgba(5, 10, 22, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 16px;
  color: #f3f8ff;
  overflow: hidden;
}

.akto-registrations-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.akto-registrations-copy {
  display: grid;
  gap: 8px;
}

.akto-registrations-copy h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.akto-registrations-note {
  margin: 0;
  color: rgba(208, 222, 243, 0.8);
  font-size: 0.94rem;
  line-height: 1.5;
}

.akto-registrations-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.akto-registrations-refresh,
.akto-registrations-close {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 187, 120, 0.34);
  background: rgba(24, 52, 79, 0.72);
  color: #f4f8ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.akto-registrations-refresh {
  padding: 0 16px;
}

.akto-registrations-close {
  width: 40px;
  padding: 0;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.akto-registrations-refresh:hover,
.akto-registrations-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 196, 135, 0.56);
  background: rgba(33, 70, 105, 0.78);
  color: #fff0df;
}

.akto-registrations-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.akto-registrations-search {
  min-height: 48px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(120, 164, 214, 0.18);
  background: rgba(10, 24, 40, 0.86);
  color: #f4f8ff;
  padding: 0 16px;
  font: inherit;
}

.akto-registrations-search::placeholder {
  color: rgba(192, 208, 231, 0.6);
}

.akto-registrations-search:focus {
  outline: none;
  border-color: rgba(247, 146, 30, 0.54);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.akto-registrations-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 48px;
  color: rgba(218, 230, 247, 0.82);
  font-size: 0.88rem;
}

.akto-registrations-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 187, 120, 0.24);
  background: rgba(24, 52, 79, 0.56);
  color: #ffd6a5;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.akto-registrations-body {
  min-height: 240px;
  max-height: min(58vh, 620px);
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(120, 164, 214, 0.14);
  background: rgba(8, 22, 38, 0.64);
}

.akto-registrations-state {
  padding: 32px 24px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: rgba(214, 228, 255, 0.82);
}

.akto-registrations-state strong {
  color: #f6fbff;
  font-size: 1.04rem;
}

.akto-registrations-state.is-error strong {
  color: #ffd6c1;
}

.akto-registrations-state-gauge {
  width: min(320px, 100%);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(147, 197, 253, 0.14);
  box-shadow: inset 0 0 0 1px rgba(126, 170, 214, 0.18);
}

.akto-registrations-state-gauge > span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 173, 92, 0.24), rgba(255, 173, 92, 0.98), rgba(255, 214, 170, 0.72));
  box-shadow: 0 0 24px rgba(255, 173, 92, 0.38);
}

.akto-registrations-table {
  width: 100%;
  border-collapse: collapse;
}

.akto-registrations-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.77rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 225, 245, 0.84);
  background: linear-gradient(180deg, rgba(18, 42, 67, 0.98), rgba(12, 29, 47, 0.98));
  border-bottom: 1px solid rgba(120, 164, 214, 0.18);
}

.akto-registrations-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(120, 164, 214, 0.12);
  vertical-align: top;
  color: #eef5ff;
  line-height: 1.45;
}

.akto-registrations-table tbody tr:hover {
  background: rgba(31, 64, 96, 0.24);
}

.akto-registrations-primary {
  display: grid;
  gap: 4px;
}

.akto-registrations-primary strong {
  font-size: 0.98rem;
}

.akto-registrations-subline {
  color: rgba(193, 210, 232, 0.76);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .akto-registrations-dialog {
    width: min(100vw - 20px, 960px);
    max-height: min(88vh, 860px);
    padding: 20px;
  }

  .akto-registrations-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .akto-registrations-meta {
    justify-content: flex-start;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .akto-registrations-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .akto-registrations-head-actions {
    justify-content: flex-start;
  }

  .akto-registrations-body {
    max-height: min(56vh, 520px);
  }

  .akto-registrations-table thead {
    display: none;
  }

  .akto-registrations-table,
  .akto-registrations-table tbody,
  .akto-registrations-table tr,
  .akto-registrations-table td {
    display: block;
    width: 100%;
  }

  .akto-registrations-table tbody tr {
    padding: 14px 0;
  }

  .akto-registrations-table tbody td {
    padding: 6px 14px;
    border-bottom: none;
  }

  .akto-registrations-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: rgba(193, 210, 232, 0.72);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

.hero-kpis {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex: none;
}

.hero-kpi {
  --hero-kpi-line-start: rgba(114, 200, 255, 0.2);
  --hero-kpi-line-mid: rgba(255, 184, 110, 0.98);
  --hero-kpi-line-end: rgba(255, 244, 222, 0.18);
  position: relative;
  overflow: hidden;
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 52, 79, 0.9), rgba(15, 33, 52, 0.9));
  border: 1px solid rgba(77, 143, 200, 0.18);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--hero-kpi-line-start), var(--hero-kpi-line-mid) 52%, var(--hero-kpi-line-end));
  box-shadow:
    0 0 16px var(--hero-kpi-line-start),
    0 2px 8px var(--hero-kpi-line-start);
  opacity: 0.96;
}

.hero-kpi-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(247, 251, 255, 0.96);
  font-weight: 700;
}

.hero-kpi-value {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--orange-soft);
  background: linear-gradient(180deg, #ffd7a8 0%, #ffb26c 44%, #ff8e35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 20px rgba(255, 178, 108, 0.2),
    0 8px 18px rgba(179, 84, 20, 0.16);
}

.section-kicker,
.modal-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--orange-soft);
  font-weight: 700;
}

.modula-logo-wrap {
  padding: 4px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.modula-logo {
  display: block;
  width: 178px;
  max-width: 100%;
  height: auto;
}

.hero-title-block {
  position: relative;
  display: grid;
  gap: 4px;
  margin-left: 8px;
  padding-left: 24px;
}

.hero-title-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--orange-soft);
  font-weight: 700;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.02;
  color: var(--ink);
  text-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

main {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.cards-section {
  display: grid;
  gap: 18px;
}

.home-selection-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(18, 40, 63, 0.98), rgba(12, 29, 47, 0.98)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.14), transparent 34%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 18px 38px rgba(4, 10, 18, 0.22);
}

.home-selection-bar.is-empty {
  opacity: 0.96;
}

.home-selection-copy {
  flex: 1 1 auto;
  display: grid;
  gap: 10px;
}

.home-selection-title {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink);
}

.home-selection-title-count {
  color: #ffb46a;
  font-weight: 900;
}

.home-selection-title-label {
  color: #f7fbff;
}

.home-selection-caption {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
}

.home-selection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-selection-pill,
.home-selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 178, 108, 0.46);
  background: rgba(239, 124, 47, 0.16);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-selection-pill {
  background:
    linear-gradient(180deg, rgba(239, 124, 47, 0.34), rgba(185, 82, 22, 0.28)),
    rgba(22, 49, 75, 0.94);
  border-color: rgba(255, 196, 138, 0.72);
  color: #fff7ee;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(239, 124, 47, 0.18);
}

.home-selection-pill:hover,
.home-selection-pill:focus-visible,
.home-selection-chip:hover,
.home-selection-chip:focus-visible {
  border-color: rgba(255, 196, 138, 0.86);
  background: rgba(239, 124, 47, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.home-selection-pill strong,
.home-selection-chip strong {
  font-size: 0.95rem;
}

.home-selection-empty-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-selection-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
}

.home-selection-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.home-selection-button--ghost {
  background: linear-gradient(180deg, rgba(24, 52, 79, 0.94), rgba(14, 31, 49, 0.96));
  color: #fff7ee;
  border-color: rgba(255, 196, 138, 0.34);
}

.home-selection-button--primary {
  background: linear-gradient(135deg, rgba(239, 124, 47, 0.98), rgba(201, 92, 22, 0.96));
  color: #fff8ef;
  box-shadow: 0 12px 26px rgba(239, 124, 47, 0.22);
}

.home-selection-button:hover:not(:disabled),
.home-selection-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  outline: none;
}

.home-selection-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.home-selection-primary-stack {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.home-selection-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(77, 143, 200, 0.2);
  background: rgba(16, 37, 59, 0.42);
}

.home-selection-group-title {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.home-selection-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cards-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.92fr) minmax(220px, 0.92fr) minmax(300px, 1.08fr);
  grid-template-areas:
    "department sector commercial markets"
    "department size persona markets"
    "department seasonality seasonality markets";
  gap: 18px;
  align-items: stretch;
}

.cards-grid:has(.facet-card--territory) {
  grid-template-areas:
    "territory sector commercial markets"
    "territory size persona markets"
    "territory seasonality seasonality markets";
}

.facet-card {
  --card-line-start: rgba(120, 208, 255, 0.18);
  --card-line-mid: rgba(255, 181, 108, 0.96);
  --card-line-end: rgba(255, 240, 214, 0.18);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(16, 37, 59, 0.98), rgba(12, 28, 45, 0.98)),
    linear-gradient(120deg, rgba(239, 124, 47, 0.08), transparent 40%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 16px 42px rgba(1, 8, 16, 0.34);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: 2px;
}

.facet-card--department {
  --card-line-start: rgba(110, 194, 255, 0.18);
  --card-line-mid: rgba(255, 185, 116, 0.98);
  --card-line-end: rgba(255, 246, 225, 0.18);
  grid-area: department;
  min-height: 560px;
}

.facet-card--territory {
  --card-line-start: rgba(110, 194, 255, 0.18);
  --card-line-mid: rgba(255, 185, 116, 0.98);
  --card-line-end: rgba(255, 246, 225, 0.18);
  grid-area: territory;
  min-height: 560px;
  cursor: default;
}

.facet-card--sector {
  --card-line-start: rgba(255, 174, 95, 0.2);
  --card-line-mid: rgba(255, 203, 125, 1);
  --card-line-end: rgba(255, 246, 226, 0.16);
  grid-area: sector;
}

.facet-card--commercial {
  --card-line-start: rgba(112, 205, 255, 0.18);
  --card-line-mid: rgba(145, 237, 255, 0.98);
  --card-line-end: rgba(239, 251, 255, 0.16);
  grid-area: commercial;
}

.facet-card--size {
  --card-line-start: rgba(255, 167, 84, 0.18);
  --card-line-mid: rgba(255, 205, 116, 1);
  --card-line-end: rgba(255, 244, 213, 0.16);
  grid-area: size;
}

.facet-card--persona {
  --card-line-start: rgba(106, 199, 238, 0.18);
  --card-line-mid: rgba(157, 231, 255, 0.98);
  --card-line-end: rgba(240, 251, 255, 0.16);
  grid-area: persona;
}

.facet-card--seasonality {
  --card-line-start: rgba(120, 208, 255, 0.18);
  --card-line-mid: rgba(125, 241, 219, 0.98);
  --card-line-end: rgba(235, 255, 249, 0.14);
  grid-area: seasonality;
}

.facet-card--markets {
  --card-line-start: rgba(113, 232, 209, 0.18);
  --card-line-mid: rgba(152, 255, 229, 0.98);
  --card-line-end: rgba(242, 255, 251, 0.12);
  grid-area: markets;
  cursor: default;
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(125, 241, 219, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(72, 204, 176, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(16, 52, 50, 0.98), rgba(8, 31, 34, 0.99));
  border-color: rgba(213, 255, 246, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 0 3px rgba(255, 255, 255, 0.06),
    0 20px 48px rgba(0, 7, 15, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.facet-card--sector,
.facet-card--commercial {
  min-height: 270px;
}

.facet-card--sector .facet-card-body {
  display: flex;
  flex-direction: column;
  min-height: 192px;
}

.facet-card--sector .facet-preview {
  display: grid;
  gap: 7px;
}

.facet-card--sector .preview-pill--sector {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  font-size: 0.82rem;
  line-height: 1.15;
}

.facet-card--sector .preview-pill--sector strong {
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.facet-card--sector .preview-pill-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facet-card-extra-note {
  margin: auto 0 0;
  padding-top: 14px;
  text-align: center;
  color: rgba(180, 201, 220, 0.82);
  font-size: 0.78rem;
  line-height: 1.2;
}

.facet-card--size,
.facet-card--persona {
  min-height: 250px;
}

.facet-card--seasonality {
  min-height: 240px;
}

.facet-card--markets {
  min-height: 0;
}

.facet-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 124, 47, 0.16), transparent 68%);
}

.facet-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--card-line-start), var(--card-line-mid) 50%, var(--card-line-end));
  box-shadow:
    0 0 18px var(--card-line-start),
    0 2px 10px var(--card-line-start);
  opacity: 0.96;
}

.facet-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 26px 56px rgba(1, 8, 16, 0.42);
  border-color: rgba(255, 233, 213, 0.52);
}

.facet-card:hover::before {
  opacity: 1;
  box-shadow:
    0 0 22px var(--card-line-mid),
    0 2px 12px var(--card-line-start);
}

.facet-card--markets:hover {
  transform: none;
  border-color: rgba(228, 255, 249, 0.56);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.32),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 22px 54px rgba(0, 7, 15, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.facet-card--territory:hover {
  transform: none;
}

.facet-card--markets::after {
  background: radial-gradient(circle, rgba(96, 226, 197, 0.22), transparent 68%);
}

.facet-card--markets .section-kicker {
  color: #9ee8d6;
}

.facet-card--markets .facet-card-title {
  color: #f3fffb;
}

.facet-card--markets .facet-card-metric-copy {
  color: rgba(219, 241, 236, 0.76);
}

.facet-card.pending {
  cursor: not-allowed;
}

.facet-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.facet-card-title {
  font-size: 1.35rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
}

.badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(77, 143, 200, 0.16);
  color: var(--ink);
}

.badge--all-toggle {
  border: 1px solid rgba(120, 171, 220, 0.26);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.badge--all-toggle:hover {
  background: rgba(95, 154, 214, 0.24);
  border-color: rgba(151, 203, 247, 0.4);
  transform: translateY(-1px);
}

.badge--all-toggle-active {
  background: linear-gradient(180deg, rgba(255, 181, 90, 0.28), rgba(241, 120, 25, 0.2));
  border-color: rgba(255, 190, 118, 0.52);
  color: #fff3e6;
}

.badge--all-toggle-active:hover {
  background: linear-gradient(180deg, rgba(255, 188, 110, 0.34), rgba(241, 120, 25, 0.26));
  border-color: rgba(255, 199, 135, 0.64);
}

.badge--all-static {
  background: rgba(77, 143, 200, 0.12);
}

.badge.pending {
  background: rgba(239, 124, 47, 0.2);
  color: #ffd7b9;
}

.facet-card-body {
  display: grid;
  gap: 12px;
}

.facet-card-metric-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.facet-card-metric {
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--orange-soft);
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffe0b8 0%, #ffb26c 44%, #ff8b2f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 18px rgba(255, 178, 108, 0.18),
    0 10px 24px rgba(239, 124, 47, 0.16);
}

.facet-card-metric-copy {
  margin: 0;
  line-height: 1.2;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.facet-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(24, 52, 79, 0.72);
  border: 1px solid rgba(77, 143, 200, 0.22);
  font-size: 0.86rem;
  color: var(--ink);
}

.preview-pill-button {
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.preview-pill-button:hover,
.preview-pill-button:focus-visible {
  border-color: rgba(255, 178, 108, 0.54);
  background: rgba(28, 63, 95, 0.92);
  transform: translateY(-1px);
  outline: none;
}

.preview-pill-button.is-home-selected,
.territory-department-pill.is-home-selected {
  border-color: rgba(255, 187, 120, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 150, 64, 0.94), rgba(211, 95, 21, 0.9)),
    rgba(28, 63, 95, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(239, 124, 47, 0.24);
  color: #fff7ee;
}

.preview-pill--large-headcount {
  border-color: rgba(255, 184, 99, 0.46);
  background:
    linear-gradient(180deg, rgba(89, 55, 20, 0.44), rgba(42, 30, 14, 0.28)),
    rgba(24, 52, 79, 0.72);
  color: #ffe0b8;
  font-weight: 800;
}

.preview-pill--large-headcount strong {
  color: #fff5e7;
}

.facet-card--department .facet-preview {
  gap: 10px 8px;
}

.facet-card--department .preview-pill {
  padding: 8px 12px;
  font-size: 0.84rem;
  line-height: 1.24;
}

.department-map-block {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(77, 143, 200, 0.2);
  background:
    linear-gradient(180deg, rgba(12, 28, 45, 0.98), rgba(9, 21, 34, 0.98)),
    radial-gradient(circle at right bottom, rgba(239, 124, 47, 0.12), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.territory-card-block {
  margin-top: auto;
  display: grid;
  gap: 10px;
  min-height: 100%;
  align-content: start;
}

.territory-accordion {
  display: grid;
  gap: 10px;
}

.territory-lot {
  border: 1px solid rgba(110, 194, 255, 0.16);
  border-radius: 18px;
  background: rgba(10, 25, 40, 0.76);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.territory-lot[open] {
  border-color: rgba(255, 196, 135, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 37, 59, 0.96), rgba(10, 24, 38, 0.98)),
    radial-gradient(circle at right top, rgba(255, 184, 110, 0.12), transparent 42%);
  box-shadow:
    0 12px 24px rgba(0, 7, 15, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.territory-lot-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.territory-lot-summary::-webkit-details-marker {
  display: none;
}

.territory-lot-copy {
  display: grid;
  gap: 3px;
}

.territory-lot-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.territory-lot-title {
  display: block;
}

.territory-lot-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.territory-lot-meta em {
  font-style: normal;
  color: var(--orange-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.territory-lot-meta i {
  width: 14px;
  height: 14px;
  position: relative;
  display: block;
}

.territory-lot-meta i::before,
.territory-lot-meta i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8fc3ff, #fff2e0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.territory-lot-meta i::before {
  transform: translateY(-50%);
}

.territory-lot-meta i::after {
  transform: translateY(-50%) rotate(90deg);
}

.territory-lot[open] .territory-lot-meta i::after {
  transform: translateY(-50%) rotate(0deg);
}

.territory-lot-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease;
}

.territory-lot[open] .territory-lot-panel {
  grid-template-rows: 1fr;
}

.territory-lot-body {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 0 16px 0;
}

.territory-lot[open] .territory-lot-body {
  padding-bottom: 14px;
}

.territory-highlight,
.territory-placeholder {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 42, 64, 0.64);
}

.territory-highlight-tag,
.territory-placeholder-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(239, 124, 47, 0.16);
  color: #ffe3bf;
}

.territory-highlight p,
.territory-placeholder p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.territory-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.department-map-head {
  display: grid;
  gap: 10px;
}

.department-map-copy {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.8rem;
}

.department-map-mini-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.department-map-mini-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(24, 52, 79, 0.78);
  border: 1px solid rgba(77, 143, 200, 0.22);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.department-map-mini-pill.accent {
  border-color: rgba(255, 178, 108, 0.28);
  background: rgba(104, 63, 20, 0.32);
  color: #ffe3bf;
}

.department-map-stage {
  position: relative;
  min-height: 205px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(77, 143, 200, 0.12), transparent 26%),
    radial-gradient(circle at 75% 72%, rgba(239, 124, 47, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(10, 23, 36, 0.96), rgba(6, 15, 25, 0.98));
}

.department-map-stage::before {
  content: "";
  position: absolute;
  inset: 18px 20px 16px 18px;
  border-radius: 18px;
  background-image:
    linear-gradient(rgba(81, 119, 154, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 119, 154, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
}

.department-map-shape {
  position: absolute;
  inset: 18px 18px 14px 18px;
  clip-path: polygon(44% 2%, 61% 7%, 75% 17%, 86% 29%, 90% 46%, 87% 61%, 95% 78%, 79% 94%, 63% 96%, 49% 86%, 35% 91%, 20% 83%, 10% 67%, 8% 50%, 14% 33%, 24% 18%);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(27, 59, 88, 0.94), rgba(17, 36, 56, 0.98)),
    radial-gradient(circle at 52% 52%, rgba(239, 124, 47, 0.12), transparent 38%);
  box-shadow:
    inset 0 0 0 1px rgba(91, 147, 197, 0.16),
    0 18px 28px rgba(0, 0, 0, 0.18);
}

.department-map-shape::before {
  content: "";
  position: absolute;
  inset: 10% 12% 14% 14%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(118, 184, 223, 0.08), transparent 70%);
  filter: blur(10px);
}

.city-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: var(--size);
  height: var(--size);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

.city-bubble-core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.03),
    0 14px 26px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.city-bubble--blue .city-bubble-core {
  background: radial-gradient(circle at 35% 35%, #82c1ff 0%, #3f7fbb 42%, rgba(42, 85, 125, 0.96) 100%);
}

.city-bubble--orange .city-bubble-core {
  background: radial-gradient(circle at 35% 35%, #ffd097 0%, #ef8b3f 42%, rgba(145, 78, 28, 0.98) 100%);
}

.city-bubble-label {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  min-width: 72px;
  padding: 4px 7px;
  border-radius: 10px;
  background: rgba(8, 20, 31, 0.7);
  border: 1px solid rgba(77, 143, 200, 0.14);
  text-align: left;
  opacity: 0.82;
}

.city-bubble-label strong {
  color: var(--ink);
  font-size: 0.68rem;
  line-height: 1.1;
}

.city-bubble-label em {
  color: var(--orange-soft);
  font-size: 0.66rem;
  font-style: normal;
  line-height: 1;
}

.city-bubble-label.is-primary {
  min-width: 88px;
  padding: 6px 9px;
  border-radius: 12px;
  background: rgba(8, 20, 31, 0.84);
  border-color: rgba(255, 178, 108, 0.18);
  opacity: 1;
}

.city-bubble-label.is-primary strong {
  font-size: 0.74rem;
}

.city-bubble-label.is-primary em {
  font-size: 0.7rem;
}

.city-bubble:hover .city-bubble-core,
.city-bubble:focus-visible .city-bubble-core {
  transform: scale(1.08);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.04),
    0 18px 32px rgba(0, 0, 0, 0.26);
}

.city-bubble:focus-visible {
  outline: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 14, 0.62);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.facet-modal {
  position: fixed;
  inset: 24px;
  z-index: 21;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(13, 26, 41, 0.99), rgba(10, 21, 34, 0.99)),
    linear-gradient(135deg, rgba(239, 124, 47, 0.06), transparent 30%);
  border: 1px solid rgba(77, 143, 200, 0.18);
  box-shadow: 0 30px 80px rgba(2, 8, 15, 0.44);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.modal-head {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.modal-head-copy {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.modal-head h2 {
  margin-top: 2px;
  font-size: 1.7rem;
  color: var(--ink);
}

.close-button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(77, 143, 200, 0.16);
  color: var(--ink);
  font-size: 1.8rem;
  cursor: pointer;
}

.top-reference-indicator-wrap {
  position: relative;
}

.top-reference-indicator {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(135, 210, 168, 0.26);
  background:
    linear-gradient(180deg, rgba(16, 36, 56, 0.96), rgba(11, 24, 39, 0.96)),
    radial-gradient(circle at center, rgba(135, 210, 168, 0.14), transparent 68%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 24px rgba(4, 10, 18, 0.18);
  color: rgba(232, 242, 252, 0.9);
  cursor: pointer;
}

.top-reference-indicator:hover,
.top-reference-indicator:focus-visible {
  border-color: rgba(163, 224, 191, 0.42);
  transform: translateY(-1px);
}

.top-reference-indicator svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.top-reference-indicator-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 223, 0.72);
  background: linear-gradient(180deg, rgba(239, 124, 47, 0.98), rgba(212, 90, 18, 0.98));
  color: #fff9f2;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 8px 18px rgba(114, 42, 0, 0.22),
    0 0 0 3px rgba(239, 124, 47, 0.1);
}

.top-reference-indicator:not(.has-pending) {
  border-color: rgba(118, 150, 181, 0.2);
  color: rgba(177, 201, 224, 0.86);
}

.top-reference-indicator:not(.has-pending) .top-reference-indicator-count {
  background: linear-gradient(180deg, rgba(73, 98, 125, 0.95), rgba(56, 77, 101, 0.95));
  border-color: rgba(181, 202, 224, 0.32);
  box-shadow: 0 8px 18px rgba(6, 14, 25, 0.18);
}

.top-reference-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  max-height: 360px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(135, 210, 168, 0.2);
  background:
    linear-gradient(180deg, rgba(16, 35, 54, 0.99), rgba(10, 22, 35, 0.99)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.08), transparent 34%);
  box-shadow:
    0 22px 44px rgba(4, 10, 18, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 7;
}

.top-reference-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.top-reference-panel-head strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.top-reference-panel-list {
  display: grid;
  gap: 8px;
  max-height: 276px;
  overflow: auto;
}

.top-reference-panel-item {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 45, 69, 0.72);
  color: var(--ink);
  cursor: pointer;
}

.top-reference-panel-item strong {
  font-size: 0.92rem;
}

.top-reference-panel-item span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.top-reference-panel-item:hover,
.top-reference-panel-item:focus-visible {
  border-color: rgba(255, 200, 142, 0.44);
  background: rgba(28, 56, 84, 0.88);
}

.top-reference-panel-empty {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: auto;
  scroll-behavior: smooth;
}

.facet-pane {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 34, 53, 0.52), rgba(10, 23, 36, 0.28)),
    radial-gradient(circle at left top, rgba(74, 160, 255, 0.08), transparent 28%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}

.facet-pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(111, 208, 255, 0.18), rgba(111, 208, 255, 0.92), rgba(255, 178, 108, 0.24));
  box-shadow: 0 0 16px rgba(111, 208, 255, 0.18);
}

.facet-pane-head {
  display: grid;
  gap: 0;
}

.modal-head-copy .facet-insights {
  padding: 12px 14px;
  gap: 10px;
}

.modal-head-copy .facet-insights-head {
  gap: 3px;
}

.modal-head-copy .facet-insights-scope {
  font-size: 0.92rem;
}

.modal-head-copy .facet-insights-note {
  font-size: 0.76rem;
}

.modal-head-copy .facet-kpi-grid {
  gap: 10px;
}

.modal-head-copy .facet-kpi-card {
  padding: 14px 14px 12px;
}

.modal-head-copy .facet-kpi-label {
  font-size: 0.7rem;
}

.modal-head-copy .facet-kpi-value {
  font-size: 1.35rem;
}

.modal-head-copy .facet-kpi-note {
  font-size: 0.72rem;
}

.pane-title {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.facet-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font: inherit;
  background: rgba(24, 52, 79, 0.6);
  color: var(--ink);
}

.facet-search::placeholder {
  color: var(--muted);
}

.facet-options {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 420px;
  padding: 10px;
  padding-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(12, 28, 45, 0.42), rgba(8, 19, 31, 0.28)),
    radial-gradient(circle at right top, rgba(111, 208, 255, 0.06), transparent 34%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.facet-pane-tools {
  display: grid;
  gap: 10px;
  align-content: start;
}

.markets-card-block {
  margin-top: auto;
  display: grid;
  gap: 8px;
  min-height: 100%;
  align-content: start;
}

.markets-card-head {
  display: grid;
  gap: 8px;
}

.markets-card-copy {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.markets-selector {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.markets-selector-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.markets-selector-tab {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid rgba(111, 212, 193, 0.18);
  background: rgba(6, 24, 29, 0.72);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.markets-selector-tab:hover,
.markets-selector-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(146, 239, 221, 0.34);
  box-shadow: 0 10px 18px rgba(0, 7, 15, 0.14);
}

.markets-selector-tab span {
  min-width: 0;
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 800;
}

.markets-selector-tab strong {
  flex: none;
  min-width: 26px;
  min-height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #dff7ef;
  font-size: 0.72rem;
}

.markets-selector-tab.is-active {
  border-color: rgba(152, 255, 229, 0.46);
  background:
    linear-gradient(180deg, rgba(20, 68, 64, 0.96), rgba(8, 38, 42, 0.98)),
    radial-gradient(circle at top right, rgba(115, 235, 211, 0.16), transparent 44%);
  box-shadow:
    0 14px 24px rgba(0, 7, 15, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.markets-selector-tab.is-active strong {
  background: rgba(174, 255, 229, 0.18);
  color: #f4fffb;
}

.markets-focus-shell {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(146, 239, 221, 0.24);
  background:
    linear-gradient(180deg, rgba(12, 43, 48, 0.96), rgba(6, 24, 29, 0.98)),
    radial-gradient(circle at right top, rgba(115, 235, 211, 0.12), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 24px rgba(0, 7, 15, 0.16);
}

.markets-focus-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.markets-focus-copy {
  display: grid;
  gap: 4px;
}

.markets-focus-title {
  color: #f4fffb;
  font-size: 0.95rem;
  line-height: 1.2;
}

.markets-focus-meta {
  color: #9fd8cb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.markets-focus-panel {
  min-height: 0;
  max-height: min(56vh, 560px);
  overflow-y: auto;
  padding-right: 6px;
}

.markets-focus-panel::-webkit-scrollbar {
  width: 8px;
}

.markets-focus-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(181, 231, 222, 0.34);
}

.markets-focus-panel p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.markets-accordion {
  display: grid;
  gap: 10px;
}

.markets-lot {
  border: 1px solid rgba(111, 212, 193, 0.18);
  border-radius: 18px;
  background: rgba(6, 24, 29, 0.74);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.markets-lot[open] {
  border-color: rgba(146, 239, 221, 0.38);
  background:
    linear-gradient(180deg, rgba(18, 63, 60, 0.94), rgba(9, 37, 40, 0.96)),
    radial-gradient(circle at right top, rgba(115, 235, 211, 0.14), transparent 42%);
  box-shadow:
    0 14px 26px rgba(0, 7, 15, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.markets-lot-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.markets-lot-summary::-webkit-details-marker {
  display: none;
}

.markets-lot-copy {
  display: block;
}

.markets-lot-title {
  display: block;
}

.markets-lot-burger {
  position: relative;
  width: 20px;
  height: 16px;
  flex: none;
}

.markets-lot-burger i {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8ef2db, #f5fffc);
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 0 10px rgba(126, 242, 216, 0.22);
}

.markets-lot-burger i:nth-child(1) {
  top: 1px;
}

.markets-lot-burger i:nth-child(2) {
  top: 7px;
}

.markets-lot-burger i:nth-child(3) {
  top: 13px;
}

.markets-lot[open] .markets-lot-burger i:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.markets-lot[open] .markets-lot-burger i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.markets-lot[open] .markets-lot-burger i:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.markets-lot-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.markets-lot[open] .markets-lot-panel {
  grid-template-rows: 1fr;
}

.markets-lot-body {
  min-height: 0;
  overflow: hidden;
  padding: 0 16px 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.82rem;
}

.markets-lot[open] .markets-lot-body {
  padding-bottom: 14px;
}

.markets-lot-body p {
  padding-top: 2px;
  color: var(--muted);
}

.market-training-list {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.market-training-card {
  --market-domain-border: rgba(255, 220, 170, 0.72);
  --market-domain-radial-1: rgba(255, 245, 214, 0.42);
  --market-domain-radial-2: rgba(255, 163, 71, 0.34);
  --market-domain-grad-top: rgba(255, 122, 26, 0.98);
  --market-domain-grad-bottom: rgba(201, 74, 10, 1);
  --market-domain-inset-top: rgba(255, 249, 236, 0.22);
  --market-domain-inset-ring: rgba(255, 245, 222, 0.08);
  --market-domain-hover-border: rgba(255, 241, 212, 0.9);
  display: block;
  border-radius: 16px;
  border: 1px solid var(--market-domain-border);
  background:
    radial-gradient(circle at top right, var(--market-domain-radial-1), transparent 30%),
    radial-gradient(circle at left center, var(--market-domain-radial-2), transparent 38%),
    linear-gradient(180deg, var(--market-domain-grad-top), var(--market-domain-grad-bottom));
  padding: 14px 14px 12px;
  box-shadow:
    0 18px 30px rgba(0, 9, 14, 0.24),
    inset 0 1px 0 var(--market-domain-inset-top),
    inset 0 0 0 1px var(--market-domain-inset-ring);
}

.market-training-card-link {
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

.market-training-card-link:hover,
.market-training-card-link:focus-visible {
  transform: translateY(-2px) scale(1.01);
  border-color: var(--market-domain-hover-border);
  box-shadow:
    0 22px 34px rgba(0, 9, 14, 0.28),
    inset 0 1px 0 rgba(255, 249, 236, 0.24),
    inset 0 0 0 1px rgba(255, 249, 236, 0.12);
  filter: saturate(1.04);
  outline: none;
}

.market-training-card--theme-restauration {
  --market-domain-border: rgba(255, 224, 176, 0.76);
  --market-domain-radial-1: rgba(255, 245, 214, 0.42);
  --market-domain-radial-2: rgba(255, 163, 71, 0.34);
  --market-domain-grad-top: rgba(255, 122, 26, 0.98);
  --market-domain-grad-bottom: rgba(201, 74, 10, 1);
  --market-domain-inset-top: rgba(255, 249, 236, 0.22);
  --market-domain-inset-ring: rgba(255, 245, 222, 0.08);
  --market-domain-hover-border: rgba(255, 178, 108, 0.92);
}

.market-training-card--theme-commercial {
  --market-domain-border: rgba(255, 214, 165, 0.76);
  --market-domain-radial-1: rgba(255, 243, 214, 0.38);
  --market-domain-radial-2: rgba(228, 165, 84, 0.28);
  --market-domain-grad-top: rgba(214, 131, 51, 0.99);
  --market-domain-grad-bottom: rgba(144, 78, 19, 1);
  --market-domain-inset-top: rgba(255, 246, 229, 0.22);
  --market-domain-inset-ring: rgba(255, 242, 222, 0.08);
  --market-domain-hover-border: rgba(241, 195, 132, 0.9);
}

.market-training-card--theme-communication {
  --market-domain-border: rgba(164, 242, 255, 0.68);
  --market-domain-radial-1: rgba(228, 251, 255, 0.32);
  --market-domain-radial-2: rgba(98, 214, 230, 0.3);
  --market-domain-grad-top: rgba(42, 167, 190, 0.98);
  --market-domain-grad-bottom: rgba(19, 102, 125, 1);
  --market-domain-inset-top: rgba(238, 252, 255, 0.18);
  --market-domain-inset-ring: rgba(227, 251, 255, 0.08);
  --market-domain-hover-border: rgba(173, 244, 255, 0.88);
}

.market-training-card--theme-rh {
  --market-domain-border: rgba(255, 192, 210, 0.72);
  --market-domain-radial-1: rgba(255, 239, 244, 0.34);
  --market-domain-radial-2: rgba(232, 120, 154, 0.3);
  --market-domain-grad-top: rgba(211, 88, 131, 0.99);
  --market-domain-grad-bottom: rgba(129, 39, 74, 1);
  --market-domain-inset-top: rgba(255, 245, 248, 0.2);
  --market-domain-inset-ring: rgba(255, 233, 240, 0.08);
  --market-domain-hover-border: rgba(255, 198, 219, 0.88);
}

.market-training-card--theme-formateurs {
  --market-domain-border: rgba(206, 198, 255, 0.72);
  --market-domain-radial-1: rgba(244, 239, 255, 0.34);
  --market-domain-radial-2: rgba(144, 129, 240, 0.3);
  --market-domain-grad-top: rgba(111, 100, 204, 0.99);
  --market-domain-grad-bottom: rgba(63, 53, 133, 1);
  --market-domain-inset-top: rgba(248, 245, 255, 0.2);
  --market-domain-inset-ring: rgba(237, 232, 255, 0.08);
  --market-domain-hover-border: rgba(214, 206, 255, 0.88);
}

.market-training-card--theme-management {
  --market-domain-border: rgba(190, 236, 214, 0.74);
  --market-domain-radial-1: rgba(239, 252, 246, 0.34);
  --market-domain-radial-2: rgba(94, 197, 168, 0.28);
  --market-domain-grad-top: rgba(44, 154, 129, 0.99);
  --market-domain-grad-bottom: rgba(23, 90, 76, 1);
  --market-domain-inset-top: rgba(244, 255, 251, 0.18);
  --market-domain-inset-ring: rgba(234, 255, 248, 0.08);
  --market-domain-hover-border: rgba(200, 245, 225, 0.88);
}

.market-training-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.market-training-title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.market-training-title {
  margin: 0;
  color: #fffefc;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(76, 24, 0, 0.24);
}

.market-training-mode-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-training-mode-badge {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 235, 0.5);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.market-training-mode-badge--distance {
  background: linear-gradient(180deg, rgba(28, 76, 150, 0.96), rgba(18, 50, 104, 0.96));
  color: #f5fbff;
}

.market-training-mode-badge--presentiel {
  background: linear-gradient(180deg, rgba(255, 243, 214, 0.96), rgba(255, 214, 150, 0.94));
  color: #7a2600;
}

.market-training-price {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 233, 0.54);
  background: linear-gradient(180deg, rgba(255, 243, 214, 0.92), rgba(255, 210, 145, 0.86));
  color: #7a2600;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow:
    0 10px 18px rgba(113, 40, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.markets-card-block .market-training-head {
  display: grid;
  gap: 8px;
}

.markets-card-block .market-training-price {
  justify-self: start;
  max-width: 100%;
  padding: 6px 9px;
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.market-training-summary {
  margin: 10px 0 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.98);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.48;
  text-shadow: 0 1px 5px rgba(90, 28, 0, 0.22);
  box-shadow: none;
}

.market-training-card .market-training-summary,
.market-training-card-link .market-training-summary {
  color: #ffffff !important;
  font-weight: 400 !important;
  opacity: 1;
}

.market-training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.market-training-detail-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 220, 0.42);
  background: rgba(90, 28, 0, 0.22);
  color: rgba(255, 249, 238, 0.96);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 4px rgba(60, 16, 0, 0.18);
}

.market-training-detail-pill--ghost {
  background: rgba(255, 246, 228, 0.9);
  color: #84310b;
  border-color: rgba(255, 239, 213, 0.84);
  text-shadow: none;
}

.market-training-session-stack {
  position: relative;
  display: inline-flex;
}

.market-training-session-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(320px, 78vw);
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 158, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 38, 60, 0.98), rgba(9, 24, 38, 0.98)),
    radial-gradient(circle at top right, rgba(255, 178, 108, 0.12), transparent 36%);
  box-shadow:
    0 22px 38px rgba(6, 18, 29, 0.34),
    inset 0 1px 0 rgba(255, 244, 227, 0.1);
  color: #f5f9ff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  pointer-events: none;
  z-index: 8;
}

.market-training-session-stack:hover .market-training-session-tooltip,
.market-training-session-stack:focus-within .market-training-session-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.facet-option {
  width: 100%;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 37, 59, 0.74);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.facet-option:hover {
  border-color: rgba(239, 124, 47, 0.48);
  background: linear-gradient(180deg, rgba(25, 55, 84, 0.86), rgba(18, 41, 63, 0.86));
  transform: translateX(2px);
}

.facet-option.active {
  border-color: rgba(255, 178, 108, 0.82);
  background:
    linear-gradient(180deg, rgba(35, 70, 103, 0.98), rgba(24, 49, 75, 0.98)),
    radial-gradient(circle at left center, rgba(255, 178, 108, 0.18), transparent 46%);
  transform: translateX(4px);
  box-shadow:
    0 14px 28px rgba(7, 20, 31, 0.34),
    inset 0 0 0 1px rgba(255, 178, 108, 0.18);
}

.facet-option.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbf80, #ef7c2f);
  box-shadow: 0 0 12px rgba(239, 124, 47, 0.36);
}

.facet-option-label {
  font-weight: 600;
  color: var(--ink);
}

.facet-option.active .facet-option-label {
  color: #ffffff;
}

.facet-option-count {
  flex: none;
  min-width: 48px;
  text-align: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(239, 124, 47, 0.16);
  color: #ffd7b9;
  font-size: 0.82rem;
  font-weight: 700;
}

.facet-option.active .facet-option-count {
  background: linear-gradient(180deg, rgba(255, 178, 108, 0.24), rgba(239, 124, 47, 0.18));
  border: 1px solid rgba(255, 178, 108, 0.26);
  color: #fff1df;
}

.empty-note {
  padding: 20px;
  border: 1px dashed rgba(239, 124, 47, 0.34);
  border-radius: 18px;
  background: rgba(239, 124, 47, 0.08);
  color: #ffd7b9;
  line-height: 1.55;
}

.facet-insights {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(17, 39, 60, 0.92), rgba(12, 28, 44, 0.92)),
    radial-gradient(circle at right top, rgba(255, 178, 108, 0.08), transparent 36%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.facet-insights.is-note {
  padding: 20px;
  border: 1px dashed rgba(239, 124, 47, 0.34);
  border-radius: 18px;
  background: rgba(239, 124, 47, 0.08);
  color: #ffd7b9;
  line-height: 1.55;
}

.facet-insights-head {
  display: grid;
  gap: 4px;
}

.facet-insights-scope {
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}

.facet-insights-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.facet-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.facet-kpi-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(19, 42, 65, 0.96), rgba(13, 29, 46, 0.96));
  display: grid;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.facet-kpi-card.accent {
  border-color: rgba(255, 178, 108, 0.26);
  background:
    linear-gradient(180deg, rgba(39, 55, 74, 0.98), rgba(24, 34, 46, 0.98)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.12), transparent 42%);
}

.facet-kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.facet-kpi-value {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}

.facet-kpi-card.accent .facet-kpi-value {
  color: var(--orange-soft);
}

.facet-kpi-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.results-pane {
  min-width: 0;
  min-height: 0;
  padding: 14px 24px 22px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 34, 53, 0.22), rgba(10, 23, 36, 0.02)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.04), transparent 28%);
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 10px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(17, 39, 60, 0.88), rgba(11, 25, 39, 0.88)),
    radial-gradient(circle at right top, rgba(111, 208, 255, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
}

.results-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(255, 178, 108, 0.2), rgba(255, 178, 108, 0.94), rgba(111, 208, 255, 0.24));
  box-shadow: 0 0 16px rgba(255, 178, 108, 0.16);
}

.results-head h3 {
  margin-top: 6px;
  font-size: 1.28rem;
}

.results-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.results-offer-rail {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 34, 53, 0.98), rgba(10, 23, 36, 0.98)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.08), transparent 34%);
  overflow: visible;
  position: relative;
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.results-offer-rail.is-module-selection-target {
  border-color: rgba(255, 205, 146, 0.92);
  box-shadow:
    0 0 0 2px rgba(255, 196, 129, 0.24),
    0 0 34px rgba(239, 124, 47, 0.22),
    inset 0 0 0 1px rgba(255, 252, 246, 0.14);
}

.modal-head .results-offer-rail {
  align-self: stretch;
  min-width: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 31, 49, 0.98), rgba(10, 23, 36, 0.98)),
    radial-gradient(circle at right center, rgba(239, 124, 47, 0.1), transparent 36%);
}

.offer-rail-shell {
  display: grid;
  gap: 12px;
  padding: 12px 14px 14px;
}

.modal-head .offer-rail-shell {
  gap: 8px;
  padding: 10px 12px;
}

.offer-rail-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.modal-head .offer-rail-head {
  display: none;
}

.offer-rail-title {
  margin-top: 6px;
  font-size: 1.02rem;
  color: var(--ink);
}

.offer-rail-context {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.offer-rail-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.modal-head .offer-rail-tabs {
  gap: 8px;
  padding-bottom: 0;
}

.offer-market-tab {
  flex: none;
  border: 1px solid rgba(77, 143, 200, 0.22);
  border-radius: 999px;
  background: rgba(18, 41, 63, 0.82);
  color: var(--ink);
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.modal-head .offer-market-tab {
  padding: 7px 10px;
  gap: 8px;
  font-size: 0.82rem;
}

.offer-market-tab strong {
  min-width: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 178, 108, 0.14);
  color: #ffd8bb;
  font-size: 0.74rem;
  text-align: center;
}

.modal-head .offer-market-tab strong {
  min-width: 22px;
  padding: 3px 6px;
  font-size: 0.7rem;
}

.offer-market-tab:hover,
.offer-market-tab:focus-visible {
  border-color: rgba(255, 178, 108, 0.44);
  transform: translateY(-1px);
  outline: none;
}

.offer-market-tab:disabled,
.offer-market-tab.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
  border-color: rgba(129, 160, 191, 0.2);
  background: rgba(39, 57, 76, 0.7);
  color: rgba(213, 225, 237, 0.72);
  box-shadow: none;
  transform: none;
}

.offer-market-tab:disabled strong,
.offer-market-tab.is-disabled strong {
  background: rgba(129, 160, 191, 0.16);
  color: rgba(225, 235, 244, 0.76);
}

.offer-market-tab.is-active {
  border-color: rgba(255, 178, 108, 0.72);
  background:
    linear-gradient(180deg, rgba(35, 70, 103, 0.98), rgba(24, 49, 75, 0.98)),
    radial-gradient(circle at left center, rgba(255, 178, 108, 0.16), transparent 42%);
  box-shadow: 0 14px 26px rgba(7, 20, 31, 0.26);
}

.offer-market-tab.is-active strong {
  background: rgba(255, 178, 108, 0.2);
  color: #fff2e4;
}

.offer-rail-layout {
  min-width: 0;
  position: relative;
}

.offer-carousel-frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.offer-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 236px);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  align-items: stretch;
  scrollbar-width: none;
}

.offer-card-shell {
  position: relative;
  min-height: 184px;
}

.modal-head .offer-card-shell {
  min-height: 132px;
}

.facet-modal--results-focus .modal-head {
  padding-bottom: 10px;
  gap: 12px;
}

.facet-modal--results-focus .modal-head .results-offer-rail {
  border-radius: 16px;
}

.facet-modal--results-focus .offer-rail-shell {
  gap: 6px;
  padding: 8px 10px;
}

.facet-modal--results-focus .offer-rail-tabs {
  gap: 6px;
}

.facet-modal--results-focus .offer-carousel {
  grid-auto-columns: minmax(168px, 178px);
  gap: 8px;
  padding-bottom: 2px;
}

.facet-modal--results-focus .offer-card-shell,
.facet-modal--results-focus .modal-head .offer-card-shell {
  min-height: 116px;
}

.facet-modal--results-focus .modal-head .offer-card {
  padding: 10px 12px;
}

.facet-modal--results-focus .results-pane,
.facet-modal--results-focus .facet-pane {
  padding-top: 12px;
}

.offer-carousel::-webkit-scrollbar {
  display: none;
}

.modal-head .offer-carousel {
  grid-auto-columns: minmax(178px, 188px);
  gap: 10px;
  padding: 0 2px 2px;
}

.offer-carousel-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 214, 158, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(28, 59, 91, 0.96), rgba(17, 37, 58, 0.96));
  color: #fff9f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(8, 22, 35, 0.2);
}

.offer-carousel-arrow-icon {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-sizing: border-box;
}

.offer-carousel-arrow--prev .offer-carousel-arrow-icon {
  transform: rotate(-135deg);
}

.offer-carousel-arrow--next .offer-carousel-arrow-icon {
  transform: rotate(45deg);
}

.offer-carousel-arrow:hover {
  transform: translateY(-1px);
}

.offer-card {
  position: relative;
  min-height: 184px;
  height: 100%;
  font: inherit;
  padding: 12px 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(77, 143, 200, 0.2);
  background:
    linear-gradient(180deg, rgba(16, 37, 59, 0.98), rgba(11, 25, 39, 0.98)),
    radial-gradient(circle at top right, rgba(255, 178, 108, 0.08), transparent 34%);
  color: var(--ink);
  display: grid;
  align-content: start;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.modal-head .offer-card {
  min-height: 132px;
  padding: 9px 10px 12px;
  gap: 8px;
  border: 1px solid var(--domain-border, rgba(255, 224, 176, 0.76));
  background:
    radial-gradient(circle at top right, var(--domain-radial-1, rgba(255, 245, 214, 0.42)), transparent 30%),
    radial-gradient(circle at left center, var(--domain-radial-2, rgba(255, 163, 71, 0.34)), transparent 38%),
    linear-gradient(180deg, var(--domain-grad-top, rgba(255, 122, 26, 0.98)), var(--domain-grad-bottom, rgba(201, 74, 10, 1)));
  box-shadow:
    0 16px 28px rgba(0, 9, 14, 0.22),
    inset 0 1px 0 var(--domain-inset-top, rgba(255, 249, 236, 0.22)),
    inset 0 0 0 1px var(--domain-inset-ring, rgba(255, 245, 222, 0.08));
}

.offer-card--theme-restauration,
.module-picker-card--theme-restauration {
  --domain-border: rgba(255, 224, 176, 0.76);
  --domain-radial-1: rgba(255, 245, 214, 0.42);
  --domain-radial-2: rgba(255, 163, 71, 0.34);
  --domain-grad-top: rgba(255, 122, 26, 0.98);
  --domain-grad-bottom: rgba(201, 74, 10, 1);
  --domain-inset-top: rgba(255, 249, 236, 0.22);
  --domain-inset-ring: rgba(255, 245, 222, 0.08);
  --domain-line: rgba(255, 178, 108, 0.92);
  --domain-line-shadow: rgba(255, 178, 108, 0.16);
  --domain-line-strong: rgba(255, 248, 234, 1);
  --domain-line-strong-shadow: rgba(255, 244, 220, 0.34);
  --domain-hover-border: rgba(255, 178, 108, 0.46);
}

.offer-card--theme-commercial,
.module-picker-card--theme-commercial {
  --domain-border: rgba(255, 214, 165, 0.76);
  --domain-radial-1: rgba(255, 243, 214, 0.38);
  --domain-radial-2: rgba(228, 165, 84, 0.28);
  --domain-grad-top: rgba(214, 131, 51, 0.99);
  --domain-grad-bottom: rgba(144, 78, 19, 1);
  --domain-inset-top: rgba(255, 246, 229, 0.22);
  --domain-inset-ring: rgba(255, 242, 222, 0.08);
  --domain-line: rgba(255, 208, 145, 0.9);
  --domain-line-shadow: rgba(255, 194, 118, 0.18);
  --domain-line-strong: rgba(255, 242, 218, 1);
  --domain-line-strong-shadow: rgba(239, 189, 112, 0.34);
  --domain-hover-border: rgba(241, 195, 132, 0.52);
}

.offer-card--theme-communication,
.module-picker-card--theme-communication {
  --domain-border: rgba(164, 242, 255, 0.68);
  --domain-radial-1: rgba(228, 251, 255, 0.32);
  --domain-radial-2: rgba(98, 214, 230, 0.3);
  --domain-grad-top: rgba(42, 167, 190, 0.98);
  --domain-grad-bottom: rgba(19, 102, 125, 1);
  --domain-inset-top: rgba(238, 252, 255, 0.18);
  --domain-inset-ring: rgba(227, 251, 255, 0.08);
  --domain-line: rgba(173, 244, 255, 0.94);
  --domain-line-shadow: rgba(113, 224, 244, 0.18);
  --domain-line-strong: rgba(233, 252, 255, 1);
  --domain-line-strong-shadow: rgba(130, 231, 246, 0.34);
  --domain-hover-border: rgba(173, 244, 255, 0.58);
}

.offer-card--theme-rh,
.module-picker-card--theme-rh {
  --domain-border: rgba(255, 192, 210, 0.72);
  --domain-radial-1: rgba(255, 239, 244, 0.34);
  --domain-radial-2: rgba(232, 120, 154, 0.3);
  --domain-grad-top: rgba(211, 88, 131, 0.99);
  --domain-grad-bottom: rgba(129, 39, 74, 1);
  --domain-inset-top: rgba(255, 245, 248, 0.2);
  --domain-inset-ring: rgba(255, 233, 240, 0.08);
  --domain-line: rgba(255, 198, 219, 0.94);
  --domain-line-shadow: rgba(244, 143, 177, 0.18);
  --domain-line-strong: rgba(255, 239, 245, 1);
  --domain-line-strong-shadow: rgba(239, 154, 187, 0.34);
  --domain-hover-border: rgba(255, 198, 219, 0.54);
}

.offer-card--theme-formateurs,
.module-picker-card--theme-formateurs {
  --domain-border: rgba(206, 198, 255, 0.72);
  --domain-radial-1: rgba(244, 239, 255, 0.34);
  --domain-radial-2: rgba(144, 129, 240, 0.3);
  --domain-grad-top: rgba(111, 100, 204, 0.99);
  --domain-grad-bottom: rgba(63, 53, 133, 1);
  --domain-inset-top: rgba(248, 245, 255, 0.2);
  --domain-inset-ring: rgba(237, 232, 255, 0.08);
  --domain-line: rgba(214, 206, 255, 0.92);
  --domain-line-shadow: rgba(170, 159, 242, 0.18);
  --domain-line-strong: rgba(243, 239, 255, 1);
  --domain-line-strong-shadow: rgba(182, 171, 246, 0.34);
  --domain-hover-border: rgba(214, 206, 255, 0.54);
}

.offer-card--theme-management,
.module-picker-card--theme-management {
  --domain-border: rgba(190, 236, 214, 0.74);
  --domain-radial-1: rgba(239, 252, 246, 0.34);
  --domain-radial-2: rgba(94, 197, 168, 0.28);
  --domain-grad-top: rgba(44, 154, 129, 0.99);
  --domain-grad-bottom: rgba(23, 90, 76, 1);
  --domain-inset-top: rgba(244, 255, 251, 0.18);
  --domain-inset-ring: rgba(234, 255, 248, 0.08);
  --domain-line: rgba(200, 245, 225, 0.92);
  --domain-line-shadow: rgba(129, 223, 195, 0.18);
  --domain-line-strong: rgba(241, 255, 248, 1);
  --domain-line-strong-shadow: rgba(149, 229, 201, 0.34);
  --domain-hover-border: rgba(200, 245, 225, 0.54);
}

.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(255, 248, 233, 0.14), var(--domain-line, rgba(255, 178, 108, 0.92)), rgba(255, 245, 226, 0.16));
  box-shadow: 0 0 14px var(--domain-line-shadow, rgba(255, 178, 108, 0.16));
}

.offer-card:hover,
.offer-card:focus-visible {
  border-color: var(--domain-hover-border, rgba(255, 178, 108, 0.46));
  box-shadow: 0 18px 30px rgba(7, 20, 31, 0.26);
  transform: translateY(-2px);
  outline: none;
}

.modal-head .offer-card:hover,
.modal-head .offer-card:focus-visible {
  border-color: rgba(255, 244, 220, 0.92);
  box-shadow:
    0 20px 34px rgba(76, 26, 0, 0.24),
    inset 0 1px 0 rgba(255, 249, 236, 0.24),
    inset 0 0 0 1px rgba(255, 249, 236, 0.12);
  filter: saturate(1.08) brightness(1.04);
}

.offer-card-shell.is-selected-for-mail .offer-card {
  border-color: rgba(255, 249, 236, 0.96);
  box-shadow:
    0 18px 30px rgba(90, 30, 0, 0.24),
    inset 0 1px 0 rgba(255, 249, 236, 0.28),
    inset 0 0 0 1px rgba(255, 249, 236, 0.16);
  filter: saturate(1.08) brightness(1.04);
}

.offer-card-shell.is-active-offer .offer-card {
  border-color: rgba(255, 249, 236, 0.98);
  box-shadow:
    0 24px 36px rgba(107, 37, 0, 0.26),
    0 0 0 1px rgba(255, 247, 231, 0.36),
    inset 0 1px 0 rgba(255, 250, 240, 0.32),
    inset 0 0 0 1px rgba(255, 247, 231, 0.18);
  filter: saturate(1.1) brightness(1.06);
  transform: translateY(-2px);
}

.offer-card-shell.is-active-offer .offer-card::before {
  background: linear-gradient(90deg, rgba(255, 244, 220, 0.28), var(--domain-line-strong, rgba(255, 248, 234, 1)), rgba(255, 214, 161, 0.42));
  box-shadow:
    0 0 22px var(--domain-line-strong-shadow, rgba(255, 244, 220, 0.34)),
    0 0 10px rgba(255, 214, 161, 0.22);
}

.offer-card-select {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(170, 58, 0, 0.38), rgba(120, 35, 0, 0.3));
  border: 1px solid rgba(255, 244, 222, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 236, 0.22),
    0 6px 14px rgba(72, 23, 0, 0.12);
  cursor: pointer;
  z-index: 2;
}

.offer-card-select-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.offer-card-select-ui {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.6px solid #fffaf0;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.offer-card-select-input:checked + .offer-card-select-ui {
  background: #fff8ee;
  border-color: #fff8ee;
  transform: scale(1.02);
}

.offer-card-select-input:checked + .offer-card-select-ui::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #ca5d0d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.offer-card-select-input:focus-visible + .offer-card-select-ui {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

.offer-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.offer-card .market-training-mode-group,
.offer-detail-head .market-training-mode-group {
  gap: 5px;
}

.modal-head .offer-card .market-training-mode-group {
  gap: 4px;
}

.offer-card .market-training-mode-badge,
.offer-detail-head .market-training-mode-badge {
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
}

.modal-head .offer-card .market-training-mode-badge {
  width: 19px;
  height: 19px;
  font-size: 0.64rem;
}

.offer-card-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.28;
  color: var(--ink);
}

.modal-head .offer-card-title {
  font-size: 0.82rem;
  line-height: 1.22;
  color: #fffefc;
  text-shadow: 0 2px 10px rgba(76, 24, 0, 0.24);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card-meta,
.offer-detail-pills,
.offer-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-card-meta {
  margin-top: auto;
}

.offer-card-session {
  display: inline-flex;
  align-items: flex-start;
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 11px;
  border-radius: 16px;
  background: rgba(255, 246, 228, 0.94);
  border: 1px solid rgba(255, 239, 213, 0.88);
  color: #84310b;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.28;
  box-shadow: 0 8px 16px rgba(68, 24, 0, 0.14);
}

.offer-card-session.is-interactive,
.offer-detail-decision-value--interactive {
  cursor: var(--calendar-cursor);
}

.modal-head .offer-card-session {
  padding: 6px 10px;
  font-size: 0.66rem;
}

.market-training-session-stack,
.market-training-session-stack .market-training-detail-pill--ghost {
  cursor: var(--calendar-cursor);
}

.modal-head .offer-card-meta {
  gap: 6px;
}

.offer-card-pill,
.offer-detail-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 178, 108, 0.14);
  border: 1px solid rgba(255, 178, 108, 0.22);
  color: #ffd9bb;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

.modal-head .offer-card-pill {
  padding: 5px 8px;
  font-size: 0.68rem;
  border-color: rgba(255, 241, 220, 0.46);
  background: rgba(90, 28, 0, 0.22);
  color: rgba(255, 249, 238, 0.96);
  text-shadow: 0 1px 4px rgba(60, 16, 0, 0.18);
}

.modal-head .offer-card-pill--soft {
  background: rgba(255, 246, 228, 0.92);
  color: #84310b;
  border-color: rgba(255, 239, 213, 0.84);
  text-shadow: none;
}

.offer-card-pill--soft,
.offer-detail-pill--soft {
  background: rgba(24, 52, 79, 0.72);
  border-color: rgba(77, 143, 200, 0.22);
  color: var(--ink);
}

.offer-session-tooltip {
  position: fixed;
  z-index: 120;
  width: min(320px, calc(100vw - 32px));
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 158, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 38, 60, 0.98), rgba(9, 24, 38, 0.98)),
    radial-gradient(circle at top right, rgba(255, 178, 108, 0.12), transparent 36%);
  box-shadow:
    0 22px 38px rgba(6, 18, 29, 0.34),
    inset 0 1px 0 rgba(255, 244, 227, 0.1);
  color: #f5f9ff;
  pointer-events: none;
}

.offer-session-tooltip-card {
  display: grid;
  gap: 10px;
}

.offer-session-tooltip-kicker,
.offer-session-tooltip-intro,
.offer-session-tooltip-note {
  margin: 0;
}

.offer-session-tooltip-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffcc92;
}

.offer-session-tooltip-intro {
  font-size: 0.78rem;
  color: rgba(239, 246, 255, 0.9);
}

.offer-session-tooltip-current {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(138, 191, 235, 0.18);
}

.offer-session-tooltip-current strong,
.offer-session-tooltip-item strong {
  font-size: 0.84rem;
  color: #fff4e7;
}

.offer-session-tooltip-current span,
.offer-session-tooltip-item span,
.offer-session-tooltip-empty {
  font-size: 0.76rem;
  color: rgba(230, 240, 252, 0.88);
}

.offer-session-tooltip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.offer-session-tooltip-item,
.offer-session-tooltip-empty {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 180, 227, 0.14);
}

.offer-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  flex: 1;
}

.offer-detail-head--stack {
  display: grid;
  gap: 12px;
}

.offer-detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.offer-detail-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  cursor: grab;
  user-select: none;
}

.offer-hover-panel.is-dragging .offer-detail-toolbar {
  cursor: grabbing;
}

.offer-hover-panel {
  position: fixed;
  top: 124px;
  left: 50%;
  width: min(860px, calc(100vw - 72px));
  max-height: calc(100vh - 156px);
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 225, 176, 0.66);
  background:
    radial-gradient(circle at top right, rgba(255, 223, 168, 0.18), transparent 26%),
    radial-gradient(circle at left top, rgba(129, 212, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(42, 60, 81, 0.992), rgba(24, 40, 58, 0.995));
  box-shadow:
    0 34px 80px rgba(3, 10, 18, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  z-index: 38;
  pointer-events: auto;
  overflow: auto;
}

.offer-hover-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 214, 158, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 124, 47, 0.96), rgba(188, 73, 8, 0.98));
  color: #fff8ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(82, 29, 0, 0.22);
}

.offer-hover-close span {
  font-size: 1.3rem;
  line-height: 1;
  transform: translateY(-1px);
}

.offer-detail-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
  color: var(--ink);
}

.offer-detail-target {
  margin: 0;
  color: #d8e9ff;
  font-size: 0.84rem;
  font-weight: 600;
}

.offer-detail-block {
  display: grid;
  gap: 6px;
}

.offer-detail-title-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.offer-detail-context-compact {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.offer-detail-context-compact--simple {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: stretch;
}

.offer-detail-context-block,
.offer-detail-context-compact-select {
  display: grid;
  gap: 6px;
}

.offer-detail-active-sector {
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 198, 138, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 183, 95, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.05);
  color: #f7fbff;
}

.offer-detail-active-sector-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd6aa;
  font-weight: 800;
}

.offer-detail-active-sector strong {
  font-size: 0.96rem;
  line-height: 1.2;
  color: #ffffff;
}

.offer-detail-active-sector span {
  font-size: 0.76rem;
  color: #b7d1ea;
}

.offer-detail-context-select,
.offer-detail-pitch-editor {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(133, 164, 194, 0.34);
  background: linear-gradient(180deg, rgba(20, 41, 62, 0.98), rgba(12, 27, 42, 0.99));
  color: #f7fbff;
  font: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(6, 13, 20, 0.12);
}

.offer-detail-context-select {
  min-height: 42px;
  padding: 9px 12px;
}

.offer-detail-context-select option {
  color: #10263a;
  background: #eef5fb;
}

.offer-detail-helper {
  margin: 0;
  color: #c9ddf1;
  font-size: 0.82rem;
  line-height: 1.45;
}

.offer-detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.offer-detail-summary-grid--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.offer-detail-summary-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.offer-detail-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-detail-summary-tags--top {
  margin-bottom: 2px;
}

.offer-detail-summary-tag {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 158, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: #e8f3ff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.offer-detail-summary-tag.is-primary {
  background: rgba(239, 124, 47, 0.18);
  border-color: rgba(255, 196, 129, 0.46);
  color: #fff3e5;
}

.offer-detail-active-sector--inline {
  min-height: 0;
  padding: 12px 14px;
}

.offer-detail-active-sector--simple {
  gap: 5px;
}

.offer-detail-active-sector-chip {
  display: inline-flex;
  align-items: center;
  align-self: start;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 157, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #fff3df;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offer-detail-context-compact-select--inline {
  gap: 5px;
}

.offer-detail-context-inline-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dbe9f7;
  font-weight: 800;
}

.offer-detail-summary-card {
  display: grid;
  gap: 8px;
  padding: 13px 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 205, 151, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 187, 112, 0.1), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.offer-detail-summary-card--wide {
  grid-column: 1 / -1;
}

.offer-detail-summary-card--compact {
  gap: 6px;
}

.offer-detail-summary-card--dense {
  gap: 10px;
}

.offer-detail-summary-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffd8ab;
  font-weight: 800;
}

.offer-detail-pitch-editor {
  min-height: 148px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.62;
  white-space: pre-wrap;
}

.offer-detail-pitch-preview {
  display: grid;
  gap: 8px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 197, 139, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 185, 112, 0.12), transparent 24%),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.offer-detail-pitch-preview p {
  margin: 0;
  color: #f6fbff;
  font-size: 0.94rem;
  line-height: 1.66;
}

.offer-detail-pitch-preview--compact {
  min-height: 104px;
}

.offer-detail-pitch-preview--compact p {
  font-size: 0.9rem;
  line-height: 1.58;
}

.offer-detail-pitch-preview--dense {
  background:
    radial-gradient(circle at top right, rgba(255, 185, 112, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 248, 236, 0.07), rgba(255, 255, 255, 0.04));
}

.offer-detail-pitch-preview--dense p {
  font-size: 0.89rem;
  line-height: 1.6;
}

.offer-detail-pitch-preview strong {
  color: #ffd29b;
  font-weight: 800;
}

.offer-detail-summary-accordions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.offer-detail-summary-accordion {
  border-radius: 18px;
  border: 1px solid rgba(165, 194, 221, 0.24);
  background: rgba(8, 20, 31, 0.2);
  overflow: hidden;
}

.offer-detail-summary-accordion-toggle {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: #f6fbff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer-detail-summary-accordion-toggle::-webkit-details-marker {
  display: none;
}

.offer-detail-summary-accordion-toggle::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 214, 158, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: #ffd29b;
  font-size: 1.05rem;
  line-height: 1;
}

.offer-detail-summary-accordion[open] .offer-detail-summary-accordion-toggle::after {
  content: "−";
}

.offer-detail-summary-accordion-body {
  padding: 0 16px 16px;
}

.offer-detail-mail-panel {
  margin-top: 10px;
  border-radius: 18px;
  border: 1px solid rgba(165, 194, 221, 0.24);
  background: rgba(10, 22, 34, 0.24);
  overflow: hidden;
}

.offer-detail-mail-toggle {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  color: #f6fbff;
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offer-detail-mail-toggle::-webkit-details-marker {
  display: none;
}

.offer-detail-mail-toggle::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 214, 158, 0.32);
  background: rgba(255, 255, 255, 0.05);
  color: #ffd29b;
  font-size: 1.05rem;
  line-height: 1;
}

.offer-detail-mail-panel[open] .offer-detail-mail-toggle::after {
  content: "−";
}

.offer-detail-mail-body {
  padding: 0 16px 16px;
}

.offer-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 14px;
}

.offer-detail-grid--decision {
  margin-top: 0;
}

.offer-detail-block--full {
  grid-column: 1 / -1;
}

.offer-detail-block--pitch p {
  font-size: 0.91rem;
  line-height: 1.62;
  color: #f4f8ff;
  white-space: pre-line;
}

.offer-detail-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.offer-detail-block p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-size: 0.84rem;
}

.offer-detail-price {
  font-weight: 800;
  color: #fff7ee;
}

.offer-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 178, 108, 0.34);
  background: linear-gradient(180deg, rgba(239, 124, 47, 0.96), rgba(200, 85, 14, 0.96));
  color: #fffdf8;
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(136, 56, 7, 0.22);
}

.offer-detail-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.offer-detail-actions--top {
  justify-content: flex-start;
  margin-top: 10px;
}

.offer-detail-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 158, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #ffe4c4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.offer-detail-decision-panel {
  margin-top: 16px;
  padding: 14px 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 204, 151, 0.52);
  background:
    radial-gradient(circle at top right, rgba(255, 198, 126, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(82, 62, 39, 0.22), rgba(46, 32, 19, 0.18)),
    linear-gradient(180deg, rgba(255, 240, 219, 0.16), rgba(255, 227, 191, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 237, 0.32),
    0 16px 34px rgba(6, 13, 20, 0.18);
}

.offer-detail-decision-card {
  padding: 14px 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 168, 0.56);
  background:
    radial-gradient(circle at top right, rgba(255, 181, 100, 0.26), transparent 36%),
    linear-gradient(180deg, rgba(255, 245, 229, 0.98), rgba(255, 230, 199, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 237, 0.24),
    0 10px 22px rgba(5, 11, 18, 0.14);
}

.offer-detail-decision-card--wide {
  min-height: 92px;
}

.offer-detail-decision-card .offer-detail-label {
  color: #8f5b27;
}

.offer-detail-decision-card p,
.offer-detail-decision-card .offer-detail-decision-value,
.offer-detail-decision-card .offer-detail-price {
  color: #2f2419;
}

.offer-detail-decision-value {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.offer-detail-actions--decision {
  margin-top: 16px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .offer-detail-context-compact,
  .offer-detail-summary-grid,
  .offer-detail-grid {
    grid-template-columns: 1fr;
  }

  .offer-detail-title-row {
    flex-direction: column;
    align-items: start;
  }
}

.offer-detail-secondary:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.results-filters {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(18, 41, 63, 0.88), rgba(12, 28, 44, 0.88)),
    radial-gradient(circle at left top, rgba(79, 216, 200, 0.08), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
}

.results-filters::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(79, 216, 200, 0.16), rgba(79, 216, 200, 0.92), rgba(111, 208, 255, 0.24));
  box-shadow: 0 0 16px rgba(79, 216, 200, 0.16);
}

.results-filter-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field--search {
  grid-column: span 2;
}

.filter-field--toggle {
  align-content: end;
}

.filter-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.filter-toggle-control {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(129, 160, 191, 0.24);
  background: rgba(17, 39, 60, 0.9);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.filter-toggle-control input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #62d8a2;
}

.filter-toggle-control--dendreo {
  gap: 10px;
}

.results-dendreo-company-tag--filter {
  min-height: 28px;
  pointer-events: none;
}

.filter-select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(129, 160, 191, 0.24);
  background: rgba(17, 39, 60, 0.9);
  color: var(--ink);
  font: inherit;
}

.filter-search-input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 181, 109, 0.42);
  background:
    linear-gradient(180deg, rgba(23, 49, 76, 0.96), rgba(15, 36, 56, 0.96)),
    radial-gradient(circle at left center, rgba(255, 161, 84, 0.18), transparent 56%);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.filter-search-input::placeholder {
  color: rgba(219, 231, 241, 0.7);
}

.filter-search-input:focus {
  outline: none;
  border-color: rgba(255, 171, 77, 0.78);
  box-shadow:
    0 0 0 3px rgba(255, 145, 56, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.filter-reset {
  flex: none;
  border: 1px solid rgba(77, 143, 200, 0.24);
  border-radius: 999px;
  background: rgba(17, 39, 60, 0.88);
  color: var(--ink);
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.results-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.results-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  position: relative;
}

.results-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 34, 53, 0.88), rgba(10, 23, 36, 0.92)),
    radial-gradient(circle at right top, rgba(74, 160, 255, 0.08), transparent 34%);
  box-shadow:
    inset 0 3px 0 rgba(112, 205, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 32px rgba(7, 20, 31, 0.18);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
  background: transparent;
}

.results-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--navy), var(--navy-strong));
  color: white;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.results-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(129, 160, 191, 0.14);
  vertical-align: top;
  font-size: 0.95rem;
  color: var(--ink);
}

.results-table tbody tr {
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.results-table tbody tr:hover td {
  box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.02);
}

.subline {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.subline--targeting {
  color: #c8f7de;
}

.results-company-cell {
  display: grid;
  gap: 2px;
}

.results-head-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.results-company-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.results-row-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
}

.results-row-checkbox--head {
  margin-top: 0;
  width: 20px;
  height: 20px;
}

.results-row-checkbox--head .results-row-checkbox-box {
  width: 18px;
  height: 18px;
  border-color: rgba(188, 214, 240, 0.72);
  background: linear-gradient(180deg, rgba(29, 61, 93, 0.96), rgba(14, 31, 49, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(11, 27, 45, 0.22);
}

.results-row-checkbox-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.results-row-checkbox-box {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(147, 180, 214, 0.46);
  background: linear-gradient(180deg, rgba(20, 43, 65, 0.9), rgba(11, 24, 38, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.results-row-checkbox:hover .results-row-checkbox-box {
  border-color: rgba(255, 184, 118, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 124, 47, 0.12);
}

.results-row-checkbox-input:checked + .results-row-checkbox-box {
  border-color: rgba(255, 199, 136, 0.92);
  background:
    linear-gradient(180deg, rgba(247, 146, 30, 0.98), rgba(194, 92, 15, 0.98));
  box-shadow: 0 10px 18px rgba(159, 66, 11, 0.24);
}

.results-row-checkbox-input:checked + .results-row-checkbox-box::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff8ef;
  border-bottom: 2px solid #fff8ef;
  transform: translateY(-1px) rotate(-45deg);
}

.results-row-checkbox-input:indeterminate + .results-row-checkbox-box {
  border-color: rgba(255, 199, 136, 0.92);
  background: linear-gradient(180deg, rgba(247, 146, 30, 0.98), rgba(194, 92, 15, 0.98));
  box-shadow: 0 10px 18px rgba(159, 66, 11, 0.24);
}

.results-row-checkbox-input:indeterminate + .results-row-checkbox-box::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  height: 2px;
  border-radius: 999px;
  background: #fff8ef;
}

.results-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.results-dendreo-company-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(130, 191, 255, 0.34);
  background: linear-gradient(180deg, rgba(39, 88, 142, 0.92), rgba(24, 56, 93, 0.96));
  color: #eaf5ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.results-dendreo-company-tag:hover {
  border-color: rgba(174, 214, 255, 0.6);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.results-headcount-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 79, 0.4);
  background: linear-gradient(180deg, rgba(239, 124, 47, 0.96), rgba(176, 82, 20, 0.98));
  color: #fff8ef;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(239, 124, 47, 0.18);
}

.subline--email {
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.results-targeting-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(205, 244, 219, 0.28);
  background: rgba(25, 72, 49, 0.4);
  color: #ebfff4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.results-targeting-badge--high {
  border-color: rgba(177, 246, 202, 0.52);
  background: linear-gradient(180deg, rgba(45, 124, 84, 0.92), rgba(24, 81, 53, 0.96));
  color: #f2fff7;
}

.results-targeting-badge--medium {
  border-color: rgba(255, 209, 152, 0.42);
  background: linear-gradient(180deg, rgba(137, 92, 35, 0.92), rgba(94, 59, 20, 0.96));
  color: #fff2dc;
}

.results-targeting-badge--low {
  border-color: rgba(145, 171, 199, 0.28);
  background: linear-gradient(180deg, rgba(50, 70, 92, 0.92), rgba(34, 47, 62, 0.96));
  color: #deebf8;
}

.results-table tbody tr:nth-child(even) td {
  background: rgba(20, 43, 65, 0.48);
}

.results-table tbody tr.status-row-progress td,
.results-table tbody tr.status-row-progress:nth-child(even) td {
  background: rgba(55, 111, 172, 0.22);
}

.results-table tbody tr.status-row-meeting td,
.results-table tbody tr.status-row-meeting:nth-child(even) td {
  background: rgba(54, 139, 164, 0.24);
}

.results-table tbody tr.status-row-quote td,
.results-table tbody tr.status-row-quote:nth-child(even) td {
  background: rgba(171, 101, 30, 0.22);
}

.results-table tbody tr.status-row-followup td,
.results-table tbody tr.status-row-followup:nth-child(even) td {
  background: rgba(126, 94, 186, 0.22);
}

.results-table tbody tr.status-row-muted td,
.results-table tbody tr.status-row-muted:nth-child(even) td {
  background: rgba(74, 89, 106, 0.26);
}

.results-table tbody tr.status-row-success td,
.results-table tbody tr.status-row-success:nth-child(even) td {
  background: rgba(31, 123, 86, 0.26);
}

.results-table tbody tr.is-selected td,
.results-table tbody tr.is-selected:nth-child(even) td {
  box-shadow: inset 4px 0 0 rgba(255, 178, 108, 0.95);
  background-color: rgba(35, 70, 103, 0.24);
}

.results-table tbody tr.is-bulk-selected td,
.results-table tbody tr.is-bulk-selected:nth-child(even) td {
  box-shadow: inset 2px 0 0 rgba(255, 178, 108, 0.6);
  background-color: rgba(78, 49, 18, 0.16);
}

.status-field {
  display: block;
}

.status-select {
  width: 100%;
  min-width: 156px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(129, 160, 191, 0.24);
  background: linear-gradient(180deg, rgba(16, 37, 59, 0.96), rgba(12, 28, 45, 0.96));
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-select:focus {
  border-color: rgba(255, 178, 108, 0.72);
  box-shadow: 0 0 0 3px rgba(239, 124, 47, 0.16);
}

.status-select:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.status-select option {
  color: #09111d;
}

.status-field.is-readonly {
  position: relative;
}

.results-dendreo-link {
  color: #dff4ff;
  font-weight: 800;
  text-decoration: none;
}

.results-dendreo-link:hover {
  text-decoration: underline;
}

.status-tone-todo {
  border-color: rgba(129, 160, 191, 0.3);
  background: linear-gradient(180deg, rgba(16, 37, 59, 0.96), rgba(12, 28, 45, 0.96));
  color: #edf5ff;
}

.status-tone-progress {
  border-color: rgba(77, 143, 200, 0.48);
  background: linear-gradient(180deg, rgba(39, 84, 128, 0.96), rgba(24, 52, 79, 0.98));
  color: #cfe6ff;
}

.status-tone-meeting {
  border-color: rgba(86, 199, 214, 0.42);
  background: linear-gradient(180deg, rgba(27, 98, 112, 0.98), rgba(18, 63, 74, 0.98));
  color: #d8fbff;
}

.status-tone-quote {
  border-color: rgba(255, 178, 108, 0.52);
  background: linear-gradient(180deg, rgba(130, 82, 28, 0.98), rgba(92, 55, 18, 0.98));
  color: #ffe3bf;
}

.status-tone-followup {
  border-color: rgba(160, 133, 255, 0.44);
  background: linear-gradient(180deg, rgba(80, 58, 132, 0.98), rgba(57, 39, 97, 0.98));
  color: #eee4ff;
}

.status-tone-muted {
  border-color: rgba(156, 172, 189, 0.38);
  background: linear-gradient(180deg, rgba(63, 76, 89, 0.98), rgba(42, 53, 64, 0.98));
  color: #d1dae4;
}

.status-tone-success {
  border-color: rgba(105, 219, 155, 0.52);
  background: linear-gradient(180deg, rgba(28, 111, 77, 0.98), rgba(18, 81, 56, 0.98));
  color: #ddffef;
}

.results-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.results-footer p {
  color: var(--muted);
  line-height: 1.5;
}

.results-footer-primary {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}

.results-footer-primary p {
  margin: 0;
}

.results-targeting-button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid rgba(198, 255, 223, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at right center, rgba(150, 246, 195, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(228, 255, 240, 0.98), rgba(194, 241, 214, 0.96));
  box-shadow:
    0 14px 26px rgba(57, 126, 88, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #1d5137;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.results-targeting-button::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #86e2ad 32%, #2f9a67 100%);
  box-shadow:
    0 0 0 5px rgba(126, 216, 165, 0.14),
    0 8px 14px rgba(34, 112, 71, 0.18);
}

.results-targeting-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 255, 229, 0.72);
  box-shadow:
    0 18px 30px rgba(57, 126, 88, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.results-targeting-button.is-active {
  border-color: rgba(161, 243, 193, 0.66);
  background:
    radial-gradient(circle at right center, rgba(122, 238, 177, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(217, 255, 232, 0.98), rgba(167, 236, 194, 0.96));
  box-shadow:
    0 18px 34px rgba(45, 119, 77, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.results-targeting-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 10px 18px rgba(57, 126, 88, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.results-targeting-button-label,
.results-targeting-button-meta {
  display: block;
}

.results-targeting-button-label {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.results-targeting-button-meta {
  display: none;
}

.results-dendreo-sync-button {
  position: relative;
  min-width: 0;
  min-height: 48px;
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 150, 0.58);
  background:
    radial-gradient(circle at right center, rgba(255, 239, 184, 0.22), transparent 30%),
    radial-gradient(circle at 18% 35%, rgba(255, 210, 118, 0.3), transparent 24%),
    linear-gradient(180deg, rgba(255, 166, 66, 0.98), rgba(220, 104, 20, 0.98));
  box-shadow:
    0 14px 28px rgba(135, 67, 11, 0.22),
    inset 0 1px 0 rgba(255, 246, 223, 0.38);
  color: #fffaf1;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, opacity 160ms ease, filter 160ms ease;
}

.results-dendreo-sync-button::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #ffe29f 32%, #ff8d24 100%);
  box-shadow:
    0 0 0 5px rgba(255, 204, 128, 0.16),
    0 8px 14px rgba(170, 92, 16, 0.22);
}

.results-dendreo-sync-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.02);
  border-color: rgba(255, 232, 193, 0.8);
  box-shadow:
    0 18px 30px rgba(135, 67, 11, 0.26),
    inset 0 1px 0 rgba(255, 248, 232, 0.46);
}

.results-dendreo-sync-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 10px 18px rgba(135, 67, 11, 0.14),
    inset 0 1px 0 rgba(255, 246, 223, 0.28);
}

.targeting-sheet {
  position: absolute;
  left: 0;
  bottom: 86px;
  z-index: 12;
  width: min(460px, calc(100% - 16px));
}

.targeting-sheet-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(244, 191, 120, 0.58);
  background:
    radial-gradient(circle at top right, rgba(124, 236, 182, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(17, 41, 56, 0.98), rgba(9, 24, 36, 0.98));
  box-shadow:
    0 0 0 2px rgba(244, 191, 120, 0.18),
    0 24px 48px rgba(4, 12, 19, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  max-height: min(78vh, 880px);
}

.targeting-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.targeting-sheet-copy {
  display: grid;
  gap: 0;
}

.targeting-sheet-copy h4 {
  font-size: 1.08rem;
  color: #f2fffb;
}

.targeting-sheet-copy p:last-child {
  color: #b7d6dd;
  line-height: 1.5;
  font-size: 0.85rem;
}

.targeting-sheet-close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(178, 224, 239, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eaf8ff;
  font-size: 1.4rem;
  cursor: pointer;
}

.targeting-sheet-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.targeting-sheet-kpi {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(174, 219, 232, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 49, 63, 0.92), rgba(13, 35, 47, 0.94)),
    radial-gradient(circle at top right, rgba(120, 227, 173, 0.08), transparent 34%);
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.targeting-sheet-kpi:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 245, 220, 0.32);
}

.targeting-sheet-kpi.is-selected {
  border-color: rgba(173, 245, 203, 0.5);
  background:
    radial-gradient(circle at top right, rgba(168, 255, 206, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(30, 69, 72, 0.98), rgba(18, 48, 47, 0.98));
  box-shadow:
    0 0 0 1px rgba(173, 245, 203, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.targeting-sheet-kpi span {
  color: #a9c3d0;
  font-size: 0.76rem;
  line-height: 1.35;
}

.targeting-sheet-kpi strong {
  color: #f4fff9;
  font-size: 1.25rem;
  line-height: 1;
}

.targeting-sheet-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.targeting-sheet-item {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(174, 219, 232, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(22, 53, 69, 0.94), rgba(12, 31, 43, 0.96)),
    radial-gradient(circle at right center, rgba(115, 219, 166, 0.08), transparent 34%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.targeting-sheet-item:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 245, 220, 0.38);
}

.targeting-sheet-item-main {
  display: grid;
  gap: 5px;
}

.targeting-sheet-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.targeting-sheet-item-head strong {
  color: #f5fffb;
  font-size: 0.94rem;
}

.targeting-sheet-item-head-aside {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: none;
}

.targeting-sheet-score {
  flex: none;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.targeting-sheet-score--high {
  background: rgba(76, 182, 121, 0.18);
  color: #dffdeb;
}

.targeting-sheet-score--medium {
  background: rgba(228, 156, 83, 0.16);
  color: #ffe6c5;
}

.targeting-sheet-score--low {
  background: rgba(123, 150, 179, 0.16);
  color: #d9e7f6;
}

.targeting-sheet-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
}

.targeting-sheet-rating-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: transparent;
  border: 1.4px solid rgba(196, 214, 230, 0.22);
  box-shadow: none;
  opacity: 0.5;
}

.targeting-sheet-rating--high .targeting-sheet-rating-dot.is-filled {
  background: linear-gradient(180deg, rgba(154, 246, 190, 0.98), rgba(67, 177, 108, 0.98));
  border-color: rgba(204, 255, 223, 0.68);
  opacity: 1;
  box-shadow:
    0 0 0 3px rgba(118, 224, 163, 0.08),
    0 0 10px rgba(118, 224, 163, 0.18);
}

.targeting-sheet-rating--medium .targeting-sheet-rating-dot.is-filled {
  background: linear-gradient(180deg, rgba(255, 214, 154, 0.98), rgba(228, 156, 83, 0.98));
  border-color: rgba(255, 238, 210, 0.62);
  opacity: 1;
  box-shadow:
    0 0 0 3px rgba(255, 195, 126, 0.08),
    0 0 10px rgba(255, 195, 126, 0.18);
}

.targeting-sheet-rating--low .targeting-sheet-rating-dot.is-filled {
  background: linear-gradient(180deg, rgba(201, 219, 240, 0.98), rgba(123, 150, 179, 0.98));
  border-color: rgba(231, 240, 252, 0.56);
  opacity: 1;
  box-shadow:
    0 0 0 3px rgba(174, 198, 225, 0.08),
    0 0 10px rgba(174, 198, 225, 0.16);
}

.targeting-sheet-item-city,
.targeting-sheet-item-reasons {
  color: #aac6d3;
  font-size: 0.8rem;
  line-height: 1.4;
}

.targeting-sheet-item-criteria-label {
  color: #d7edf1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.targeting-sheet-item-action {
  color: #dffdeb;
  font-size: 0.82rem;
  font-weight: 700;
}

.targeting-sheet-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.targeting-sheet-primary,
.targeting-sheet-secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.targeting-sheet-primary {
  border: 1px solid rgba(173, 245, 203, 0.34);
  background: linear-gradient(180deg, rgba(216, 255, 230, 0.98), rgba(171, 238, 196, 0.96));
  color: #20533a;
}

.targeting-sheet-secondary {
  border: 1px solid rgba(174, 219, 232, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #eaf8ff;
}

.prospect-popup-scrim {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(166, 213, 255, 0.08), rgba(8, 11, 16, 0.26)),
    linear-gradient(180deg, rgba(4, 6, 9, 0.12), rgba(2, 3, 6, 0.2));
  backdrop-filter: blur(3px) saturate(1.02);
}

.prospect-sheet {
  min-width: 0;
  top: 14px;
  bottom: auto;
  height: auto;
  max-height: calc(100% - 28px);
  padding: 18px 22px 14px;
  border-radius: 26px;
  border: 1px solid rgba(198, 223, 244, 0.98);
  background:
    radial-gradient(circle at top right, rgba(248, 252, 255, 0.9), transparent 18%),
    radial-gradient(circle at left bottom, rgba(90, 168, 239, 0.18), transparent 34%),
    radial-gradient(circle at right bottom, rgba(96, 204, 198, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(233, 243, 250, 0.998), rgba(208, 227, 241, 0.996) 54%, rgba(170, 203, 228, 0.994));
  color: #1f2d3d;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  position: absolute;
  left: 50%;
  width: min(980px, calc(100% - 44px));
  transform: translateX(-50%);
  z-index: 31;
  box-shadow:
    0 44px 120px rgba(5, 4, 6, 0.68),
    0 0 0 1px rgba(207, 228, 244, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  overscroll-behavior: contain;
}

.prospect-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(127, 221, 255, 0.28), rgba(87, 180, 255, 0.98), rgba(169, 241, 231, 0.42));
  box-shadow: 0 0 24px rgba(87, 180, 255, 0.26);
}

.module-picker-sheet {
  position: absolute;
  top: 84px;
  left: 50%;
  width: min(1040px, calc(100% - 84px));
  max-height: calc(100% - 112px);
  transform: translateX(-50%);
  z-index: 34;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 223, 176, 0.9);
  background:
    radial-gradient(circle at top right, rgba(255, 245, 226, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(14, 31, 49, 0.99), rgba(9, 21, 33, 0.995));
  box-shadow:
    0 34px 90px rgba(4, 11, 19, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.dendreo-confirm-sheet,
.dendreo-sync-sheet {
  position: absolute;
  top: 108px;
  left: 50%;
  width: min(720px, calc(100% - 120px));
  max-height: calc(100% - 148px);
  transform: translateX(-50%);
  display: grid;
  align-content: start;
  gap: 12px;
}

.dendreo-confirm-sheet {
  z-index: 35;
}

.dendreo-sync-sheet {
  z-index: 36;
}

.dendreo-confirm-sheet-frame,
.dendreo-sync-sheet-frame {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 223, 176, 0.82);
  background:
    radial-gradient(circle at top right, rgba(255, 245, 226, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(11, 28, 44, 0.985), rgba(7, 18, 30, 0.99));
  box-shadow:
    0 34px 90px rgba(4, 11, 19, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: auto;
}

.dendreo-confirm-sheet-toolbar,
.dendreo-sync-sheet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.dendreo-confirm-panel {
  display: grid;
  gap: 16px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 158, 0.24);
  background:
    linear-gradient(180deg, rgba(19, 42, 64, 0.92), rgba(11, 25, 38, 0.94)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.1), transparent 36%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dendreo-confirm-title {
  margin: 4px 0 0;
  color: #f8fbff;
  font-size: 1.22rem;
}

.dendreo-confirm-copy {
  margin: 0;
  color: #dcecff;
  line-height: 1.55;
}

.dendreo-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.dendreo-confirm-block {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.dendreo-confirm-block strong {
  color: #fff6ea;
  font-size: 0.98rem;
}

.dendreo-confirm-block--full {
  grid-column: 1 / -1;
}

.dendreo-confirm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dendreo-confirm-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 196, 129, 0.34);
  background: rgba(255, 183, 112, 0.14);
  color: #ffe2c4;
  font-size: 0.82rem;
  font-weight: 700;
}

.dendreo-confirm-empty {
  color: #b8d0e6;
  font-size: 0.84rem;
}

.dendreo-confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.dendreo-sync-link--button {
  cursor: pointer;
}

.dendreo-sync-sheet-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 224, 176, 0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(186, 103, 33, 0.96), rgba(140, 67, 15, 0.96));
  color: #fffaf3;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.dendreo-sync-sheet-close:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.module-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.module-picker-title {
  margin: 6px 0 0;
  font-size: 1.18rem;
  color: #f8fbff;
}

.module-picker-subtitle {
  margin: 6px 0 0;
  color: #b8cfe5;
  font-size: 0.88rem;
}

.module-picker-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 224, 176, 0.3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(186, 103, 33, 0.96), rgba(140, 67, 15, 0.96));
  color: #fffaf3;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.module-picker-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-picker-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.module-picker-search {
  flex: 1 1 320px;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(122, 163, 198, 0.28);
  background: rgba(18, 41, 63, 0.92);
  color: #eef7ff;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.module-picker-search-note {
  color: #b9d1e7;
  font-size: 0.84rem;
  font-weight: 700;
}

.module-picker-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 163, 198, 0.28);
  background: rgba(19, 42, 64, 0.94);
  color: #edf6ff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.module-picker-tab strong {
  min-width: 22px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 214, 158, 0.16);
  color: #ffe2be;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

.module-picker-tab.is-active {
  border-color: rgba(255, 216, 176, 0.92);
  background: linear-gradient(180deg, rgba(255, 135, 41, 0.98), rgba(214, 86, 12, 0.98));
  color: #fffaf2;
}

.module-picker-tab:disabled,
.module-picker-tab.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  border-color: rgba(122, 163, 198, 0.18);
  background: rgba(42, 58, 76, 0.84);
  color: rgba(226, 237, 247, 0.72);
}

.module-picker-tab:disabled strong,
.module-picker-tab.is-disabled strong {
  background: rgba(122, 163, 198, 0.14);
  color: rgba(233, 241, 247, 0.74);
}

.module-picker-tab.is-active strong {
  background: rgba(255, 248, 235, 0.18);
  color: #fff6ea;
}

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

.module-picker-empty {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(173, 209, 242, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #d8e8f7;
  line-height: 1.5;
}

.module-picker-card {
  position: relative;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--domain-border, rgba(255, 224, 176, 0.24));
  background:
    radial-gradient(circle at top right, var(--domain-radial-1, rgba(255, 245, 214, 0.38)), transparent 30%),
    radial-gradient(circle at left center, var(--domain-radial-2, rgba(255, 163, 71, 0.28)), transparent 38%),
    linear-gradient(180deg, var(--domain-grad-top, rgba(255, 122, 26, 0.98)), var(--domain-grad-bottom, rgba(201, 74, 10, 1)));
  box-shadow:
    0 16px 28px rgba(0, 9, 14, 0.18),
    inset 0 1px 0 var(--domain-inset-top, rgba(255, 249, 236, 0.22));
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.module-picker-card:hover {
  transform: translateY(-2px);
}

.module-picker-card.is-selected {
  border-color: rgba(255, 247, 230, 0.98);
  box-shadow:
    0 22px 36px rgba(115, 40, 0, 0.28),
    0 0 0 2px rgba(255, 228, 182, 0.36),
    inset 0 1px 0 rgba(255, 252, 241, 0.46),
    inset 0 0 0 1px rgba(255, 250, 240, 0.22);
  filter: saturate(1.1) brightness(1.08);
  transform: translateY(-2px);
}

.module-picker-card.is-selected::after {
  content: "Retenu";
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 10px;
  border: 1px solid rgba(196, 222, 255, 0.78);
  background: linear-gradient(180deg, rgba(23, 77, 142, 0.98), rgba(8, 43, 92, 0.99));
  color: #f7fbff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow:
    0 10px 20px rgba(8, 32, 71, 0.28),
    0 0 0 2px rgba(219, 236, 255, 0.18);
}

.module-picker-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-picker-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.module-picker-card-top {
  display: grid;
  gap: 10px;
}

.module-picker-card-top h5 {
  margin: 0;
  color: #fffdf8;
  font-size: 0.98rem;
  line-height: 1.35;
}

.module-picker-card.is-selected .module-picker-card-top h5 {
  color: #fffaf2;
}

.module-picker-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-picker-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  color: #9b4e12;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.module-picker-pill--soft {
  color: #8b4f1f;
  background: rgba(255, 244, 224, 0.92);
}

.module-picker-card.is-selected .module-picker-pill {
  background: rgba(255, 251, 242, 0.98);
  color: #954b12;
}

.module-picker-card.is-selected .module-picker-pill--soft {
  background: rgba(255, 245, 226, 0.98);
}

.module-picker-actions {
  display: flex;
  justify-content: flex-end;
}

.module-picker-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 214, 158, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 214, 0.92));
  color: #a24e14;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.prospect-sheet.is-dragging {
  user-select: none;
}

.prospect-empty {
  display: grid;
  gap: 8px;
}

.prospect-empty-copy {
  color: var(--muted);
  line-height: 1.5;
}

.prospect-sheet .pane-title {
  color: #2a77b5;
}

.prospect-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  cursor: grab;
}

.prospect-sheet-title-block {
  display: grid;
  gap: 0;
  min-width: 0;
  user-select: none;
}

.prospect-sheet.is-dragging .prospect-sheet-head {
  cursor: grabbing;
}

.prospect-sheet-head-actions {
  display: flex;
  align-items: start;
  gap: 10px;
}

.prospect-sheet-editors {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px;
}

.prospect-company {
  margin-top: 8px;
  font-size: 1.24rem;
  line-height: 1.2;
  color: #1f2d3d;
}

.prospect-head-address {
  margin-top: 8px;
  color: rgba(43, 69, 95, 0.92);
  font-size: 0.96rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prospect-location {
  margin-top: 4px;
  color: rgba(69, 95, 122, 0.84);
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prospect-head-meta-line {
  margin-top: 6px;
  color: rgba(67, 96, 124, 0.78);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prospect-status-editor {
  display: grid;
  gap: 6px;
  min-width: 210px;
}

.prospect-status-editor > span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(67, 96, 124, 0.82);
  font-weight: 700;
}

.prospect-commercial-editor {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.prospect-commercial-editor > span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(67, 96, 124, 0.82);
  font-weight: 700;
}

.prospect-status-lock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.prospect-status-lock-note {
  margin: 0;
  color: rgba(53, 84, 114, 0.76);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.prospect-dendreo-live-button {
  flex: none;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(128, 178, 230, 0.44);
  background: linear-gradient(180deg, rgba(235, 246, 255, 0.98), rgba(204, 228, 249, 0.98));
  color: #21486d;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 16px rgba(89, 119, 152, 0.12);
}

.prospect-dendreo-live-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.prospect-dendreo-live-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.prospect-close-button {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 224, 176, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(186, 103, 33, 0.96), rgba(140, 67, 15, 0.96));
  color: #fffaf3;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(80, 34, 5, 0.22);
}

.prospect-close-button:hover {
  transform: translateY(-1px);
}

.status-chip-todo {
  color: #edf5ff;
}

.status-chip-progress {
  color: #cfe6ff;
  background: rgba(39, 84, 128, 0.34);
}

.status-chip-meeting {
  color: #d8fbff;
  background: rgba(27, 98, 112, 0.34);
}

.status-chip-quote {
  color: #ffe3bf;
  background: rgba(130, 82, 28, 0.34);
}

.status-chip-followup {
  color: #eee4ff;
  background: rgba(80, 58, 132, 0.34);
}

.status-chip-muted {
  color: #d1dae4;
  background: rgba(63, 76, 89, 0.34);
}

.status-chip-success {
  color: #ddffef;
  background: rgba(28, 111, 77, 0.34);
}

.prospect-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prospect-opportunity-bar {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 179, 107, 0.56);
  background:
    radial-gradient(circle at top right, rgba(255, 170, 84, 0.18), transparent 24%),
    radial-gradient(circle at left bottom, rgba(102, 175, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(16, 38, 61, 0.98), rgba(10, 28, 47, 0.99));
  box-shadow:
    0 0 0 2px rgba(255, 224, 186, 0.24),
    inset 0 1px 0 rgba(220, 240, 255, 0.08),
    0 22px 42px rgba(7, 22, 40, 0.22),
    0 0 32px rgba(239, 124, 47, 0.14);
  position: relative;
  overflow: hidden;
}

.prospect-opportunity-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(255, 183, 112, 0.18), rgba(239, 124, 47, 0.96), rgba(255, 226, 181, 0.24));
  box-shadow: 0 0 18px rgba(239, 124, 47, 0.2);
}

.prospect-opportunity-bar::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(219, 236, 255, 0.12);
  pointer-events: none;
  opacity: 1;
}

.prospect-sequence-step {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(112, 177, 244, 0.18);
  background: linear-gradient(180deg, rgba(20, 47, 74, 0.96), rgba(14, 34, 55, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 255, 0.06),
    0 10px 20px rgba(5, 20, 36, 0.12);
}

.prospect-sequence-step.is-complete,
.prospect-sequence-step.is-ready {
  border-color: rgba(255, 198, 143, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 221, 0.08),
    0 12px 24px rgba(5, 20, 36, 0.14),
    0 0 0 1px rgba(255, 176, 98, 0.1);
}

.prospect-sequence-step-head {
  display: flex;
  align-items: start;
  gap: 12px;
}

.prospect-sequence-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 234, 205, 0.82);
  background: linear-gradient(180deg, rgba(255, 151, 61, 0.98), rgba(226, 101, 22, 0.98));
  color: #fffaf4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.94rem;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 218, 0.26),
    0 10px 18px rgba(97, 32, 0, 0.18);
  flex: none;
}

.prospect-sequence-step-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.prospect-sequence-kicker {
  margin: 0;
  color: rgba(255, 215, 165, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prospect-sequence-step-copy h5 {
  margin: 0;
  color: #f7fbff;
  font-size: 1rem;
}

.prospect-sequence-step-copy p {
  margin: 0;
  color: rgba(217, 234, 249, 0.84);
  font-size: 0.9rem;
  line-height: 1.5;
}

.prospect-sequence-step-body {
  display: grid;
  gap: 10px;
}

.prospect-sequence-step-body--spaced {
  gap: 12px;
}

.prospect-sequence-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.prospect-opportunity-head {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(22, 49, 77, 0.96), rgba(16, 39, 61, 0.96));
  border: 1px solid rgba(112, 177, 244, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 255, 0.06),
    0 10px 20px rgba(5, 20, 36, 0.14);
  position: relative;
}

.prospect-opportunity-bar.is-interest-active {
  border-color: rgba(255, 177, 98, 0.82);
  background:
    radial-gradient(circle at top right, rgba(255, 160, 82, 0.22), transparent 24%),
    radial-gradient(circle at left bottom, rgba(102, 175, 255, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(28, 44, 63, 0.98), rgba(12, 26, 42, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 221, 0.12),
    0 18px 34px rgba(9, 22, 35, 0.18),
    0 0 0 1px rgba(255, 166, 87, 0.2);
}

.prospect-opportunity-bar.is-interest-active::before {
  border-color: rgba(255, 213, 164, 0.24);
}

.prospect-opportunity-head::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 186, 119, 0), rgba(255, 186, 119, 0.7), rgba(255, 186, 119, 0));
  opacity: 0.8;
}

.prospect-opportunity-status {
  display: grid;
  gap: 8px;
}

.prospect-opportunity-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.prospect-opportunity-actions--footer {
  padding: 4px 6px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.prospect-opportunity-actions--footer .prospect-mail-cta,
.prospect-opportunity-actions--footer .prospect-dendreo-cta,
.prospect-opportunity-actions--footer .prospect-reference-cta {
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.92rem;
  justify-content: center;
}

.prospect-interest-toggle {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(150, 191, 230, 0.28);
  background: linear-gradient(180deg, rgba(30, 68, 104, 0.98), rgba(18, 45, 72, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 255, 0.1),
    0 10px 18px rgba(8, 24, 38, 0.14);
  font-size: 1.02rem;
  font-weight: 800;
  color: #f7fbff;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.prospect-interest-toggle:hover {
  transform: translateY(-1px);
}

.prospect-interest-toggle.is-active {
  border-color: rgba(255, 238, 214, 0.94);
  background:
    radial-gradient(circle at top center, rgba(255, 242, 215, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 151, 61, 0.98), rgba(222, 92, 20, 0.98));
  color: #fffdf8;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 228, 0.28),
    0 14px 26px rgba(125, 46, 3, 0.24),
    0 0 0 1px rgba(255, 195, 123, 0.18);
}

.prospect-opportunity-caption {
  color: rgba(226, 238, 251, 0.86);
  font-size: 0.84rem;
  line-height: 1.4;
  padding-left: 0;
}

.prospect-interest-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prospect-interest-ui {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 203, 145, 0.54);
  background: linear-gradient(180deg, rgba(37, 81, 123, 0.98), rgba(21, 54, 85, 0.98));
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 255, 0.08),
    0 0 0 3px rgba(255, 185, 112, 0.08);
}

.prospect-interest-toggle input:checked + .prospect-interest-ui {
  background: linear-gradient(180deg, rgba(255, 160, 82, 0.98), rgba(226, 103, 26, 0.98));
  border-color: rgba(255, 243, 225, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 228, 0.28),
    0 0 0 4px rgba(255, 190, 121, 0.18),
    0 8px 18px rgba(124, 44, 4, 0.16);
}

.prospect-interest-toggle input:checked + .prospect-interest-ui::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.prospect-opportunity-selection {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(24, 58, 91, 0.94), rgba(18, 45, 71, 0.94));
  border: 1px solid rgba(112, 177, 244, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 255, 0.06),
    0 8px 18px rgba(5, 20, 36, 0.1);
}

.dendreo-sync-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(118, 171, 224, 0.24);
  background: linear-gradient(180deg, rgba(18, 46, 74, 0.96), rgba(11, 32, 52, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(220, 240, 255, 0.06),
    0 12px 24px rgba(5, 20, 36, 0.12);
}

.dendreo-sync-panel.is-success {
  border-color: rgba(120, 213, 160, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(220, 255, 233, 0.06),
    0 12px 24px rgba(5, 20, 36, 0.12),
    0 0 0 1px rgba(94, 200, 142, 0.14);
}

.dendreo-sync-panel.is-error {
  border-color: rgba(255, 172, 104, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 237, 221, 0.06),
    0 12px 24px rgba(5, 20, 36, 0.12),
    0 0 0 1px rgba(239, 124, 47, 0.14);
}

.dendreo-sync-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dendreo-sync-kicker {
  margin: 0 0 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(151, 196, 241, 0.8);
  font-weight: 700;
}

.dendreo-sync-head h5 {
  margin: 0;
  color: #f4f9fe;
  font-size: 1rem;
}

.dendreo-sync-subtitle {
  margin: 6px 0 0;
  color: rgba(217, 234, 249, 0.84);
  font-size: 0.88rem;
  line-height: 1.5;
}

.dendreo-sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(183, 212, 239, 0.24);
  color: #f4f9fe;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.dendreo-sync-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.dendreo-sync-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(183, 212, 239, 0.18);
  overflow: hidden;
}

.dendreo-sync-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 181, 110, 0.95), rgba(239, 124, 47, 0.98));
  box-shadow: 0 0 18px rgba(239, 124, 47, 0.22);
}

.dendreo-sync-progress-value {
  color: #fff5e8;
  font-size: 0.88rem;
  font-weight: 800;
}

.dendreo-sync-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dendreo-sync-step {
  display: grid;
  gap: 6px;
  justify-items: start;
  opacity: 0.54;
}

.dendreo-sync-step.is-current,
.dendreo-sync-step.is-done {
  opacity: 1;
}

.dendreo-sync-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(183, 212, 239, 0.22);
  color: #d8e6f4;
  font-size: 0.8rem;
  font-weight: 800;
}

.dendreo-sync-step.is-current .dendreo-sync-step-dot,
.dendreo-sync-step.is-done .dendreo-sync-step-dot {
  background: linear-gradient(180deg, rgba(255, 151, 61, 0.98), rgba(225, 100, 20, 0.98));
  border-color: rgba(255, 230, 196, 0.82);
  color: #fff9f1;
}

.dendreo-sync-step-label {
  color: rgba(217, 234, 249, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.dendreo-sync-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 212, 239, 0.16);
}

.dendreo-sync-summary p {
  margin: 0;
  color: rgba(236, 244, 252, 0.92);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dendreo-sync-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.dendreo-sync-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 151, 61, 0.98), rgba(225, 100, 20, 0.98));
  border: 1px solid rgba(255, 230, 196, 0.82);
  color: #fffaf4;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 218, 0.26),
    0 12px 22px rgba(97, 32, 0, 0.16);
}

.dendreo-sync-link:hover {
  transform: translateY(-1px);
}

.dendreo-sync-dismiss {
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(182, 214, 244, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf4fd;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.dendreo-sync-dismiss:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(214, 232, 249, 0.34);
}

.prospect-opportunity-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.prospect-opportunity-selection-label {
  color: #f7fbff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prospect-opportunity-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prospect-opportunity-empty {
  color: rgba(217, 234, 249, 0.82);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

.prospect-opportunity-actions--sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  overflow: visible;
}

.prospect-opportunity-actions--sequence .prospect-mail-cta,
.prospect-opportunity-actions--sequence .prospect-dendreo-cta,
.prospect-opportunity-actions--sequence .prospect-reference-cta {
  min-width: 0;
  width: 100%;
  flex: initial;
  justify-content: center;
  white-space: nowrap;
}

.prospect-dendreo-confirm-inline {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 208, 147, 0.34);
  background:
    radial-gradient(circle at right top, rgba(255, 178, 108, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(20, 42, 65, 0.94), rgba(11, 27, 41, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.prospect-dendreo-confirm-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.prospect-dendreo-confirm-head h5 {
  margin: 4px 0 0;
  color: #f7fbff;
  font-size: 1.04rem;
}

.prospect-dendreo-confirm-copy {
  margin: 0;
  color: #dcecff;
  line-height: 1.55;
}

.prospect-dendreo-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.prospect-dendreo-confirm-card {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.prospect-dendreo-confirm-card span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9fb7cf;
  font-weight: 700;
}

.prospect-dendreo-confirm-card strong {
  color: #fff7eb;
  font-size: 0.94rem;
}

.prospect-dendreo-confirm-card--full {
  grid-column: 1 / -1;
}

.prospect-dendreo-confirm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prospect-dendreo-confirm-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.prospect-opportunity-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 214, 169, 0.34);
  color: #14395f;
  font-size: 0.88rem;
  font-weight: 800;
}

.prospect-opportunity-pill--action {
  cursor: pointer;
  font-size: 0.94rem;
  background: linear-gradient(180deg, rgba(255, 145, 54, 0.98), rgba(226, 101, 22, 0.98));
  border-color: rgba(255, 228, 191, 0.68);
  color: #fffaf4;
  box-shadow:
    inset 0 1px 0 rgba(255, 241, 223, 0.34),
    0 10px 20px rgba(126, 53, 8, 0.16);
}

.prospect-opportunity-pill--action:hover {
  transform: translateY(-1px);
}

.prospect-opportunity-pill--soft {
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(255, 236, 204, 0.96));
  border-color: rgba(255, 182, 112, 0.42);
  color: #8f460f;
  max-width: 100%;
  box-shadow: 0 8px 16px rgba(92, 36, 0, 0.12);
}

.prospect-mail-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 196, 0.82);
  background: linear-gradient(180deg, rgba(255, 151, 61, 0.98), rgba(225, 100, 20, 0.98));
  color: #fffaf5;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 218, 0.26),
    0 12px 22px rgba(97, 32, 0, 0.16);
}

.prospect-mail-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.prospect-mail-cta:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.prospect-mail-cta:not(:disabled):hover {
  transform: translateY(-1px);
}

.prospect-dendreo-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(36, 92, 148, 0.2);
  background: linear-gradient(180deg, rgba(24, 74, 130, 0.98), rgba(10, 49, 95, 0.98));
  color: #f7fbff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(214, 232, 255, 0.16),
    0 10px 20px rgba(16, 52, 96, 0.14);
}

.prospect-dendreo-cta svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.prospect-dendreo-cta:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.prospect-dendreo-cta:not(:disabled):hover {
  transform: translateY(-1px);
}

.prospect-meta-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(241, 249, 255, 0.98), rgba(224, 239, 250, 0.98));
  border: 1px solid rgba(161, 194, 221, 0.54);
  color: #29527a;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 6px 12px rgba(89, 107, 128, 0.08);
}

.prospect-sheet-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.prospect-field {
  display: grid;
  gap: 6px;
}

.prospect-field span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(67, 96, 124, 0.82);
  font-weight: 700;
}

.prospect-field--full {
  grid-column: 1 / -1;
}

.prospect-field--compact {
  max-width: 240px;
}

.prospect-field--nested {
  gap: 6px;
}

.prospect-follow-up-card {
  gap: 10px;
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(185, 205, 224, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(243, 249, 253, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(81, 95, 114, 0.06);
}

.prospect-follow-up-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prospect-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.prospect-input,
.prospect-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(185, 205, 224, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 253, 0.99));
  color: #22364d;
  font: inherit;
  padding: 9px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(81, 95, 114, 0.06);
}

.prospect-input::placeholder,
.prospect-textarea::placeholder {
  color: rgba(89, 117, 145, 0.72);
}

.prospect-input--compact {
  max-width: 240px;
}

.prospect-textarea {
  resize: vertical;
  min-height: 64px;
}

.prospect-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%) opacity(0.62);
  opacity: 1;
  cursor: pointer;
}

.detail-status-select {
  min-width: 0;
}

.detail-status-select--hero {
  min-width: 210px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow:
    0 10px 22px rgba(81, 95, 114, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.prospect-sheet .status-select {
  border: 1px solid rgba(191, 204, 218, 0.9);
  color: #22364d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(81, 95, 114, 0.06);
}

.prospect-sheet .status-tone-todo {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98));
  color: #22364d;
}

.prospect-sheet .status-tone-progress {
  background: linear-gradient(180deg, rgba(226, 239, 252, 0.98), rgba(210, 229, 247, 0.98));
  border-color: rgba(141, 177, 214, 0.88);
  color: #234768;
}

.prospect-sheet .status-tone-meeting {
  background: linear-gradient(180deg, rgba(224, 248, 250, 0.98), rgba(205, 238, 242, 0.98));
  border-color: rgba(128, 198, 208, 0.84);
  color: #1d5963;
}

.prospect-sheet .status-tone-quote {
  background: linear-gradient(180deg, rgba(255, 241, 220, 0.98), rgba(250, 228, 189, 0.98));
  border-color: rgba(224, 176, 102, 0.88);
  color: #7d4d15;
}

.prospect-sheet .status-tone-followup {
  background: linear-gradient(180deg, rgba(239, 232, 255, 0.98), rgba(226, 215, 250, 0.98));
  border-color: rgba(175, 151, 230, 0.84);
  color: #5a438f;
}

.prospect-sheet .status-tone-muted {
  background: linear-gradient(180deg, rgba(236, 241, 246, 0.98), rgba(222, 230, 238, 0.98));
  border-color: rgba(171, 184, 197, 0.84);
  color: #47586b;
}

.prospect-sheet .status-tone-success {
  background: linear-gradient(180deg, rgba(226, 249, 237, 0.98), rgba(205, 238, 221, 0.98));
  border-color: rgba(123, 195, 153, 0.86);
  color: #1f6a47;
}

.prospect-mail-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 158, 0.34);
  background:
    radial-gradient(circle at top center, rgba(255, 244, 220, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(221, 110, 32, 0.98), rgba(174, 71, 10, 0.98));
  color: #fffdf9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(101, 37, 4, 0.24);
}

.prospect-mail-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.prospect-mail-button:hover {
  transform: translateY(-1px);
}

.prospect-mail-button:disabled {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.prospect-mail-button--commercial.is-idle {
  border-color: rgba(173, 190, 208, 0.58);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(170, 185, 201, 0.92), rgba(122, 139, 158, 0.96));
  color: rgba(247, 251, 255, 0.92);
  box-shadow: 0 8px 18px rgba(88, 104, 122, 0.16);
}

.prospect-mail-button--commercial.is-armed {
  border-color: rgba(255, 218, 169, 0.44);
  background:
    radial-gradient(circle at top center, rgba(255, 243, 214, 0.2), transparent 38%),
    linear-gradient(180deg, rgba(240, 128, 39, 0.98), rgba(192, 80, 13, 0.98));
  color: #fffdf8;
  box-shadow: 0 14px 28px rgba(138, 55, 8, 0.28);
}

.prospect-sheet-footer {
  padding-top: 2px;
  border-top: 1px solid rgba(191, 211, 228, 0.72);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.prospect-relance-popup {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(192, 163, 228, 0.54);
  background:
    linear-gradient(180deg, rgba(250, 245, 255, 0.98), rgba(238, 231, 251, 0.98)),
    radial-gradient(circle at right top, rgba(174, 138, 244, 0.16), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 30px rgba(102, 81, 153, 0.12);
}

.prospect-relance-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.prospect-relance-popup-head h5 {
  margin-top: 4px;
  color: #523b89;
  font-size: 1rem;
}

.prospect-relance-popup-copy {
  margin: 0;
  color: #5c5b78;
  line-height: 1.45;
  font-size: 0.92rem;
}

.prospect-relance-popup-body {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.prospect-relance-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.prospect-reference-popup {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 177, 112, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(252, 241, 226, 0.98)),
    radial-gradient(circle at right top, rgba(255, 170, 84, 0.16), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 16px 30px rgba(121, 76, 33, 0.12);
}

.prospect-reference-modal-shell {
  position: absolute;
  inset: 0;
  z-index: 43;
  pointer-events: none;
}

.prospect-reference-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.34);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.prospect-reference-modal {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 72px));
  max-height: calc(100% - 48px);
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 177, 112, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.985), rgba(252, 241, 226, 0.985)),
    radial-gradient(circle at right top, rgba(255, 170, 84, 0.16), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 20px 40px rgba(31, 21, 10, 0.2);
  overflow: auto;
  pointer-events: auto;
}

.prospect-reference-library-modal {
  border-color: rgba(142, 230, 187, 0.58);
  background:
    linear-gradient(180deg, rgba(239, 249, 244, 0.985), rgba(227, 242, 234, 0.985)),
    radial-gradient(circle at right top, rgba(82, 196, 145, 0.12), transparent 36%);
}

.prospect-reference-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.prospect-reference-popup-head h5 {
  margin-top: 4px;
  color: #7c4b14;
  font-size: 1rem;
}

.prospect-reference-popup-copy {
  margin: 0;
  color: #6f5d45;
  line-height: 1.45;
  font-size: 0.92rem;
}

.prospect-reference-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prospect-reference-formation-box {
  display: grid;
  gap: 10px;
}

.prospect-reference-formation-list {
  display: grid;
  gap: 10px;
}

.prospect-reference-formation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(214, 184, 146, 0.76);
  background: rgba(255, 255, 255, 0.78);
  color: #6c4b28;
  font-weight: 700;
  cursor: pointer;
}

.prospect-reference-formation-item.is-selected {
  border-color: rgba(239, 124, 47, 0.7);
  background: linear-gradient(180deg, rgba(255, 243, 230, 0.96), rgba(255, 233, 207, 0.96));
  box-shadow: 0 10px 22px rgba(151, 70, 18, 0.12);
}

.prospect-reference-formation-item input {
  accent-color: #ef7c2f;
}

.prospect-reference-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(214, 184, 146, 0.7);
  color: #86664a;
  background: rgba(255, 255, 255, 0.55);
}

.prospect-reference-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.prospect-reference-usable {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(224, 190, 151, 0.72);
  background: rgba(255, 255, 255, 0.74);
  color: #6b4b28;
  font-size: 0.9rem;
  font-weight: 700;
}

.prospect-reference-usable input {
  accent-color: #ef7c2f;
}

.prospect-reference-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 193, 124, 0.52);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 246, 234, 0.98), rgba(250, 232, 202, 0.98));
  color: #8e4b14;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(92, 36, 0, 0.12);
}

.prospect-reference-cta.is-captured {
  background: linear-gradient(180deg, rgba(239, 124, 47, 0.98), rgba(204, 88, 14, 0.98));
  border-color: rgba(255, 227, 191, 0.68);
  color: #fffaf4;
  box-shadow: 0 12px 24px rgba(126, 53, 8, 0.16);
}

.prospect-reference-cta--library {
  border-color: rgba(135, 210, 168, 0.72);
  background: linear-gradient(180deg, rgba(235, 251, 240, 0.98), rgba(214, 241, 222, 0.98));
  color: #2f7d56;
  box-shadow: 0 10px 20px rgba(38, 120, 79, 0.12);
}

.prospect-reference-cta--library:hover {
  background: linear-gradient(180deg, rgba(224, 247, 231, 0.98), rgba(203, 236, 213, 0.98));
}

@media (max-width: 980px) {
  .prospect-opportunity-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .prospect-opportunity-actions--footer .prospect-mail-cta,
  .prospect-opportunity-actions--footer .prospect-dendreo-cta,
  .prospect-opportunity-actions--footer .prospect-reference-cta {
    min-width: 0;
    flex: initial;
    white-space: normal;
    width: 100%;
  }

  .prospect-opportunity-actions--sequence .prospect-mail-cta,
  .prospect-opportunity-actions--sequence .prospect-dendreo-cta,
  .prospect-opportunity-actions--sequence .prospect-reference-cta {
    width: 100%;
    justify-content: center;
  }

  .prospect-opportunity-actions--sequence {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.prospect-reference-modal--v2 {
  border-color: rgba(117, 185, 235, 0.46);
  background:
    linear-gradient(180deg, rgba(17, 39, 61, 0.985), rgba(11, 26, 43, 0.985)),
    radial-gradient(circle at right top, rgba(239, 124, 47, 0.16), transparent 34%),
    radial-gradient(circle at left bottom, rgba(86, 197, 165, 0.12), transparent 32%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 46px rgba(6, 14, 23, 0.42);
}

.prospect-reference-modal--v2 .prospect-reference-popup-head h5 {
  margin-top: 4px;
  color: #f3f7fb;
  font-size: 1.05rem;
}

.prospect-reference-modal--v2 .prospect-reference-popup-copy {
  color: #b8cadb;
}

.prospect-reference-usable-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(120, 164, 205, 0.42);
  background: linear-gradient(180deg, rgba(18, 48, 77, 0.96), rgba(13, 36, 59, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.prospect-reference-usable-card input {
  accent-color: #ef7c2f;
  width: 18px;
  height: 18px;
  margin: 0;
}

.prospect-reference-usable-card.is-active {
  border-color: rgba(255, 195, 123, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 151, 72, 0.98), rgba(219, 97, 22, 0.98)),
    radial-gradient(circle at right top, rgba(255, 232, 203, 0.28), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 28px rgba(127, 52, 8, 0.22);
}

.prospect-reference-usable-copy {
  display: grid;
  gap: 4px;
}

.prospect-reference-usable-copy strong {
  color: #f8fbff;
  font-size: 1rem;
}

.prospect-reference-usable-copy span {
  color: #c7d6e4;
  font-size: 0.9rem;
  line-height: 1.4;
}

.prospect-reference-usable-card.is-active .prospect-reference-usable-copy strong,
.prospect-reference-usable-card.is-active .prospect-reference-usable-copy span {
  color: #fffaf5;
}

.prospect-reference-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prospect-reference-meta-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(120, 164, 205, 0.36);
  background: linear-gradient(180deg, rgba(24, 52, 79, 0.92), rgba(18, 40, 63, 0.92));
}

.prospect-reference-meta-card span {
  color: #86b2d8;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prospect-reference-meta-card strong {
  color: #f4f8fb;
  font-size: 0.97rem;
  line-height: 1.35;
}

.prospect-reference-modal--v2 .prospect-reference-formation-item {
  border-color: rgba(106, 147, 187, 0.34);
  background: rgba(16, 37, 58, 0.86);
  color: #eaf1f8;
}

.prospect-reference-modal--v2 .prospect-reference-formation-item.is-selected {
  border-color: rgba(255, 189, 118, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 150, 70, 0.98), rgba(226, 100, 20, 0.98)),
    radial-gradient(circle at right top, rgba(255, 234, 208, 0.24), transparent 38%);
  color: #fffaf5;
  box-shadow: 0 12px 24px rgba(103, 44, 10, 0.2);
}

.prospect-reference-modal--v2 .prospect-reference-empty {
  border-color: rgba(112, 152, 192, 0.42);
  color: #bdd0e0;
  background: rgba(16, 37, 58, 0.72);
}

.prospect-reference-modal--v2 .prospect-field span,
.prospect-reference-modal--v2 .prospect-field-label {
  color: #8cb7da;
}

.prospect-reference-modal--v2 .prospect-input,
.prospect-reference-modal--v2 .prospect-textarea,
.prospect-reference-modal--v2 .prospect-select {
  border-color: rgba(113, 154, 193, 0.38);
  background: rgba(11, 31, 49, 0.88);
  color: #f4f8fb;
}

.prospect-reference-modal--v2 .prospect-input::placeholder,
.prospect-reference-modal--v2 .prospect-textarea::placeholder {
  color: rgba(193, 208, 223, 0.76);
}

.prospect-reference-library-list {
  display: grid;
  gap: 12px;
}

.prospect-reference-library-item {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(158, 218, 184, 0.58);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(34, 93, 63, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.prospect-reference-library-item:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 173, 121, 0.72);
  box-shadow: 0 14px 30px rgba(34, 93, 63, 0.12);
}

.prospect-reference-library-item.is-expanded {
  border-color: rgba(72, 154, 102, 0.92);
  background:
    linear-gradient(180deg, rgba(248, 255, 250, 0.96), rgba(240, 250, 244, 0.96)),
    radial-gradient(circle at right top, rgba(136, 224, 169, 0.16), transparent 34%);
  box-shadow: 0 16px 34px rgba(34, 93, 63, 0.15);
}

.prospect-reference-library-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.prospect-reference-library-head-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.prospect-reference-library-head strong {
  color: #1f472f;
  font-size: 1rem;
}

.prospect-reference-library-head p {
  margin: 4px 0 0;
  color: #5f7667;
  font-size: 0.92rem;
}

.prospect-reference-library-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(64, 160, 105, 0.12);
  color: #2f7d56;
  font-size: 0.78rem;
  font-weight: 800;
}

.prospect-reference-library-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(64, 160, 105, 0.24);
  background: rgba(64, 160, 105, 0.08);
  color: #2f7d56;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.prospect-reference-library-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prospect-reference-library-match {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.prospect-reference-library-match.same-formation {
  background: rgba(255, 171, 91, 0.16);
  color: #ad5d1d;
}

.prospect-reference-library-match.same-sector {
  background: rgba(85, 141, 255, 0.14);
  color: #285dae;
}

.prospect-reference-library-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prospect-reference-library-copy {
  display: grid;
  gap: 8px;
}

.prospect-reference-library-copy p {
  margin: 0;
  color: #355342;
  line-height: 1.5;
}

.prospect-reference-library-hint {
  margin: 0;
  color: #567060;
  font-size: 0.86rem;
  font-weight: 700;
}

.prospect-textarea--compact {
  min-height: 88px;
}

@media (max-width: 900px) {
  .prospect-reference-popup-grid {
    grid-template-columns: 1fr;
  }
}

.prospect-history {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(161, 194, 221, 0.58);
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.96), rgba(231, 241, 249, 0.96)),
    radial-gradient(circle at right top, rgba(111, 228, 214, 0.06), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(89, 107, 128, 0.06);
}

.prospect-history-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.prospect-history-head h5 {
  margin-top: 4px;
  color: #234768;
  font-size: 1rem;
}

.prospect-history-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(176, 202, 225, 0.74);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(232, 241, 249, 0.98));
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px rgba(89, 107, 128, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.prospect-history-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(236, 145, 69, 0.62);
}

.prospect-history-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 146, 66, 0.96), rgba(191, 89, 21, 0.96));
}

.prospect-history-summary {
  color: #4d6781;
  font-size: 0.88rem;
  font-weight: 700;
}

.prospect-history.is-collapsed {
  gap: 10px;
}

.prospect-history.is-collapsed .prospect-history-toggle {
  background: linear-gradient(180deg, rgba(255, 244, 230, 0.98), rgba(248, 234, 216, 0.98));
  border-color: rgba(238, 156, 84, 0.62);
}

.prospect-history-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 18px;
}

.prospect-history-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(241, 133, 53, 0.4), rgba(89, 169, 221, 0.28));
}

.prospect-history-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(182, 206, 226, 0.64);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 253, 0.97));
  box-shadow: 0 10px 24px rgba(89, 107, 128, 0.06);
}

.prospect-history-dot {
  position: relative;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  margin-left: -18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(241, 133, 53, 0.98), rgba(204, 88, 14, 0.98));
  box-shadow:
    0 0 0 5px rgba(241, 133, 53, 0.14),
    0 8px 14px rgba(177, 92, 27, 0.12);
}

.prospect-history-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.prospect-history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 2px;
}

.prospect-history-meta strong {
  color: #214666;
  font-size: 0.95rem;
}

.prospect-history-meta span {
  color: rgba(67, 96, 124, 0.82);
  font-size: 0.8rem;
  white-space: nowrap;
}

.prospect-history-content p,
.prospect-history-empty {
  margin: 0;
  color: #4a6784;
  line-height: 1.45;
  font-size: 0.88rem;
}

.prospect-secondary-button {
  flex: none;
  border: 1px solid rgba(161, 194, 221, 0.74);
  border-radius: 999px;
  padding: 11px 16px;
  background: linear-gradient(180deg, rgba(241, 249, 255, 0.98), rgba(226, 239, 250, 0.98));
  color: #29527a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(89, 107, 128, 0.08);
}

.prospect-secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prospect-mail-modal-shell {
  position: absolute;
  inset: 0;
  z-index: 42;
  pointer-events: none;
}

.prospect-mail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.42);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.prospect-mail-modal {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(940px, calc(100% - 72px));
  max-height: calc(100% - 56px);
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border-radius: 24px;
  border: 1px solid rgba(161, 194, 221, 0.68);
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.985), rgba(229, 240, 249, 0.985)),
    radial-gradient(circle at right top, rgba(111, 228, 214, 0.08), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 30px 70px rgba(5, 14, 24, 0.32);
  overflow: auto;
  pointer-events: auto;
}

.prospect-mail-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(161, 194, 221, 0.58);
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.98), rgba(231, 241, 249, 0.98)),
    radial-gradient(circle at right top, rgba(111, 228, 214, 0.08), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(89, 107, 128, 0.08);
}

.prospect-mail-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.prospect-mail-preview-head h5 {
  margin-top: 4px;
  color: #234768;
  font-size: 1rem;
}

.prospect-mail-preview-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(185, 205, 224, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 253, 0.99));
  color: #22364d;
  font: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(81, 95, 114, 0.06);
}

.prospect-mail-preview-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(161, 194, 221, 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 239, 250, 0.96));
  color: #2a77b5;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.prospect-mail-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prospect-mail-preview-block {
  display: grid;
  gap: 6px;
}

.prospect-mail-preview-block--full {
  grid-column: 1 / -1;
}

.prospect-mail-preview-block span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(67, 96, 124, 0.82);
  font-weight: 700;
}

.prospect-mail-preview-card {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(185, 205, 224, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 253, 0.99));
  color: #22364d;
  line-height: 1.55;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(81, 95, 114, 0.06);
}

.prospect-mail-preview-card--attachments {
  gap: 12px;
}

.mail-link-item strong {
  display: inline-block;
  margin-bottom: 4px;
}

.mail-link-missing {
  color: rgba(133, 101, 61, 0.86);
  font-weight: 700;
}

.prospect-mail-preview-editor {
  width: 100%;
  min-height: 360px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(185, 205, 224, 0.94);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 253, 0.99));
  color: #22364d;
  line-height: 1.62;
  font: inherit;
  resize: vertical;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 6px 14px rgba(81, 95, 114, 0.06);
}

.mail-attachment-path {
  display: inline-block;
  margin-top: 2px;
  color: rgba(89, 117, 145, 0.82);
  font-size: 0.82rem;
}

.mail-attachment-separator {
  border: 0;
  border-top: 1px solid rgba(191, 211, 228, 0.72);
  margin: 10px 0;
}

.prospect-mail-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(209, 121, 49, 0.42);
  background: linear-gradient(180deg, rgba(255, 246, 234, 0.98), rgba(251, 234, 207, 0.98));
  color: #9a4b12;
  font-weight: 800;
  cursor: pointer;
}

.prospect-mail-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prospect-mail-upload-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.prospect-mail-upload-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(191, 211, 228, 0.72);
  background: rgba(255, 255, 255, 0.82);
  color: #22364d;
}

.prospect-mail-upload-empty {
  margin: 12px 0 0;
  color: rgba(89, 117, 145, 0.9);
}

.prospect-mail-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.prospect-email-prompt-shell {
  position: absolute;
  inset: 0;
  z-index: 48;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.prospect-email-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.16);
  pointer-events: auto;
}

.prospect-email-prompt {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 48px));
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(161, 194, 221, 0.72);
  background:
    linear-gradient(180deg, rgba(244, 250, 255, 0.99), rgba(231, 241, 249, 0.99)),
    radial-gradient(circle at right top, rgba(111, 228, 214, 0.1), transparent 36%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 24px 48px rgba(5, 14, 24, 0.24);
  pointer-events: auto;
}

.prospect-save-button {
  flex: none;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(239, 124, 47, 0.98), rgba(201, 82, 16, 0.98));
  color: #fffaf3;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(109, 42, 6, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.prospect-save-button:hover {
  transform: translateY(-1px);
}

.prospect-outlook-button {
  color: #1f5b8e;
}

.results-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.collaborative-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(118, 166, 205, 0.24);
  background: linear-gradient(180deg, rgba(35, 62, 84, 0.94), rgba(23, 43, 62, 0.94));
  color: rgba(233, 243, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 24px rgba(13, 31, 46, 0.16);
}

.collaborative-status-pill.is-online {
  background: linear-gradient(180deg, rgba(58, 120, 92, 0.96), rgba(33, 81, 60, 0.96));
  border-color: rgba(161, 222, 188, 0.28);
}

.collaborative-status-pill.is-offline {
  background: linear-gradient(180deg, rgba(110, 79, 48, 0.96), rgba(82, 55, 29, 0.96));
  border-color: rgba(232, 189, 132, 0.26);
}

.collaborative-status-pill.is-syncing {
  background: linear-gradient(180deg, rgba(47, 100, 120, 0.96), rgba(28, 70, 88, 0.96));
  border-color: rgba(150, 212, 229, 0.26);
}

.save-button,
.load-more,
.backup-button {
  border: none;
  border-radius: 999px;
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.save-button {
  background: linear-gradient(180deg, rgba(36, 78, 117, 0.96), rgba(23, 51, 78, 0.96));
  border: 1px solid rgba(99, 162, 221, 0.28);
  box-shadow: 0 14px 28px rgba(16, 44, 70, 0.24);
}

.save-button.is-saved {
  background: linear-gradient(180deg, #1e8d62, #156847);
  box-shadow: 0 14px 28px rgba(30, 141, 98, 0.22);
}

.save-button.is-error {
  background: linear-gradient(180deg, #aa5d2b, #86431b);
  box-shadow: 0 14px 28px rgba(170, 93, 43, 0.22);
}

.backup-button {
  background: linear-gradient(180deg, rgba(63, 105, 135, 0.96), rgba(40, 72, 96, 0.96));
  border: 1px solid rgba(132, 185, 231, 0.24);
  box-shadow: 0 12px 24px rgba(20, 44, 68, 0.18);
}

.backup-button--import {
  background: linear-gradient(180deg, rgba(53, 94, 87, 0.96), rgba(34, 68, 62, 0.96));
  border-color: rgba(146, 212, 191, 0.24);
}

.load-more {
  background: linear-gradient(180deg, var(--orange), #d85f16);
  box-shadow: 0 14px 28px rgba(239, 124, 47, 0.22);
}

.save-button:hover,
.load-more:hover,
.backup-button:hover {
  transform: translateY(-1px);
}

@keyframes driftOne {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-26px, 18px, 0) scale(1.08);
  }
}

@keyframes driftTwo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(24px, -16px, 0) scale(1.06);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .modal-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .modal-head .results-offer-rail {
    grid-column: 1 / -1;
  }

.collaborative-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  display: flex;
  align-items: end;
  flex-direction: column;
  gap: 14px;
}

.collaborative-chat-toggle {
  position: relative;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(120, 164, 214, 0.45);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(28, 48, 76, 0.96), rgba(11, 27, 45, 0.98));
  box-shadow: 0 20px 40px rgba(5, 10, 22, 0.35);
  color: #f6fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.collaborative-chat-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(5, 10, 22, 0.42);
}

.collaborative-chat-toggle svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.collaborative-chat-toggle.has-unread {
  border-color: rgba(247, 146, 30, 0.72);
}

.collaborative-chat-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffb44f, #f97316);
  color: #fffdf8;
  font-size: 0.76rem;
  font-weight: 800;
  border: 2px solid rgba(8, 22, 38, 0.96);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.38);
}

.collaborative-chat-panel {
  position: relative;
  overflow: hidden;
  width: min(400px, calc(100vw - 28px));
  height: min(72vh, 640px);
  max-height: min(72vh, 640px);
  border-radius: 26px;
  border: 1px solid rgba(95, 140, 194, 0.32);
  background: linear-gradient(180deg, rgba(14, 33, 54, 0.98), rgba(8, 22, 38, 0.99));
  box-shadow: 0 28px 70px rgba(5, 10, 22, 0.48);
  backdrop-filter: blur(18px);
  padding: 16px;
  color: #f3f8ff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.collaborative-chat-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 96px;
  background: radial-gradient(circle at top right, rgba(255, 180, 79, 0.2), transparent 56%);
  pointer-events: none;
}

.collaborative-chat-panel-head,
.collaborative-chat-thread-head,
.collaborative-chat-pending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collaborative-chat-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.collaborative-chat-heading {
  display: grid;
  gap: 4px;
}

.collaborative-chat-kicker {
  margin: 0;
  color: #ffbc69;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collaborative-chat-panel-head h5,
.collaborative-chat-thread-head strong,
.collaborative-chat-pending-head span {
  margin: 0;
  font-size: 1rem;
}

.collaborative-chat-subtitle {
  margin: 0;
  color: rgba(214, 228, 255, 0.74);
  font-size: 0.83rem;
}

.collaborative-chat-close {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(120, 164, 214, 0.26);
  background: rgba(28, 48, 76, 0.82);
  color: #f6fbff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.collaborative-chat-tabs {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.collaborative-chat-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(120, 164, 214, 0.24);
  background: rgba(18, 36, 58, 0.82);
  color: #dbe9ff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.collaborative-chat-tab span {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(247, 146, 30, 0.2);
  color: #ffd7a4;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.collaborative-chat-tab.is-active {
  border-color: rgba(247, 146, 30, 0.52);
  background: linear-gradient(180deg, rgba(247, 146, 30, 0.24), rgba(194, 82, 14, 0.16));
  color: #fff6ea;
}

.collaborative-chat-tab.is-disabled {
  opacity: 0.52;
}

.collaborative-chat-thread-head {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(120, 164, 214, 0.14);
  background: rgba(18, 36, 58, 0.52);
  color: rgba(214, 228, 255, 0.82);
  font-size: 0.82rem;
}

.collaborative-chat-thread-copy {
  display: grid;
  gap: 4px;
}

.collaborative-chat-error {
  color: #ffd1d1;
  font-weight: 600;
}

.collaborative-chat-loading {
  color: #b8d5ff;
  font-weight: 600;
}

.collaborative-chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: 4px;
}

.collaborative-chat-messages {
  min-height: 0;
  overflow: visible;
  display: grid;
  align-content: start;
  gap: 10px;
}

.collaborative-chat-message {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(120, 164, 214, 0.16);
  background: rgba(21, 43, 68, 0.88);
  display: grid;
  gap: 6px;
  box-shadow: 0 10px 22px rgba(5, 10, 22, 0.18);
}

.collaborative-chat-message.is-mine {
  margin-left: auto;
  border-color: rgba(113, 203, 171, 0.3);
  background: linear-gradient(180deg, rgba(22, 77, 69, 0.94), rgba(12, 52, 49, 0.96));
}

.collaborative-chat-message p {
  margin: 0;
  color: #f3f8ff;
  line-height: 1.45;
}

.collaborative-chat-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(195, 214, 241, 0.84);
  font-size: 0.75rem;
}

.collaborative-chat-message-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.collaborative-chat-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255, 180, 79, 0.9), rgba(249, 115, 22, 0.92));
  color: #fffaf2;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.24);
}

.collaborative-chat-message-author strong {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaborative-chat-message-time {
  white-space: nowrap;
}

.collaborative-chat-message-link,
.collaborative-chat-pending-item {
  border: 1px solid rgba(120, 164, 214, 0.18);
  border-radius: 999px;
  background: rgba(11, 27, 45, 0.72);
  color: #e9f3ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.collaborative-chat-message-link {
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
}

.collaborative-chat-empty {
  margin: 0;
  padding: 18px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(120, 164, 214, 0.22);
  color: rgba(214, 228, 255, 0.72);
  text-align: center;
  background: rgba(15, 31, 51, 0.42);
}

.collaborative-chat-pending {
  display: grid;
  gap: 8px;
}

.collaborative-chat-pending-list {
  display: grid;
  gap: 8px;
}

.collaborative-chat-pending-item {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.collaborative-chat-pending-item strong {
  color: #ffcf94;
}

.collaborative-chat-composer {
  margin-top: 0;
  padding-top: 8px;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(120, 164, 214, 0.12);
  background: linear-gradient(180deg, rgba(8, 22, 38, 0.88), rgba(8, 22, 38, 0.99));
  padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
}

.collaborative-chat-link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(214, 228, 255, 0.82);
  font-size: 0.82rem;
}

.collaborative-chat-link-toggle input {
  accent-color: #f97316;
}

.collaborative-chat-input {
  width: 100%;
  min-height: 62px;
  max-height: 14vh;
  resize: none;
  border-radius: 16px;
  border: 1px solid rgba(120, 164, 214, 0.2);
  background: rgba(8, 22, 38, 0.78);
  color: #f3f8ff;
  padding: 10px 12px;
  font: inherit;
}

.collaborative-chat-input::placeholder {
  color: rgba(186, 203, 229, 0.56);
}

.collaborative-chat-input:focus {
  outline: none;
  border-color: rgba(247, 146, 30, 0.58);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.collaborative-chat-send {
  min-width: 96px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 146, 30, 0.6);
  background: linear-gradient(180deg, #ffb44f, #f97316);
  color: #fffdf8;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
  cursor: pointer;
}

.collaborative-chat-send:disabled {
  opacity: 0.55;
  box-shadow: none;
  cursor: default;
}

@media (max-width: 1180px) {
  .hero,
  .modal-body {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "department sector markets"
      "department commercial markets"
      "size persona markets"
      "seasonality seasonality markets";
  }

  .facet-modal {
    inset: 12px;
  }

  .facet-pane {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .results-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .offer-rail-layout {
    grid-template-columns: 1fr;
  }

  .prospect-sheet {
    width: min(760px, calc(100% - 28px));
  }

  .offer-hover-panel {
    width: min(700px, calc(100vw - 36px));
    top: 112px;
    max-height: calc(100vh - 132px);
  }

  .prospect-sheet-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .targeting-sheet {
    width: min(380px, calc(100% - 12px));
  }
}

@media (max-width: 740px) {
  .collaborative-chat-panel {
    width: min(100vw - 20px, 400px);
    height: min(70vh, 600px);
    max-height: min(70vh, 600px);
  }
}

@media (max-width: 720px) {
  .modal-head {
    gap: 12px;
    padding: 16px 18px 12px;
  }

  .page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 18px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "department department"
      "sector commercial"
      "size persona"
      "seasonality seasonality"
      "markets markets";
  }

  .hero,
  .facet-card {
    padding: 18px;
  }

  .facet-card--department,
  .facet-card--sector,
  .facet-card--commercial,
  .facet-card--size,
  .facet-card--persona,
  .facet-card--seasonality,
  .facet-card--markets {
    min-height: 0;
  }

  .results-head,
  .results-footer {
    align-items: start;
    flex-direction: column;
  }

  .results-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .offer-rail-head {
    align-items: start;
    flex-direction: column;
  }

  .offer-rail-context {
    text-align: left;
  }

  .results-filter-grid,
  .prospect-sheet-form {
    grid-template-columns: 1fr;
  }

  .filter-field--search {
    grid-column: span 1;
  }

  .prospect-sheet {
    top: 10px;
    width: calc(100% - 16px);
    max-height: calc(100% - 20px);
    padding: 16px;
    transform: translateX(-50%);
  }

  .prospect-sheet-head {
    flex-direction: column;
    align-items: stretch;
  }

  .prospect-sheet-head-actions {
    justify-content: space-between;
    align-items: end;
  }

  .prospect-sequence-step-head,
  .prospect-sequence-inline {
    align-items: start;
    flex-direction: column;
  }

  .prospect-follow-up-grid {
    grid-template-columns: 1fr;
  }

  .prospect-opportunity-actions--sequence {
    grid-template-columns: 1fr;
  }

  .prospect-status-editor {
    min-width: 0;
  }

  .results-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .results-footer-primary,
  .results-targeting-button,
  .results-dendreo-sync-button {
    width: 100%;
  }

  .results-targeting-button,
  .results-dendreo-sync-button {
    min-width: 0;
  }

  .targeting-sheet {
    left: 0;
    right: 0;
    width: 100%;
    bottom: 112px;
  }

  .targeting-sheet-kpis {
    grid-template-columns: 1fr;
  }

  .targeting-sheet-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .hero-brand {
    align-items: start;
    flex-direction: column;
  }

  .hero-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .home-selection-actions {
    width: 100%;
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .home-selection-primary-stack {
    width: 100%;
    justify-items: stretch;
  }

  .modal-head {
    padding: 18px;
  }

  .results-pane,
  .facet-pane {
    padding: 16px;
  }

  .offer-detail-context-row {
    grid-template-columns: 1fr;
  }

  .offer-hover-panel {
    top: 88px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 108px);
    padding: 14px 15px;
  }

  .dendreo-confirm-grid {
    grid-template-columns: 1fr;
  }

  .module-picker-sheet {
    width: calc(100% - 28px);
    max-height: calc(100% - 36px);
    top: 18px;
  }

  .collaborative-chat {
    right: 12px;
    bottom: 12px;
  }

  .collaborative-chat-panel {
    width: min(100vw - 20px, 390px);
    max-height: calc(100vh - 110px);
    padding: 16px;
  }

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

@media (max-width: 560px) {
  .module-picker-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "department"
      "sector"
      "commercial"
      "size"
      "persona"
      "seasonality"
      "markets";
  }
}
.prospection-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(6, 16, 30, 0.2);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.prospection-loading-window {
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  border: 1px solid rgba(95, 140, 194, 0.28);
  background: linear-gradient(180deg, rgba(16, 37, 59, 0.98), rgba(10, 24, 40, 0.99));
  box-shadow: 0 28px 70px rgba(6, 16, 30, 0.38);
  color: #f4f8ff;
  text-align: center;
}

.prospection-loading-chip {
  justify-self: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(247, 146, 30, 0.35);
  background: rgba(247, 146, 30, 0.12);
  color: #ffd4a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.prospection-loading-title {
  margin: 0;
  color: #f8fbff;
  font-size: 1.5rem;
  line-height: 1.1;
}

.prospection-loading-copy {
  margin: 0;
  color: #cddced;
  font-size: 0.96rem;
  line-height: 1.45;
}

.prospection-loading-error {
  margin: 0;
  color: #ffb089;
  font-size: 0.84rem;
  line-height: 1.4;
}

.prospection-loading-gauge {
  position: relative;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.14);
  box-shadow: inset 0 0 0 1px rgba(126, 170, 214, 0.18);
}

.prospection-loading-gauge-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 173, 92, 0.18), rgba(255, 173, 92, 0.92), rgba(255, 214, 170, 0.65));
  box-shadow: 0 0 24px rgba(255, 173, 92, 0.35);
  animation: prospectionLoadingGaugeShift 1.6s ease-in-out infinite;
}

.home-selection-pill--show-all {
  border-color: rgba(255, 173, 92, 0.52);
  background: rgba(255, 173, 92, 0.15);
  color: #ffd9b0;
}

.home-selection-pill--show-all:hover,
.home-selection-pill--show-all:focus-visible {
  border-color: rgba(255, 173, 92, 0.82);
  background: rgba(255, 173, 92, 0.24);
}

@keyframes prospectionLoadingGaugeShift {
  0% {
    transform: translateX(-105%);
  }
  55% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(240%);
  }
}
