/**
 * SeizeControl content system — FND Connect palette only
 * Loaded after sc-fnd-shell.css. Makes main content feel refined.
 */

/* ── Exclusive FND palette (override Bootstrap blues) ────── */
body.app-body {
  --bs-primary: #c9005a;
  --bs-primary-rgb: 201, 0, 90;
  --bs-link-color: #c9005a;
  --bs-link-hover-color: #002b5f;
  --bs-body-color: #26364d;
  --bs-body-bg: #f2f7fc;
  --bs-border-color: #dfe6ef;
  --bs-secondary: #5f6f84;
  --bs-success: #0f7a4c;
  --bs-warning: #9a6700;
  --bs-danger: #b42318;
  --bs-info: #104778;

  /* Kill leftover NHS / generic blues in themes */
  --nhs-blue: #002b5f;
  --primary: #c9005a;
  --primary-color: #c9005a;
}

body.app-body,
body.app-authenticated,
body.app-public {
  color: #26364d;
  background: #f2f7fc;
}

/* ── Page container rhythm ───────────────────────────────── */
.sc-page,
.ov-page,
.care-content > .container-fluid,
.care-content > .container,
main.sc-app-main > .workspace-hero,
main.sc-app-main > form,
main.sc-app-main > section,
main.sc-app-main > .row {
  max-width: 100%;
}

.sc-page,
.today-page,
.today-page-v2,
.ov-page {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* ── Unified panel / card ────────────────────────────────── */
.sc-panel,
body.app-authenticated .ov-card,
body.app-authenticated .surface-card,
body.app-authenticated .care-panel,
body.app-authenticated .card:not(.sc-product-more__panel),
body.app-authenticated .product-first-steps {
  margin: 0;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(0, 43, 95, 0.09) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 43, 95, 0.04), 0 10px 28px rgba(0, 43, 95, 0.05) !important;
}

.sc-panel--hero {
  background: linear-gradient(145deg, #ffffff 0%, #f7fafc 55%, #fff7fb 100%) !important;
  border-color: rgba(0, 43, 95, 0.1) !important;
}

.sc-panel--accent {
  border-left: 5px solid #c9005a !important;
  background: linear-gradient(135deg, #fff7fb 0%, #fff 55%) !important;
}

.sc-panel__head,
body.app-authenticated .ov-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(0, 43, 95, 0.07);
}

.sc-panel__kicker,
body.app-authenticated .ov-card-kicker {
  display: block;
  margin-bottom: 0.3rem;
  color: #002b5f !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sc-panel__title,
body.app-authenticated .ov-card-title,
body.app-authenticated .care-panel-title {
  margin: 0 !important;
  color: #002b5f !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.sc-panel__sub,
body.app-authenticated .ov-card-sub {
  display: block;
  margin-top: 0.15rem;
  color: #5f6f84 !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

.sc-panel__link,
body.app-authenticated .ov-card-link {
  color: #c9005a !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.sc-panel__link:hover,
body.app-authenticated .ov-card-link:hover {
  color: #002b5f !important;
  text-decoration: underline !important;
}

/* ── Status row (replaces bulky greeting) ────────────────── */
.sc-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.sc-status-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 !important;
}

.sc-status-row .ov-tag,
.today-page-v2 .ov-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 43, 95, 0.12);
  color: #002b5f;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 43, 95, 0.04);
}

.today-page-v2 .ov-status-tag.is-watch {
  background: #fff6e0;
  border-color: rgba(154, 103, 0, 0.22);
  color: #9a6700;
}

.today-page-v2 .ov-status-tag.is-urgent {
  background: #fdecea;
  border-color: rgba(180, 35, 24, 0.2);
  color: #b42318;
}

/* Hide duplicate h1 from old greeting markup if present */
.today-page-v2 .ov-greeting-kicker,
.today-page-v2 .ov-greeting-date:not(#today-hero-date),
.today-page-v2 h1.ov-greeting-date {
  /* date moved into tags as #today-hero-date */
}

.today-page-v2 .ov-greeting-top {
  display: contents;
}

/* ── Spotlight: next step + forecast ─────────────────────── */
.sc-spotlight {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 900px) {
  .sc-spotlight {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr);
    align-items: stretch;
    gap: 1.25rem;
  }
}

@media (min-width: 1200px) {
  .sc-spotlight {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.85fr);
  }
}

.sc-spotlight .today-command {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.sc-spotlight .ov-forecast-compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem 1.2rem !important;
}

@media (min-width: 520px) {
  .sc-spotlight .ov-forecast-compact {
    flex-direction: row;
    align-items: center;
  }
}

/* Soft ring colours — FND only (size/layout owned by sc-today.css) */
.ov-ring-track {
  stroke: rgba(0, 43, 95, 0.12) !important;
}

.ov-ring-value {
  stroke: #c9005a !important;
}

.ov-ring-center strong {
  color: #002b5f !important;
  font-size: 1.15rem !important;
  line-height: 1.05 !important;
}

.ov-forecast-level {
  color: #152238 !important;
  font-weight: 700 !important;
}

.ov-forecast-link {
  color: #c9005a !important;
  font-weight: 800 !important;
}

/* ── Two-column content grid ─────────────────────────────── */
.sc-grid-2 {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .sc-grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.4rem;
  }
}

/* Desktop: full-bleed page width inside the shell */
@media (min-width: 992px) {
  body.app-authenticated .sc-page,
  body.app-authenticated .today-page-v2,
  body.app-authenticated .meds-page,
  body.app-authenticated .hist-page,
  body.app-authenticated .looking-ahead-page {
    width: 100%;
    max-width: none;
  }

  body.app-authenticated .sc-page-head__summary {
    max-width: 48rem;
  }
}

/* ── Metrics ─────────────────────────────────────────────── */
/* Default 2×2 — 4 skinny columns break labels like “90-day adherence” */
.sc-metric-row,
.ov-med-metrics {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  min-width: 0;
}

.today-mini-metric,
.ov-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.75rem 0.8rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0, 43, 95, 0.08) !important;
  background: #f4f7fb !important;
  text-align: left;
}

.today-mini-metric strong,
.ov-stat strong {
  display: block;
  color: #002b5f !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: nowrap;
}

.today-mini-metric span,
.ov-stat span,
.ov-stat small {
  display: block;
  color: #5f6f84 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* ── Lists inside panels ─────────────────────────────────── */
.ov-med-list,
.ov-recent,
.ov-actions,
.ov-drivers,
.ov-signals {
  display: grid;
  gap: 0.55rem;
}

body.app-authenticated .ov-actions > *,
body.app-authenticated .ov-med-list > *:not(.today-empty),
body.app-authenticated .ov-recent > *:not(.today-empty) {
  border-radius: 12px;
  border: 1px solid rgba(0, 43, 95, 0.08);
  background: #fbfcfe;
}

.today-empty {
  padding: 1rem !important;
  border-radius: 12px !important;
  background: #f2f7fc !important;
  border: 1px dashed rgba(0, 43, 95, 0.14) !important;
  color: #5f6f84 !important;
  font-size: 0.9rem !important;
  text-align: center;
}

/* ── Quick links — full-width card, title above icon grid ── */
.sc-quicklinks {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  width: 100% !important;
  padding: 1.15rem 1.2rem !important;
  border: 1px solid #e3eaf2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 43, 95, 0.04), 0 6px 18px rgba(0, 43, 95, 0.045) !important;
  box-sizing: border-box !important;
}

.sc-quicklinks__title {
  margin: 0 !important;
  color: #002b5f;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* IMPORTANT: only the grid is multi-column — never the section */
.sc-quicklinks__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Legacy class on a section was breaking layout (title left, icons right) */
.ov-support-compact:not(.sc-quicklinks) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem !important;
}

@media (min-width: 720px) {
  .sc-quicklinks__grid,
  .ov-support-compact:not(.sc-quicklinks) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .sc-quicklinks__grid,
  .ov-support-compact:not(.sc-quicklinks) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.sc-quicklinks .ov-support-link,
.ov-support-link {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem !important;
  min-height: 4.25rem;
  min-width: 0 !important;
  padding: 0.8rem 0.85rem !important;
  border-radius: 10px !important;
  border: 1px solid #e3eaf2 !important;
  background: #f8fafc !important;
  color: #002b5f !important;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: border-color 140ms ease, background 140ms ease;
  box-sizing: border-box !important;
}

.ov-support-link:hover {
  border-color: rgba(0, 43, 95, 0.22) !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none;
  color: #002b5f !important;
}

.ov-support-link i {
  color: #c9005a !important;
  font-size: 1.15rem !important;
}

.ov-support-link-accent {
  background: linear-gradient(135deg, #fff7fb, #fff) !important;
  border-color: rgba(201, 0, 90, 0.22) !important;
}

/* ── More detail accordion ───────────────────────────────── */
.ov-more-detail {
  padding: 0 1.2rem 1.1rem !important;
}

.ov-more-detail > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: #002b5f;
  font-weight: 800;
}

.ov-more-detail > summary::-webkit-details-marker {
  display: none;
}

.ov-more-detail > summary small {
  color: #5f6f84;
  font-weight: 500;
  font-size: 0.84rem;
}

.ov-subsection h3 {
  margin: 1rem 0 0.5rem;
  color: #002b5f;
  font-size: 0.95rem;
  font-weight: 800;
}

/* ── Global buttons (FND only) ───────────────────────────── */
body.app-body .btn-primary,
body.app-body .btn.btn-primary {
  background: #c9005a !important;
  border-color: #c9005a !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 18px rgba(201, 0, 90, 0.2);
}

body.app-body .btn-primary:hover {
  background: #a8004a !important;
  border-color: #a8004a !important;
}

body.app-body .btn-outline-primary,
body.app-body .btn.btn-outline-primary {
  color: #002b5f !important;
  border: 2px solid #002b5f !important;
  background: #fff !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

body.app-body .btn-outline-secondary {
  color: #5f6f84 !important;
  border: 1px solid rgba(0, 43, 95, 0.2) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  background: #fff !important;
}

body.app-body .btn-link {
  color: #c9005a !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.app-body a:not(.btn):not(.sc-product-nav__link):not(.nav-seizecontrol):not(.sc-product-cta) {
  /* keep intentional SC links magenta */
}

/* ── Forms / tables across app ───────────────────────────── */
body.app-authenticated .form-control,
body.app-authenticated .form-select,
body.app-authenticated input.form-control,
body.app-authenticated select.form-select,
body.app-authenticated textarea.form-control {
  border: 1px solid rgba(0, 43, 95, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.app-authenticated .form-control:focus,
body.app-authenticated .form-select:focus {
  border-color: #c9005a !important;
  box-shadow: 0 0 0 3px rgba(201, 0, 90, 0.15) !important;
}

body.app-authenticated .table {
  --bs-table-bg: transparent;
  color: #26364d;
}

body.app-authenticated .table > :not(caption) > * > * {
  border-bottom-color: rgba(0, 43, 95, 0.08);
}

/* ── Support partial ─────────────────────────────────────── */
body.app-authenticated .fndconnect-support-card,
body.app-authenticated [class*="fndconnect-support"] {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 43, 95, 0.1) !important;
  background: #fff !important;
}

/* ── Page head less shouty when content has own hero ─────── */
body.app-authenticated .sc-page-head__summary {
  max-width: 36rem;
}

/* Reduce double-chrome: page head title is enough; content starts tight */
body.app-authenticated main.sc-app-main {
  padding-top: 1rem !important;
}

/* ── First steps ─────────────────────────────────────────── */
.product-first-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-first-steps-kicker {
  color: #c9005a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-first-steps h2 {
  margin: 0.2rem 0 0.35rem;
  color: #002b5f;
  font-size: 1.15rem;
  font-weight: 800;
}

.product-first-steps p {
  margin: 0;
  color: #5f6f84;
  max-width: 36rem;
}

.product-first-steps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* ── Mobile polish ───────────────────────────────────────── */
@media (max-width: 640px) {
  .sc-panel,
  body.app-authenticated .ov-card {
    padding: 1rem !important;
    border-radius: 12px !important;
  }

  .sc-page,
  .today-page-v2 {
    gap: 0.9rem;
  }

  .sc-status-row__cta {
    width: 100%;
    justify-content: center;
  }
}


/* Today: page-head already says Today — keep strip compact */
body.app-authenticated:has(.today-page-v2) .sc-page-head__summary {
  display: none;
}

/* ── Public product home: FND editorial rhythm ───────────── */
body.shell-public .public-content:has(.sc-home) {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}

body.shell-public .sc-home {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  color: var(--fnd-text);
}

body.shell-public .sc-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: min(690px, calc(100svh - 150px));
  margin: 0;
  padding: clamp(3rem, 7vw, 6.5rem) max(1rem, calc((100vw - var(--fnd-max)) / 2));
  border: 0;
  border-radius: 0;
  color: var(--fnd-white);
  background:
    radial-gradient(circle at 82% 24%, rgba(237, 43, 123, 0.22), transparent 30%),
    linear-gradient(135deg, var(--fnd-deep-navy), var(--fnd-navy) 62%, #103f72);
  box-shadow: none;
  overflow: hidden;
}

body.shell-public .sc-home-hero-copy {
  max-width: 42rem;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  animation: sc-rise-in 520ms var(--ease-out) both;
}

body.shell-public .sc-home-hero .page-kicker {
  margin-bottom: var(--space-5);
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #ffb7d4 !important;
  background: transparent !important;
}

body.shell-public .sc-home-hero h1 {
  max-width: 11ch;
  margin: 0 !important;
  color: var(--fnd-white) !important;
  font-family: var(--font-sans);
  font-size: clamp(2.7rem, 5.8vw, 5.4rem) !important;
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.055em !important;
  line-height: 0.98 !important;
  text-wrap: balance;
}

body.shell-public .sc-home-lead {
  max-width: 38rem;
  margin: var(--space-6) 0 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: clamp(1rem, 1.55vw, 1.2rem) !important;
  line-height: 1.65 !important;
}

body.shell-public .sc-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) !important;
  margin: var(--space-8) 0 0 !important;
}

body.shell-public .sc-home-actions .btn {
  min-height: 48px;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

body.shell-public .sc-home-actions .btn-primary {
  box-shadow: 0 8px 20px rgba(201, 0, 90, 0.28) !important;
}

body.shell-public .sc-home-actions .btn-outline-primary {
  color: var(--fnd-white) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  background: transparent !important;
}

body.shell-public .sc-home-actions .btn-outline-primary:hover {
  color: var(--fnd-navy) !important;
  background: var(--fnd-white) !important;
}

body.shell-public .sc-home-actions .btn-link {
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Inline account-entry and legal links need a non-colour cue. Their magenta
   accent is intentionally shared with surrounding muted copy, so colour alone
   is not sufficient to identify the link. Card-style links remain unlined. */
body.app-public :where(.auth-inline-link, .auth-consent-box, .auth-policy-links) a,
body.app-public .legal-back-link {
  text-decoration-line: underline !important;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

body.shell-public .sc-home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  margin: var(--space-8) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.74);
}

body.shell-public .sc-home-trust li {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

body.shell-public .sc-home-trust i {
  color: #ff7eb3;
}

body.shell-public .sc-home-preview {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  color: var(--fnd-white);
  background: rgba(0, 16, 40, 0.28);
  box-shadow: 0 18px 40px rgba(0, 10, 30, 0.22);
  backdrop-filter: blur(10px);
  animation: sc-rise-in 620ms 90ms var(--ease-out) both;
}

body.shell-public .sc-home-preview-head {
  display: block;
  padding: 0 0 var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fnd-white);
  background: transparent;
}

body.shell-public .sc-home-preview-kicker {
  color: #ff9bc5;
}

body.shell-public .sc-home-preview-head strong {
  display: block;
  margin-top: var(--space-2);
  color: var(--fnd-white);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

body.shell-public .sc-home-preview-badge {
  display: inline-block;
  margin-top: var(--space-3);
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
}

body.shell-public .sc-home-preview-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
}

body.shell-public .sc-home-preview-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

body.shell-public .sc-home-preview-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  color: #ff9bc5;
  background: rgba(255, 255, 255, 0.1);
  display: inline-grid;
  place-items: center;
}

body.shell-public .sc-home-preview-list strong {
  color: var(--fnd-white);
}

body.shell-public .sc-home-preview-list span {
  color: rgba(255, 255, 255, 0.72);
}

body.shell-public .sc-home-section,
body.shell-public .sc-home-ecosystem,
body.shell-public .sc-home-safety {
  width: min(100% - 2rem, var(--fnd-max));
  margin-inline: auto;
}

body.shell-public .sc-home-section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

body.shell-public .sc-home-section + .sc-home-section {
  border-top: 1px solid var(--fnd-border);
}

body.shell-public .sc-home-section-head {
  max-width: 46rem;
  margin-bottom: var(--space-10);
}

body.shell-public .sc-home-section-head h2 {
  margin: var(--space-3) 0 0;
  color: var(--fnd-navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}

body.shell-public .sc-home-section-head p {
  margin-top: var(--space-4);
  color: var(--fnd-muted);
  font-size: var(--text-lg);
}

body.shell-public .sc-home-path,
body.shell-public .sc-home-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.shell-public .sc-home-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.shell-public .sc-home-path-card,
body.shell-public .sc-home-feature-card {
  min-height: 100%;
  padding: var(--space-5) var(--space-5) var(--space-6);
  border: 1px solid var(--fnd-border);
  border-radius: var(--radius-lg);
  background: var(--fnd-white);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

body.shell-public .sc-home-path-card + .sc-home-path-card,
body.shell-public .sc-home-feature-card + .sc-home-feature-card {
  padding-left: var(--space-5);
}

body.shell-public .sc-home-path-card:hover,
body.shell-public .sc-home-feature-card:hover {
  border-color: color-mix(in srgb, var(--fnd-magenta) 35%, var(--fnd-border));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

body.shell-public .sc-home-path-num {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--fnd-magenta);
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
}

body.shell-public .sc-home-path-card strong,
body.shell-public .sc-home-feature-card h3 {
  color: var(--fnd-navy);
  font-size: var(--text-xl);
}

body.shell-public .sc-home-path-card p,
body.shell-public .sc-home-feature-card p {
  color: var(--fnd-muted);
}

body.shell-public .sc-home-ecosystem {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--fnd-border);
  border-radius: var(--radius-xl);
  color: var(--fnd-text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 251, 0.92));
  box-shadow: var(--shadow-sm);
}

body.shell-public .sc-home-ecosystem-kicker {
  color: var(--fnd-magenta);
}

body.shell-public .sc-home-ecosystem h2 {
  color: var(--fnd-navy);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

body.shell-public .sc-home-ecosystem p {
  color: var(--fnd-muted);
}

body.shell-public .sc-home-ecosystem .btn-outline-light {
  color: var(--fnd-navy);
  border-color: var(--fnd-navy);
}

body.shell-public .sc-home-ecosystem-link,
body.shell-public .sc-home-ecosystem-link:hover {
  color: var(--fnd-magenta) !important;
}

body.shell-public .sc-home-ecosystem-points {
  align-self: center;
  padding: var(--space-4);
  border: 1px solid var(--fnd-border);
  border-radius: var(--radius-lg);
  background: var(--fnd-white);
}

body.shell-public .sc-home-ecosystem-points li {
  border-color: var(--fnd-border);
  color: var(--fnd-text);
  background: transparent;
}

body.shell-public .sc-home-ecosystem-points i {
  color: var(--fnd-magenta);
}

body.shell-public .sc-home-safety {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-5);
  margin-block: var(--space-6);
  padding: var(--space-5) var(--space-6);
  border: 1px solid color-mix(in srgb, var(--fnd-warning) 28%, var(--fnd-border));
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fffdf5, #fff8e8);
  box-shadow: var(--shadow-xs);
}

body.shell-public .sc-home-safety p {
  margin: 0;
}

@keyframes sc-rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  body.shell-public .sc-home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.shell-public .sc-home-preview {
    padding: var(--space-5);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  body.shell-public .sc-home-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.shell-public .sc-home-features,
  body.shell-public .sc-home-ecosystem {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.shell-public .sc-home-hero {
    padding-block: var(--space-10);
  }

  body.shell-public .sc-home-hero h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem) !important;
  }

  body.shell-public .sc-home-actions,
  body.shell-public .sc-home-actions .btn {
    width: 100%;
  }

  body.shell-public .sc-home-trust {
    display: grid;
  }

  body.shell-public .sc-home-path,
  body.shell-public .sc-home-features {
    grid-template-columns: 1fr;
  }

  body.shell-public .sc-home-path-card + .sc-home-path-card,
  body.shell-public .sc-home-feature-card + .sc-home-feature-card {
    padding-left: 0;
  }

  body.shell-public .sc-home-safety {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.shell-public .sc-home-hero-copy,
  body.shell-public .sc-home-preview {
    animation: none;
  }

  body.shell-public .sc-home-path-card,
  body.shell-public .sc-home-feature-card {
    transition: none;
  }
}
/* History edit follows the same information order as the create flow. */
.history-edit-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.05rem 0.6rem;
  align-items: center;
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid #dfe6ee;
}

.history-edit-section > span {
  grid-row: 1 / span 2;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #002b5f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.history-edit-section strong {
  color: #002b5f;
  font-size: 0.92rem;
}

.history-edit-section small {
  color: #69798b;
  font-size: 0.75rem;
}

.history-edit-dialog select[multiple] {
  min-height: 7.5rem;
}
