/**
 * RetireSmart Health — design tokens (from auth mockups).
 * Use var(--rs-*) in CSS; Tailwind theme extension maps these in layouts.
 * Prefer this over Gulp/LESS — Workers serve static CSS from /public with no build step.
 */
:root {
  /* Brand */
  --rs-primary: #b09b84;
  --rs-primary-hover: #9e8a74;
  --rs-primary-muted: #c4b3a0;
  --rs-secondary: #4a5d54;
  --rs-secondary-soft: #556b60;

  /* Surfaces */
  --rs-bg: #f9f7f2;
  --rs-bg-card: #ffffff;
  --rs-bg-input: #f4f7fb;
  --rs-bg-input-alt: #f5f5f5;

  /* Text */
  --rs-text: #2e2e2e;
  --rs-text-muted: #757575;
  --rs-text-placeholder: #a0a0a0;
  --rs-text-on-primary: #ffffff;
  --rs-text-on-dark: #ffffff;

  /* Borders / lines */
  --rs-border: #e0e0e0;
  --rs-border-soft: #ebebeb;
  --rs-divider: #e8e8e8;

  /* Feedback */
  --rs-danger: #e02020;
  --rs-success: #58b39e;
  --rs-info-bg: #f0f7f4;
  --rs-error-bg: #fef2f2;
  --rs-error-border: #fecaca;
  --rs-error-text: #991b1b;

  /* Radius */
  --rs-radius-sm: 8px;
  --rs-radius-md: 12px;
  --rs-radius-lg: 24px;
  --rs-radius-xl: 32px;
  --rs-radius-pill: 9999px;

  /* Shadow */
  --rs-shadow-card: 0 8px 32px rgba(46, 46, 46, 0.06);

  /* Type — system UI stack only (no Google Fonts).
     Many users reach the site from mainland China; fonts.gstatic.com is often
     blocked/slow. Prefer OS CJK fonts shipped on the device. */
  --rs-font:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang TC',
    'PingFang SC',
    'Hiragino Sans GB',
    'Microsoft JhengHei',
    'Microsoft YaHei UI',
    'Microsoft YaHei',
    'Noto Sans CJK TC',
    'Noto Sans CJK SC',
    'Source Han Sans TC',
    'WenQuanYi Micro Hei',
    'Helvetica Neue',
    Arial,
    sans-serif;
  --rs-font-display: var(--rs-font);

  /* Spacing */
  --rs-auth-pad: 1.75rem;
  --rs-space-field: 1.125rem;
}

@media (min-width: 640px) {
  :root {
    --rs-auth-pad: 2.5rem;
    --rs-space-field: 1.25rem;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
}

/* ---------- Auth shell ---------- */
.rs-auth {
  margin: 0;
  padding: 0;
  min-height: 100dvh;
  background: var(--rs-bg);
  color: var(--rs-text);
  font-family: var(--rs-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.rs-auth__grid {
  display: grid;
  min-height: 100dvh;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    'lang'
    'hero'
    'form';
}

@media (min-width: 769px) {
  .rs-auth__grid {
    grid-template-columns: minmax(280px, 42%) 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      'hero lang'
      'hero form';
  }
}

.rs-auth__lang-wrap {
  grid-area: lang;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.875rem, env(safe-area-inset-right, 0px))
    0.25rem max(0.875rem, env(safe-area-inset-left, 0px));
}

@media (min-width: 769px) {
  .rs-auth__lang-wrap {
    padding: 1.25rem 2.5rem 0;
    align-self: start;
  }
}

.rs-auth__hero-col {
  grid-area: hero;
  display: block;
  padding: 0.5rem 0.75rem 0;
  height: clamp(140px, 28vw, 200px);
}

@media (min-width: 769px) {
  .rs-auth__hero-col {
    position: sticky;
    top: 0;
    align-self: start;
    /* Include padding inside the viewport height — avoids page scrollbar */
    height: 100dvh;
    padding: 1.25rem;
  }
}

.rs-auth__form-col {
  grid-area: form;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.5rem 0.875rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  padding-left: max(0.875rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.875rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .rs-auth__form-col {
    padding: 0.75rem 1.25rem 2rem;
  }
}

@media (min-width: 769px) {
  .rs-auth__form-col {
    min-height: 0;
    padding: 0.5rem 2.5rem 2.5rem;
  }
}

.rs-auth__lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--rs-text-muted);
  margin: 0;
  min-height: 2.25rem;
}

.rs-auth__lang a {
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0.35rem;
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
}

.rs-auth__lang a[aria-current='true'] {
  color: var(--rs-text);
  font-weight: 600;
  border-bottom: 1.5px solid var(--rs-text);
}

.rs-auth__lang-sep {
  opacity: 0.45;
  user-select: none;
}

.rs-auth__center {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding-bottom: 0.5rem;
}

@media (min-width: 769px) {
  .rs-auth__center {
    align-items: center;
  }
}

.rs-auth__center--top {
  align-items: flex-start;
  padding-top: 0.25rem;
}

@media (min-width: 769px) {
  .rs-auth__center--top {
    padding-top: 0.5rem;
  }
}

/* ---------- Hero panel ---------- */
.rs-hero {
  position: relative;
  height: 100%;
  width: 100%;
  border-radius: var(--rs-radius-md);
  overflow: hidden;
  background: var(--rs-secondary);
}

@media (min-width: 769px) {
  .rs-hero {
    border-radius: var(--rs-radius-lg);
  }
}

.rs-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.rs-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.rs-hero__band {
  position: relative;
  background: var(--rs-primary);
  color: var(--rs-text-on-primary);
  padding: 1rem 1rem 1.35rem;
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 769px) {
  .rs-hero__band {
    padding: 1.75rem 1.5rem 2.25rem;
  }
}

.rs-hero__band::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  height: 44px;
  background: var(--rs-secondary);
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

@media (min-width: 769px) {
  .rs-hero__band::before {
    top: -28px;
    height: 56px;
  }
}

.rs-hero__title {
  position: relative;
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  max-width: 14em;
}

.rs-hero__dots {
  position: absolute;
  right: 1rem;
  bottom: 0.65rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

@media (min-width: 769px) {
  .rs-hero__dots {
    right: 1.25rem;
    bottom: 1rem;
  }
}

.rs-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
}

.rs-hero__dot[aria-current='true'] {
  background: #fff;
}

/* ---------- Card / form ---------- */
.rs-card {
  width: 100%;
  max-width: 420px;
  background: var(--rs-bg-card);
  border-radius: var(--rs-radius-lg);
  box-shadow: var(--rs-shadow-card);
  padding: var(--rs-auth-pad) clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
}

.rs-card--wide {
  max-width: 100%; /* 440px; */
  padding: var(--rs-auth-pad) clamp(1rem, 4vw, 1.75rem);
}

.rs-card__title {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 700;
  color: var(--rs-text);
  letter-spacing: -0.01em;
}

.rs-card__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--rs-text-muted);
  line-height: 1.5;
}

.rs-card__subtitle-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.rs-card__subtitle-row .rs-card__subtitle {
  margin: 0;
}

.rs-card__req-legend {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rs-danger);
  line-height: 1.5;
  white-space: nowrap;
  flex-shrink: 0;
}

.rs-card__req-legend .rs-field__req {
  margin-left: 0;
}

.rs-card__section {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rs-text);
}

.rs-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--rs-space-field);
}

.rs-field__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.rs-field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rs-text);
}

.rs-field__req {
  color: var(--rs-danger);
  margin-left: 0.15rem;
}

.rs-field__hint-err {
  font-size: 0.75rem;
  color: var(--rs-danger);
}

.rs-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.rs-field__icon {
  position: absolute;
  left: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--rs-text-muted);
  pointer-events: none;
}

.rs-field__toggle {
  position: absolute;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--rs-text-muted);
  cursor: pointer;
  border-radius: var(--rs-radius-pill);
}

.rs-field__toggle:hover {
  color: var(--rs-text);
}

.rs-input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--rs-border);
  background: #fff;
  color: var(--rs-text);
  font: inherit;
  /* 16px+ avoids iOS Safari auto-zoom on focus */
  font-size: 1rem;
  border-radius: var(--rs-radius-pill);
  padding: 0.85rem 1.1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .rs-input {
    font-size: 0.875rem;
  }
}

.rs-input::placeholder {
  color: var(--rs-text-placeholder);
}

.rs-input--icon {
  padding-left: 2.75rem;
}

.rs-input--toggle {
  padding-right: 2.75rem;
}

.rs-input--soft {
  border: none;
  background: var(--rs-bg-input);
  border-radius: var(--rs-radius-md);
}

.rs-input:focus {
  border-color: var(--rs-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-primary) 25%, transparent);
}

.rs-input--soft:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-primary) 22%, transparent);
}

.rs-id-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 42%) 1fr;
  gap: 0.5rem;
}

@media (max-width: 379px) {
  .rs-id-row {
    grid-template-columns: 1fr;
  }
}

.rs-select {
  width: 100%;
  appearance: none;
  border: none;
  background: var(--rs-bg-input)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23757575' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat right 0.9rem center;
  color: var(--rs-text);
  font: inherit;
  font-size: 1rem;
  border-radius: var(--rs-radius-md);
  padding: 0.85rem 2rem 0.85rem 0.9rem;
  outline: none;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .rs-select {
    font-size: 0.8125rem;
  }
}

.rs-select:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rs-primary) 22%, transparent);
}

.rs-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rs-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--rs-text-muted);
  line-height: 1.4;
  cursor: pointer;
}

.rs-check input {
  margin-top: 0.15rem;
  accent-color: var(--rs-primary);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.rs-link {
  font-size: 0.8125rem;
  color: var(--rs-text-muted);
  text-decoration: none;
}

.rs-link:hover {
  color: var(--rs-text);
  text-decoration: underline;
}

.rs-link--strong {
  color: var(--rs-text);
  font-weight: 600;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: var(--rs-radius-pill);
  padding: 0.9rem 1.25rem;
  min-height: 2.75rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.rs-btn--primary {
  background: var(--rs-primary);
  color: var(--rs-text-on-primary);
}

.rs-btn--primary:hover {
  background: var(--rs-primary-hover);
}

.rs-btn--outline {
  background: transparent;
  color: var(--rs-text);
  border: 1px solid var(--rs-primary);
}

.rs-btn--outline:hover {
  background: color-mix(in srgb, var(--rs-primary) 8%, white);
}

.rs-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rs-text-placeholder);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.rs-or::before,
.rs-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rs-divider);
}

.rs-pwd-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--rs-success);
}

.rs-pwd-ok[data-ok='false'] {
  color: var(--rs-text-muted);
}

.rs-alert {
  border-radius: var(--rs-radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.rs-alert--error {
  background: var(--rs-error-bg);
  border: 1px solid var(--rs-error-border);
  color: var(--rs-error-text);
}

.rs-alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.rs-divider {
  height: 1px;
  background: var(--rs-divider);
  margin: 0.25rem 0;
}

.rs-checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* App shells (Tailwind pages) share the same system font tokens */
.rs-app-body {
  font-family: var(--rs-font);
  -webkit-font-smoothing: antialiased;
}

.rs-app-body .font-display {
  font-family: var(--rs-font-display);
  font-weight: 600;
}

/* ---------- Questionnaire (full-page wizard) ---------- */
.rs-q {
  margin: 0;
  min-height: 100dvh;
  background: var(--rs-bg);
  color: var(--rs-text);
  font-family: var(--rs-font);
  -webkit-font-smoothing: antialiased;
}

.rs-q__lang {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
}

.rs-q__lang .rs-auth__lang {
  margin: 0;
}

.rs-q__main {
  width: min(560px, 100% - 2rem);
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.rs-q-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rs-q-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  color: var(--rs-text);
  margin-bottom: 0.5rem;
}

.rs-q-progress__track {
  height: 4px;
  border-radius: var(--rs-radius-pill);
  background: var(--rs-border);
  overflow: hidden;
}

.rs-q-progress__fill {
  height: 100%;
  background: var(--rs-secondary);
  border-radius: inherit;
  transition: width 0.2s ease;
}

.rs-q-card {
  background: var(--rs-bg-card);
  border-radius: var(--rs-radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--rs-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rs-q-question {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.45;
}

.rs-q-question__note {
  font-weight: 500;
  color: var(--rs-text-muted);
  font-size: 0.95em;
}

.rs-q-subhead {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.rs-q-hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--rs-text-muted);
  line-height: 1.5;
}

.rs-q-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.rs-q-field__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.rs-q-input {
  width: 100%;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-md);
  background: var(--rs-bg-input-alt);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--rs-text);
  outline: none;
  box-sizing: border-box;
  appearance: none;
}

.rs-q-input:focus {
  border-color: var(--rs-primary);
  background: #fff;
}

.rs-q-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23757575' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.rs-q-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.rs-q-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rs-q-option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.95rem 1rem;
  border-radius: var(--rs-radius-md);
  background: var(--rs-bg-input-alt);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.rs-q-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rs-q-option.is-selected {
  border-color: var(--rs-text);
  background: #fff;
}

.rs-q-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.rs-q-nav__btn {
  width: 100%;
}

.rs-q-nav__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rs-q-skip {
  text-align: center;
  margin: 0;
  font-size: 0.875rem;
}

.rs-q-skip a {
  color: var(--rs-text-muted);
  text-decoration: none;
}

.rs-q-skip a:hover {
  color: var(--rs-text);
  text-decoration: underline;
}

/* ---------- Welcome popup ---------- */
.rs-welcome {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rs-welcome__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 46, 46, 0.55);
}

.rs-welcome__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90dvh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: var(--rs-radius-lg);
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.rs-welcome__panel--dual {
  width: min(860px, 100%);
}

.rs-welcome__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rs-welcome__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.rs-welcome__skip {
  border: 0;
  background: transparent;
  color: var(--rs-text-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  white-space: nowrap;
}

.rs-welcome__skip:hover {
  color: var(--rs-text);
  text-decoration: underline;
}

.rs-welcome__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .rs-welcome__grid:not(.rs-welcome__grid--single) {
    grid-template-columns: 1fr 1fr;
  }
}

.rs-welcome__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rs-welcome__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--rs-radius-md);
  background-size: cover;
  background-position: center;
  background-color: #e8e2d8;
}

.rs-welcome__media--memtrax {
  background-image:
    linear-gradient(135deg, rgba(74, 93, 84, 0.35), rgba(176, 155, 132, 0.45)),
    url('/images/auth-hero.jpg');
}

.rs-welcome__media--health {
  background-image:
    linear-gradient(160deg, rgba(176, 155, 132, 0.5), rgba(46, 46, 46, 0.25)),
    url('/images/auth-hero.jpg');
  background-position: 30% 40%;
}

.rs-welcome__card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.rs-welcome__card-body {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rs-text-muted);
  line-height: 1.55;
  flex: 1;
}

.rs-welcome__card .rs-btn {
  margin-top: 0.25rem;
}

.rs-health-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.rs-health-metric {
  background: #fff;
  border: 1px solid var(--rs-border-soft);
  border-radius: var(--rs-radius-md);
  padding: 1rem 1.1rem;
}

.rs-health-metric__label {
  font-size: 0.75rem;
  color: var(--rs-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rs-health-metric__value {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
}


/* ---------- App shell (member) ---------- */
.rs-app {
  margin: 0;
  min-height: 100dvh;
  background: var(--rs-bg);
  color: var(--rs-text);
  font-family: var(--rs-font);
  -webkit-font-smoothing: antialiased;
}

.rs-app__shell {
  display: flex;
  min-height: 100dvh;
}

.rs-app__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rs-app__content {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem 5rem;
  flex: 1;
}

@media (min-width: 768px) {
  .rs-app__content {
    padding: 1.25rem 2rem 3rem;
  }
}

.rs-sidebar {
  display: none;
  width: 240px;
  flex-shrink: 0;
  background: #a8967c;
  color: #fff;
  padding: 1.25rem 0.85rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .rs-sidebar {
    display: flex;
  }
}

.rs-sidebar__brand {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

.rs-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.rs-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--rs-radius-md);
  color: #fff;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.rs-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rs-sidebar__link.is-active {
  background: rgba(255, 255, 255, 0.22);
}

.rs-sidebar__foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rs-sidebar__logout {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: var(--rs-radius-md);
}

.rs-sidebar__logout:hover {
  background: rgba(255, 255, 255, 0.12);
}

.rs-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.rs-nav-icon--sm {
  width: 1.1rem;
  height: 1.1rem;
}

.rs-nav-icon--fab {
  width: 1.5rem;
  height: 1.5rem;
}

.rs-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .rs-topbar {
    display: flex;
  }
}

.rs-topbar__greet {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 1.15rem;
  font-weight: 600;
}

.rs-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--rs-radius-pill);
  background: #3d3d3d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.rs-topbar__lang .rs-auth__lang {
  margin: 0;
}

.rs-mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--rs-border-soft);
}

.rs-mobile-bar__brand {
  font-weight: 700;
  color: var(--rs-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.rs-mobile-bar__menu {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.35rem;
  cursor: pointer;
}

.rs-mobile-bar__menu span {
  display: block;
  height: 2px;
  background: var(--rs-text);
  border-radius: 1px;
}

.rs-mobile-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--rs-primary);
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.rs-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.rs-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 46, 46, 0.45);
}

.rs-drawer__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(100%, 360px);
  background: #a8967c;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.rs-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  background: #fff;
  color: var(--rs-text);
}

.rs-drawer__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
}

.rs-drawer__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--rs-text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}

.rs-drawer__nav {
  display: flex;
  flex-direction: column;
}

.rs-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.rs-drawer__link.is-active {
  background: rgba(255, 255, 255, 0.15);
}

.rs-drawer__chev {
  margin-left: auto;
  opacity: 0.8;
  font-size: 1.25rem;
}

.rs-drawer__lang {
  padding: 1rem;
  background: var(--rs-bg);
}

.rs-drawer__lang .rs-auth__lang {
  justify-content: center;
}

.rs-drawer__logout-wrap {
  padding: 0 1rem 1.25rem;
  background: var(--rs-bg);
}

.rs-drawer__logout {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--rs-text-muted);
  font: inherit;
  padding: 0.5rem;
  cursor: pointer;
}

.rs-contact-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 4.5rem;
  padding: 0.65rem 0.35rem;
  border-radius: 50%;
  aspect-ratio: 1;
  justify-content: center;
  background: #fff;
  color: var(--rs-text);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.rs-contact-fab span {
  display: none;
}

@media (min-width: 768px) {
  .rs-contact-fab {
    width: auto;
    aspect-ratio: auto;
    border-radius: var(--rs-radius-lg);
    padding: 0.75rem 0.85rem;
    max-width: 5.5rem;
  }
  .rs-contact-fab span {
    display: block;
  }
}

/* ---------- Booking ---------- */
.rs-book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .rs-book-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rs-book-card {
  background: #fff;
  border-radius: var(--rs-radius-lg);
  overflow: hidden;
  box-shadow: var(--rs-shadow-card);
  display: flex;
  flex-direction: column;
}

.rs-book-card__media,
.rs-book-hero {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #e8e2d8;
}

.rs-book-card__media {
  clip-path: ellipse(120% 100% at 50% 0%);
  margin-bottom: -8%;
  min-height: 160px;
}

.rs-book-card__media--home,
.rs-book-hero.rs-book-card__media--home {
  background-image:
    linear-gradient(160deg, rgba(168, 150, 124, 0.25), rgba(46, 46, 46, 0.2)),
    url('/images/auth-hero.jpg');
}

.rs-book-card__media--guidance,
.rs-book-hero.rs-book-card__media--guidance {
  background-image:
    linear-gradient(140deg, rgba(74, 93, 84, 0.35), rgba(176, 155, 132, 0.3)),
    url('/images/auth-hero.jpg');
  background-position: 70% 40%;
}

.rs-book-card__media--seminar,
.rs-book-hero.rs-book-card__media--seminar {
  background-image:
    linear-gradient(200deg, rgba(176, 155, 132, 0.4), rgba(74, 93, 84, 0.25)),
    url('/images/auth-hero.jpg');
  background-position: 20% 60%;
}

.rs-book-card__media--premium,
.rs-book-hero.rs-book-card__media--premium {
  background-image:
    linear-gradient(180deg, rgba(61, 61, 61, 0.35), rgba(168, 150, 124, 0.35)),
    url('/images/auth-hero.jpg');
  background-position: 50% 30%;
}

.rs-book-hero {
  border-radius: var(--rs-radius-lg);
  margin-bottom: 1.25rem;
  max-height: 220px;
  clip-path: ellipse(130% 100% at 50% 0%);
}

.rs-book-card__body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.rs-book-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.rs-book-card__text {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  color: var(--rs-text-muted);
  line-height: 1.55;
}

.rs-book-promo-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.rs-memtrax-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--rs-radius-md);
  background: #5f6f66;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.rs-memtrax-promo__media {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    url('/images/auth-hero.jpg') center / cover;
}

.rs-memtrax-promo__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.35;
  min-width: 0;
}

.rs-memtrax-promo__meta {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  font-size: 0.65rem;
  opacity: 0.9;
}

.rs-memtrax-promo__cta {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.rs-book-form {
  background: #fff;
  border-radius: var(--rs-radius-lg);
  padding: 1.35rem 1.25rem 1.75rem;
  box-shadow: var(--rs-shadow-card);
  max-width: 640px;
  margin: 0 auto;
}

.rs-book-form__back {
  color: var(--rs-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.rs-book-form__title {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.rs-book-form__desc {
  margin: 0 0 1.25rem;
  color: var(--rs-text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.rs-book-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.rs-book-fieldset legend {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  padding: 0;
}

.rs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: var(--rs-radius-md);
  background: var(--rs-bg-input-alt);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.3;
}

.rs-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rs-chip.is-selected {
  border-color: var(--rs-text);
  background: #fff;
}

.rs-book-slot-label {
  margin: 0.75rem 0 0.45rem;
  font-size: 0.85rem;
  color: var(--rs-text-muted);
}

.rs-book-form__submit {
  margin-top: 0.5rem;
}

/* ---------- Filters / status / modal ---------- */
.rs-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: var(--rs-radius-pill);
  border: 1px solid var(--rs-primary);
  color: var(--rs-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
}
.rs-filter-pill.is-active {
  background: var(--rs-primary);
  color: #fff;
  border-color: var(--rs-primary);
}
.rs-mybook__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}
.rs-mybook__empty {
  text-align: center;
  color: var(--rs-text-muted);
  padding: 2rem 1rem;
}
.rs-mybook__head {
  display: none;
  grid-template-columns: 1.2fr 0.8fr 1.4fr 1fr 1.1fr 0.9fr;
  gap: 0.75rem;
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  color: var(--rs-text-muted);
}
@media (min-width: 900px) {
  .rs-mybook__head { display: grid; }
}
.rs-mybook__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rs-mybook__row {
  background: #fff;
  border-radius: var(--rs-radius-md);
  padding: 1rem;
  box-shadow: var(--rs-shadow-card);
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .rs-mybook__row {
    grid-template-columns: 1.2fr 0.8fr 1.4fr 1fr 1.1fr 0.9fr;
    align-items: center;
  }
  .rs-mybook__row > div::before { display: none; }
}
.rs-mybook__row > div::before {
  content: attr(data-label);
  display: block;
  font-size: 0.7rem;
  color: var(--rs-text-muted);
  margin-bottom: 0.15rem;
}
.rs-mybook__content { font-size: 0.85rem; color: var(--rs-text-muted); line-height: 1.4; }
.rs-mybook__guide { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.rs-mybook__guide small { display: block; color: var(--rs-text-muted); }
.rs-mybook__avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: linear-gradient(135deg, #c4b3a0, #8a7a68);
  flex-shrink: 0;
}
.rs-mybook__status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.rs-mybook__again { font-size: 0.8rem; color: var(--rs-text-muted); text-decoration: none; }
.rs-status {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.75rem; border-radius: var(--rs-radius-pill);
  font-size: 0.8rem; font-weight: 600; color: #fff;
}
.rs-status--confirmed { background: #5c4e42; }
.rs-status--pending { background: #a8967c; }
.rs-status--completed { background: #c5c5c5; color: #333; }
.rs-status--muted { background: #ddd; color: #666; }

.rs-modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.rs-modal__backdrop {
  position: absolute; inset: 0; background: rgba(46,46,46,0.5); text-decoration: none;
}
.rs-modal__panel {
  position: relative; background: #fff; border-radius: var(--rs-radius-lg);
  padding: 2rem 1.5rem 1.75rem; width: min(420px, 100%);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18); text-align: center;
}
.rs-modal__close {
  position: absolute; top: 0.75rem; left: 0.75rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #e8e8e8; color: #666; text-decoration: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.rs-modal__check {
  width: 4rem; height: 4rem; margin: 0.5rem auto 1rem;
  border-radius: 50%; background: var(--rs-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.rs-modal__msg { margin: 0; font-size: 1.1rem; font-weight: 600; }
.rs-modal__title { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; }
.rs-modal__form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }

/* ---------- Settings ---------- */
.rs-settings__title { margin: 0 0 0.75rem; font-size: 1.5rem; font-weight: 700; }
.rs-settings__identity { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.25rem; }
.rs-settings__name { font-size: 1.15rem; font-weight: 600; }
.rs-settings__section { margin-bottom: 1.75rem; }
.rs-settings__h { margin: 0 0 0.65rem; font-size: 1rem; font-weight: 700; }
.rs-settings__hint { margin: 0 0 0.75rem; font-size: 0.8rem; color: var(--rs-text-muted); }
.rs-settings__warn { color: var(--rs-danger); font-size: 0.75rem; font-weight: 500; }
.rs-quota-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  background: #fff; border-radius: var(--rs-radius-lg); overflow: hidden;
  box-shadow: var(--rs-shadow-card);
}
@media (min-width: 640px) {
  .rs-quota-grid { grid-template-columns: 1fr 1fr; }
  .rs-quota-card + .rs-quota-card { border-left: 1px solid var(--rs-border-soft); }
}
.rs-quota-card { padding: 1.25rem 1.35rem; }
.rs-quota-card__n { font-size: 1.75rem; font-weight: 700; }
.rs-quota-card__label { font-size: 0.85rem; color: var(--rs-text-muted); margin-top: 0.25rem; }
.rs-settings__phone-form { display: flex; gap: 0.5rem; align-items: center; max-width: 420px; }
.rs-icon-btn {
  border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; padding: 0.5rem;
}
.rs-family-list { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.rs-family-item { text-align: center; text-decoration: none; color: inherit; width: 5.5rem; }
.rs-family-avatar {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 0.35rem; border-radius: 50%;
  background: #d9cfc3; display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #5c4e42;
}
.rs-family-avatar--add { background: #eee; font-size: 1.5rem; color: var(--rs-text-muted); }
.rs-family-item__name { font-size: 0.85rem; font-weight: 600; }
.rs-family-item__role { font-size: 0.75rem; color: var(--rs-text-muted); }
.rs-family-edits { margin: 0.75rem 0 0; font-size: 0.75rem; color: var(--rs-danger); text-align: right; }
.rs-settings__pwd { display: flex; flex-direction: column; gap: 0.85rem; max-width: 420px; }

/* ---------- Articles / premium ---------- */
.rs-article-grid, .rs-premium-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
}
@media (min-width: 700px) {
  .rs-article-grid, .rs-premium-grid { grid-template-columns: 1fr 1fr; }
}
.rs-article-card, .rs-premium-card {
  background: #fff; border-radius: var(--rs-radius-lg); overflow: hidden;
  box-shadow: var(--rs-shadow-card); text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.rs-article-card__media, .rs-premium-card__media {
  aspect-ratio: 16/10; background: #e8e2d8 center/cover;
  background-image: linear-gradient(160deg, rgba(168,150,124,0.3), rgba(46,46,46,0.2)), url('/images/auth-hero.jpg');
}
.rs-premium-card__media--2 { background-position: 70% 40%; }
.rs-premium-card__media--3 { background-position: 30% 60%; }
.rs-premium-card__media--4 { background-position: 50% 20%; }
.rs-article-card__body, .rs-premium-card__body {
  padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1;
}
.rs-article-card__title, .rs-premium-card__title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.rs-article-card__summary, .rs-premium-card__text {
  margin: 0; flex: 1; font-size: 0.85rem; color: var(--rs-text-muted); line-height: 1.5;
}
.rs-article-card__meta { font-size: 0.75rem; color: var(--rs-text-placeholder); }
.rs-premium-card__wa { margin-top: 0.25rem; }
.rs-premium-card__price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.35rem; }
.rs-premium-card__now { font-size: 1.25rem; font-weight: 700; color: #c0392b; }
.rs-premium-card__was { font-size: 0.8rem; color: var(--rs-text-muted); text-decoration: line-through; }

.rs-article-detail__hero {
  aspect-ratio: 21/9; border-radius: var(--rs-radius-lg); margin-bottom: 1rem;
  background: #e8e2d8 center/cover;
  background-image: linear-gradient(160deg, rgba(168,150,124,0.25), transparent), url('/images/auth-hero.jpg');
  clip-path: ellipse(120% 100% at 50% 0%);
}
.rs-article-detail__title { margin: 0.75rem 0 1rem; font-size: 1.5rem; font-weight: 700; }
.rs-article-detail__body { font-size: 0.95rem; line-height: 1.7; color: var(--rs-text); max-width: 42rem; }
.rs-article-detail__body p { margin: 0 0 1rem; }

/* ---------- Health report ---------- */
.rs-health-empty { max-width: 36rem; padding: 2rem 0; }
.rs-health-empty__title { margin: 0 0 0.75rem; font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
.rs-health-empty__desc { margin: 0 0 1.5rem; color: var(--rs-text); font-size: 1rem; line-height: 1.55; }
.rs-health-empty__cta { display: inline-flex; width: auto; min-width: 10rem; padding-inline: 2rem; }

.rs-report__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem;
}
.rs-report__title { margin: 0; font-size: 1.35rem; font-weight: 700; }
.rs-report__meta { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--rs-text-muted); }
.rs-report__dl { width: auto; padding-inline: 1.25rem; opacity: 0.6; cursor: not-allowed; }
.rs-report-card {
  background: #fff; border-radius: var(--rs-radius-lg); padding: 1.25rem;
  box-shadow: var(--rs-shadow-card); margin-bottom: 1rem;
}
.rs-report-card h2 { margin: 0 0 0.75rem; font-size: 1.05rem; }
.rs-report__risk { margin: 0; font-size: 1.5rem; font-weight: 700; color: #c0392b; }
.rs-report-bar {
  position: relative; height: 10px; border-radius: 999px; margin: 0.85rem 0;
  background: linear-gradient(90deg, #58b39e, #e8c547, #e02020);
}
.rs-report-bar__marker {
  position: absolute; top: -4px; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: #fff; border: 3px solid #5c4e42;
}
.rs-report__note { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--rs-text-muted); line-height: 1.5; }
.rs-report-highlights {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.75rem;
}
.rs-report-highlights div { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
.rs-report-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; text-align: center;
}
.rs-pillar__circle {
  width: 5.5rem; height: 5.5rem; margin: 0 auto 0.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.rs-pillar--high .rs-pillar__circle { background: #e06060; }
.rs-pillar--mid .rs-pillar__circle { background: #e8c547; color: #333; }
.rs-pillar--low .rs-pillar__circle { background: #58b39e; }
.rs-pillar p { margin: 0; font-size: 0.8rem; }
.rs-report-priorities { display: grid; gap: 0.75rem; }
@media (min-width: 700px) {
  .rs-report-priorities { grid-template-columns: repeat(3, 1fr); }
}
.rs-priority {
  display: flex; gap: 0.65rem; padding: 0.85rem; border-radius: var(--rs-radius-md);
  background: var(--rs-bg); font-size: 0.85rem;
}
.rs-priority__n {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e06060; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.rs-priority p { margin: 0.25rem 0 0; color: var(--rs-text-muted); }
.rs-report-actions { display: grid; gap: 0.75rem; }
@media (min-width: 700px) {
  .rs-report-actions { grid-template-columns: repeat(3, 1fr); }
}
.rs-action-card {
  border-radius: var(--rs-radius-md); overflow: hidden; background: var(--rs-bg);
  display: flex; flex-direction: column; gap: 0.65rem; padding-bottom: 1rem;
}
.rs-action-card header {
  background: #d9534f; color: #fff; padding: 0.65rem 0.85rem; font-weight: 700; font-size: 0.9rem;
}
.rs-action-card p { margin: 0; padding: 0 0.85rem; font-size: 0.85rem; color: var(--rs-text-muted); flex: 1; }
.rs-action-card .rs-btn { margin: 0 0.85rem; width: auto; }
.rs-action-card--ok header { background: #58b39e; }
