/* BeyondHealth navy / blue / gold / cream customer portal palette */
:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --panel: #ffffff;
  --ink: #071424;
  --muted: #637085;
  --line: #dde3eb;
  --navy: #0b1f36;
  --navy-soft: #e8eef5;
  --gold: #c7a65a;
  --gold-soft: #f5ecd6;
  --shadow: 0 18px 50px rgba(7, 20, 36, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(23, 84, 140, 0.14), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(199, 166, 90, 0.18), transparent 28rem),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  background: rgba(246, 247, 241, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), #17548c);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.portal-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.portal-header nav a,
.ghost-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: center;
  margin: 18px 0 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

p,
li {
  color: var(--muted);
  line-height: 1.72;
}

.login-card,
#testForm,
#referralForm,
#profileForm,
#balanceForm {
  display: grid;
  gap: 16px;
}

#balanceForm {
  gap: 12px;
}

#balanceForm h2,
#balanceForm .fine-print {
  margin-bottom: 0;
}

#balanceForm .form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#measurementNote {
  min-height: 76px;
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcf8;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(199, 166, 90, 0.22);
}

.primary-button,
.secondary-button,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), #17548c);
  color: white;
  cursor: pointer;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
}

.primary-button:hover,
.primary-link:hover {
  background: #061224;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--gold-soft);
  color: var(--navy);
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.partner-attribution {
  margin: 0;
  border: 1px solid rgba(199, 166, 90, 0.38);
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--navy);
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 800;
}

.partner-attribution span,
.partner-attribution strong,
.partner-attribution a {
  display: block;
}

.partner-attribution a {
  margin-top: 6px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.form-error {
  margin: 0;
  border: 1px solid rgba(160, 39, 39, 0.28);
  border-radius: 14px;
  background: #fff1ef;
  color: #8a1f1f;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 750;
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  gap: 24px;
  padding-bottom: 42px;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.steps {
  padding-left: 1.3rem;
}

.inline-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 10px;
  margin: 20px 0;
}

.timeline,
.referral-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.referral-list li,
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcf8;
  padding: 14px 16px;
}

.timeline time,
.referral-list strong,
.result-card strong,
.result-card span {
  display: block;
}

.timeline time,
.result-card strong {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.philosophy {
  position: relative;
  overflow: hidden;
  border-color: rgba(199, 166, 90, 0.28);
  background:
    radial-gradient(circle at top right, rgba(23, 84, 140, 0.11), transparent 18rem),
    linear-gradient(145deg, #fffdf8, #f8f1df);
}

.philosophy h2 {
  max-width: 760px;
  color: var(--navy);
}

.philosophy-copy {
  display: grid;
  max-width: 820px;
  gap: 12px;
}

.philosophy-copy p {
  margin: 0;
}

.philosophy-orbit {
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(199, 166, 90, 0.24);
  border-radius: 50%;
}

.philosophy-orbit::after {
  content: "";
  position: absolute;
  inset: 48px;
  border: 1px solid rgba(11, 31, 54, 0.12);
  border-radius: 50%;
}

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

.resource-grid a {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fbfcf8, var(--gold-soft));
  padding: 18px;
  text-decoration: none;
  font-weight: 850;
}

.resource-grid a:hover {
  border-color: rgba(199, 166, 90, 0.65);
}

.referral-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcf8;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.referral-card strong,
.referral-card span,
.referral-card small {
  display: block;
}

.referral-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.referral-action-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.referral-edit-form {
  display: grid;
  gap: 10px;
}

.referral-edit-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.18s;
}

.referral-edit-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(199, 166, 90, 0.2);
}

.referral-edit-textarea {
  resize: vertical;
  min-height: 72px;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(160, 39, 39, 0.3);
  border-radius: 14px;
  background: #fff1ef;
  color: #8a1f1f;
  cursor: pointer;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.15s;
}

.danger-button:hover {
  background: #ffe4e0;
}

#deleteTestBtn {
  padding: 10px 14px;
  font-size: 0.88rem;
}

.status-message {
  border: 1px solid rgba(199, 166, 90, 0.38);
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--navy);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 750;
}

.status-message.is-ok {
  border-color: rgba(38, 120, 71, 0.28);
  background: #edf8f0;
  color: #1f6840;
}

.status-message.is-warn {
  border-color: rgba(199, 166, 90, 0.42);
  background: var(--gold-soft);
  color: #73561d;
}

.status-message.is-error {
  border-color: rgba(160, 39, 39, 0.28);
  background: #fff1ef;
  color: #8a1f1f;
}

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

.form-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-picker {
  display: grid;
  gap: 10px;
}

.field-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.product-picker-controls {
  align-items: end;
}

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

.product-chip {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto;
  gap: 2px 8px;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(199, 166, 90, 0.34);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--navy);
  padding: 7px 8px 7px 12px;
  font-size: 0.86rem;
  font-weight: 750;
}

.product-chip small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-chip button {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 20, 36, 0.08);
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.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;
}

.checkbox-line {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.checkbox-line input {
  width: auto;
  margin-top: 4px;
}

.notice-box,
.placeholder-box,
.result-chip {
  border: 1px solid rgba(199, 166, 90, 0.34);
  border-radius: 16px;
  background: #fffaf0;
  color: var(--navy);
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.result-chip:empty {
  display: none;
}

.balance-list {
  display: grid;
  gap: 14px;
}

.balance-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcf8;
  padding: 14px 16px;
}

.balance-card strong,
.balance-card span,
.balance-card small {
  display: block;
}

.balance-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}

.balance-card-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
}

.balance-toggle {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.balance-card-header small {
  color: var(--muted);
  font-weight: 750;
}

.balance-card-body {
  display: grid;
  gap: 10px;
}

.balance-metric-list {
  display: grid;
  gap: 10px;
}

.balance-metric {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(199, 166, 90, 0.28);
  border-radius: 14px;
  background: #fffdf7;
  padding: 12px;
}

.balance-metric-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
}

.balance-metric-head span {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
}

.balance-metric small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.balance-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.balance-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c94334 0%, #e6b64d 50%, #4f9f64 100%);
}

.balance-bar span {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(7, 20, 36, 0.24);
  transform: translate(-50%, -50%);
}

.balance-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.balance-card-actions .secondary-button,
.balance-card-actions .danger-button {
  min-width: 104px;
  padding: 9px 14px;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .portal-header,
  .dashboard-top {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-header nav {
    justify-content: flex-start;
  }

  .hero,
  .two-columns,
  .form-grid.compact,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .form-grid.compact,
  .balance-values {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.2rem, 16vw, 3.4rem);
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1180px);
  }

  .panel {
    border-radius: 22px;
  }

  .portal-header nav a,
  .ghost-button {
    width: 100%;
    text-align: center;
  }
}
.portal-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 28px 18px 42px;
  color: #5d5770;
}
.portal-legal-footer p {
  width: 100%;
  margin: 0 0 4px;
  text-align: center;
  font-weight: 800;
}
.portal-legal-footer a {
  border: 1px solid rgba(124, 103, 174, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.76);
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.partner-attribution.is-selector {
  display: grid;
  gap: 10px;
}

.partner-attribution.is-selector strong,
.partner-attribution.is-selector span,
.partner-attribution.is-selector select,
.partner-attribution.is-selector button,
.partner-attribution.is-selector small {
  min-width: 0;
  max-width: 100%;
}

.partner-attribution.is-selector span {
  color: var(--navy);
  font-weight: 650;
  line-height: 1.45;
}

.partner-attribution.is-selector select {
  background: #fffdf8;
}

.partner-attribution.is-selector button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.selector-pending {
  color: #7a5a16;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .portal-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-header nav {
    justify-content: flex-start;
  }

  .hero,
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-top {
    flex-direction: column;
  }

  .inline-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .entry-hero::before,
  .entry-hero::after {
    opacity: 0.72;
  }

  .entry-hero::before {
    width: 40vw;
  }

  .entry-hero::after {
    width: 40vw;
  }

  html,
  body {
    overflow-x: hidden;
  }

  .shell {
    width: min(100% - 24px, 1180px);
  }

  .portal-header {
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    max-width: 100%;
  }

  .portal-header nav a,
  .ghost-button {
    min-height: 40px;
    padding: 9px 12px;
  }

  .panel {
    border-radius: 22px;
    padding: 18px;
  }

  .hero {
    gap: 18px;
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.35rem);
  }

  .login-card,
  #testForm,
  #referralForm {
    gap: 14px;
  }

  .primary-button,
  .secondary-button,
  .primary-link {
    width: 100%;
    min-height: 58px;
  }

  .partner-strip {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .portal-header {
    position: static;
  }

  .hero {
    align-items: start;
    margin-top: 10px;
  }

  .panel {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }
}


/* Customer portal approved entry reconstruction */
:root {
  --entry-ink: #111240;
  --entry-lavender: #7b4df2;
  --entry-lavender-soft: #a98cf4;
  --entry-gold: #b9862f;
  --entry-ivory: #fffdfb;
  --entry-border: rgba(124, 103, 174, 0.2);
  --entry-shadow: 0 28px 80px rgba(75, 48, 143, 0.16);
}

body {
  min-height: 100vh;
  background:
    linear-gradient(110deg, rgba(255, 253, 250, 0.94), rgba(250, 245, 255, 0.9)),
    #fbf7ff;
  color: var(--entry-ink);
}

body::before,
body::after {
  content: none;
}

.shell {
  width: min(1560px, calc(100% - 48px));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.portal-header {
  position: relative;
  background: rgba(255, 253, 255, 0.82);
  border-bottom: 1px solid rgba(124, 103, 174, 0.13);
  backdrop-filter: blur(18px);
}

.brand-wordmark {
  color: #111240;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.brand-wordmark span {
  color: var(--entry-lavender);
}

.portal-header nav {
  gap: 12px;
}

.portal-header nav a,
.ghost-button {
  border-color: rgba(124, 103, 174, 0.22);
  background: rgba(255, 255, 255, 0.62);
  color: #33266c;
  box-shadow: 0 10px 24px rgba(82, 58, 154, 0.06);
}

.portal-header nav a:hover,
.ghost-button:hover,
.portal-header nav a:focus-visible,
.ghost-button:focus-visible {
  border-color: rgba(123, 77, 242, 0.46);
  box-shadow: 0 0 0 4px rgba(123, 77, 242, 0.14);
  outline: none;
}

.entry-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 150px);
  place-items: center;
  margin: 24px 0 22px;
  padding: 4px 0 28px;
  overflow: visible;
}

.entry-hero::before,
.entry-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: -88px;
  width: min(31vw, 360px);
  background-image: url("/customer-portal/approved-customer-portal-reference.png");
  background-repeat: no-repeat;
  background-size: min(100vw, 1450px) auto;
  pointer-events: none;
}

.entry-hero::before {
  left: calc((100vw - 100%) / -2);
  background-position: left -92px;
}

.entry-hero::after {
  right: calc((100vw - 100%) / -2);
  background-position: right -92px;
}

.cell-cluster {
  display: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
  gap: 12px;
  border: 1px solid rgba(124, 103, 174, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 255, 0.78));
  box-shadow: var(--entry-shadow);
  backdrop-filter: blur(24px);
  padding: clamp(24px, 3.6vw, 46px) clamp(24px, 4.4vw, 62px) clamp(22px, 3.2vw, 36px);
}

.portal-badge {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(151, 112, 244, 0.26);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(165, 129, 248, 0.26), rgba(255, 255, 255, 0.72) 62%);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.34), 0 14px 30px rgba(123, 77, 242, 0.18);
}

.portal-badge svg,
.input-shell > svg,
.security-line svg,
.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-badge svg {
  width: 52px;
  color: var(--entry-lavender);
}

.login-card .eyebrow {
  margin: 0;
  color: var(--entry-lavender);
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.login-card h1 {
  max-width: none;
  margin: 0;
  color: #111240;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  font-weight: 500;
  line-height: 1.02;
  text-align: center;
  letter-spacing: 0;
}

.subtitle {
  position: relative;
  margin: -4px 0 4px;
  color: var(--entry-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.16rem, 2.4vw, 1.58rem);
  font-style: italic;
  line-height: 1.25;
  text-align: center;
}

.subtitle::after {
  content: "";
  display: block;
  width: 136px;
  height: 1px;
  margin: 9px auto 0;
  background: linear-gradient(90deg, transparent, rgba(185, 134, 47, 0.82), transparent);
}

.reassurance {
  max-width: 500px;
  margin: 0 auto 12px;
  color: #242052;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.52;
  text-align: center;
}

.login-card label {
  gap: 9px;
  color: #15133f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.input-shell {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  border: 1px solid rgba(124, 103, 174, 0.28);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--entry-lavender);
  padding: 0 12px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.input-shell:focus-within {
  border-color: rgba(123, 77, 242, 0.62);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 4px rgba(123, 77, 242, 0.13);
}

.input-shell > svg {
  width: 21px;
}

.input-shell input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #17143d;
  box-shadow: none;
  padding: 0 8px;
}

.input-shell input:focus {
  box-shadow: none;
}

.input-shell input::placeholder {
  color: rgba(100, 75, 178, 0.66);
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--entry-lavender);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(123, 77, 242, 0.1);
  outline: none;
}

.icon-button svg {
  width: 21px;
}

.helper-text {
  margin: -6px 0 0;
  color: rgba(38, 32, 86, 0.68);
  font-size: 0.92rem;
  line-height: 1.48;
}

.login-card .primary-button {
  min-height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, #9f7af5, #5e34c9);
  box-shadow: 0 16px 36px rgba(91, 48, 203, 0.28);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.38rem;
  font-weight: 500;
}

.login-card .primary-button:hover,
.login-card .primary-button:focus-visible {
  background: linear-gradient(135deg, #8e68ef, #4c25b6);
  box-shadow: 0 0 0 4px rgba(123, 77, 242, 0.18), 0 18px 40px rgba(91, 48, 203, 0.26);
  outline: none;
}

.button-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-right: 14px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
}

.security-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 0;
  color: rgba(91, 70, 168, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.security-line svg {
  flex: 0 0 auto;
  width: 20px;
}

.login-card .partner-attribution {
  display: none !important;
}

.portal-legal-footer {
  gap: 18px;
  padding-top: 0;
}

.portal-legal-footer a {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(91, 70, 168, 0.78);
  padding: 8px 10px;
}

.portal-legal-footer a + a {
  border-left: 1px solid rgba(124, 103, 174, 0.25);
  padding-left: 28px;
}

@media (max-width: 900px) {
  .entry-hero {
    min-height: auto;
    margin-top: 24px;
    justify-items: center;
    overflow: visible;
  }

  .entry-hero::before,
  .entry-hero::after {
    top: 0;
    bottom: -80px;
    width: 38vw;
    min-width: 132px;
    background-size: auto 100%;
  }

  .entry-hero::before {
    background-position: left -72px;
  }

  .entry-hero::after {
    background-position: right -72px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 24px);
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .portal-header {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-header nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
  }

  .portal-header nav a,
  .ghost-button {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.84rem;
    text-align: center;
  }

  .brand-wordmark {
    font-size: 1.42rem;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    border-radius: 24px;
  }

  .portal-badge {
    width: 72px;
    height: 72px;
  }

  .portal-badge svg {
    width: 44px;
  }

  .login-card .primary-button {
    width: 100%;
  }

  .security-line {
    align-items: flex-start;
    text-align: left;
  }

  .portal-legal-footer {
    gap: 6px 0;
  }

  .portal-legal-footer a {
    flex: 0 0 50%;
    text-align: center;
  }

  .portal-legal-footer a + a {
    border-left: 0;
    padding-left: 10px;
  }
}

/* Customer portal internal visual unity */
.dashboard {
  position: relative;
  gap: 22px;
  padding: clamp(18px, 3vw, 28px) 0 54px;
}

.dashboard::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(170, 139, 245, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(255, 217, 161, 0.2), transparent 22rem),
    linear-gradient(135deg, rgba(255, 253, 250, 0.96), rgba(248, 242, 255, 0.94));
  pointer-events: none;
}

.dashboard .panel {
  border-color: rgba(136, 111, 190, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 251, 255, 0.72));
  box-shadow: 0 20px 54px rgba(88, 62, 150, 0.1);
  backdrop-filter: blur(18px);
}

.dashboard-top {
  align-items: center;
  border-color: rgba(136, 111, 190, 0.22);
}

.dashboard-top h2,
.dashboard .panel h2,
.dashboard .panel h3 {
  color: var(--entry-ink);
  letter-spacing: 0;
}

.dashboard .eyebrow {
  color: var(--entry-lavender);
  letter-spacing: 0.13em;
}

.dashboard input,
.dashboard select,
.dashboard textarea,
.dashboard .result-card,
.dashboard .timeline li,
.dashboard .referral-card,
.dashboard .notice-box,
.dashboard .placeholder-box {
  border-color: rgba(136, 111, 190, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.dashboard input:focus,
.dashboard select:focus,
.dashboard textarea:focus {
  border-color: rgba(123, 77, 242, 0.52);
  box-shadow: 0 0 0 4px rgba(123, 77, 242, 0.12);
}

.dashboard .primary-button,
.dashboard .primary-link {
  border-radius: 15px;
  background: linear-gradient(135deg, #9f7af5, #5e34c9);
  box-shadow: 0 14px 28px rgba(91, 48, 203, 0.2);
}

.dashboard .primary-button:hover,
.dashboard .primary-button:focus-visible,
.dashboard .primary-link:hover,
.dashboard .primary-link:focus-visible {
  background: linear-gradient(135deg, #8e68ef, #4c25b6);
  box-shadow: 0 0 0 4px rgba(123, 77, 242, 0.14), 0 16px 32px rgba(91, 48, 203, 0.2);
  outline: none;
}

.dashboard .secondary-button,
.dashboard .ghost-button {
  border-color: rgba(123, 77, 242, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: #4b3297;
  box-shadow: 0 10px 22px rgba(91, 48, 203, 0.08);
}

.dashboard .secondary-button:hover,
.dashboard .secondary-button:focus-visible,
.dashboard .ghost-button:hover,
.dashboard .ghost-button:focus-visible {
  border-color: rgba(123, 77, 242, 0.42);
  background: rgba(251, 247, 255, 0.94);
  outline: none;
}

.philosophy {
  border-color: rgba(136, 111, 190, 0.22);
  background:
    radial-gradient(circle at top right, rgba(168, 132, 246, 0.16), transparent 20rem),
    radial-gradient(circle at 10% 100%, rgba(255, 221, 171, 0.2), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(252, 247, 255, 0.74));
}

.philosophy-copy {
  max-width: 900px;
  gap: 10px;
}

.philosophy-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.philosophy-cta-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(136, 111, 190, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  padding: clamp(16px, 2.4vw, 22px);
  box-shadow: 0 16px 34px rgba(91, 48, 203, 0.08);
}

.philosophy-cta-card h3,
.philosophy-cta-card p {
  margin: 0;
}

.philosophy-cta-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.experience-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.experience-group-links .secondary-button {
  flex: 1 1 190px;
}

.philosophy-cta-card .status-message {
  margin-top: 0;
}

@media (max-width: 760px) {
  .dashboard {
    gap: 18px;
    padding-bottom: 38px;
  }

  .dashboard .panel {
    border-radius: 22px;
  }

  .philosophy-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience-group-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard .primary-button,
  .dashboard .secondary-button,
  .dashboard .primary-link {
    width: 100%;
  }
}
/* PR #114 final welcome polish */
.philosophy-copy {
  max-width: min(760px, 100%);
  gap: 13px;
}

.philosophy-copy p {
  color: rgba(36, 32, 82, 0.82);
  font-size: 1rem;
  line-height: 1.78;
}

.copy-highlight,
.copy-highlight-strong {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 44%, rgba(191, 165, 250, 0.24) 44%);
  color: #4b3297;
  font-weight: 750;
  padding: 0 0.1em;
}

.copy-highlight-strong {
  color: #7c5a19;
  font-weight: 820;
}

.philosophy-closing {
  max-width: min(820px, 100%);
  margin-top: 4px !important;
  border-left: 3px solid rgba(185, 134, 47, 0.46);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 248, 236, 0.74), rgba(250, 246, 255, 0.7));
  color: rgba(29, 23, 72, 0.9) !important;
  font-weight: 650;
  padding: 12px 14px;
}

@media (min-width: 980px) {
  .philosophy-copy {
    margin-left: clamp(0px, 2vw, 18px);
  }
}

@media (max-width: 760px) {
  .philosophy-copy p {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .philosophy-closing {
    padding: 11px 12px;
  }
}
/* Customer Portal welcome copy expansion polish */
.philosophy h2 {
  max-width: min(900px, 100%);
}

.philosophy-copy {
  max-width: min(980px, 100%);
  gap: 10px;
}

.philosophy-copy p:not(.philosophy-closing) {
  text-align: justify;
  text-align-last: left;
  line-height: 1.68;
}

.philosophy-closing {
  max-width: min(940px, 100%);
}

@media (min-width: 980px) {
  .philosophy-copy {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .philosophy-copy p:not(.philosophy-closing) {
    text-align: left;
  }
}

/* PR #114 partner attribution and welcome alignment polish */
.dashboard-top .partner-attribution {
  margin-top: 14px;
  max-width: min(760px, 100%);
}

.dashboard-top .partner-greeting {
  color: rgba(29, 23, 72, 0.9);
  font-weight: 750;
  line-height: 1.55;
}

.partner-select-label {
  color: rgba(29, 23, 72, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-top .partner-attribution.is-selector {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 12px;
}

.dashboard-top .partner-attribution.is-selector .partner-greeting,
.dashboard-top .partner-attribution.is-selector .selector-pending {
  grid-column: 1 / -1;
}

.dashboard-top .partner-attribution.is-selector .partner-select-label {
  grid-column: 1;
}

.dashboard-top .partner-attribution.is-selector select {
  grid-column: 1;
  min-height: 42px;
}

.dashboard-top .partner-attribution.is-selector button {
  grid-column: 2;
  min-height: 42px;
  white-space: nowrap;
}

.philosophy-copy {
  max-width: min(980px, 100%);
}

.philosophy-copy p:not(.philosophy-closing) {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

@media (max-width: 760px) {
  .dashboard-top .partner-attribution.is-selector {
    grid-template-columns: 1fr;
  }

  .dashboard-top .partner-attribution.is-selector button {
    grid-column: 1;
    width: 100%;
  }

  .philosophy-copy p:not(.philosophy-closing) {
    text-align: left;
    hyphens: manual;
  }
}

/* Canonical partner selector: searchable, alphabetical results with optional photos. */
.partner-search { width: 100%; min-height: 42px; background: #fffdf8; }
.partner-select-results { display: grid; gap: 6px; max-height: 248px; overflow: auto; padding: 2px; }
.partner-select-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 7px 9px; border: 1px solid rgba(29, 23, 72, .13); border-radius: 9px; color: var(--navy); background: #fffdf8; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.partner-select-option:hover, .partner-select-option.is-selected { border-color: var(--gold); background: var(--gold-soft); }
.partner-select-option img, .partner-photo-placeholder { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; object-fit: cover; }
.partner-photo-placeholder { display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .78rem; }

.entry-contact-field { display:grid; gap:8px; margin: 4px 0 8px; }
.entry-contact-field input { width:100%; min-height:42px; }
.entry-contact-field label { color: var(--navy); font-weight:800; }
.entry-contact-field .helper-text { margin:0; }

.entry-contact-combobox { position:relative; }
.entry-contact-options { position:absolute; z-index:4; top:calc(100% + 4px); left:0; right:0; display:grid; max-height:224px; overflow:auto; padding:5px; border:1px solid rgba(29,23,72,.18); border-radius:10px; background:#fffdf8; box-shadow:0 12px 26px rgba(20,17,60,.14); }
.entry-contact-options button { min-height:44px; border:0; border-radius:7px; padding:10px; background:transparent; color:var(--navy); font:inherit; font-weight:700; text-align:left; cursor:pointer; touch-action:manipulation; }
.entry-contact-options button:hover, .entry-contact-options button[aria-selected="true"] { background:var(--gold-soft); }

/* Sprint 166: a single canonical customer contact card. */
.partner-contact-card { display:grid; gap:5px; padding:12px; border:1px solid rgba(29,23,72,.16); border-radius:12px; background:#fffdf8; }
.partner-contact-card strong { color:var(--navy); font-size:1rem; }
.partner-phone-link { color:var(--navy); font-weight:800; text-decoration:none; }
.partner-phone-link:hover { text-decoration:underline; }
.partner-contact-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:3px; }
.partner-landing-button { width:max-content; }
.partner-registry-badge { display:inline-flex; align-items:center; padding:6px 9px; border-radius:999px; background:var(--gold-soft); color:var(--navy); font-size:.78rem; font-weight:800; }

/* Customer Portal Experience V1 Block 1: application shell and dashboard */
.portal-app-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Connection is the only portal view intended to consume the shell's full
   desktop workspace. The default 1440px cap is retained for the other pages. */
.portal-app-shell:has(.connection-workspace.is-active) {
  max-width: none;
}

.portal-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid rgba(118, 75, 162, 0.16);
  border-radius: 28px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 80px rgba(65, 43, 93, 0.12);
}

.portal-sidebar-brand {
  display: grid;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem 1rem;
  color: #442056;
}

.portal-sidebar-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b5a95;
}

.portal-navigation,
.portal-mobile-nav {
  display: grid;
  gap: 0.45rem;
}

.portal-nav-item,
.quick-action-card {
  width: 100%;
  border: 1px solid rgba(118, 75, 162, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #442056;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0.78rem 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.portal-nav-item:hover,
.portal-nav-item:focus-visible,
.quick-action-card:hover,
.quick-action-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(118, 75, 162, 0.34);
  box-shadow: 0 12px 34px rgba(65, 43, 93, 0.12);
  outline: 3px solid rgba(171, 132, 196, 0.3);
  outline-offset: 2px;
}

.portal-nav-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6b3f8f, #a36ac7);
  box-shadow: 0 16px 36px rgba(107, 63, 143, 0.22);
}

.portal-workspace {
  min-width: 0;
}

.portal-mobile-nav {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  overflow-x: auto;
  padding: 0.2rem 0 0.9rem;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
}

.portal-view {
  display: none;
}

.portal-view.is-active {
  display: grid;
  gap: 1rem;
}

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

.overview-card {
  min-height: 190px;
}

.next-step-card,
.opportunity-card {
  border-color: rgba(118, 75, 162, 0.24);
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,240,252,0.96));
}

.overview-card-body,
.overview-actions,
.connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.video-card video,
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: rgba(68, 32, 86, 0.08);
}

.video-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #6c5878;
  text-align: center;
}

@media (max-width: 900px) {
  .portal-app-shell {
    display: block;
  }

  .portal-sidebar {
    display: none;
  }

  .portal-mobile-nav {
    display: grid;
  }

  .overview-grid,
  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .portal-mobile-nav {
    grid-auto-columns: minmax(72%, 1fr);
  }

  .portal-nav-item,
  .quick-action-card {
    min-height: 48px;
  }
}

/* Founder Review corrections: destination-owned IA, videos, referrals, products. */
.sidebar-webinar-card {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(118, 75, 162, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(247,240,252,0.9));
}

.sidebar-webinar-card:empty {
  display: none;
}

.sidebar-webinar-card h3,
.event-cards h3 {
  margin: 0;
  color: #442056;
}

.overview-referral-link {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(118, 75, 162, 0.14);
}

.customer-referral-url { min-width: 0; overflow-wrap: anywhere; word-break: break-word; color: #442056; }
.referral-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.referral-copy-status { color: #247a48; font-weight: 700; }
.referral-link-sidebar-card .referral-link-actions { margin-top: 0.25rem; }
.referral-link-unavailable { margin: 0; color: #6c5878; }

@media (max-width: 560px) {
  .overview-referral-link { grid-template-columns: minmax(0, 1fr); }
  .referral-link-actions, .referral-link-actions > .secondary-button { width: 100%; }
}

.mobile-weekly-webinar {
  display: none;
  margin: 0 0 1rem;
}

.welcome-video-slot {
  min-height: auto;
}

.related-videos,
.test-summary-cards,
.product-info-cards,
.event-cards {
  display: grid;
  gap: 0.8rem;
}

.related-video-grid,
.product-state-grid,
.product-info-cards,
.event-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-video-card,
.product-state-grid article,
.product-info-card,
.test-summary-card,
.event-card {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid rgba(118, 75, 162, 0.14);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
}

.related-video-card.is-featured {
  grid-column: 1 / -1;
}

.video-placeholder.compact {
  min-height: 96px;
  aspect-ratio: auto;
  font-size: 0.92rem;
}

.health-topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.health-topic-card {
  min-height: 48px;
  border: 1px solid rgba(118, 75, 162, 0.16);
  border-radius: 16px;
  padding: 0.7rem;
  background: #fffdf8;
  color: #442056;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.health-topic-card.is-selected,
.health-topic-card:focus-visible,
.health-topic-card:hover {
  border-color: rgba(118, 75, 162, 0.42);
  background: rgba(247, 240, 252, 0.98);
  outline: 3px solid rgba(171, 132, 196, 0.3);
  outline-offset: 2px;
}

.referral-quick-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.referral-draft-rows {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.referral-draft-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(118, 75, 162, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.referral-draft-row textarea {
  grid-column: 1 / 3;
}

.referral-list {
  max-height: 460px;
  overflow: auto;
  padding-right: 0.25rem;
}

.legal-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.legal-link-grid a {
  color: #442056;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .portal-nav-item,
  .quick-action-card {
    transition: none;
  }
}

@media (max-width: 900px) {
  .mobile-weekly-webinar {
    display: grid;
  }

  .related-video-grid,
  .product-state-grid,
  .product-info-cards,
  .event-cards,
  .health-topic-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .referral-draft-row {
    grid-template-columns: 1fr;
  }

  .referral-draft-row textarea {
    grid-column: auto;
  }
}

/* Welcome Stage 1 finalization */
.portal-header-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(118, 75, 162, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #442056;
  font-weight: 800;
}

.language-switch button {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.language-switch button.is-active,
.language-switch button:focus-visible,
.language-switch button:hover {
  background: rgba(118, 75, 162, 0.14);
  outline: 3px solid rgba(171, 132, 196, 0.26);
  outline-offset: 2px;
}

.portal-logout-control.hidden {
  display: none;
}

.dashboard-top.panel {
  border-color: rgba(118, 75, 162, 0.12);
  background: linear-gradient(145deg, rgba(251, 248, 255, 0.98), rgba(245, 239, 251, 0.98));
  box-shadow: 0 18px 52px rgba(68, 32, 86, 0.08);
}

.dashboard-top .partner-attribution {
  margin-top: 1rem;
}

.partner-contact-card.welcome-partner-details {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.welcome-partner-details .partner-assigned-label {
  color: #5f4172;
  font-weight: 900;
}

.partner-resource-link {
  overflow-wrap: anywhere;
  color: #442056;
  font-weight: 750;
  text-decoration: none;
}

.partner-resource-link:hover,
.partner-resource-link:focus-visible {
  text-decoration: underline;
}

.welcome-video-card-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(118, 75, 162, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.welcome-video-card-link > span {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #6b3f8f, #a36ac7);
}

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

.experience-group-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.experience-group-links .secondary-button {
  justify-content: center;
  min-height: 52px;
  text-align: center;
}

@media (max-width: 760px) {
  .portal-header-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .experience-group-links {
    grid-template-columns: 1fr;
  }
}

/* Welcome Stage 1 Founder Review Correction 1 */
.portal-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.portal-sidebar-panel,
.sidebar-webinar-card,
.sidebar-related-videos {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(118, 75, 162, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(65, 43, 93, 0.1);
}

.sidebar-webinar-card {
  margin-top: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 239, 252, 0.94));
}

.sidebar-related-videos:empty {
  display: none;
}

.language-switch {
  min-height: 34px;
  gap: 0.25rem;
  padding: 3px;
  border: 1px solid rgba(68, 32, 86, 0.14);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.language-switch::before {
  content: "";
  order: 2;
  width: 1px;
  height: 18px;
  background: rgba(68, 32, 86, 0.18);
}

.language-switch button {
  min-width: 34px;
  min-height: 28px;
  padding: 0 0.55rem;
  border-radius: 999px;
  line-height: 1;
}

.language-switch button[data-lang-choice="hu"] {
  order: 1;
}

.language-switch button[data-lang-choice="en"] {
  order: 3;
}

.language-switch button.is-active {
  color: #fff;
  background: #6b3f8f;
  outline: 0;
  box-shadow: none;
}

.language-switch button:hover:not(.is-active) {
  background: rgba(107, 63, 143, 0.08);
  outline: 0;
}

.language-switch button:focus-visible {
  outline: 2px solid rgba(107, 63, 143, 0.45);
  outline-offset: 2px;
}

.partner-contact-card.welcome-partner-details {
  border: 1px solid rgba(118, 75, 162, 0.18);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(232, 220, 246, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.welcome-video-preview {
  display: grid;
  gap: 0.85rem;
}

.video-preview-surface {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 16px;
  padding: 0.8rem;
  background: linear-gradient(135deg, #442056, #7c4ca5 54%, #b689d1);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
}

.video-preview-surface.is-primary {
  min-height: 180px;
  aspect-ratio: 16 / 9;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.sidebar-video-list {
  display: grid;
  gap: 0.65rem;
}

.sidebar-video-card {
  padding: 0.72rem;
  border-radius: 16px;
  background: rgba(248, 244, 252, 0.84);
}

.sidebar-video-card .secondary-button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.mobile-related-videos {
  margin-top: 1rem;
}

@media (min-width: 901px) {
  .mobile-related-videos {
    display: none;
  }
}

@media (max-width: 900px) {
  .portal-sidebar {
    display: none;
  }

  .sidebar-related-videos:not(.mobile-related-videos) {
    display: none;
  }

  .mobile-related-videos {
    display: grid;
  }
}

/* Welcome Stage 1 Founder Review Correction 2 */
.dashboard-top.panel {
  border: 0;
  background: linear-gradient(145deg, rgba(251, 248, 255, 0.98), rgba(247, 242, 252, 0.98));
  box-shadow: 0 14px 42px rgba(68, 32, 86, 0.07);
}

.dashboard-top .partner-attribution {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.partner-contact-card.welcome-partner-details {
  border: 1px solid rgba(118, 75, 162, 0.14);
  background: rgba(246, 240, 252, 0.92);
  box-shadow: none;
}

.compact-video-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  width: 100%;
  padding: 0.78rem;
  border: 1px solid rgba(118, 75, 162, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #442056;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(65, 43, 93, 0.07);
}

.compact-video-link:hover,
.compact-video-link:focus-visible {
  border-color: rgba(118, 75, 162, 0.3);
  background: rgba(251, 248, 255, 0.98);
  transform: translateY(-1px);
  outline: 2px solid rgba(107, 63, 143, 0.28);
  outline-offset: 2px;
}

.compact-video-link.is-disabled {
  color: #6c5878;
  cursor: default;
}

.compact-video-link.is-disabled:hover {
  transform: none;
  outline: 0;
}

.compact-video-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(118, 75, 162, 0.18);
  border-radius: 999px;
  background: rgba(246, 240, 252, 0.96);
  color: #6b3f8f;
  font-size: 0.84rem;
  font-weight: 900;
}

.compact-video-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.compact-video-copy strong,
.compact-video-copy small {
  overflow-wrap: anywhere;
}

.compact-video-copy small {
  color: #6c5878;
  font-size: 0.84rem;
  line-height: 1.35;
}

.welcome-video-slot {
  padding: 1rem;
}

.welcome-video-link {
  max-width: 620px;
}

.video-preview-surface,
.video-preview-surface.is-primary {
  min-height: auto;
  aspect-ratio: auto;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.sidebar-video-card {
  background: rgba(255, 255, 255, 0.84);
}

.sidebar-video-card .compact-video-icon {
  width: 2rem;
  height: 2rem;
}

@media (min-width: 901px) {
  .mobile-weekly-webinar,
  .mobile-related-videos {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .sidebar-webinar-card:not(.mobile-weekly-webinar),
  .sidebar-related-videos:not(.mobile-related-videos) {
    display: none !important;
  }

  .mobile-weekly-webinar,
  .mobile-related-videos {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compact-video-link:hover,
  .compact-video-link:focus-visible {
    transform: none;
  }
}

/* Welcome Stage 1 registration confirmation: community joined indicator */
.community-group-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.community-group-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.community-joined-indicator {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #1f8f5f;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.community-group-card.is-joined .community-joined-indicator {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .community-joined-indicator {
    transition: none;
  }
}


.community-group-link {
  color: #442056;
  font-weight: 850;
  text-decoration: none;
}

.community-group-link:hover,
.community-group-link:focus-visible {
  text-decoration: underline;
  outline: 2px solid rgba(107, 63, 143, 0.28);
  outline-offset: 3px;
}

.community-join-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  border: 1px solid rgba(31, 143, 95, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #1f6f4c;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  padding: 0.42rem 0.72rem;
}

.community-join-toggle[aria-pressed="true"] {
  background: rgba(226, 246, 236, 0.95);
  border-color: rgba(31, 143, 95, 0.42);
}

.community-join-toggle:hover,
.community-join-toggle:focus-visible {
  border-color: rgba(31, 143, 95, 0.5);
  outline: 2px solid rgba(31, 143, 95, 0.24);
  outline-offset: 2px;
}

/* Customer Portal V1 Stage 2 — My Tests workspace */
.tests-workspace {
  max-width: min(100%, 1180px);
  margin-inline: auto;
}
.tests-hero,
.tests-next-step {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: stretch;
}
.tests-hero-copy p { max-width: 70ch; }
.tests-video-card {
  border: 1px solid rgba(125, 87, 190, 0.18);
  border-radius: 24px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(247, 241, 255, 0.9), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.tests-next-step {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}
.tests-next-step .eyebrow { margin: 0; }
.test-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.test-overview-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(125, 87, 190, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px rgba(79, 52, 122, 0.08);
}
.test-overview-card h3 { margin: 0.35rem 0; }
.test-overview-card p,
.test-overview-card dd { overflow-wrap: anywhere; }
.test-status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: #604087;
  background: rgba(218, 201, 244, 0.5);
  font-size: 0.82rem;
  font-weight: 700;
}
.test-overview-card dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem 0.75rem;
  margin: 0;
}
.test-overview-card dt { color: #7a6b91; font-size: 0.82rem; }
.test-overview-card dd { margin: 0; font-weight: 700; }
.test-overview-card details {
  border-top: 1px solid rgba(125, 87, 190, 0.14);
  padding-top: 0.8rem;
}
.test-overview-card summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 800;
  color: #604087;
}
.measurement-comparison { margin-top: 1rem; }
.comparison-table {
  display: grid;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.comparison-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) repeat(2, minmax(90px, 1fr));
  gap: 0.5rem;
  min-width: 0;
}
.comparison-table [role="cell"],
.comparison-table [role="columnheader"] {
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(247, 241, 255, 0.72);
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  .portal-workspace .tests-workspace .grid.two-columns,
  .test-actions-grid,
  .result-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tests-hero,
  .tests-next-step { grid-template-columns: 1fr; }
  .tests-next-step .primary-button { width: 100%; }
  .test-card-grid { grid-template-columns: 1fr; }
  .test-overview-card dl { grid-template-columns: 1fr; }
  .comparison-table [role="row"] { grid-template-columns: 1fr; }
}

/* Customer Portal V1 Stage 2 refinement — simplified My Tests workflow */
.tests-workspace-compact {
  max-width: min(100%, 1180px);
  display: grid;
  gap: 1rem;
}
.tests-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 1rem;
  align-items: center;
  padding-block: clamp(1rem, 2vw, 1.35rem);
}
.tests-intro h2 { margin-bottom: 0.35rem; }
.tests-inline-video .compact-video-link { min-height: 56px; }
.primary-test-workflow {
  display: grid;
  gap: 0.85rem;
}
.primary-test-workflow h2 { margin: 0; }
.workflow-steps-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) minmax(180px, auto) minmax(230px, 0.9fr);
  gap: 0.85rem;
  align-items: end;
}
.workflow-field,
.workflow-save-step,
.workflow-continuation {
  min-width: 0;
  border: 1px solid rgba(125, 87, 190, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem;
}
.workflow-save-step,
.workflow-continuation {
  display: grid;
  gap: 0.55rem;
}
.workflow-field > span,
.workflow-save-step > span,
.workflow-continuation > span {
  display: block;
  color: #604087;
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.45rem;
}
.workflow-continuation[hidden] { display: none; }
.workflow-continuation p { margin: 0; font-size: 0.9rem; }
.compact-my-tests { padding-block: 1rem; }
.compact-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.compact-section-heading h2 { margin: 0; }
.saved-test-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(360px, 1.6fr) minmax(220px, 0.9fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(125, 87, 190, 0.16);
  background: rgba(255, 255, 255, 0.78);
}
.saved-test-row > div:first-child { display: grid; gap: 0.25rem; }
.saved-test-row > div:first-child span { color: #7a6b91; font-weight: 700; overflow-wrap: anywhere; }
.saved-test-row dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
}
.saved-test-row dt { color: #7a6b91; font-size: 0.78rem; }
.saved-test-row dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.saved-test-row .fine-print { margin: 0; grid-column: 1 / -1; }
.saved-test-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.compact-empty-state { margin: 0.5rem 0 0; }
.test-education-panel { padding-block: 1rem; }
.test-education-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.test-education-card {
  min-width: 0;
  border: 1px solid rgba(125, 87, 190, 0.14);
  border-radius: 22px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
}
.test-education-card h3 { margin: 0 0 0.45rem; }
.test-education-card details { margin-top: 0.7rem; }
.test-education-card summary {
  min-height: 44px;
  cursor: pointer;
  color: #604087;
  font-weight: 800;
}
.education-detail,
.test-video-list { display: grid; gap: 0.55rem; }
.contextual-result-surface { display: none; }
.contextual-action-form:not([hidden]) { display: grid; gap: 0.8rem; }
@media (max-width: 1100px) {
  .workflow-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .saved-test-row { grid-template-columns: 1fr; }
  .saved-test-actions { justify-content: flex-start; }
  .test-education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tests-intro,
  .workflow-steps-grid,
  .saved-test-row,
  .saved-test-row dl,
  .test-education-grid { grid-template-columns: 1fr; }
  .workflow-field,
  .workflow-save-step,
  .workflow-continuation,
  .test-education-card { border-radius: 18px; }
  .saved-test-actions .primary-link,
  .saved-test-actions button,
  .workflow-save-step .primary-button { width: 100%; justify-content: center; }
}

/* Guided source-led My Tests refinement */
.primary-test-workflow > summary {
  min-height: 52px;
  cursor: pointer;
  color: #604087;
  font-weight: 900;
  list-style-position: inside;
}
.primary-test-workflow[open] > summary { margin-bottom: 0.5rem; }
.primary-test-workflow form { display: grid; gap: 0.85rem; }
.test-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}
.test-product-card {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid rgba(125, 87, 190, 0.14);
  border-radius: 24px;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(247,241,255,0.68));
  box-shadow: 0 18px 42px rgba(79, 52, 122, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.test-product-card:hover,
.test-product-card:focus-within,
.test-product-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(125, 87, 190, 0.34);
  box-shadow: 0 22px 54px rgba(79, 52, 122, 0.13);
}
.test-product-hit {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.test-product-hit strong { color: #40235f; font-size: 1rem; }
.test-product-hit span:not(.test-packaging-image) { color: #6d607d; line-height: 1.45; }
.test-packaging-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.92), rgba(221,205,246,0.72));
  border: 1px solid rgba(125, 87, 190, 0.12);
}
.test-packaging-image img { width: 100%; height: 100%; object-fit: contain; }
.test-packaging-image.image-fallback::before {
  content: attr(aria-label);
  color: #604087;
  font-weight: 900;
  text-align: center;
  padding: 1rem;
}
.test-packaging-image.large { width: min(180px, 100%); }
.test-product-actions { display: grid; gap: 0.55rem; }
.test-product-actions button { width: 100%; justify-content: center; }
.selected-test-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 1rem;
  margin-top: 1rem;
}
.selected-test-main,
.selected-test-videos { min-width: 0; }
.selected-test-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.test-guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}
.test-guidance-grid section {
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(247, 241, 255, 0.62);
}
.test-guidance-grid h4 { margin: 0 0 0.35rem; color: #604087; }
.selected-test-videos .compact-video-link { margin-top: 0.6rem; }
@media (max-width: 1100px) {
  .test-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-test-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .test-product-grid,
  .selected-test-head,
  .test-guidance-grid { grid-template-columns: 1fr; }
  .test-product-card:hover { transform: none; }
}

/* P0 recovery: enforce workspace isolation and stable My Tests layout */
[hidden] {
  display: none !important;
}
.test-education-surface,
.selected-test-detail-host {
  min-width: 0;
}
.test-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.test-product-card,
.test-product-card:hover,
.test-product-card:focus-within,
.test-product-card.is-selected {
  transform: none;
}
.test-packaging-image span {
  color: #604087;
  font-weight: 900;
  text-align: center;
  padding: 1rem;
}
.selected-test-detail-host > .selected-test-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  margin-top: 1rem;
}
.selected-test-main,
.selected-test-videos,
.selected-test-head,
.test-guidance-grid {
  min-width: 0;
}
.selected-test-videos {
  overflow-wrap: anywhere;
}
@media (max-width: 1024px) {
  .test-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-test-detail-host > .selected-test-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .test-product-grid,
  .selected-test-detail-host > .selected-test-detail,
  .selected-test-head,
  .test-guidance-grid { grid-template-columns: 1fr; }
}

/* Final initialization/image fix: constrain approved package images */
.test-packaging-image {
  width: 100%;
  height: clamp(96px, 12vw, 132px);
  max-width: 100%;
}
.test-packaging-image.large {
  height: 150px;
  max-width: 180px;
}
.test-packaging-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.test-image-fallback-label {
  display: none;
}
.test-packaging-image.image-fallback .test-image-fallback-label {
  display: block;
}
@media (max-width: 760px) {
  .test-packaging-image { height: 112px; }
  .test-packaging-image.large { max-width: 100%; }
}

/* Founder content correction: show full package image and keep detail text readable */
.test-packaging-image {
  height: clamp(150px, 16vw, 190px);
}
.test-packaging-image.large {
  height: 190px;
}
.test-guidance-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
@media (max-width: 1024px) {
  .test-guidance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .test-packaging-image,
  .test-packaging-image.large { height: 170px; }
  .test-guidance-grid { grid-template-columns: 1fr; }
}

/* Multi-test history refinement */
.primary-test-workflow > summary,
.compact-my-tests > summary,
.test-education-panel > summary {
  cursor: pointer;
  font-weight: 900;
  color: #4d3170;
  min-height: 44px;
}
.history-controls,
.history-sort,
.history-filter,
.saved-test-actions,
.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.history-controls {
  justify-content: space-between;
  margin: 0.75rem 0 1rem;
}
.chip-button {
  border: 1px solid rgba(126, 87, 194, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #604087;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
}
.chip-button.active {
  background: linear-gradient(135deg, #7c55c7, #b58be8);
  color: #fff;
  border-color: transparent;
}
.saved-test-history-list {
  display: grid;
  gap: 0.85rem;
}
.saved-test-row.history-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.saved-test-main {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2fr);
  gap: 0.85rem;
  align-items: start;
}
.saved-test-main dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}
.saved-test-main dt {
  color: #7b6b8f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.saved-test-main dd {
  margin: 0.1rem 0 0;
  overflow-wrap: anywhere;
}
.saved-test-date {
  display: block;
  color: #7b6b8f;
  font-weight: 800;
  margin-bottom: 0.2rem;
}
.saved-test-expanded {
  border-top: 1px solid rgba(126, 87, 194, 0.12);
  padding-top: 0.75rem;
}
.test-specific-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
.field-chip {
  border-radius: 999px;
  background: rgba(126, 87, 194, 0.09);
  color: #604087;
  padding: 0.35rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
}
.saved-test-edit-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.saved-test-edit-form .full-width {
  grid-column: 1 / -1;
}
.destructive-link {
  color: #9d2f45;
  border-color: rgba(157, 47, 69, 0.24);
}
.test-results-guidance {
  border-radius: 20px;
  padding: 1rem;
  background: rgba(126, 87, 194, 0.08);
}
@media (min-width: 1280px) {
  .selected-test-detail-host > .selected-test-detail { grid-template-columns: minmax(0, 1fr) 260px; }
  .test-guidance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .saved-test-main,
  .saved-test-main dl,
  .saved-test-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .history-controls,
  .saved-test-main,
  .saved-test-main dl,
  .saved-test-edit-form { grid-template-columns: 1fr; display: grid; }
  .saved-test-actions { display: grid; grid-template-columns: 1fr; }
  .chip-button,
  .saved-test-actions button { width: 100%; }
}

/* Chronological history polish */
@media (min-width: 1100px) {
  .workflow-steps-grid {
    grid-template-columns: minmax(160px, 0.9fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(280px, 1.35fr);
    align-items: stretch;
  }
  .workflow-continuation {
    grid-column: auto;
  }
}
.history-record-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.saved-test-row-toggle {
  display: grid;
  grid-template-columns: 3ch minmax(7.5rem, 0.8fr) minmax(7.5rem, 1fr) minmax(10rem, 1.1fr) minmax(7.5rem, 0.8fr) minmax(7.5rem, 0.9fr) minmax(8rem, 0.8fr);
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.saved-test-row-toggle:focus-visible {
  outline: 3px solid rgba(124, 85, 199, 0.35);
  outline-offset: 4px;
  border-radius: 14px;
}
.history-type,
.history-id,
.history-status {
  overflow-wrap: anywhere;
}
.history-id {
  font-family: inherit;
  letter-spacing: 0.02em;
}
.history-sequence,
.history-date,
.history-type,
.history-status {
  font-weight: 900;
}
.history-expected,
.history-result-date,
.history-pdf {
  color: #6f6282;
  font-size: 0.9rem;
}
.history-record-card .saved-test-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.history-record-card .saved-test-actions .secondary-button {
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  white-space: nowrap;
}
.show-more-history {
  margin-top: 0.85rem;
}
.shared-results-support {
  margin-top: 1rem;
}
.selected-test-detail-host > .selected-test-detail {
  grid-template-columns: minmax(0, 1fr) 240px;
}
@media (min-width: 1280px) {
  .selected-test-detail-host > .selected-test-detail { grid-template-columns: minmax(0, 1fr) 240px; }
}
@media (max-width: 1180px) {
  .saved-test-row-toggle {
    grid-template-columns: 3ch repeat(3, minmax(0, 1fr));
  }
  .history-expected { display: none; }
  .history-record-card { grid-template-columns: 1fr; }
  .history-record-card .saved-test-actions { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .saved-test-row-toggle {
    grid-template-columns: 3ch minmax(0, 1fr);
    gap: 0.35rem 0.65rem;
  }
  .history-type,
  .history-id,
  .history-status { grid-column: 2; }
  .history-record-card .saved-test-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-record-card .saved-test-actions .secondary-button { width: 100%; white-space: normal; }
}

/* Compact test entry and support selection flow */
.test-entry-rows {
  display: grid;
  gap: 0.65rem;
}
.test-entry-row {
  display: grid;
  grid-template-columns: 3ch minmax(150px, 1fr) minmax(170px, 1.1fr) minmax(150px, 0.8fr) minmax(120px, 0.7fr) minmax(0, auto);
  gap: 0.65rem;
  align-items: end;
  padding: 0.7rem;
  border: 1px solid rgba(126, 87, 194, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}
.entry-row-number {
  align-self: center;
  color: #604087;
  font-weight: 900;
}
.entry-row-status {
  align-self: center;
  color: #7b6b8f;
  font-weight: 800;
  min-width: 0;
}
.entry-row-status.is-ok { color: #247a4b; }
.entry-row-status.is-error { color: #9d2f45; }
#addTestEntryRow {
  margin-top: 0.75rem;
}
.test-support-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}
.test-support-form .overview-actions {
  align-self: end;
}
@media (max-width: 1100px) {
  .test-entry-row,
  .test-support-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-row-number { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .test-entry-row,
  .test-support-form {
    grid-template-columns: 1fr;
  }
  .test-entry-row .primary-button,
  #addTestEntryRow,
  .test-support-form button { width: 100%; }
}

/* Founder simplification: separate purchase interest and keep record content contained */
.partner-purchase-interest {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(126, 87, 194, 0.14);
  border-radius: 18px;
  background: rgba(246, 241, 255, 0.62);
}
.partner-purchase-interest p { margin: 0 0 0.75rem; }
.close-test-detail { margin-top: 1rem; }
.history-pdf { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .history-pdf { grid-column: 2; display: block; }
}

/* Founder correction: flat, table-like measurement history */
.history-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 220px));
  justify-content: start;
  gap: 0.6rem;
  margin: 0.65rem 0;
}
.history-controls select {
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fff;
}
.saved-test-history-list { gap: 0; border-top: 1px solid rgba(126, 87, 194, 0.18); }
.saved-test-row.history-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid rgba(126, 87, 194, 0.18);
  border-radius: 0;
  background: transparent;
}
.saved-test-row-toggle {
  grid-template-columns: 3ch minmax(7rem, 0.8fr) minmax(8rem, 1fr) minmax(10rem, 1.2fr) minmax(7rem, 0.8fr) minmax(8rem, 0.8fr);
  gap: 0.6rem;
}
.history-record-card .saved-test-actions { gap: 0.35rem; }
.history-record-card .saved-test-actions .secondary-button {
  min-height: 34px;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.82rem;
}
.saved-test-expanded {
  grid-column: 1 / -1;
  padding: 0.75rem 0;
}
.test-result-input-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.test-result-input-grid .secondary-button { align-self: end; }
.support-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
@media (max-width: 1180px) {
  .saved-test-row-toggle { grid-template-columns: 3ch repeat(3, minmax(0, 1fr)); }
  .test-result-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .history-controls,
  .saved-test-row.history-record-card,
  .test-result-input-grid { grid-template-columns: 1fr; }
  .history-controls select { width: 100%; }
  .saved-test-row-toggle { grid-template-columns: 3ch minmax(0, 1fr); }
  .history-date,
  .history-type,
  .history-id,
  .history-result-date,
  .history-pdf { grid-column: 2; }
  .history-record-card .saved-test-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Phase 1B: one reusable registration row */
.test-entry-row {
  grid-template-columns: minmax(150px, 1fr) minmax(170px, 1.1fr) minmax(150px, 0.8fr) minmax(120px, 0.7fr) minmax(0, auto);
}

/* Phase 1C: explicit, non-overlapping measurement-history columns */
.saved-test-history-header,
.saved-test-row.history-record-card {
  grid-template-columns: 48px minmax(100px, 0.8fr) minmax(120px, 1fr) minmax(160px, 1.3fr) minmax(110px, 0.8fr) minmax(150px, 1fr) auto;
}
.saved-test-history-header {
  display: grid;
  gap: 0.6rem;
  padding: 0.55rem 0;
  color: #6f607f;
  border-bottom: 1px solid rgba(126, 87, 194, 0.26);
  font-size: 0.75rem;
  font-weight: 800;
}
.saved-test-row.history-record-card {
  gap: 0.6rem;
  align-items: center;
}
.saved-test-row-toggle {
  display: grid;
  grid-column: 1 / 6;
  grid-template-columns: subgrid;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
}
.history-pdf {
  grid-column: 6;
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  overflow-wrap: normal;
}
.history-pdf .secondary-button { width: fit-content; }
.history-record-card .saved-test-actions {
  grid-column: 7;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.saved-test-expanded { grid-column: 1 / -1; }
@media (max-width: 1180px) {
  .saved-test-history-header { display: none; }
  .saved-test-row.history-record-card { grid-template-columns: 1fr auto; align-items: start; }
  .saved-test-row-toggle { grid-column: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-pdf { grid-column: 1; }
  .history-record-card .saved-test-actions { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 760px) {
  .saved-test-row.history-record-card { grid-template-columns: 1fr; }
  .saved-test-row-toggle { grid-column: 1; grid-template-columns: 1fr; }
  .saved-test-row-toggle > span,
  .history-pdf,
  .history-record-card .saved-test-actions { grid-column: 1; }
  .saved-test-row-toggle > span::before,
  .history-pdf::before,
  .history-record-card .saved-test-actions::before {
    content: attr(data-mobile-label);
    display: block;
    margin-bottom: 0.12rem;
    color: #756684;
    font-size: 0.7rem;
    font-weight: 800;
  }
  .history-record-card .saved-test-actions { grid-row: auto; justify-content: flex-start; }
}

/* Phase 3: calm, scannable support routing within Connection & Events. */
.connection-workspace .connection-summary { min-width: 0; }
.support-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.2rem; }
.support-path {
  width: 100%; min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.9rem 1rem; border: 1px solid rgba(118, 75, 162, 0.2); border-radius: 16px;
  background: rgba(255,255,255,0.82); color: #442056; font: inherit; font-weight: 700; text-align: left; cursor: pointer;
}
.support-path:hover, .support-path:focus-visible { border-color: #7650a2; box-shadow: 0 0 0 3px rgba(118,75,162,0.12); outline: none; }
.support-path.is-selected { border-color: #7650a2; background: #f7f0fc; }
.support-path.is-selected span:last-child::before { content: "✓ "; }
.support-request-panel { position: sticky; top: 1rem; }
.support-request-panel[hidden] { display: none; }
.support-request-panel form { display: grid; gap: 0.8rem; }
.support-request-panel textarea { width: 100%; resize: vertical; }
.connection-context { min-width: 0; }
@media (max-width: 900px) {
  .support-paths { grid-template-columns: minmax(0, 1fr); }
  .support-request-panel { position: static; }
  .support-path { min-width: 0; overflow-wrap: anywhere; }
}

/* Phase 3B: wider support workspace and structured upcoming events. */
.connection-workspace .connection-summary,
.support-request-panel { padding: clamp(1.25rem, 2vw, 1.8rem); }
.support-paths { list-style: none; padding: 0; margin-bottom: 0; }
.support-paths > li { min-width: 0; }
.support-path { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
.support-path-number {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px;
  background: #f0e7f7; color: #63417a; font-size: 0.75rem; font-weight: 800;
}
.support-path-action { color: #7650a2; font-size: 1.05rem; }
.support-path.is-selected .support-path-number { background: #7650a2; color: #fff; }
.support-path.is-selected .support-path-action::before { content: "✓ "; }
.support-path.is-selected span:last-child::before { content: none; }
.support-request-panel { min-height: 25rem; border-color: rgba(118, 75, 162, 0.28); box-shadow: 0 14px 34px rgba(68, 32, 86, 0.1); }
.support-request-panel h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.3; }
.support-request-panel label { display: grid; gap: 0.55rem; font-weight: 700; }
.support-request-panel textarea { min-height: 11rem; padding: 0.9rem; line-height: 1.55; }
.connection-context { width: 100%; margin-top: 0.25rem; }
.event-cards { display: grid; gap: 1rem; }
.event-section-heading h3 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.event-section-heading .eyebrow { margin-bottom: 0.25rem; }
.event-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.event-card { align-content: start; min-height: 100%; padding: 1.15rem; }
.event-card h4 { margin: 0; color: #442056; font-size: 1.1rem; }
.event-card p { margin: 0; }
.event-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.event-badge { padding: 0.25rem 0.55rem; border-radius: 999px; background: #eee2f7; color: #57336e; font-size: 0.72rem; font-weight: 800; }
.event-badge-muted { background: #f4f1f5; color: #6c5878; }
.event-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0.15rem 0 0; }
.event-schedule div { display: grid; gap: 0.12rem; }
.event-schedule dt { color: #756684; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.event-schedule dd { margin: 0; color: #442056; font-weight: 700; }
.event-note { padding: 0.55rem 0.65rem; border-radius: 10px; background: #f8f5f9; color: #6c5878; font-size: 0.82rem; }
.event-actions { align-self: end; margin-top: auto; padding-top: 0.35rem; }
.event-actions .secondary-button { width: 100%; text-align: center; }
@media (max-width: 1080px) {
  .support-paths { grid-template-columns: minmax(0, 1fr); }
  .event-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .event-card-grid { grid-template-columns: minmax(0, 1fr); }
  .support-request-panel { min-height: auto; }
}
@media (max-width: 560px) {
  .support-path { grid-template-columns: 2rem minmax(0, 1fr) auto; padding: 0.8rem; }
  .event-schedule { grid-template-columns: minmax(0, 1fr); }
}

/* Phase 3B founder refinement: calmer support, distinct event accents, visual welcome. */
.connection-workspace .connection-summary {
  border-color: rgba(31, 67, 91, 0.14);
  border-top: 4px solid #315f78;
  background: linear-gradient(180deg, rgba(250, 253, 253, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: 0 18px 46px rgba(31, 67, 91, 0.08);
}
.connection-workspace .support-path {
  border-color: rgba(31, 67, 91, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: #253c4b;
  box-shadow: 0 5px 15px rgba(31, 67, 91, 0.035);
}
.connection-workspace .support-path-number { background: #e7f0f2; color: #315f78; }
.connection-workspace .support-path-action { color: #315f78; }
.connection-workspace .support-path:hover,
.connection-workspace .support-path:focus-visible { border-color: #315f78; box-shadow: 0 0 0 3px rgba(49, 95, 120, 0.12); }
.connection-workspace .support-path.is-selected { border-color: #315f78; background: #eff6f7; }
.connection-workspace .support-path.is-selected .support-path-number { background: #315f78; }
.connection-workspace .support-request-panel {
  overflow: hidden;
  border: 1px solid rgba(31, 42, 68, 0.16);
  border-top: 5px solid #1f2a44;
  background: linear-gradient(155deg, #ffffff 0%, #fbfaf7 100%);
  box-shadow: 0 22px 54px rgba(31, 42, 68, 0.14);
}
.connection-workspace .support-request-panel .eyebrow { color: #9a6d2e; }
.connection-workspace .support-request-panel h3 { color: #1f2a44; }
.connection-workspace .support-request-panel textarea { border-color: rgba(31, 42, 68, 0.2); background: #fff; }
.connection-workspace .support-request-panel textarea:focus-visible { outline: 3px solid rgba(197, 151, 76, 0.2); border-color: #a87831; }
.connection-context {
  padding: clamp(1.2rem, 2.2vw, 1.8rem);
  border: 1px solid rgba(31, 42, 68, 0.12);
  border-radius: 26px;
  background: linear-gradient(135deg, #f8faf9 0%, #f5f2eb 100%);
  box-shadow: 0 20px 55px rgba(31, 42, 68, 0.08);
}
.event-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr); align-items: end; gap: 1rem 2rem; }
.event-section-heading > p { max-width: 48rem; margin: 0; color: #52616a; line-height: 1.6; }
.event-card-grid { gap: 1.1rem; }
.event-card {
  position: relative;
  overflow: hidden;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(31, 42, 68, 0.12);
  background: #fff;
  box-shadow: 0 13px 32px rgba(31, 42, 68, 0.09);
}
.event-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--event-accent); }
.event-card-vision-monday { --event-accent: #3b6f8d; --event-soft: #eaf3f7; --event-ink: #214b63; }
.event-card-wednesday-session { --event-accent: #4f8279; --event-soft: #e9f3f0; --event-ink: #285d54; }
.event-card-sikerszombat { --event-accent: #b57b32; --event-soft: #f8efe0; --event-ink: #79501d; }
.event-card-header { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 1.2rem 1.1rem 0.8rem; background: linear-gradient(135deg, var(--event-soft), #fff); }
.event-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; flex: 0 0 auto; border-radius: 14px; background: #fff; color: var(--event-ink); box-shadow: 0 5px 14px rgba(31, 42, 68, 0.1); font-size: 1.15rem; font-weight: 900; }
.event-card .event-badge { background: var(--event-soft); color: var(--event-ink); }
.event-card .event-badge-muted { background: rgba(255, 255, 255, 0.8); color: #52616a; }
.event-card-body { display: grid; gap: 0.55rem; padding: 0.95rem 1.1rem 1rem; }
.event-card h4 { color: #1f2a44; font-size: 1.18rem; }
.event-card-body p { color: #52616a; line-height: 1.55; }
.event-card .event-schedule { padding: 0.85rem 1.1rem; margin: 0; border-block: 1px solid rgba(31, 42, 68, 0.09); background: #fafafa; }
.event-card .event-schedule dt { color: var(--event-ink); }
.event-card .event-note { margin: 0.8rem 1.1rem 0; background: var(--event-soft); color: var(--event-ink); }
.event-card .event-actions { padding: 1rem 1.1rem 1.1rem; }
.event-card .event-actions .secondary-button { border-color: var(--event-accent); color: var(--event-ink); background: #fff; }
.event-card .event-actions .secondary-button:hover,
.event-card .event-actions .secondary-button:focus-visible { background: var(--event-soft); outline: 3px solid color-mix(in srgb, var(--event-accent) 20%, transparent); outline-offset: 2px; }
.welcome-video-slot { padding: 0; overflow: hidden; border-color: rgba(49, 95, 120, 0.18); background: #fff; }
.welcome-video-preview-card { display: grid; grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr); min-height: 12rem; color: inherit; text-decoration: none; }
.welcome-video-thumbnail { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: 12rem; background: radial-gradient(circle at 70% 30%, rgba(242, 199, 112, 0.95) 0 3%, transparent 18%), radial-gradient(circle at 32% 68%, rgba(188, 224, 218, 0.75), transparent 35%), linear-gradient(135deg, #173a55, #596b93 52%, #b27386); color: #fff; }
.welcome-video-thumbnail::before { content: ""; position: absolute; width: 12rem; height: 12rem; border: 1px solid rgba(255,255,255,0.32); border-radius: 50%; transform: translate(3.7rem, -1.6rem); box-shadow: 0 0 0 2rem rgba(255,255,255,0.045), 0 0 0 4rem rgba(255,255,255,0.035); z-index: -1; }
.welcome-video-orbit { position: absolute; width: 7rem; height: 7rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; transform: translate(-5rem, 3rem); }
.welcome-video-monogram { position: absolute; left: 1.15rem; top: 1rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid rgba(255,255,255,0.45); border-radius: 50%; font-family: Georgia, serif; font-size: 1.2rem; }
.welcome-video-play { display: grid; place-items: center; width: 4rem; height: 4rem; padding-left: 0.18rem; border: 1px solid rgba(255,255,255,0.7); border-radius: 50%; background: rgba(255,255,255,0.2); box-shadow: 0 12px 28px rgba(18, 31, 52, 0.25); backdrop-filter: blur(8px); font-size: 1.2rem; transition: transform 0.2s ease, background 0.2s ease; }
.welcome-video-thumbnail small { position: absolute; inset: auto auto 1rem 1.15rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; }
.welcome-video-copy { display: grid; align-content: center; gap: 0.55rem; padding: clamp(1.2rem, 2.5vw, 2rem); }
.welcome-video-copy strong { color: #1f2a44; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.2; }
.welcome-video-copy > span:not(.eyebrow):not(.welcome-video-cta) { color: #5b6570; line-height: 1.5; }
.welcome-video-cta { width: max-content; margin-top: 0.25rem; color: #315f78; font-weight: 850; }
.welcome-video-preview-card:hover .welcome-video-play,
.welcome-video-preview-card:focus-visible .welcome-video-play { transform: scale(1.08); background: rgba(255,255,255,0.3); }
.welcome-video-preview-card:focus-visible { outline: 3px solid rgba(49, 95, 120, 0.35); outline-offset: -3px; }
@media (max-width: 760px) {
  .event-section-heading, .welcome-video-preview-card { grid-template-columns: minmax(0, 1fr); }
  .welcome-video-thumbnail { min-height: 10rem; }
}

/* Customer Portal Premium Visual System V1 */
:root {
  --cp-pearl: #fcfaf7;
  --cp-ivory: #f7f2ec;
  --cp-lilac: #eee8fa;
  --cp-purple: #6e43ad;
  --cp-navy: #162451;
  --cp-muted: #66708b;
  --cp-gold: #c99b59;
  --cp-teal: #427f83;
  --cp-border: rgba(52, 42, 86, 0.12);
  --cp-panel: rgba(255, 255, 255, 0.84);
  --cp-radius: 28px;
  --cp-shadow: 0 18px 52px rgba(33, 27, 72, 0.08);
}

body { background: radial-gradient(circle at 88% 8%, rgba(225, 208, 244, 0.33), transparent 26rem), var(--cp-pearl); color: var(--cp-navy); }
.shell { width: min(1560px, calc(100% - 48px)); }
.portal-header { padding-block: 1.05rem; border-bottom-color: rgba(25, 36, 81, 0.1); }
.brand-wordmark { color: #0d1b4e; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.62rem, 2.5vw, 2.22rem); font-weight: 400; letter-spacing: -0.035em; }
.brand-wordmark span { color: #7542c6; }
.brand { gap: .72rem; }.brand-logo { display:block; width:2.65rem; height:2.65rem; flex:0 0 2.65rem; align-self:center; object-fit:contain; opacity:1; background:transparent; border:0; border-radius:0; box-shadow:none; filter:saturate(1.12) contrast(1.05) drop-shadow(0 2px 4px rgba(90, 61, 160, .16)); }
.portal-header nav a, .ghost-button { min-height: 38px; border-color: var(--cp-border); background: rgba(255,255,255,.7); color: var(--cp-navy); font-size: .84rem; font-weight: 750; }
.portal-app-shell { gap: clamp(1.25rem, 2vw, 2.25rem); }
.portal-sidebar-panel, .sidebar-webinar-card, .sidebar-related-videos { border-color: var(--cp-border); border-radius: var(--cp-radius); background: var(--cp-panel); box-shadow: var(--cp-shadow); }
.portal-sidebar-kicker { color: #9d8ab6; letter-spacing: .055em; }
.portal-sidebar-brand strong { color: var(--cp-navy); font-family: Georgia, serif; }
.portal-nav-item { position: relative; border: 0; border-radius: 17px; background: transparent; color: #34305b; font-weight: 750; }
.portal-nav-item:hover, .portal-nav-item:focus-visible { background: #f2edf9; outline: 2px solid rgba(110, 67, 173, .28); outline-offset: 2px; }
.portal-nav-item.is-active { color: #fff; background: linear-gradient(110deg, #573291, #8756c7); box-shadow: 0 10px 24px rgba(89, 52, 150, .23); }
.portal-nav-item { display: flex; align-items: center; gap: .82rem; min-height: 3.42rem; padding: .72rem .92rem; border: 1px solid rgba(126,79,201,.17); background: rgba(255,255,255,.82); box-shadow: 0 4px 13px rgba(51,35,88,.035); }.portal-nav-icon { display: inline-grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border: 1px solid rgba(117,74,181,.3); border-radius: 50%; background: #faf7ff; color: #7952b4; font-size: 1.24rem; font-weight: 700; line-height: 1; }.portal-nav-item.is-active .portal-nav-icon { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.16); }
.dashboard::before { opacity: .45; }
.dashboard .panel { border-color: var(--cp-border); border-radius: var(--cp-radius); background: var(--cp-panel); box-shadow: var(--cp-shadow); }
.dashboard-top.panel { background: linear-gradient(115deg, rgba(255,255,255,.94), rgba(243,236,250,.9)); }
.dashboard-top h2, .dashboard .panel h2, .dashboard .panel h3 { color: var(--cp-navy); font-family: Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.dashboard .eyebrow { color: #8f70bc; letter-spacing: .09em; }
.dashboard .primary-button, .dashboard .primary-link { background: linear-gradient(115deg, #142b64, #263d7c); box-shadow: 0 12px 26px rgba(21, 43, 100, .18); }
.dashboard .secondary-button { border-color: rgba(110,67,173,.22); color: #55358b; background: #fff; }

.connection-workspace { gap: clamp(1.25rem, 2vw, 2rem); }
.connection-context { margin-top: .75rem; }
.welcome-video-approved-image { background: #eee !important; }.welcome-video-approved-image::before { display: none; }.welcome-video-approved-image img { width: 100%; height: 100%; min-height: 12rem; object-fit: cover; }.welcome-video-approved-image .welcome-video-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }

@media (max-width: 760px) { .shell { width: min(100% - 24px, 1560px); }.welcome-video-approved-image img { min-height: 13rem; } }

/* PR #206 page-by-page refinement: scoped away from approved Welcome and My Tests. */
.goals-support-journey { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .95fr); gap: clamp(1.25rem, 2.4vw, 2.25rem); align-items: start; }
.goals-context-panel { position: relative; overflow: hidden; background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(241,235,250,.86)) !important; }
.goals-context-panel::after { content: ''; position: absolute; width: 14rem; height: 14rem; right: -7rem; top: -7rem; border: 1px solid rgba(139,96,191,.18); border-radius: 50%; box-shadow: 0 0 0 2rem rgba(139,96,191,.035), 0 0 0 4rem rgba(201,155,89,.025); pointer-events: none; }
.goals-context-panel > * { position: relative; z-index: 1; }
.goals-context-panel h2 { max-width: 13ch; font-size: clamp(2rem, 3.5vw, 3.25rem) !important; }
.goals-context-panel .health-topic-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.goals-context-panel .health-topic-card { border-radius: 16px; background: rgba(255,255,255,.75); }
.goals-explorer-hero { display:grid; gap:1.25rem; padding:clamp(1.5rem,3vw,3rem); }.goals-explorer-hero h2 { max-width:22ch; }.goals-hero-copy { max-width:68ch; margin:0; color:var(--cp-muted); font-size:1.03rem; line-height:1.65; }.goals-explorer-hero > label, .goals-explorer-hero > button, .goals-explorer-hero > .status-message { display:none; }
.goals-explorer-hero .health-topic-cards { grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }.goal-explorer-card { min-height:10.5rem; display:grid; align-content:start; gap:.7rem; padding:1.2rem; border:1px solid rgba(110,67,173,.16); border-radius:20px; background:linear-gradient(150deg,#fff,#f7f3fb); color:var(--cp-navy); text-align:left; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }.goal-explorer-card:hover,.goal-explorer-card:focus-visible,.goal-explorer-card.is-selected { transform:translateY(-3px); border-color:var(--cp-purple); box-shadow:0 16px 32px rgba(62,42,107,.14); outline:none; }.goal-card-icon { display:grid; place-items:center; width:2.2rem; height:2.2rem; border-radius:50%; background:#eee7f7; color:#7652a8; font-size:1.2rem; }.goal-explorer-card strong { font-family:Georgia,serif; font-size:1.12rem; }.goal-explorer-card small { color:var(--cp-muted); line-height:1.4; }
.selected-goal-detail { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(18rem,.95fr); gap:1.25rem; margin-top:1.25rem; padding:clamp(1.35rem,2.8vw,2.5rem); border:1px solid rgba(66,127,131,.2); border-radius:var(--cp-radius); background:linear-gradient(145deg,#fff,#f2faf9); box-shadow:var(--cp-shadow); }.selected-goal-orientation h2 { margin:.2rem 0 .5rem; font-size:clamp(1.8rem,3vw,2.8rem); }.selected-goal-orientation p:not(.eyebrow) { margin:0; color:var(--cp-muted); line-height:1.6; }.goal-experience-teaser { padding:1.1rem; border-radius:18px; background:#fff; box-shadow:0 8px 20px rgba(45,42,85,.06); }.goal-experience-teaser p { line-height:1.55; }.goal-experience-teaser small { display:block; margin-top:.85rem; color:var(--cp-muted); }.goal-product-interest { grid-column:1/-1; }.goal-product-interest > div,.goal-support-actions { display:flex; flex-wrap:wrap; gap:.7rem; }.goal-product-card { display:grid; gap:.3rem; min-width:12rem; padding:.85rem 1rem; border:1px solid rgba(110,67,173,.18); border-radius:14px; background:#fff; color:var(--cp-navy); text-align:left; cursor:pointer; }.goal-product-card span { color:#72529d; font-size:.82rem; }.goal-support-actions { grid-column:1/-1; padding-top:.25rem; }.goal-safety-notice { grid-column:1/-1; margin:0; padding:.8rem 1rem; border-radius:14px; background:#fff0ef; color:#9b241c; font-weight:700; }
.goals-support-routing { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.3vw, 2rem); border: 1px solid rgba(66,127,131,.18); border-radius: var(--cp-radius); background: linear-gradient(145deg, rgba(243,250,249,.92), rgba(255,255,255,.88)); box-shadow: var(--cp-shadow); }
.goals-journey-heading { display: grid; gap: .5rem; max-width: 58ch; }.goals-journey-heading h2 { margin: 0; color: var(--cp-navy); font-family: Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.04em; }.goals-journey-heading p:not(.eyebrow) { margin: 0; color: var(--cp-muted); line-height: 1.55; }
.goals-support-routing .support-paths { grid-template-columns: 1fr; margin: 0; }.goals-support-routing .support-path { border-color: rgba(66,127,131,.18); background: rgba(255,255,255,.72); }.goals-support-routing .support-path:hover, .goals-support-routing .support-path:focus-visible, .goals-support-routing .support-path.is-selected { border-color: var(--cp-teal); background: #f4fbfa; }.goals-support-routing .support-path-number { background: #e2f1ef; color: #286c71; }.goals-support-routing .support-path-action { color: #286c71; }
.goals-support-routing .support-request-panel { position: static; margin-top: .25rem; border-color: rgba(201,155,89,.27); background: linear-gradient(135deg, #fffdf8, #fff); box-shadow: 0 12px 30px rgba(73,55,25,.08); }
.profile-basics-panel { margin-bottom: 1.25rem; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(238,247,246,.9)); border-color: rgba(66,127,131,.2); }
.safety-alert { margin: .35rem 0; padding: 1rem 1.1rem; border: 1px solid #b42318; border-radius: 16px; background: #fff1f0; color: #7a1c16; }.safety-alert strong { display:block; font-size: 1.05rem; }.safety-alert p { margin: .5rem 0; line-height: 1.5; }
.selected-goal-context { display:grid; gap:.65rem; padding:1rem 1.1rem; border:1px solid rgba(66,127,131,.25); border-radius:16px; background:#f3fbfa; }.selected-goal-context p { margin:0; color:var(--cp-muted); line-height:1.5; }.selected-goal-context .secondary-button { width:max-content; }


.products-workspace { grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .75fr); align-items: start; }.products-workspace .products-panel { grid-row: span 2; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(243,238,250,.9)); }.products-workspace .products-panel h2 { font-size: clamp(2rem, 3.3vw, 3.1rem); max-width: 13ch; }.products-workspace .product-picker { padding: 1.15rem; border: 1px solid rgba(110,67,173,.13); border-radius: 22px; background: rgba(255,255,255,.72); }.products-workspace .product-state-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }.products-workspace .product-state-grid article { border-radius: 18px; background: linear-gradient(160deg, #fff, #f8f5fc); }.products-workspace .hydration-card { border-color: rgba(66,127,131,.18); background: linear-gradient(145deg, #f5fbfb, #fff); }
.journey-guidance-panel { background: linear-gradient(145deg, #f5fbfb, #fff); border-color: rgba(66,127,131,.2); }.journey-safety-status { display:inline-flex; margin-bottom:1rem; padding:.45rem .72rem; border-radius:999px; background:#e2f1ef; color:#286c71; font-weight:800; }.journey-safety-status.is-safety { background:#fee4e2; color:#b42318; }.journey-profile-summary { margin:0 0 1rem; color:var(--cp-muted); line-height:1.5; }

[data-portal-panel="referrals"] #referrals { grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); align-items: start; } [data-portal-panel="referrals"] #referrals > .panel:first-child { background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,242,252,.92)); } [data-portal-panel="referrals"] #referrals > .panel:first-child h2 { max-width: 18ch; font-size: clamp(1.9rem, 3vw, 3rem); } [data-portal-panel="referrals"] .overview-referral-link, [data-portal-panel="referrals"] .referral-quick-add { padding: .85rem; border-radius: 18px; background: rgba(241,233,250,.6); } [data-portal-panel="referrals"] .referral-list { border-radius: 18px; }

[data-portal-panel="profile"] { display: grid; gap: 1.25rem; max-width: 920px; } [data-portal-panel="profile"] .privacy-panel { padding: clamp(1.5rem, 3vw, 3rem); background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(242,248,248,.88)); border-color: rgba(66,127,131,.18); } [data-portal-panel="profile"] .privacy-panel h2 { max-width: 16ch; font-size: clamp(2rem, 3.5vw, 3.35rem); } [data-portal-panel="profile"] .legal-link-grid { margin-top: 1.4rem; } [data-portal-panel="profile"] .legal-link-grid a { padding: .75rem .95rem; border: 1px solid rgba(66,127,131,.18); border-radius: 14px; background: #fff; color: var(--cp-navy); text-decoration: none; }

@media (max-width: 1080px) { .goals-support-journey, .products-workspace, [data-portal-panel="referrals"] #referrals,.selected-goal-detail { grid-template-columns: 1fr; }.goals-explorer-hero .health-topic-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }.products-workspace .products-panel { grid-row: auto; }.products-workspace .product-state-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .goals-context-panel .health-topic-cards,.goals-explorer-hero .health-topic-cards { grid-template-columns: 1fr; }.goals-support-routing { padding: 1rem; }.products-workspace .product-picker-controls { grid-template-columns: 1fr; }.products-workspace .product-picker-controls .secondary-button { width: 100%; justify-content: center; } }

/* Founder-approved Connection & Events composition */
.portal-nav-icon { width: 1.75rem; height: 1.75rem; flex-basis: 1.75rem; border: 1px solid rgba(110, 67, 173, .18); border-radius: 9px; background: rgba(255, 255, 255, .72); font-size: 1.08rem; }
.portal-nav-item.is-active .portal-nav-icon { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.14); }
.connection-view, .connection-view .connection-context, .connection-view .event-cards { width: 100%; min-width: 0; }
.connection-view .connection-context { margin: 0; }
.connection-view .event-cards { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; width: 100%; min-width: 0; gap: clamp(1.4rem, 2.4vw, 2.25rem); }
.connection-view .event-cards > .event-feature, .connection-view .event-cards > .events-strip { grid-column: 1 / -1; width: 100%; min-width: 0; }
.event-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); overflow: hidden; width: 100%; border: 1px solid var(--cp-border); border-radius: 30px; background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,241,251,.93)); box-shadow: var(--cp-shadow); }
.event-feature-copy { display: grid; align-content: center; gap: 1rem; min-width: 0; padding: clamp(1.7rem, 3vw, 3.15rem); }
.event-feature-kicker { width: max-content; margin: 0; padding: .48rem .9rem; border-radius: 999px; background: #eee8f7; color: #6d4aa1; font-size: .8rem; font-weight: 850; }
.event-feature-copy h2 { max-width: 19ch; margin: 0; color: var(--cp-navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.35rem, 4.2vw, 4.55rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.event-feature-rule { height: 1px; background: linear-gradient(90deg, var(--cp-gold), rgba(201,155,89,.15)); }
.event-feature-benefits { display: grid; gap: .65rem; }
.event-feature-benefits p { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .65rem; align-items: start; margin: 0; color: #4c5370; line-height: 1.55; }
.event-feature-benefits span { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #f0eaf8; color: var(--cp-purple); }
.event-feature-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: .1rem 0 0; }
.event-feature-meta div { display: grid; gap: .2rem; }
.event-feature-meta dt { color: #8b789d; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.event-feature-meta dd { margin: 0; color: var(--cp-navy); font-weight: 800; }
.event-feature-actions { margin-top: .35rem; }
.event-feature-actions .primary-button { width: fit-content; min-height: 54px; }
.event-feature-media { display: grid; place-items: center; min-width: 0; margin: 0; padding: clamp(1rem, 2vw, 1.5rem); background: radial-gradient(circle at 70% 20%, rgba(238,220,244,.62), transparent 55%); }
.event-feature-media img { display: block; width: 100%; height: auto; object-fit: contain; }
.featured-event-teal .event-feature-kicker { background: #e4f2f1; color: #286c71; }
.featured-event-gold .event-feature-kicker { background: #fbf0dc; color: #936124; }
.events-strip { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 3.3fr); gap: clamp(1rem, 2vw, 1.5rem); width: 100%; padding: clamp(1.2rem, 2vw, 1.6rem); border: 1px solid var(--cp-border); border-radius: 28px; background: rgba(255,255,255,.74); box-shadow: 0 14px 42px rgba(33,27,72,.06); }
.events-strip-intro { display: grid; align-content: center; gap: .65rem; padding: .45rem; }
.events-strip-intro h3 { margin: 0; color: var(--cp-navy); font-family: Georgia, serif; font-size: clamp(1.75rem, 2.6vw, 2.6rem); line-height: 1.03; }
.events-strip-intro p { margin: 0; color: var(--cp-muted); line-height: 1.55; }
.event-selector-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: .85rem; min-width: 0; }
.event-selector-card, .event-calendar-card { position: relative; display: grid; align-content: start; gap: .65rem; min-width: 0; min-height: 13.5rem; padding: 1.1rem; border: 1px solid var(--cp-border); border-radius: 20px; background: rgba(255,255,255,.92); color: var(--cp-navy); box-shadow: 0 7px 20px rgba(38,30,78,.05); }
.event-selector-card { font: inherit; text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.event-selector-card:hover, .event-selector-card:focus-visible, .event-selector-card.is-selected { border-color: rgba(110,67,173,.45); outline: none; box-shadow: 0 12px 28px rgba(63,42,115,.12); transform: translateY(-2px); }
.event-selector-card.is-selected { background: linear-gradient(150deg, #fff, #f5effb); }
.event-selector-card.is-selected::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; border-radius: 20px 0 0 20px; background: var(--cp-purple); }
.event-selector-teal.is-selected::before { background: var(--cp-teal); }
.event-selector-gold.is-selected::before { background: var(--cp-gold); }
.event-selector-type { color: #7653a6; font-size: .7rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.event-selector-card strong { font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.18; }
.event-selector-card > span:not(.event-selector-type):not(.event-selector-arrow) { color: var(--cp-muted); font-size: .83rem; line-height: 1.45; }
.event-selector-card small { margin-top: auto; padding-right: 1.5rem; color: #79668f; font-weight: 750; }
.event-selector-arrow { position: absolute; right: 1rem; bottom: 1rem; color: var(--cp-purple); font-size: 1.2rem; }
.event-calendar-card { place-items: center; align-content: center; background: linear-gradient(145deg, rgba(250,247,253,.96), rgba(244,237,250,.86)); text-align: center; }
.event-calendar-icon { display: grid; place-items: center; width: 3.35rem; height: 3.35rem; border: 1px solid rgba(110,67,173,.16); border-radius: 50%; background: #f0e8f8; color: var(--cp-purple); font-size: 1.75rem; }
.event-calendar-card p { margin: 0; color: #7657a0; font-size: .88rem; line-height: 1.45; }
.event-calendar-link { border: 1px solid rgba(110,67,173,.16); border-radius: 10px; padding: .65rem .75rem; background: #fff; color: #563a86; font: inherit; font-size: .76rem; font-weight: 800; text-decoration: none; }
.event-calendar-link:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 1180px) { .event-feature { grid-template-columns: minmax(0, 1fr) minmax(290px, .82fr); } .events-strip { grid-template-columns: 1fr; } .events-strip-intro { max-width: 62ch; } .event-selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .event-feature { grid-template-columns: minmax(0, 1fr); } .event-feature-copy { padding: 1.35rem; } .event-feature-copy h2 { font-size: clamp(2.15rem, 11vw, 3.15rem); } .event-feature-actions .primary-button { width: 100%; } .event-feature-media { padding: .8rem 1.35rem 1.35rem; } .events-strip { padding: 1rem; } .event-selector-grid { grid-template-columns: minmax(0, 1fr); } .event-selector-card, .event-calendar-card { min-height: 11.5rem; } }
