/* Product overrides for SAMP theme when tokens are served from Asset Mapper.
   Watermark and illustrated plates live under public/images/samp/. */

[data-theme="samp"] {
  --rv-samp-watermark: url("/images/samp/icon-paw-ghost.svg");
  --rv-samp-auth-scene: url("/images/samp/scene-auth.jpg");
  --rv-samp-enroll-sky: url("/images/samp/scene-enroll-sky.webp");
  --rv-samp-header-scene: url("/images/samp/hero-dashboard-banner.webp");
}

[data-theme="samp"] {
  --td-font-sans: var(--rv-font-sans);
  --td-font-display: var(--rv-font-display);
  --td-color-primary: var(--rv-color-primary);
  --td-color-primary-hover: var(--rv-color-primary-hover);
  --td-color-primary-active: var(--rv-color-primary-active);
  --td-color-primary-soft: var(--rv-color-primary-soft);
  --td-color-accent: var(--rv-color-accent);
  --td-color-accent-soft: var(--rv-color-accent-soft);
  --td-color-success: var(--rv-color-success);
  --td-color-success-soft: var(--rv-color-success-soft);
  --td-color-danger: var(--rv-color-danger);
  --td-color-danger-soft: var(--rv-color-danger-soft);
  --td-color-warning: var(--rv-color-warning);
  --td-color-warning-soft: var(--rv-color-warning-soft);
  --td-color-info: var(--rv-color-info);
  --td-color-info-soft: var(--rv-color-info-soft);
  --td-color-surface: var(--rv-color-surface);
  --td-color-surface-muted: var(--rv-color-surface-muted);
  --td-color-surface-hover: var(--rv-color-surface-hover);
  --td-color-border: var(--rv-color-border);
  --td-color-border-strong: var(--rv-color-border-strong);
  --td-color-text: var(--rv-color-text);
  --td-color-text-muted: var(--rv-color-text-muted);
  --td-color-text-subtle: var(--rv-color-text-subtle);
  --td-color-on-primary: var(--rv-color-primary-contrast);
  --td-sidebar-bg: var(--rv-sidebar-bg);
  --td-sidebar-bg-gradient: var(--rv-sidebar-bg-gradient);
  --td-sidebar-width: var(--rv-sidebar-width);
  --td-sidebar-text: var(--rv-sidebar-text);
  --td-sidebar-text-active: var(--rv-sidebar-text-active);
  --td-sidebar-active: var(--rv-sidebar-active);
  --td-sidebar-active-border: var(--rv-sidebar-active-border);
  --td-sidebar-border: var(--rv-sidebar-border);
  --td-sidebar-section: var(--rv-sidebar-section);
  --td-radius-sm: var(--rv-radius-sm);
  --td-radius-md: var(--rv-radius-md);
  --td-radius-lg: var(--rv-radius-lg);
  --td-radius-xl: var(--rv-radius-xl);
  --td-shadow-sm: var(--rv-shadow-sm);
  --td-shadow-md: var(--rv-shadow-md);
  --td-shadow-lg: var(--rv-shadow-lg);
  --td-focus-ring: var(--rv-focus-ring);
}

/* JS-bound domain widgets still use td-* class names in enrollment/search JS. */
.td-field { display: grid; gap: 0.35rem; }
.td-field__label { font-size: var(--rv-font-size-sm); font-weight: 600; }
.td-input, .td-textarea, .td-select {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--rv-color-border);
  border-radius: var(--rv-radius-md);
  background: var(--rv-color-surface);
  color: var(--rv-color-text);
  font: inherit;
}

.td-badge,
.rv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--rv-radius-pill);
  font-size: var(--rv-font-size-xs);
  font-weight: 700;
}
.td-badge--ok, .rv-badge--ok { background: var(--rv-color-success-soft); color: var(--rv-color-success); }
.td-badge--warn, .rv-badge--warn { background: var(--rv-color-warning-soft); color: var(--rv-color-warning); }
.td-badge--danger, .rv-badge--danger { background: var(--rv-color-danger-soft); color: var(--rv-color-danger); }
.td-badge--info, .rv-badge--info { background: var(--rv-color-info-soft); color: var(--rv-color-info); }
.td-badge--muted, .rv-badge--muted { background: var(--rv-color-surface-muted); color: var(--rv-color-text-muted); }
.rv-alert--error { background: var(--rv-color-danger-soft); color: var(--rv-color-danger); }

.rv-empty__image { width: 4.5rem; height: 4.5rem; object-fit: contain; opacity: 0.85; }

.rv-auth__lang .rv-topbar__lang { box-shadow: none; }

.rv-public .rv-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: var(--rv-color-on-dark);
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.rv-public .rv-hero__media { position: absolute; inset: 0; z-index: 0; }
.rv-public .rv-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-public .rv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgb(18 48 56 / 78%) 0%, rgb(18 48 56 / 35%) 55%, rgb(18 48 56 / 15%) 100%);
}
.rv-public .rv-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 5rem);
}
.rv-public .rv-hero__title { color: #fff; }
.rv-public .rv-hero__lead { color: rgb(255 255 255 / 88%); }
.rv-public .rv-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rv-public .rv-hero__cta .rv-btn--secondary {
  background: rgb(255 255 255 / 14%);
  color: #fff;
  border-color: rgb(255 255 255 / 35%);
}

@media (max-width: 61.99rem) {
  .rv-app-shell { grid-template-columns: 1fr; }
  .rv-sidebar { display: none; }
  .rv-topbar__menu { display: inline-grid; place-items: center; }
}

/* ===== SAMP composition (illustrated auth / dashboard board / enrollment page) ===== */
.rv-badge--muted { background: var(--rv-color-surface-muted); color: var(--rv-color-text-muted); }
.rv-page-header__actions { display: flex; flex-wrap: wrap; gap: var(--rv-space-2); }
.rv-table__actions { text-align: right; white-space: nowrap; }
.rv-nav-item--child { padding-left: 1.75rem; font-weight: 500; }
.rv-demo-banner {
  text-align: center;
  font-size: var(--rv-font-size-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem;
  background: var(--rv-color-accent-soft);
  color: var(--rv-color-text);
  border-bottom: 1px solid var(--rv-color-border);
}
.rv-drawer.is-open { display: block; }
.rv-drawer[hidden] { display: none !important; }
.rv-topbar__menu {
  display: none;
  border: 0;
  background: var(--rv-color-surface);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--rv-radius-md);
  cursor: pointer;
}
.rv-topbar__lang {
  display: inline-flex;
  border-radius: var(--rv-radius-pill);
  overflow: hidden;
  background: var(--rv-color-surface);
  box-shadow: var(--rv-shadow-sm);
}
.rv-topbar__lang button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--rv-color-text-muted);
}
.rv-topbar__lang button[aria-pressed="true"],
.rv-topbar__lang button.is-active {
  background: var(--rv-color-primary);
  color: var(--rv-color-primary-contrast);
}
.rv-topbar__meta { display: flex; flex-direction: column; line-height: 1.2; }
.rv-topbar__meta strong,
.rv-topbar__name { font-size: 0.85rem; }
.rv-topbar__meta span,
.rv-topbar__role { font-size: 0.7rem; color: var(--rv-color-text-muted); }
.rv-brand__logo { display: block; height: auto; max-width: 100%; }

/* ===== SAMP composition (illustrated auth / dashboard board / enrollment page) ===== */
.rv-auth__scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--rv-samp-auth-fallback, var(--rv-color-info-soft)) var(--rv-samp-auth-scene, none) center / cover no-repeat;
}
.rv-auth__scene img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
}
.rv-auth__logo img { width: 11.75rem; height: auto; display: block; max-width: none; }
.rv-auth__features { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.rv-auth__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 5.2rem;
  text-align: center;
}
.rv-auth__feature-icon {
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rv-color-surface);
  box-shadow: var(--rv-shadow-sm);
}
.rv-auth__feature-icon img { width: 1.5rem; height: 1.5rem; }
.rv-auth__feature span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-color-text);
  line-height: 1.2;
}
.rv-auth__slogan {
  margin: 0.15rem 0 0;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.12;
  max-width: 22rem;
  text-align: center;
}
.rv-auth__slogan .line-1,
.rv-auth__slogan .line-2,
.rv-auth__slogan .line-3 { display: block; white-space: nowrap; }
.rv-auth__lang {
  position: fixed;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 20;
}
.rv-input-wrap { position: relative; display: flex; align-items: center; }
.rv-input-wrap .rv-input { padding-left: 2.45rem; width: 100%; height: 2.65rem; }
.rv-input-wrap:has(.rv-input-wrap__eye) .rv-input { padding-right: 2.45rem; }
.rv-input-wrap__icon {
  position: absolute;
  left: 0.8rem;
  color: var(--rv-color-text-subtle);
  pointer-events: none;
}
.rv-input-wrap__eye {
  position: absolute;
  right: 0.7rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--rv-color-text-subtle);
}
.rv-auth-demo {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rv-color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.rv-auth-demo__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-color-text-subtle);
}
.rv-auth-demo__creds { margin: 0.15rem 0 0; font-weight: 700; }
.rv-auth-card__title-mobile,
.rv-auth-card__lead-mobile,
.rv-auth-card__forgot,
.rv-auth__mobile-dogs { display: none; }

.rv-hero--banner {
  position: relative;
  width: 100%;
  height: 15.75rem;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  background: transparent;
  color: var(--rv-color-text);
}
.rv-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
.rv-hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 90% 38%;
}
.rv-welcome {
  position: relative;
  z-index: 2;
  padding: 0.35rem 1.5rem 4.4rem 5.1rem;
  max-width: 26rem;
}
.rv-welcome h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rv-welcome p { margin: 0.2rem 0 0; font-weight: 600; color: var(--rv-color-text-muted); }

.rv-dash-board {
  background: color-mix(in srgb, var(--rv-color-surface) 94%, transparent);
  border-radius: 1.5rem;
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: var(--rv-shadow-md);
}
.rv-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.rv-kpi-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 1.35rem;
  text-decoration: none;
  color: inherit;
  min-height: 3.55rem;
  background: var(--rv-color-surface-muted);
}
.rv-kpi-chip__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--rv-color-surface) 70%, transparent);
}
.rv-kpi-chip__icon img { width: 1.15rem; height: 1.15rem; }
.rv-kpi-chip__value { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.rv-kpi-chip__label { margin: 0.15rem 0 0; font-size: 0.72rem; font-weight: 600; color: var(--rv-color-text-muted); }
.rv-kpi-chip__go { margin-left: auto; color: var(--rv-color-text-subtle); font-weight: 700; }
.rv-dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.95fr);
  gap: 1rem;
}
.rv-panel {
  background: var(--rv-color-surface);
  border: 0;
  border-radius: 1.1rem;
  box-shadow: none;
  margin: 0;
}
.rv-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.35rem 0.65rem;
}
.rv-panel__head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.rv-panel__head a { font-size: 0.85rem; font-weight: 700; color: var(--rv-color-primary); text-decoration: none; }
.rv-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.rv-action-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.95rem 1.1rem;
  border-radius: 1.05rem;
  text-decoration: none;
  color: var(--rv-color-text);
  min-height: 7.25rem;
  position: relative;
  background: var(--rv-color-surface-muted);
}
.rv-action-tile h3 { margin: 0.45rem 0 0; font-size: 0.95rem; font-weight: 800; }
.rv-action-tile p { margin: 0; font-size: 0.75rem; color: var(--rv-color-text-muted); max-width: 9.5rem; }
.rv-action-tile__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--rv-color-surface) 75%, transparent);
}
.rv-action-tile__icon img { width: 1.2rem; height: 1.2rem; }
.rv-action-tile__go {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--rv-color-surface) 70%, transparent);
  color: var(--rv-color-text-muted);
  font-weight: 700;
}

.rv-enroll-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.rv-enroll-page__head {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--rv-page-head-gap, 1rem);
}
.rv-enroll-page__head h1 { margin: 0; font-size: 1.55rem; font-weight: 800; line-height: 1.2; }
.rv-enroll-page__head p { margin: 0.3rem 0 0; color: var(--rv-color-text-muted); font-size: 0.9rem; }
.rv-enroll-page__actions { display: flex; flex-shrink: 0; gap: 0.5rem; }
.rv-owner-step__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.rv-owner-step__title h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.rv-owner-step__title p { margin: 0.15rem 0 0; color: var(--rv-color-text-muted); font-size: 0.9rem; }

.rv-public__nav-actions { display: flex; align-items: center; gap: var(--rv-space-3); flex-wrap: wrap; }
.rv-public__footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rv-space-6);
  justify-content: space-between;
}
.rv-public__footer-nav { display: flex; gap: var(--rv-space-8); flex-wrap: wrap; }
.rv-public__footer-column { display: grid; gap: var(--rv-space-2); }
.rv-public__footer-column h2 { margin: 0 0 var(--rv-space-2); font-size: var(--rv-font-size-sm); }
.rv-public__footer-column a { color: var(--rv-color-text); text-decoration: none; font-size: var(--rv-font-size-sm); }
.rv-public__footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--rv-space-3);
  flex-wrap: wrap;
  margin-top: var(--rv-space-6);
  font-size: var(--rv-font-size-xs);
  color: var(--rv-color-text-muted);
}

@media (max-width: 64rem) {
  .rv-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-dash-split { grid-template-columns: 1fr; }

  [data-theme="samp"] .rv-dash-split > .rv-panel + .rv-panel {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e4f0ea;
    padding-top: 1.15rem;
  }
}

@media (max-width: 48rem) {
  .rv-app-shell { grid-template-columns: 1fr; }
  .rv-sidebar { display: none; }
  .rv-topbar__menu { display: inline-grid; place-items: center; }
  .rv-auth__features,
  .rv-auth__slogan,
  .rv-auth-card__lead,
  .rv-auth-demo,
  .rv-auth-card__footer,
  .rv-auth-card__title-desktop { display: none !important; }
  .rv-auth-card__title-mobile,
  .rv-auth-card__lead-mobile,
  .rv-auth-card__forgot { display: block !important; }
  .rv-auth__mobile-dogs {
    display: block !important;
    width: calc(100% - 1.5rem);
    margin: 1rem auto 0;
    border-radius: 1.25rem 1.25rem 0 0;
    object-fit: cover;
    object-position: center 70%;
    max-height: 16rem;
  }
  .rv-choice-grid { grid-template-columns: 1fr; }
}

/* Product: leftover app.css img/link rules must not blow up SAMP chrome */
[data-theme="samp"] .rv-auth__scene img,
[data-theme="samp"] .rv-hero__art img,
[data-theme="samp"] .rv-sidebar__brand img {
  max-width: none;
}
[data-theme="samp"] a.rv-kpi-chip:hover,
[data-theme="samp"] a.rv-action-tile:hover,
[data-theme="samp"] a.rv-brand:hover {
  text-decoration: none;
  color: inherit;
}
[data-theme="samp"] a.rv-btn:hover {
  text-decoration: none;
}
[data-theme="samp"] body.rv-auth-body {
  overflow: hidden;
}

/* Role gold/orange (platform admin) must not recast leftover td-* enrollment tokens. */
html[data-theme="samp"] body[data-role] {
  --td-color-primary: var(--rv-color-primary);
  --td-color-primary-hover: var(--rv-color-primary-hover);
  --td-color-primary-active: var(--rv-color-primary-active);
  --td-color-primary-soft: var(--rv-color-primary-soft);
  --td-color-primary-muted: #5aa89a;
  --td-focus-ring: var(--rv-focus-ring);
}

/* Enrollment: mint sky + fit one screen, no page scroll */
html[data-theme="samp"] body.rv-enroll-body {
  height: 100vh;
  overflow: hidden;
}

html[data-theme="samp"] body.rv-enroll-body .rv-app-shell {
  height: 100vh;
  min-height: 0;
  overflow: visible;
}

html[data-theme="samp"] body.rv-enroll-body .rv-shell-main {
  min-height: 0;
  overflow: hidden;
}

html[data-theme="samp"] body.rv-enroll-body .rv-topbar {
  flex-shrink: 0;
}

html[data-theme="samp"] body.rv-enroll-body .rv-main {
  overflow: hidden;
}

html[data-theme="samp"] body.rv-enroll-body .rv-enroll-page {
  flex: 1;
  overflow: hidden;
}

html[data-theme="samp"] body.rv-enroll-body .rv-enroll-page__head > div:first-child {
  min-width: 0;
  flex: 1;
}

/* Page card is already on .rv-main — wizard/search must not draw a second card. */
html[data-theme="samp"] .rv-main .td-enrollment-shell,
html[data-theme="samp"] .rv-main .td-search-widget {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

html[data-theme="samp"] .rv-main .td-search-explicit,
html[data-theme="samp"] .rv-main .td-search-explicit--open {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-wizard-shell {
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  min-height: 0;
}

html[data-theme="samp"] .rv-main--wizard {
  overflow: hidden;
}

html[data-theme="samp"] .rv-main--wizard .td-enrollment-step {
  padding: 0;
}

html[data-theme="samp"] .rv-main--wizard .td-search-wizard.td-dog-form,
html[data-theme="samp"] .rv-main--wizard .td-enrollment-shell.td-dog-form {
  gap: 0;
}

html[data-theme="samp"] .rv-main--wizard .td-search-wizard__choices-stage {
  padding: 0;
}

html[data-theme="samp"] .rv-main--wizard .td-enrollment-owner-columns {
  margin: 0;
}

html[data-theme="samp"] .rv-main--wizard .td-enrollment-shell__rail {
  padding: 0 1rem 0 0;
}

html[data-theme="samp"] .rv-main--wizard .td-enrollment-step__header,
html[data-theme="samp"] .rv-enroll-page .td-enrollment-step__header,
html[data-theme="samp"] .rv-enroll-page .rv-owner-step__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[data-theme="samp"] body.rv-enroll-body .td-enrollment-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

html[data-theme="samp"] body.rv-enroll-body .td-enrollment-shell__layout {
  min-height: 0;
}

html[data-theme="samp"] body.rv-enroll-body .td-enrollment-step {
  padding: 0.35rem 0.25rem 0.4rem;
}

html[data-theme="samp"] body.rv-enroll-body .td-enrollment-shell__footer {
  padding: 0.55rem 1.1rem;
}

html[data-theme="samp"] body.rv-enroll-body .td-enrollment-shell__rail {
  padding: 0.85rem 0.75rem;
}

/* Sidebar + dashboard chips: stop the skinny-pill / crushed-tile look */
[data-theme="samp"] {
  --rv-sidebar-width: 16.5rem;
  --rv-content-offset: 5.9rem;
}

[data-theme="samp"] .rv-sidebar {
  min-width: var(--rv-sidebar-width);
  overflow: visible;
}

[data-theme="samp"] .rv-sidebar__brand {
  padding: 0.85rem 0.4rem 0.85rem 0.55rem;
  overflow: visible;
}

[data-theme="samp"] .rv-sidebar__brand img {
  width: 20rem;
  max-width: none;
}

[data-theme="samp"] .rv-sidebar__nav {
  padding: 0.45rem 0.85rem 0.5rem;
  gap: 0.28rem;
}

[data-theme="samp"] .rv-sidebar__panel {
  background-color: #f4fdf8;
  background-image:
    var(--rv-samp-watermark),
    var(--rv-samp-watermark),
    var(--rv-samp-watermark),
    linear-gradient(180deg, #f7fefb 0%, #e8f8f0 100%);
}

[data-theme="samp"] .rv-nav-item {
  min-height: 2.65rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.7rem;
  color: #1c8a7c;
  background: rgb(255 255 255 / 72%);
  box-shadow: none;
}

[data-theme="samp"] .rv-nav-item img {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0.38rem;
  box-sizing: content-box;
  border-radius: 50%;
  background: #dff6e8;
}

[data-theme="samp"] .rv-sidebar__nav > a:nth-of-type(5n+2) img { background: #dceefc; }
[data-theme="samp"] .rv-sidebar__nav > a:nth-of-type(5n+3) img { background: #fff3c9; }
[data-theme="samp"] .rv-sidebar__nav > a:nth-of-type(5n+4) img { background: #ffd9e0; }
[data-theme="samp"] .rv-sidebar__nav > a:nth-of-type(5n+5) img { background: #ece4ff; }

[data-theme="samp"] a.rv-nav-item:hover {
  background: #d8f6e8;
  color: #0d7a7c;
  text-decoration: none;
}

[data-theme="samp"] .rv-nav-item[aria-current="page"] {
  background: #9ee8c2;
  color: #0b6b58;
  box-shadow: 0 4px 14px rgb(14 122 108 / 18%);
}

[data-theme="samp"] .rv-sidebar__section {
  margin: 0.85rem 1rem 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #3aa392;
}

[data-theme="samp"] .rv-sidebar__footer {
  color: #3aa392;
  opacity: 0.85;
}

[data-theme="samp"] .rv-kpi-row {
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.85rem;
}

[data-theme="samp"] .rv-kpi-chip {
  min-height: 4.5rem;
  padding: 0.8rem 1rem;
  gap: 0.75rem;
  border-radius: 1.2rem;
}

[data-theme="samp"] .rv-kpi-chip__icon {
  width: 2.65rem;
  height: 2.65rem;
}

[data-theme="samp"] .rv-kpi-chip__icon img {
  width: 1.4rem;
  height: 1.4rem;
}

[data-theme="samp"] .rv-kpi-chip__value {
  font-size: 1.6rem;
}

[data-theme="samp"] .rv-kpi-chip__label {
  font-size: 0.82rem;
}

[data-theme="samp"] .rv-action-tile {
  min-height: 8.25rem;
  padding: 1.15rem 1.1rem 1.25rem;
}

[data-theme="samp"] .rv-shell-main {
  position: relative;
}

[data-theme="samp"] .rv-shell-main::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: var(--rv-content-offset);
  background: var(--rv-samp-header-scene) 90% 38% / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

[data-theme="samp"] .rv-shell-main:has(.rv-hero)::before {
  content: none;
}

[data-theme="samp"] .rv-topbar--overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 12;
  height: auto;
  min-height: 0;
  background: transparent;
  border: 0;
  padding: 1.05rem 1.15rem 0;
  align-items: center;
  pointer-events: none;
}

[data-theme="samp"] .rv-topbar--overlay > * {
  pointer-events: auto;
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: var(--rv-content-offset) var(--rv-page-gutter-x) var(--rv-page-gutter-bottom);
  padding: var(--rv-page-card-padding-y) var(--rv-page-card-padding-x) var(--rv-page-card-padding-bottom);
  background: var(--rv-page-card-bg);
  border-radius: var(--rv-page-card-radius);
  box-shadow: var(--rv-page-card-shadow);
}

[data-theme="samp"] .rv-page-header {
  flex-shrink: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--rv-page-head-gap);
}

[data-theme="samp"] .rv-page-header h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
}

[data-theme="samp"] .rv-page-header p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}

[data-theme="samp"] .rv-page-header__actions {
  flex-shrink: 0;
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-toolbar,
[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-filter-bar {
  margin: 0 0 var(--rv-page-head-gap);
  padding: 0;
  background: transparent;
  border: 0;
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-card:not(.rv-card--kpi-link) {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-card + .rv-card {
  margin-top: var(--rv-page-head-gap);
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-card__title {
  margin: 0 0 var(--rv-page-head-gap);
  font-size: 1.05rem;
  font-weight: 800;
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-pagination {
  margin-top: var(--rv-page-head-gap);
}

[data-theme="samp"] .rv-main:not(.rv-main--dashboard) .rv-empty {
  padding: var(--rv-page-card-padding-y) 0;
}

[data-theme="samp"] .rv-dash-board {
  background: var(--rv-page-card-bg);
  border-radius: var(--rv-page-card-radius);
  box-shadow: var(--rv-page-card-shadow);
  padding: var(--rv-page-card-padding-y) var(--rv-page-card-padding-x) var(--rv-page-card-padding-bottom);
}

[data-theme="samp"] .rv-dash-split {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  gap: 1.35rem;
}

[data-theme="samp"] .rv-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

[data-theme="samp"] .rv-panel__head {
  padding: 0 0 var(--rv-page-head-gap);
}

[data-theme="samp"] .rv-dash-split > .rv-panel + .rv-panel {
  border-left: 1px solid #e4f0ea;
  padding-left: 1.25rem;
}

[data-theme="samp"] .rv-card--kpi-link {
  padding: var(--rv-page-card-padding-y) var(--rv-page-card-padding-x);
  border-radius: var(--rv-page-card-radius);
  border: 0;
  box-shadow: none;
}

.rv-chrome-menus {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.rv-chrome-menu {
  position: relative;
}

.rv-chrome-menu > summary {
  list-style: none;
}

.rv-chrome-menu > summary::-webkit-details-marker {
  display: none;
}

.rv-chrome-menu__btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0d7a7c;
  box-shadow: 0 4px 14px rgb(18 48 56 / 12%);
  cursor: pointer;
}

.rv-chrome-menu__btn:hover,
.rv-chrome-menu[open] > .rv-chrome-menu__btn {
  background: #d8f6e8;
}

.rv-chrome-menu__panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  min-width: 11.5rem;
  padding: 0.4rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 12px 32px rgb(18 48 56 / 16%);
}

.rv-chrome-menu__name,
.rv-chrome-menu__role {
  margin: 0;
  padding: 0.35rem 0.65rem 0;
}

.rv-chrome-menu__name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #123038;
}

.rv-chrome-menu__role {
  padding-bottom: 0.4rem;
  font-size: 0.72rem;
  color: var(--rv-color-text-muted);
}

.rv-chrome-menu__item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: #1c8a7c;
  cursor: pointer;
  text-decoration: none;
}

.rv-chrome-menu__item:hover,
.rv-chrome-menu__item.is-active {
  background: #e8f8f0;
  color: #0b6b58;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth__lang {
  position: fixed;
  top: 1.15rem;
  right: 1.5rem;
  z-index: 20;
  display: block;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

/* Enrollment / search v2: same page-card padding as every other screen. */
html[data-theme="samp"] .rv-main.rv-main--wizard:not(.rv-main--dashboard) {
  overflow: hidden;
}

html[data-theme="samp"] .rv-main .td-enrollment-shell {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: hidden;
  min-height: 0 !important;
  height: auto;
}

html[data-theme="samp"] .rv-main--wizard .td-enrollment-shell__rail,
html[data-theme="samp"] body.rv-enroll-body .td-enrollment-shell__rail {
  background: #f3faf6;
  border-right: 1px solid #e4f0ea;
  border-radius: 0;
}

html[data-theme="samp"] .rv-main--wizard .td-enrollment-shell__footer,
html[data-theme="samp"] body.rv-enroll-body .td-enrollment-shell__footer {
  background: transparent;
  border-top: 1px solid #e4f0ea;
  box-shadow: none;
  border-radius: 0;
  padding: 0.75rem 0 0;
  margin-top: auto;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  place-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  margin: 0;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 20.5rem auto 27rem;
  width: min(49.5rem, 94vw);
  max-width: 49.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
}

html[data-theme="samp"] body.rv-auth-body:has([data-owner-register]) .rv-auth-card {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 3rem auto;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth-card__panel {
  width: 27rem;
  max-width: 27rem;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth-card .rv-input,
html[data-theme="samp"] body.rv-auth-body .rv-auth-card .rv-input-wrap .rv-input {
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 2.6rem;
  border-radius: 0.85rem;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth-card .rv-input-wrap:has(.rv-input-wrap__eye) .rv-input {
  padding-right: 2.6rem;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth-card__brand .rv-auth__logo img {
  width: 100%;
  max-width: none;
  height: auto;
}

html[data-theme="samp"] body.rv-auth-body .rv-auth-card__brand .rv-auth__slogan {
  margin: 0.15rem 0 0;
  text-align: center;
  max-width: none;
  width: 100%;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

@media (max-width: 48rem) {
  html[data-theme="samp"] body.rv-auth-body .rv-auth {
    display: flex;
    padding: 4.25rem 0.75rem 1.25rem;
  }

  html[data-theme="samp"] body.rv-auth-body .rv-auth-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    width: calc(100% - 0.5rem);
    min-width: 0;
    max-width: none;
    margin: 0 auto;
  }

  html[data-theme="samp"] body.rv-auth-body .rv-auth-card__panel {
    width: 100%;
    max-width: none;
  }
}

/* Public marketing: compact SAMP mark, language pills, footer grid */
html[data-theme="samp"] body.rv-public-body .rv-public__nav {
  position: sticky;
  top: 0;
  z-index: 30;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

html[data-theme="samp"] body.rv-public-body .rv-public__nav .rv-brand__logo {
  width: auto;
  height: 3.15rem;
  max-width: 7.5rem;
  object-fit: contain;
}

html[data-theme="samp"] body.rv-public-body .rv-public__nav-links {
  display: none;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  html[data-theme="samp"] body.rv-public-body .rv-public__nav-links {
    display: flex;
  }
}

html[data-theme="samp"] body.rv-public-body .rv-public__nav-actions {
  flex-shrink: 0;
  flex-wrap: nowrap;
}

html[data-theme="samp"] body.rv-public-body .rv-hero__brand img {
  display: block;
  height: 6.75rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer {
  padding: 0;
  background: #fff;
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-inner {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-logo img {
  display: block;
  height: 5.75rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-brand p {
  margin: 1.15rem 0 0;
  max-width: 26rem;
  color: var(--rv-color-text-muted);
  line-height: 1.7;
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 4rem);
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-column h2 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-color-text);
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-column a {
  color: var(--rv-color-text-muted);
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-column a:hover {
  color: var(--rv-color-primary);
}

html[data-theme="samp"] body.rv-public-body .rv-public__footer-bottom {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  border-top: 1px solid var(--rv-color-border);
}

@media (max-width: 47.99rem) {
  html[data-theme="samp"] body.rv-public-body .rv-public__footer-inner {
    grid-template-columns: 1fr;
  }
}

