:root {
  color-scheme: light;
  --font-base: 13px;
  --sidebar-width: 220px;
  --page-padding: 18px;
  --card-padding: 14px;
  --card-radius: 18px;
  --title-size: clamp(1.7rem, 2.1vw, 2.3rem);
  --subtitle-size: clamp(0.95rem, 1.1vw, 1.08rem);
  --bg: #f4efe6;
  --bg-accent: #dfece7;
  --sidebar: #163832;
  --sidebar-accent: #23534d;
  --surface: rgba(255, 250, 244, 0.86);
  --surface-strong: #fffdf9;
  --border: rgba(36, 54, 50, 0.12);
  --text: #1f2d2a;
  --muted: #5f6e69;
  --accent: #b85c38;
  --accent-soft: rgba(184, 92, 56, 0.14);
  --positive: #1f7a55;
  --warning: #8a5a11;
  --negative: #9c4a2d;
  --ink: var(--text);
  --shadow: 0 18px 40px rgba(24, 40, 36, 0.12);
  --radius: var(--card-radius);
  --radius-xl: 22px;
  --radius-lg: var(--card-radius);
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: var(--font-base);
  font-family: "Aptos", "Trebuchet MS", "Gill Sans", sans-serif;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
    radial-gradient(circle at bottom right, rgba(184, 92, 56, 0.12), transparent 24%),
    linear-gradient(135deg, var(--bg), var(--bg-accent));
}

a {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  padding: 20px 16px;
  color: #f7f4ef;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(180deg, var(--sidebar-accent), var(--sidebar));
}

.brand {
  display: grid;
  gap: 6px;
  padding: 14px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand strong {
  font-size: 1.08rem;
}

.brand__eyebrow,
.topbar__eyebrow,
.hero-card__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__eyebrow,
.topbar__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.topbar__eyebrow {
  color: #66756f;
  font-weight: 800;
}

.brand__meta {
  color: rgba(255, 255, 255, 0.72);
}

.nav {
  display: grid;
  gap: 7px;
  align-content: start;
}

.nav__link {
  padding: 9px 11px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.nav__link--active {
  color: #fffaf4;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.shell__body {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px var(--page-padding) 8px;
}

.topbar__title {
  margin: 4px 0 0;
  font-size: var(--title-size);
  font-weight: 700;
}

.topbar__status {
  min-width: 158px;
  padding: 10px 12px;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.68);
  box-shadow: var(--shadow);
}

.topbar__status span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.topbar-public-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  max-width: 360px;
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.topbar-public-links a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.topbar-public-links a:hover,
.topbar-public-links a:focus-visible {
  text-decoration: underline;
}

.content {
  padding: 10px var(--page-padding) 24px;
}

.workspace-banner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.workspace-banner--trial {
  color: #1f5f48;
  border-color: rgba(31, 122, 85, 0.2);
  background: rgba(31, 122, 85, 0.1);
}

.workspace-banner--demo {
  color: #173a33;
  border-color: rgba(31, 122, 85, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 248, 238, 0.94), rgba(232, 241, 234, 0.9));
}

.workspace-banner--demo-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
}

.workspace-banner__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workspace-banner__content span {
  max-width: 82ch;
  color: rgba(36, 54, 50, 0.82);
  font-weight: 600;
}

.workspace-banner__content small {
  color: #8a4a31;
  font-size: 0.88rem;
  font-weight: 800;
}

.workspace-banner__mobile-text {
  display: none;
}

.workspace-banner__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.workspace-banner__actions .button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.demo-actions--compact .button {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 0.86rem;
}

@media screen and (max-width: 640px) {
  .workspace-banner--demo-cta {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 10px;
  }

  .workspace-banner__content {
    gap: 3px;
  }

  .workspace-banner__desktop-text {
    display: none;
  }

  .workspace-banner__mobile-text {
    display: inline;
  }

  .workspace-banner__content span {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .workspace-banner__content small {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .workspace-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .workspace-banner__actions .button {
    justify-content: center;
    width: 100%;
    min-height: 36px;
    padding-block: 7px;
  }
}

.page {
  display: grid;
  gap: 16px;
}

.page__header {
  display: flex;
  gap: 14px;
  align-items: start;
}

.page__description {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

.hero-card__eyebrow {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-weight: 700;
}

.hero-card,
.surface-card,
.metric-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 239, 230, 0.92)),
    var(--surface-strong);
}

.hero-card__aside {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-self: start;
}

.hero-card h2 {
  margin: 6px 0 8px;
  font-size: var(--title-size);
}

.hero-card__text {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: var(--subtitle-size);
}

.hero-card__badge {
  display: grid;
  align-self: start;
  min-width: 104px;
  padding: 12px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(22, 56, 50, 0.08);
}

.hero-card__badge span,
.metric-card span,
.section-heading p,
.movement-item p,
.placeholder-note {
  color: var(--muted);
}

.hero-card__badge strong,
.metric-card strong {
  margin-top: 4px;
  font-size: 1.45rem;
}

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

.metrics-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.metric-card {
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: rgba(255, 252, 248, 0.82);
}

.dashboard-kpis .dashboard-kpi {
  position: relative;
  overflow: hidden;
  border-color: rgba(36, 54, 50, 0.1);
}

.dashboard-kpi-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.dashboard-kpi-link:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 54, 50, 0.18);
  box-shadow: 0 16px 34px rgba(31, 47, 43, 0.13);
}

.dashboard-kpi-link:focus-visible {
  outline: 3px solid rgba(15, 74, 67, 0.24);
  outline-offset: 3px;
}

.dashboard-kpis .dashboard-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(36, 54, 50, 0.16);
}

.dashboard-kpi--balance,
.dashboard-kpi--balance-positive {
  background: linear-gradient(180deg, rgba(31, 122, 85, 0.13), rgba(255, 252, 248, 0.92));
}

.dashboard-kpi--balance::before,
.dashboard-kpi--balance-positive::before,
.dashboard-kpi--income::before {
  background: rgba(31, 122, 85, 0.58);
}

.dashboard-kpi--balance strong,
.dashboard-kpi--balance-positive strong,
.dashboard-kpi--income strong {
  color: #1f6b55;
}

.dashboard-kpi--balance-neutral {
  background: linear-gradient(180deg, rgba(36, 54, 50, 0.08), rgba(255, 252, 248, 0.94));
}

.dashboard-kpi--balance-neutral::before {
  background: rgba(36, 54, 50, 0.24);
}

.dashboard-kpi--balance-neutral strong {
  color: var(--ink);
}

.dashboard-kpi--balance-negative {
  background: linear-gradient(180deg, rgba(138, 90, 17, 0.14), rgba(255, 250, 244, 0.96));
}

.dashboard-kpi--balance-negative::before {
  background: rgba(138, 90, 17, 0.56);
}

.dashboard-kpi--balance-negative strong {
  color: var(--warning);
}

.dashboard-kpi--income {
  background: linear-gradient(180deg, rgba(63, 142, 101, 0.1), rgba(255, 252, 248, 0.94));
}

.dashboard-kpi--expenses {
  background: linear-gradient(180deg, rgba(184, 92, 56, 0.1), rgba(255, 248, 238, 0.95));
}

.dashboard-kpi--expenses::before {
  background: rgba(184, 92, 56, 0.5);
}

.dashboard-kpi--expenses strong {
  color: #8a4a31;
}

.dashboard-kpi--students {
  background: rgba(255, 252, 248, 0.9);
}

.dashboard-kpi--debtors {
  background: linear-gradient(180deg, rgba(156, 74, 45, 0.14), rgba(255, 247, 238, 0.96));
}

.dashboard-kpi--debtors::before {
  background: rgba(156, 74, 45, 0.58);
}

.dashboard-kpi--debtors strong {
  color: #8f4027;
}

.collection-summary-block {
  display: grid;
  gap: 10px;
}

.collection-summary-card {
  display: grid;
  gap: 6px;
  align-content: center;
  border-top: 3px solid rgba(36, 54, 50, 0.12);
  background: rgba(255, 252, 248, 0.9);
}

.collection-summary-card span,
.collection-summary-card strong {
  display: block;
}

.collection-summary-card strong {
  margin-top: 0;
  line-height: 1.12;
  color: var(--text);
}

.collection-summary-block--vertical-cards .collection-summary-card {
  display: grid;
  gap: 6px;
  align-content: center;
}

.collection-summary-block--vertical-cards .collection-summary-card span,
.collection-summary-block--vertical-cards .collection-summary-card strong {
  display: block;
}

.collection-summary-block--vertical-cards .collection-summary-card strong {
  margin-top: 0;
  line-height: 1.12;
}

.collection-summary-card--neutral {
  border-top-color: rgba(36, 54, 50, 0.16);
  background: rgba(255, 252, 248, 0.9);
}

.collection-summary-card--success {
  border-top-color: rgba(31, 122, 85, 0.42);
  background: linear-gradient(180deg, rgba(31, 122, 85, 0.08), rgba(255, 252, 248, 0.94));
}

.collection-summary-card--success strong {
  color: var(--positive);
}

.collection-summary-card--warning {
  border-top-color: rgba(138, 90, 17, 0.38);
  background: linear-gradient(180deg, rgba(138, 90, 17, 0.1), rgba(255, 252, 248, 0.94));
}

.collection-summary-card--warning strong {
  color: var(--warning);
}

.collection-summary-card--danger {
  border-top-color: rgba(156, 74, 45, 0.4);
  background: linear-gradient(180deg, rgba(156, 74, 45, 0.1), rgba(255, 252, 248, 0.94));
}

.collection-summary-card--danger strong {
  color: var(--negative);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.dashboard-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-secondary-grid > * {
  min-width: 0;
}

.dashboard-secondary-grid > .collection-summary-block .metrics-grid,
.dashboard-secondary-grid > .collection-summary-block .metrics-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
  align-content: stretch;
}

.dashboard-secondary-grid > .collection-summary-block .collection-summary-card {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 13px;
  align-content: center;
}

.dashboard-secondary-grid > .collection-summary-block .collection-summary-card span,
.dashboard-secondary-grid > .collection-summary-block .collection-summary-card strong {
  display: block;
}

.dashboard-secondary-grid > .collection-summary-block .collection-summary-card span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-secondary-grid > .collection-summary-block .collection-summary-card strong {
  margin-top: 0;
  font-size: 1.2rem;
  line-height: 1.08;
}

.dashboard-secondary-grid > .collection-summary-block {
  grid-template-rows: auto 1fr;
}

.dashboard-secondary-grid > .collection-summary-block .section-heading p {
  white-space: pre-line;
}

.dashboard-secondary-grid .section-heading {
  margin-bottom: 10px;
}

.dashboard-secondary-grid .section-heading h2 {
  font-size: 1.08rem;
}

.dashboard-secondary-grid .section-heading p {
  font-size: 0.9rem;
  line-height: 1.35;
}

.dashboard-secondary-grid .movement-list,
.dashboard-secondary-grid .summary-list,
.dashboard-secondary-grid .ranking-list {
  gap: 8px;
}

.dashboard-secondary-grid .movement-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: start;
  padding: 9px 10px;
}

.dashboard-secondary-grid .movement-item > div:first-child,
.dashboard-secondary-grid .summary-list li span {
  min-width: 0;
}

.dashboard-secondary-grid .movement-item strong,
.dashboard-secondary-grid .movement-item p {
  overflow-wrap: anywhere;
}

.dashboard-secondary-grid .movement-item p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  line-height: 1.25;
}

.dashboard-secondary-grid .movement-item__meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
  white-space: nowrap;
}

.dashboard-secondary-grid .movement-item__meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.dashboard-secondary-grid .movement-item__amount {
  margin: 0;
  font-size: 0.92rem;
}

.dashboard-secondary-grid .summary-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
}

.dashboard-secondary-grid .summary-list li strong {
  text-align: right;
  white-space: nowrap;
}

.dashboard-secondary-grid .ranking-list__item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 9px;
}

.dashboard-secondary-grid .ranking-list__content {
  min-width: 0;
}

.dashboard-secondary-grid .ranking-list__content strong,
.dashboard-secondary-grid .ranking-list__content span {
  overflow-wrap: anywhere;
}

.dashboard-secondary-grid .ranking-list__value {
  white-space: nowrap;
}

.dashboard-balance-detail-card {
  justify-self: stretch;
  width: 100%;
  max-width: none;
  padding-block: 16px;
}

.dashboard-balance-detail-card .section-heading {
  margin-bottom: 10px;
}

.summary-list.dashboard-balance-detail-list {
  width: 100%;
  margin: 0;
}

.dashboard-balance-detail-list {
  gap: 7px;
}

.dashboard-balance-detail-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 9px 11px;
}

.dashboard-balance-detail-list li span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dashboard-balance-detail-list li strong {
  text-align: right;
  white-space: nowrap;
}

.dashboard-payment-notices-card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid rgba(188, 103, 72, 0.58);
  background:
    radial-gradient(circle at 98% 20%, rgba(188, 103, 72, 0.14), transparent 24%),
    rgba(255, 252, 246, 0.96);
}

.dashboard-payment-notices-card__content {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.dashboard-payment-notices-card h2 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.18;
}

.dashboard-payment-notices-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

@media screen and (max-width: 760px) {
  .dashboard-secondary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-balance-detail-card {
    justify-self: stretch;
    width: 100%;
    padding-block: 12px;
  }

  .dashboard-balance-detail-card .section-heading {
    margin-bottom: 8px;
  }

  .dashboard-balance-detail-list {
    gap: 6px;
  }

  .dashboard-balance-detail-list li {
    padding: 8px 9px;
  }

  .dashboard-payment-notices-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-payment-notices-card__content {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-payment-notices-card .button {
    width: 100%;
  }
}

.first-steps-card {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at 94% 8%, rgba(91, 163, 126, 0.14), transparent 28%),
    rgba(255, 252, 246, 0.94);
}

.first-steps-card__progress {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.first-steps-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.first-step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.first-step-item--main {
  border-color: rgba(91, 163, 126, 0.24);
  background: rgba(238, 247, 241, 0.72);
}

.first-step-item__number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fffaf4;
  font-weight: 800;
}

.first-step-item__content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.first-step-item__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.first-step-item__heading h3 {
  margin: 0;
  font-size: 1rem;
}

.first-step-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.meeting-shell {
  min-height: 100vh;
  padding: 18px 16px 30px;
}

.meeting-shell__toolbar {
  width: min(1240px, 100%);
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.meeting-shell__content {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.meeting-view {
  display: grid;
  gap: 18px;
}

.meeting-hero {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: var(--card-padding);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(248, 243, 235, 0.94));
  box-shadow: var(--shadow);
}

.meeting-hero__content {
  min-width: 0;
}

.meeting-hero__content h1 {
  margin: 6px 0 8px;
  font-size: var(--title-size);
}

.meeting-hero__text {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.meeting-hero__aside {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.meeting-section {
  margin: 0;
}

.meeting-kpis .meeting-kpi--warning {
  background: linear-gradient(180deg, rgba(138, 90, 17, 0.11), rgba(255, 250, 244, 0.95));
}

.meeting-kpis .dashboard-kpi--income::before {
  background: rgba(31, 122, 85, 0.58);
}

.meeting-kpis .dashboard-kpi--expenses::before {
  background: rgba(184, 92, 56, 0.5);
}

.meeting-kpis .meeting-kpi--warning::before {
  background: rgba(138, 90, 17, 0.5);
}

.meeting-kpis .meeting-kpi--warning strong {
  color: var(--warning);
}

.surface-card {
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.section-heading p {
  margin: 0;
}

.section-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

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

.toolbar-actions--wide {
  max-width: 100%;
}

.export-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.export-actions__label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.filter-inline {
  display: grid;
  gap: 6px;
  min-width: 180px;
  font-size: 0.92rem;
  color: var(--muted);
}

.filter-inline--checkbox {
  display: inline-flex;
  min-width: auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 54, 50, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.filter-inline--checkbox input {
  accent-color: var(--accent);
}

.filter-inline select {
  min-height: 36px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(36, 54, 50, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
}

.debtors-toolbar-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.debtors-toolbar-header {
  max-width: 860px;
  margin-bottom: 0;
}

.debtors-filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) minmax(200px, 1fr);
  gap: 12px;
  width: 100%;
  max-width: none;
  align-items: end;
  justify-content: stretch;
}

.debtors-filter-field {
  width: 100%;
  min-width: 0;
}

.debtors-filter-field select {
  width: 100%;
}

.fee-summary-metrics .fee-summary-card {
  display: grid;
  gap: 6px;
  align-content: center;
  border-top: 3px solid rgba(36, 54, 50, 0.12);
}

.fee-summary-metrics .fee-summary-card span,
.fee-summary-metrics .fee-summary-card strong {
  display: block;
}

.fee-summary-metrics .fee-summary-card span {
  color: var(--muted);
  font-weight: 700;
}

.fee-summary-metrics .fee-summary-card strong {
  margin-top: 0;
  line-height: 1.12;
}

.fee-summary-card--neutral {
  border-top-color: rgba(36, 54, 50, 0.16);
}

.fee-summary-card--success {
  border-top-color: rgba(31, 122, 85, 0.42);
  background: linear-gradient(180deg, rgba(31, 122, 85, 0.08), rgba(255, 252, 248, 0.94));
}

.fee-summary-card--success strong {
  color: var(--positive);
}

.fee-summary-card--warning {
  border-top-color: rgba(138, 90, 17, 0.38);
  background: linear-gradient(180deg, rgba(138, 90, 17, 0.09), rgba(255, 252, 248, 0.94));
}

.fee-summary-card--warning strong {
  color: var(--warning);
}

.fee-summary-card--danger {
  border-top-color: rgba(156, 74, 45, 0.4);
  background: linear-gradient(180deg, rgba(156, 74, 45, 0.1), rgba(255, 252, 248, 0.94));
}

.fee-summary-card--danger strong {
  color: var(--negative);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 13px;
  font: inherit;
  color: #fff9f2;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #c46640, #a14c2d);
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.button--ghost {
  color: var(--text);
  border-color: rgba(36, 54, 50, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.landing-nav__login {
  color: #fff;
  border-color: var(--sidebar);
  background: var(--sidebar);
}

.landing-nav__login:hover,
.landing-nav__login:focus-visible {
  background: #102f2a;
}

.landing-nav__login:focus-visible,
.landing-hero__login:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.55);
  outline-offset: 3px;
}

.button--small {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.92rem;
}

.attachment-inline-button {
  display: inline;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--accent);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.summary-helper.attachment-inline-button {
  display: block;
}

.attachment-inline-button:hover,
.attachment-inline-button:focus-visible {
  color: #8f4026;
}

body.attachment-viewer-open {
  overflow: hidden;
}

.attachment-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.attachment-viewer__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(16, 28, 25, 0.72);
  cursor: pointer;
}

.attachment-viewer__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(980px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  outline: none;
}

.attachment-viewer__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(36, 54, 50, 0.12);
  background: rgba(255, 250, 244, 0.96);
}

.attachment-viewer__heading {
  min-width: 0;
}

.attachment-viewer__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attachment-viewer__heading h2 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.2;
}

.attachment-viewer__heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.attachment-viewer__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.attachment-viewer__close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  border: 1px solid rgba(36, 54, 50, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.attachment-viewer__close:hover,
.attachment-viewer__close:focus-visible {
  background: #fff;
}

.attachment-viewer__body {
  min-height: 260px;
  max-height: calc(100dvh - 150px);
  overflow: auto;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    #182421;
  background-size: 18px 18px;
}

.attachment-viewer__body--image {
  display: grid;
  place-items: center;
  padding: 12px;
}

.attachment-viewer__image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.attachment-viewer__frame {
  display: block;
  width: 100%;
  height: min(72dvh, 760px);
  min-height: 420px;
  border: 0;
  background: #fff;
}

.attachment-viewer__fallback {
  display: grid;
  place-items: center;
  min-height: 320px;
  padding: 22px;
  color: #fffaf4;
  text-align: center;
}

.attachment-viewer__fallback p {
  margin: 6px 0 0;
  color: rgba(255, 250, 244, 0.78);
}

@media screen and (max-width: 640px) {
  .attachment-viewer {
    align-items: stretch;
    padding: 8px;
  }

  .attachment-viewer__dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .attachment-viewer__header {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .attachment-viewer__heading p {
    font-size: 0.82rem;
  }

  .attachment-viewer__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .attachment-viewer__actions .button {
    flex: 1 1 130px;
  }

  .attachment-viewer__close {
    margin-left: auto;
  }

  .attachment-viewer__body {
    max-height: calc(100dvh - 178px);
  }

  .attachment-viewer__image {
    max-height: calc(100dvh - 204px);
  }

  .attachment-viewer__frame {
    height: calc(100dvh - 190px);
    min-height: 360px;
  }
}

.flash {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
}

.flash--success {
  color: #1f5f48;
  border-color: rgba(31, 122, 85, 0.2);
  background: rgba(31, 122, 85, 0.12);
}

.flash--error {
  color: #8b3e27;
  border-color: rgba(156, 74, 45, 0.2);
  background: rgba(156, 74, 45, 0.12);
}

.flash--info {
  color: #294f68;
  border-color: rgba(41, 79, 104, 0.18);
  background: rgba(41, 79, 104, 0.1);
}

.commercial-access-banner {
  display: grid;
  gap: 4px;
}

.commercial-plan-card {
  display: grid;
  gap: 14px;
}

.commercial-plan-card__body {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.commercial-plan-card__price,
.commercial-plan-card__details {
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.commercial-plan-card__price {
  display: grid;
  align-content: center;
  gap: 4px;
}

.commercial-plan-card__price span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.commercial-plan-card__price strong {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.1;
}

.commercial-plan-card__details {
  display: grid;
  gap: 8px;
}

.commercial-plan-card__details p {
  margin: 0;
}

.commercial-lock-screen {
  display: grid;
  min-height: min(560px, calc(100vh - 180px));
  align-items: center;
}

.commercial-lock-screen__card {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 34px);
}

.commercial-lock-screen__intro {
  display: grid;
  gap: 10px;
}

.commercial-lock-screen__intro h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.commercial-lock-screen__intro p,
.commercial-lock-screen__note {
  margin: 0;
}

.commercial-lock-screen__course,
.commercial-lock-screen__price,
.commercial-lock-screen__contact {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
}

.commercial-lock-screen__course span,
.commercial-lock-screen__price span,
.commercial-lock-screen__contact span {
  color: var(--muted);
}

.commercial-lock-screen__course strong,
.commercial-lock-screen__price strong {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.15;
}

.commercial-lock-screen__price strong {
  color: var(--accent);
  font-size: 1.35rem;
}

.commercial-lock-screen__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.commercial-lock-screen__button {
  min-height: 42px;
  padding-inline: 18px;
}

.commercial-lock-screen__feedback {
  margin: 0;
}

@media screen and (max-width: 768px) {
  .commercial-plan-card__body {
    grid-template-columns: 1fr;
  }

  .commercial-lock-screen {
    min-height: calc(100vh - 140px);
    align-items: start;
  }

  .commercial-lock-screen__card {
    max-width: 100%;
    padding: 18px;
  }

  .commercial-lock-screen__button,
  .commercial-lock-screen__actions {
    width: 100%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.data-form {
  margin-bottom: 12px;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: var(--card-padding);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.form-card__header h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.form-card__header p {
  margin: 0;
  color: var(--muted);
}

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

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

.form-section {
  display: grid;
  gap: 9px;
}

.student-collection-form-section {
  scroll-margin-top: 96px;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field__control {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  border: 1px solid rgba(36, 54, 50, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
}

.field__control--textarea {
  min-height: 112px;
  resize: vertical;
}

.field__control--error {
  border-color: rgba(156, 74, 45, 0.55);
  box-shadow: 0 0 0 3px rgba(156, 74, 45, 0.08);
}

[data-form="payment"] input[name="amount"],
[data-form="fee"] input[name="amount"],
[data-form="initial-balance"] input[name="initialBalanceAmount"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

[data-form="payment"] input[name="amount"]::-webkit-outer-spin-button,
[data-form="payment"] input[name="amount"]::-webkit-inner-spin-button,
[data-form="fee"] input[name="amount"]::-webkit-outer-spin-button,
[data-form="fee"] input[name="amount"]::-webkit-inner-spin-button,
[data-form="initial-balance"] input[name="initialBalanceAmount"]::-webkit-outer-spin-button,
[data-form="initial-balance"] input[name="initialBalanceAmount"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.field__error {
  color: var(--negative);
  font-size: 0.86rem;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

.checkbox-field input {
  margin-top: 3px;
}

.checkbox-field strong,
.checkbox-field small {
  display: block;
}

.checkbox-field small {
  margin-top: 4px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.branding-card {
  display: grid;
  gap: 10px;
  padding: var(--card-padding);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
}

.branding-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.branding-card__header h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.branding-card__header p,
.branding-card__meta {
  margin: 0;
  color: var(--muted);
}

.branding-preview {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: var(--card-padding);
  border: 1px dashed rgba(36, 54, 50, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 239, 230, 0.72));
}

.branding-preview--filled {
  border-style: solid;
}

.branding-preview img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.branding-preview__placeholder {
  display: grid;
  gap: 6px;
  max-width: 28ch;
  text-align: center;
  color: var(--muted);
}

.branding-cluster {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.branding-cluster--hero,
.branding-cluster--public {
  justify-content: end;
}

.branding-cluster--report {
  margin-top: 16px;
}

.branding-cluster--print {
  justify-content: end;
}

.branding-logo {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
}

.branding-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.branding-logo--primary {
  width: 96px;
  height: 96px;
}

.branding-logo--secondary {
  width: 72px;
  height: 72px;
}

.report-branding-row {
  display: flex;
  justify-content: flex-end;
}

.payment-balance-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 122, 85, 0.18);
  border-radius: var(--radius-md);
  background: rgba(31, 122, 85, 0.08);
}

.payment-balance-card__eyebrow {
  color: var(--positive);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-balance-card strong {
  font-size: 1.4rem;
}

.payment-balance-card p {
  margin: 0;
  color: var(--muted);
}

.payment-registry-filter {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0 8px;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 16px;
  background: rgba(241, 239, 233, 0.58);
}

.payment-registry-filter__field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.payment-registry-filter__field span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.payment-registry-filter__field .field__control {
  min-width: 0;
}

.payment-registry-filter__clear {
  min-height: 38px;
  white-space: nowrap;
}

.payment-registry-results {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.payment-registry-empty {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(36, 54, 50, 0.18);
  border-radius: 16px;
}

@media screen and (max-width: 720px) {
  .payment-registry-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-registry-filter__field--search,
  .payment-registry-filter__clear {
    grid-column: 1 / -1;
  }

  .payment-registry-filter__clear {
    width: 100%;
    min-height: 44px;
  }
}

@media screen and (max-width: 420px) {
  .payment-registry-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-registry-filter__field--search,
  .payment-registry-filter__clear {
    grid-column: auto;
  }
}

.import-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(41, 79, 104, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(41, 79, 104, 0.08);
}

.import-summary--preview {
  border-color: rgba(184, 92, 56, 0.18);
  background: rgba(184, 92, 56, 0.08);
}

.import-summary--safety {
  border-color: rgba(31, 122, 85, 0.18);
  background: rgba(31, 122, 85, 0.08);
}

.import-summary__header,
.import-summary__metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.import-summary__header span,
.import-summary__metrics span {
  color: var(--muted);
}

.import-summary__errors {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.import-summary__errors li {
  color: var(--text);
}

.import-summary__errors--warnings li {
  color: #7a4a1e;
}

.movement-list,
.summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.movement-item,
.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.movement-item strong,
.summary-list strong {
  display: block;
}

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

.movement-item p {
  margin: 4px 0 0;
}

.movement-item__meta {
  text-align: right;
}

.movement-item__amount {
  margin-top: 6px;
}

.movement-item__amount--positive {
  color: var(--positive);
}

.movement-item__amount--negative {
  color: var(--negative);
}

.table-shell {
  overflow-x: auto;
}

.bulk-selection-card {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(36, 54, 50, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(247, 244, 236, 0.72);
}

.bulk-selection-card__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bulk-selection-card__footer {
  display: grid;
  gap: 10px;
}

.bulk-selection-card__note {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-log-panel {
  margin-bottom: 18px;
}

.contact-log-panel__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.contact-log-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-log-list__item {
  display: grid;
  grid-template-columns: minmax(150px, 180px) 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.contact-log-list__meta,
.contact-log-list__content {
  display: grid;
  gap: 6px;
}

.contact-log-list__meta span,
.contact-log-list__content p {
  color: var(--muted);
}

.contact-log-list__content p {
  margin: 0;
}

.selection-cell {
  width: 52px;
  text-align: center !important;
}

.selection-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.selection-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.income-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.income-actions .button {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.income-actions__void {
  color: #8d4430;
  border-color: rgba(156, 74, 45, 0.2);
  background: rgba(156, 74, 45, 0.06);
}

.student-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 6px;
  min-width: 214px;
  align-items: stretch;
}

.student-actions__button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding-inline: 8px;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

.student-actions__button--edit {
  grid-column: 1;
  grid-row: 1;
}

.student-actions__button--whatsapp {
  grid-column: 2;
  grid-row: 1;
}

.student-actions__button--email {
  grid-column: 1;
  grid-row: 2;
}

.student-actions__button--copy {
  grid-column: 2;
  grid-row: 2;
}

.student-actions__button--manage,
.student-actions__button--status {
  grid-column: span 1;
}

.table-detail {
  display: grid;
  gap: 4px;
}

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

.table-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.ranking-list--compact {
  gap: 10px;
}

.ranking-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(36, 54, 50, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
}

.ranking-list__position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(164, 76, 45, 0.16);
  background: rgba(196, 102, 64, 0.08);
  color: var(--accent);
  font-weight: 700;
}

.ranking-list__content {
  display: grid;
  gap: 4px;
}

.ranking-list__content span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ranking-list__value {
  white-space: nowrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.data-table--compact {
  min-width: 0;
}

.data-table th,
.data-table td {
  padding: 10px 9px;
  text-align: left;
  border-bottom: 1px solid rgba(36, 54, 50, 0.08);
}

.data-table th {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.table-amount {
  display: inline-block;
  white-space: nowrap;
}

.table-amount--positive {
  color: var(--positive);
}

.table-amount--negative {
  color: var(--negative);
}

.row--muted td {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.status-badge--success {
  color: #1c6949;
  border-color: rgba(31, 122, 85, 0.18);
  background: rgba(31, 122, 85, 0.12);
}

.status-badge--warning {
  color: #8a5a11;
  border-color: rgba(191, 139, 28, 0.2);
  background: rgba(191, 139, 28, 0.14);
}

.status-badge--danger {
  color: #8d4430;
  border-color: rgba(156, 74, 45, 0.2);
  background: rgba(156, 74, 45, 0.12);
}

.status-badge--neutral {
  color: #556864;
  border-color: rgba(95, 110, 105, 0.18);
  background: rgba(95, 110, 105, 0.12);
}

.empty-state {
  padding: var(--card-padding);
  border: 1px dashed rgba(36, 54, 50, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.students-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.students-video-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.students-video-tip p {
  margin: 4px 0 0;
}

.student-search-panel {
  margin: 14px 0 12px;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.student-search-panel__field {
  max-width: 560px;
}

.student-search-panel__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.debtors-search-panel {
  display: grid;
  gap: 8px;
}

.debtors-search-panel__help {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.student-search-empty {
  margin-top: 12px;
}

.placeholder-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.landing-page {
  display: grid;
  gap: clamp(24px, 4vw, 52px);
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 6px 0 0;
}

.landing-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--sidebar);
  font-size: 1.18rem;
}

.landing-brand span {
  font-weight: 700;
}

.landing-brand strong {
  padding: 5px 10px;
  color: #fff9f2;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sidebar-accent), var(--sidebar));
}

.landing-nav__actions,
.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 500px);
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  width: min(1320px, 100%);
  min-height: clamp(390px, 48vh, 540px);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: calc(var(--radius-xl) + 10px);
  background:
    linear-gradient(90deg, rgba(22, 56, 50, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(184, 92, 56, 0.055) 1px, transparent 1px) 0 10px / 100% 34px,
    linear-gradient(135deg, #fff7ea 0%, #e7f1eb 58%, #f5dcc4 100%);
  box-shadow: 0 24px 58px rgba(24, 40, 36, 0.14);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(36, 54, 50, 0.06);
  border-radius: calc(var(--radius-xl) + 2px);
  pointer-events: none;
}

.landing-hero__content {
  display: grid;
  gap: 14px;
  align-content: center;
  position: relative;
  z-index: 1;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.55rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-hero p {
  max-width: 680px;
  margin: 0;
  color: #42514c;
  font-size: var(--subtitle-size);
  line-height: 1.5;
}

.landing-button--primary {
  background: linear-gradient(135deg, #b85c38, #8f4027);
  box-shadow: 0 14px 26px rgba(161, 76, 45, 0.24);
}

.landing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 6px;
  font: inherit;
  font-weight: 700;
  color: var(--sidebar);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.landing-hero__login {
  color: var(--sidebar);
}

.landing-hero__login strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.landing-hero__login:hover,
.landing-hero__login:focus-visible {
  color: #102f2a;
  background: rgba(22, 56, 50, 0.08);
}

.landing-preview {
  display: grid;
  align-items: center;
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  justify-self: end;
  isolation: isolate;
}

.landing-preview--product {
  justify-items: center;
  gap: 12px;
}

.landing-preview__device-frame {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  max-height: min(520px, 58vh);
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(36, 54, 50, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 238, 228, 0.96)),
    #fffaf4;
  box-shadow:
    0 24px 54px rgba(24, 40, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.landing-preview__screenshot {
  display: block;
  width: clamp(230px, 28vw, 320px);
  max-width: 100%;
  max-height: min(490px, 55vh);
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 14px 30px rgba(24, 40, 36, 0.16);
}

.landing-preview__caption {
  max-width: 360px;
  margin: 0;
  color: #42514c;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.landing-preview__folder {
  display: grid;
  gap: 12px;
  position: relative;
  padding: 18px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(230, 241, 233, 0.94));
  box-shadow: 0 24px 48px rgba(24, 40, 36, 0.18);
}

.landing-preview__folder::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(184, 92, 56, 0.18);
  border-radius: 50%;
  background: rgba(255, 247, 234, 0.42);
  z-index: -1;
}

.landing-preview__tab {
  display: inline-grid;
  justify-self: start;
  gap: 2px;
  min-width: min(270px, 100%);
  margin: -28px 0 0 12px;
  padding: 10px 16px 11px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-bottom: 0;
  border-radius: 14px 14px 4px 4px;
  background: #f2bd77;
  box-shadow: 0 12px 22px rgba(184, 92, 56, 0.12);
}

.landing-preview__tab span,
.landing-preview__sheet-head span,
.landing-preview__receipt span {
  color: #5f6e69;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-preview__tab strong {
  color: #173a33;
  font-size: 1.05rem;
}

.landing-preview__sheet {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 0 31px, rgba(31, 122, 85, 0.07) 32px) 0 0 / 100% 32px,
    #fffdf8;
  box-shadow: 0 16px 30px rgba(24, 40, 36, 0.1);
}

.landing-preview__sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(36, 54, 50, 0.08);
}

.landing-preview__sheet-head strong,
.landing-preview__receipt strong {
  display: block;
  margin-top: 3px;
  color: #173a33;
  font-size: 1.12rem;
}

.landing-preview__sheet-head b {
  color: #1f7a55;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1;
  white-space: nowrap;
}

.landing-preview__stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landing-preview__stamps span {
  padding: 6px 9px;
  color: #173a33;
  border: 1px solid rgba(31, 122, 85, 0.14);
  border-radius: 999px;
  background: rgba(232, 241, 234, 0.92);
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-preview__receipt {
  position: relative;
  display: block;
  width: min(92%, 360px);
  padding: 12px 14px 16px;
  border: 1px dashed rgba(184, 92, 56, 0.35);
  border-radius: 8px;
  background: #fff1d9;
  box-shadow: 0 12px 22px rgba(184, 92, 56, 0.12);
}

.landing-preview__receipt::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: -7px;
  left: 10px;
  height: 8px;
  background: radial-gradient(circle at 5px -1px, transparent 6px, #fff1d9 7px) repeat-x;
  background-size: 14px 8px;
}

.landing-preview__receipt small,
.landing-preview__ledger-row small {
  display: block;
  margin-top: 4px;
  color: #5f6e69;
}

.landing-preview__ledger {
  display: grid;
  gap: 7px;
}

.landing-preview__ledger-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 8px;
  background: rgba(232, 241, 234, 0.82);
}

.landing-preview__ledger-row > span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--positive);
  box-shadow: 0 0 0 4px rgba(31, 122, 85, 0.12);
}

.landing-preview__ledger-row--pending {
  background: rgba(255, 243, 225, 0.9);
}

.landing-preview__ledger-row--pending > span {
  background: #b85c38;
  box-shadow: 0 0 0 4px rgba(184, 92, 56, 0.13);
}

.landing-preview__ledger-row b {
  color: #173a33;
  font-size: 0.94rem;
}

.landing-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.landing-card,
.landing-panel,
.landing-login,
.landing-trial-form {
  border: 1px solid rgba(36, 54, 50, 0.1);
  box-shadow: var(--shadow);
}

.landing-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 128px;
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  background: rgba(255, 253, 249, 0.78);
}

.landing-card h3,
.landing-card strong {
  font-size: 1rem;
}

.landing-card h3,
.landing-card strong,
.landing-panel h2,
.landing-access h2 {
  margin: 0;
}

.landing-card p,
.landing-panel p,
.landing-access p,
.landing-login__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.landing-split,
.landing-trial,
.landing-access,
.landing-guide-summary,
.video-section {
  display: grid;
  width: min(1320px, 100%);
  margin: 0 auto;
  gap: 18px;
  align-items: stretch;
}

.landing-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.landing-commercial-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.landing-commercial-cards .landing-panel {
  align-content: start;
}

.landing-commercial-cards .button {
  justify-self: start;
}

.landing-access {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.78fr);
}

.landing-guide-summary {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 94% 8%, rgba(185, 92, 56, 0.12), transparent 28%),
    rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow-soft);
}

.landing-seo-guides {
  gap: 14px;
  padding: clamp(20px, 2.6vw, 32px);
}

.landing-seo-guides__groups {
  display: grid;
  gap: 18px;
}

.landing-seo-guide-group {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 54, 50, 0.08);
}

.landing-seo-guide-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.landing-seo-guide-group h3 {
  margin: 0;
  color: var(--sidebar);
  font-size: 0.96rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.landing-seo-guide-card {
  min-height: 0;
  padding: clamp(16px, 2vw, 22px);
}

.landing-seo-guide-card a {
  justify-self: start;
  color: var(--sidebar-accent);
  font-weight: 800;
  text-decoration: none;
}

.landing-seo-guide-card a:hover {
  text-decoration: underline;
}

.landing-seo-guides__actions {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.landing-how-works {
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
}

.landing-quick-help {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
}

.landing-quick-help__actions {
  display: flex;
  justify-content: flex-end;
}

.landing-faq {
  display: block;
  padding: clamp(18px, 2.4vw, 28px);
}

.landing-faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.landing-faq__summary::-webkit-details-marker {
  display: none;
}

.landing-faq__summary-copy {
  display: grid;
  max-width: 760px;
  gap: 6px;
}

.landing-faq__summary-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.landing-faq__summary-text {
  color: var(--muted);
  line-height: 1.5;
}

.landing-faq__summary-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(91, 163, 126, 0.14);
  color: var(--sidebar-accent);
  font-size: 1.2rem;
  font-weight: 900;
}

.landing-faq__summary-icon::before {
  content: "+";
}

.landing-faq[open] .landing-faq__summary-icon::before {
  content: "-";
}

.landing-faq__content {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.landing-faq__closing {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.landing-faq__item {
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 12px 28px rgba(18, 34, 30, 0.07);
}

.landing-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.landing-faq__item summary::-webkit-details-marker {
  display: none;
}

.landing-faq__item h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.landing-faq__item summary span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: rgba(91, 163, 126, 0.14);
  color: var(--sidebar-accent);
  font-size: 1rem;
  font-weight: 900;
}

.landing-faq__item summary span::before {
  content: "+";
}

.landing-faq__item[open] summary span::before {
  content: "-";
}

.landing-faq__item p {
  margin: -2px 0 0;
  padding: 0 14px 14px;
  color: var(--muted);
  line-height: 1.5;
}

.landing-faq__closing a {
  color: var(--sidebar-accent);
  font-weight: 700;
  text-decoration: none;
}

.landing-faq__closing a:hover {
  text-decoration: underline;
}

.landing-commercial-faq {
  gap: 16px;
}

.landing-commercial-faq .landing-faq__content {
  padding-top: 0;
}

.landing-faq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.landing-faq__more {
  display: grid;
  gap: 12px;
}

.landing-faq__more summary {
  justify-self: center;
  cursor: pointer;
  color: var(--sidebar-accent);
  font-weight: 800;
  list-style: none;
  text-decoration: none;
}

.landing-faq__more summary::-webkit-details-marker {
  display: none;
}

.landing-faq__more summary:hover {
  text-decoration: underline;
}

.landing-faq__grid--secondary {
  padding-top: 2px;
}

.video-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 92% 10%, rgba(91, 163, 126, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(238, 247, 241, 0.88));
  box-shadow: var(--shadow-soft);
}

.video-section--guide {
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1.28fr);
}

.video-section--compact {
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.76fr);
  gap: 14px;
  padding: clamp(14px, 2vw, 22px);
}

.video-section--compact .local-video-card {
  justify-self: end;
  max-width: 440px;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(18, 34, 30, 0.16);
}

.video-section__intro {
  display: grid;
  gap: 10px;
  align-content: center;
}

.video-section__intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.7rem);
  line-height: 1.05;
}

.video-section__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.video-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 22px;
  background: #132b26;
  box-shadow: 0 22px 44px rgba(18, 34, 30, 0.18);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section__fallback {
  justify-self: end;
  color: var(--sidebar-accent);
  font-weight: 700;
  text-decoration: none;
}

.video-section__fallback:hover {
  text-decoration: underline;
}

.video-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}

.local-video-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 22px;
  background: #132b26;
  box-shadow: 0 22px 44px rgba(18, 34, 30, 0.18);
}

.local-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #132b26;
}

.local-video-player:focus-visible {
  outline: 3px solid rgba(91, 163, 126, 0.55);
  outline-offset: 4px;
}

.first-steps-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
  align-items: center;
}

.landing-guide-summary__intro {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.landing-guide-summary__intro h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
  line-height: 1.05;
}

.landing-guide-summary__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.landing-access__forms {
  display: grid;
  width: min(100%, 480px);
  gap: 14px;
  justify-self: end;
}

.landing-access__forms .landing-login {
  width: 100%;
  justify-self: stretch;
}

.landing-access__help,
.landing-access-choice {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.landing-access__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -2px;
}

.landing-access__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(31, 122, 85, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  color: #264a42;
  font-size: 0.84rem;
  font-weight: 800;
}

.landing-access-mockup {
  display: grid;
  gap: 10px;
  max-width: 620px;
  padding: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 92, 56, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 249, 0.88), rgba(237, 248, 242, 0.86));
  box-shadow: 0 18px 36px rgba(22, 56, 50, 0.08);
}

.landing-access-mockup::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -58px;
  width: 132px;
  height: 132px;
  border-radius: 999px;
  background: rgba(31, 122, 85, 0.12);
}

.landing-access-mockup > * {
  position: relative;
  z-index: 1;
}

.landing-access-mockup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-access-mockup__top span {
  color: #264a42;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-access-mockup__top strong {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 122, 85, 0.12);
  color: #1f5f47;
  font-size: 0.78rem;
}

.landing-access-mockup__roles,
.landing-access-mockup__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landing-access-mockup__roles span,
.landing-access-mockup__nav span {
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.landing-access-mockup__roles span {
  padding: 7px 10px;
  background: rgba(22, 56, 50, 0.9);
  color: #fffaf4;
}

.landing-access-mockup__roles span + span {
  background: rgba(184, 92, 56, 0.16);
  color: #7b442f;
}

.landing-access-mockup__rut {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.landing-access-mockup__rut span,
.landing-access-mockup__rut em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.landing-access-mockup__rut strong {
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

.landing-access-mockup__nav span {
  padding: 5px 8px;
  background: rgba(36, 54, 50, 0.07);
  color: #45625b;
}

.landing-access__help {
  max-width: 620px;
  padding: 11px 12px;
}

.landing-access__help p {
  line-height: 1.38;
}

.landing-access__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.landing-access__help code {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36, 54, 50, 0.08);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
}

.landing-access-choice {
  background: rgba(255, 247, 232, 0.75);
}

.landing-access-choice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-trial {
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    radial-gradient(circle at right top, rgba(184, 92, 56, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.84), rgba(255, 246, 232, 0.82));
  box-shadow: var(--shadow);
}

.landing-panel,
.landing-login,
.landing-trial-form {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.3vw, 28px);
  border-radius: var(--card-radius);
  background: rgba(255, 253, 249, 0.84);
}

.landing-panel h2 {
  font-size: clamp(1.5rem, 2.1vw, 2.35rem);
  line-height: 1.05;
}

.landing-plan {
  align-content: center;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(22, 56, 50, 0.95), rgba(35, 83, 77, 0.92)),
    var(--sidebar);
}

.landing-plan::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(184, 92, 56, 0.26);
}

.landing-plan > * {
  position: relative;
  z-index: 1;
}

.landing-plan,
.landing-plan p,
.landing-plan .hero-card__eyebrow {
  color: rgba(255, 250, 244, 0.82);
}

.landing-plan h2 {
  color: #fffaf4;
}

.landing-plan .button {
  justify-self: start;
  color: var(--sidebar);
  background: #fff6e8;
}

.landing-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(22, 56, 50, 0.06);
}

.landing-steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: #fffaf4;
  border-radius: 50%;
  background: var(--accent);
  font-weight: 800;
}

.landing-steps li div {
  display: grid;
  gap: 3px;
}

.landing-steps li strong {
  color: var(--text);
  line-height: 1.25;
}

.landing-steps li p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.landing-steps--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-access {
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: calc(var(--radius-xl) + 8px);
  background:
    radial-gradient(circle at left top, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.72), rgba(226, 238, 232, 0.82));
  box-shadow: var(--shadow);
}

.landing-access--compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2.2vw, 24px);
  align-items: center;
}

.landing-access--compact .landing-access__intro {
  max-width: none;
}

.landing-access--open {
  align-items: start;
}

.landing-access-compact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-access-login-panel {
  display: grid;
  width: min(100%, 500px);
  justify-self: start;
}

.landing-access-login-panel:not([open]) {
  display: none;
}

.landing-access-login-panel .landing-login,
.landing-access-login-panel .forgot-password-panel {
  width: min(100%, 420px);
  grid-column: auto;
  justify-self: end;
}

.landing-access-login-panel .landing-login__support {
  display: none;
}

.landing-trial__intro,
.landing-access__intro {
  display: grid;
  gap: 12px;
  max-width: 700px;
  padding: 4px;
}

.landing-trial__intro h2,
.landing-access__intro h2 {
  max-width: 720px;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.landing-trial-form {
  border: 1px solid rgba(36, 54, 50, 0.1);
  box-shadow: var(--shadow);
}

.landing-trial-form .flash {
  margin-bottom: 0;
}

.landing-trial-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-trial-form__actions span {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.94rem;
}

.founder-checkout-form {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.founder-checkout-form .button {
  justify-self: start;
}

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

.field__hint--error {
  color: #b42318;
}

.commercial-plan-card__body--compact {
  padding: 16px;
}

.landing-trial-form__actions--secondary {
  padding-top: 4px;
  border-top: 1px solid rgba(36, 54, 50, 0.08);
}

.activate-page {
  width: min(1140px, 100%);
  gap: 10px;
}

.activate-checkout-header {
  display: grid;
  gap: 8px;
  padding: clamp(12px, 1.7vw, 18px) clamp(14px, 2vw, 22px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 96% 0%, rgba(91, 163, 126, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(244, 249, 245, 0.9));
  box-shadow: var(--shadow-soft);
}

.activate-checkout-header__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
}

.activate-checkout-header__badge {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(31, 122, 85, 0.16);
  border-radius: 999px;
  background: rgba(31, 122, 85, 0.1);
  color: var(--positive);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.activate-checkout-header__body {
  display: grid;
  gap: 7px;
  max-width: 820px;
}

.activate-checkout-header h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.activate-checkout-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.34;
}

.activate-checkout-header .landing-hero__actions {
  gap: 7px;
  margin-top: 2px;
}

.activate-checkout-header .button {
  min-height: 38px;
  padding: 8px 12px;
}

.activate-plan-card {
  grid-template-columns: minmax(238px, 0.34fr) minmax(0, 0.66fr);
  align-items: start;
  gap: clamp(12px, 1.9vw, 22px);
  padding: clamp(14px, 1.7vw, 20px);
  border-radius: 24px;
}

.activate-plan-card__intro {
  max-width: none;
  gap: 6px;
  padding: 0;
}

.activate-plan-card__intro h2 {
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
  letter-spacing: -0.038em;
}

.activate-plan-card__intro p {
  line-height: 1.32;
}

.activate-benefits {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.activate-benefits li {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #304a42;
  font-size: 0.91rem;
  font-weight: 800;
  line-height: 1.15;
}

.activate-benefits li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.12);
}

.activate-plan-card__trust {
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(31, 122, 85, 0.08);
  color: #36574f;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.activate-plan-card__form {
  gap: 8px;
  padding: clamp(12px, 1.4vw, 16px);
}

.activate-plan-card__form .founder-checkout-form {
  gap: 8px;
  padding-top: 0;
}

.activate-plan-card__form .form-card__header {
  gap: 3px;
  margin-bottom: 0;
}

.activate-plan-card__form .form-card__header h3 {
  font-size: 1.18rem;
}

.activate-plan-card__form .form-card__header p,
.activate-plan-card__form .landing-login__support {
  line-height: 1.3;
}

.activate-plan-card__form .form-grid {
  gap: 8px;
}

.activate-plan-card__form .field {
  gap: 3px;
}

.activate-plan-card__form .field__label {
  font-size: 0.9rem;
}

.activate-plan-card__form .field__control {
  min-height: 36px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.activate-plan-card__form .inline-field-action {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.activate-plan-card__form .inline-field-action .button {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.activate-plan-card__form .commercial-plan-card__body--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  padding: 0;
}

.activate-plan-card__form .commercial-plan-card__details,
.activate-plan-card__form .commercial-plan-card__price {
  padding: 8px 10px;
  border-radius: 14px;
}

.activate-plan-card__form .commercial-plan-card__details {
  gap: 3px;
}

.activate-plan-card__form .commercial-plan-card__price {
  min-width: 152px;
}

.activate-plan-card__form .commercial-plan-card__price strong {
  font-size: 1.28rem;
}

.activate-plan-card__form .checkbox-field {
  gap: 8px;
  padding: 8px 10px;
}

.activate-plan-card__form .checkbox-field small,
.activate-plan-card__form .field__hint,
.activate-plan-card__form .summary-helper {
  font-size: 0.82rem;
  line-height: 1.28;
}

.activate-plan-card__form .founder-checkout-form > .button {
  justify-self: stretch;
  justify-content: center;
  min-height: 42px;
}

.activate-plan-card__form .landing-login__support {
  font-size: 0.84rem;
}

@media screen and (max-width: 980px) {
  .activate-plan-card {
    grid-template-columns: 1fr;
  }

  .activate-plan-card {
    align-items: stretch;
  }
}

@media screen and (max-width: 640px) {
  .activate-page {
    gap: 14px;
  }

  .activate-checkout-header,
  .activate-plan-card {
    padding: 14px;
  }

  .activate-checkout-header__top {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .activate-checkout-header h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.16rem);
    line-height: 1.04;
    letter-spacing: -0.038em;
  }

  .activate-checkout-header p {
    line-height: 1.38;
  }

  .activate-plan-card {
    gap: 18px;
  }

  .activate-plan-card__intro h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .activate-plan-card__intro {
    gap: 8px;
  }

  .activate-plan-card__trust {
    margin-top: 3px;
  }

  .activate-plan-card__form {
    padding: 14px;
  }

  .activate-plan-card__form .inline-field-action,
  .activate-plan-card__form .commercial-plan-card__body--compact {
    grid-template-columns: 1fr;
  }

  .activate-plan-card__form .commercial-plan-card__body--compact {
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(36, 54, 50, 0.08);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255, 252, 246, 0.95), rgba(244, 249, 245, 0.92));
  }

  .activate-plan-card__form .commercial-plan-card__details {
    background: rgba(255, 255, 255, 0.64);
  }

  .activate-plan-card__form .commercial-plan-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-color: rgba(184, 92, 56, 0.24);
    background:
      linear-gradient(135deg, rgba(184, 92, 56, 0.12), rgba(255, 255, 255, 0.76));
  }

  .activate-plan-card__form .commercial-plan-card__price span {
    color: #5e4031;
    font-size: 0.86rem;
  }

  .activate-plan-card__form .commercial-plan-card__price strong {
    font-size: 1.45rem;
    text-align: right;
  }

  .activate-plan-card__form .inline-field-action .button,
  .activate-plan-card__form .commercial-plan-card__price,
  .activate-checkout-header .landing-hero__actions .button {
    width: 100%;
  }
}

.referrals-page {
  width: min(1140px, 100%);
  gap: 10px;
}

.referrals-checkout-header .activate-checkout-header__body {
  max-width: 860px;
}

.referrals-program-card {
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 0.65fr);
  align-items: start;
  gap: clamp(12px, 1.9vw, 22px);
  padding: clamp(14px, 1.7vw, 20px);
  border-radius: 24px;
}

.referrals-program-card__intro {
  align-self: start;
  align-content: start;
  max-width: none;
  gap: 6px;
  padding: 0;
}

.referrals-program-card__intro h2 {
  font-size: clamp(1.65rem, 2.35vw, 2.35rem);
  letter-spacing: -0.038em;
}

.referrals-program-card__intro p {
  line-height: 1.32;
}

.referrals-steps {
  gap: 6px;
  margin-top: 2px;
}

.referrals-steps li {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.referrals-steps li::before {
  display: none;
}

.referrals-conditions {
  display: grid;
  gap: 5px;
  margin-top: 0;
  padding: 10px 11px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 14px;
  background: rgba(31, 122, 85, 0.08);
}

.referrals-conditions strong {
  color: #264a42;
  font-size: 0.92rem;
}

.referrals-conditions p {
  margin: 0;
  color: #45625b;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
}

.referrals-flow-card {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(184, 92, 56, 0.18), transparent 26%),
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(236, 247, 241, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.referrals-flow-card::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 24px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(184, 92, 56, 0.76), rgba(31, 122, 85, 0.7));
}

.referrals-flow-card__item {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 10px 9px 34px;
  position: relative;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.referrals-flow-card__item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid rgba(255, 253, 249, 0.96);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 92, 56, 0.16);
}

.referrals-flow-card__item--commission::before {
  background: var(--positive);
  box-shadow: 0 0 0 2px rgba(31, 122, 85, 0.16);
}

.referrals-flow-card__item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.referrals-flow-card__item strong {
  color: #173a33;
  font-size: 1.05rem;
  line-height: 1.05;
}

.referrals-flow-card__item--code strong {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--sidebar);
  color: #fffaf4;
  letter-spacing: 0.08em;
}

.referrals-flow-card__item--commission strong {
  color: var(--positive);
}

.referrals-signup-form {
  gap: 9px;
  padding: clamp(12px, 1.5vw, 18px);
}

.referrals-signup-form .form-card__header {
  gap: 4px;
  margin-bottom: 0;
}

.referrals-signup-form .form-card__header h3 {
  font-size: 1.22rem;
}

.referrals-signup-form .form-card__header p {
  line-height: 1.32;
}

.referrals-signup-form .form-grid {
  gap: 9px;
}

.referrals-signup-form .field {
  gap: 4px;
}

.referrals-signup-form .field__label {
  font-size: 0.9rem;
}

.referrals-signup-form .field__control {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.referrals-signup-form [data-referrals-rut-input] {
  box-sizing: border-box;
  height: 38px;
  min-height: 38px;
  padding: 8px 10px;
  line-height: 1.2;
}

.referrals-signup-form .field__hint {
  font-size: 0.82rem;
  line-height: 1.28;
}

.referrals-signup-form .checkbox-field {
  gap: 8px;
  padding: 8px 10px;
}

.referrals-signup-form .checkbox-field span {
  line-height: 1.32;
}

.referrals-signup-form .referrals-legal-check__copy strong,
.referrals-signup-form .referrals-legal-check__copy small {
  display: block;
}

.referrals-signup-form .referrals-legal-check__copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.referrals-signup-form .referrals-legal-check__copy a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.referrals-signup-form .referrals-legal-check__copy a:hover,
.referrals-signup-form .referrals-legal-check__copy a:focus-visible {
  text-decoration: underline;
}

.referrals-signup-form > .button {
  justify-self: stretch;
  justify-content: center;
  min-height: 42px;
}

@media screen and (max-width: 980px) {
  .referrals-program-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media screen and (max-width: 640px) {
  .referrals-page {
    gap: 12px;
  }

  .referrals-checkout-header {
    gap: 6px;
    padding: 12px;
  }

  .referrals-checkout-header .activate-checkout-header__body {
    gap: 6px;
  }

  .referrals-checkout-header h1 {
    font-size: clamp(1.75rem, 8vw, 2.2rem);
    line-height: 1;
  }

  .referrals-checkout-header p {
    line-height: 1.3;
  }

  .referrals-checkout-header .landing-hero__actions {
    gap: 6px;
  }

  .referrals-program-card {
    padding: 14px;
  }

  .referrals-program-card__intro h2 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .referrals-signup-form {
    padding: 14px;
  }

  .referrals-signup-form .referrals-legal-check {
    align-items: flex-start;
    gap: 9px;
    padding: 9px 10px;
  }

  .referrals-signup-form .referrals-legal-check input {
    flex: 0 0 auto;
    margin-top: 2px;
  }

  .referrals-signup-form .referrals-legal-check span {
    font-size: 0.93rem;
    line-height: 1.36;
  }

  .referrals-signup-form .referrals-legal-check__copy strong {
    line-height: 1.3;
  }

  .referrals-signup-form .referrals-legal-check__copy small {
    margin-top: 4px;
    font-size: 0.8rem;
    line-height: 1.34;
  }

  .referrals-flow-card {
    padding: 10px;
  }

  .referrals-flow-card__item {
    min-height: 50px;
  }
}

.field__hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.landing-login {
  width: min(100%, 460px);
  justify-self: end;
  gap: 11px;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.9)),
    var(--surface-strong);
}

.landing-login .flash {
  margin-bottom: 0;
}

.landing-login__support {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-login__submit {
  justify-content: center;
  min-height: 42px;
}

.landing-login__secondary-actions {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}

.landing-login__secondary-actions .landing-link {
  font-weight: 800;
  text-decoration: none;
}

.landing-login__secondary-actions .landing-link:hover,
.landing-login__secondary-actions .landing-link:focus-visible {
  text-decoration: underline;
}

.landing-login__support--info {
  padding: 9px 10px;
  border: 1px solid rgba(31, 122, 85, 0.12);
  border-radius: 14px;
  background: rgba(31, 122, 85, 0.07);
  font-size: 0.86rem;
  line-height: 1.36;
}

.landing-login__support a,
.landing-support-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.landing-login__support a:hover,
.landing-support-footer a:hover {
  text-decoration: underline;
}

.forgot-password-panel {
  display: grid;
  width: min(100%, 460px);
  grid-column: 2;
  justify-self: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: var(--shadow-soft);
}

.forgot-password-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.forgot-password-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-page {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 10px;
}

.guide-hero {
  display: grid;
  gap: 10px;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--card-radius);
  background:
    radial-gradient(circle at 88% 14%, rgba(91, 163, 126, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(238, 247, 241, 0.92));
  box-shadow: var(--shadow-soft);
}

.guide-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 360px;
}

.guide-hero__button {
  text-decoration: none;
  white-space: nowrap;
}

.guide-hero__label--mobile {
  display: none;
}

.guide-hero__content {
  display: grid;
  gap: 8px;
  max-width: 740px;
}

.guide-hero__content h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  line-height: 1.04;
}

.guide-hero__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.guide-page .video-section {
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.92fr);
  align-items: start;
  gap: clamp(14px, 2vw, 22px);
  padding: clamp(14px, 2vw, 22px);
}

.guide-page .video-section__intro {
  gap: 8px;
  align-content: start;
  padding-top: 2px;
}

.guide-page .video-section__intro h2 {
  font-size: clamp(1.35rem, 2vw, 2.05rem);
  line-height: 1.12;
}

.guide-page .video-section__intro p {
  line-height: 1.45;
}

.video-section__points {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.video-section__points strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.video-section__points ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}

.video-section__points li {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.video-section__points li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.45em;
  border-radius: 999px;
  background: var(--accent);
}

.guide-page .local-video-card {
  max-width: 520px;
  justify-self: end;
  border-radius: 18px;
  box-shadow: 0 14px 24px rgba(18, 34, 30, 0.13);
}

.guide-summary {
  gap: 10px;
}

.guide-summary .landing-card {
  min-height: auto;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
}

.guide-summary .landing-card p {
  line-height: 1.42;
}

.guide-accordion-list {
  display: grid;
  gap: 8px;
}

.guide-accordion {
  overflow: hidden;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: var(--shadow-soft);
}

.guide-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.guide-accordion summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(91, 163, 126, 0.14);
  color: var(--accent-strong);
}

.guide-accordion[open] summary::after {
  content: "-";
}

.guide-accordion__body {
  display: grid;
  gap: 8px;
  padding: 0 16px 14px;
  color: var(--muted);
  line-height: 1.45;
}

.guide-accordion__body p {
  margin: 0;
}

.guide-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 22px;
}

.guide-examples {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(36, 54, 50, 0.06);
  color: var(--ink);
}

.guide-examples code {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.public-info-page {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 18px;
}

.public-info-sections {
  display: grid;
  gap: 12px;
}

.public-info-card {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: var(--shadow-soft);
}

.public-info-card h2,
.public-info-card p {
  margin: 0;
}

.public-info-card h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.public-info-card p,
.public-info-card li {
  color: var(--muted);
  line-height: 1.55;
}

.public-info-card a,
.public-footer a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.public-info-card a:hover,
.public-info-card a:focus-visible,
.public-footer a:hover,
.public-footer a:focus-visible {
  text-decoration: underline;
}

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

.public-info-contact div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(91, 163, 126, 0.1);
}

.public-info-contact span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.public-footer {
  display: grid;
  gap: 6px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 16px 20px 18px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 18px;
  background: rgba(255, 252, 246, 0.78);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.public-footer__main,
.public-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.public-footer__main {
  justify-content: space-between;
}

.public-footer__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.public-whatsapp-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: #fff;
  border-radius: 50%;
  background: #168c4b;
  box-shadow: 0 10px 24px rgba(18, 67, 43, 0.24);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.public-whatsapp-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.public-whatsapp-fab:hover {
  background: #10733d;
  box-shadow: 0 12px 26px rgba(18, 67, 43, 0.3);
  transform: translateY(-2px);
}

.public-whatsapp-fab:focus-visible {
  outline: 3px solid rgba(184, 92, 56, 0.65);
  outline-offset: 4px;
}

.landing-support-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 6px 10px 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
}

.public-shell {
  min-height: 100vh;
  padding: clamp(16px, 2.5vw, 28px) clamp(16px, 2.8vw, 36px) clamp(30px, 5vw, 64px);
}

.public-shell__content {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.public-view {
  display: grid;
  gap: 16px;
}

.guardian-portal-view {
  display: grid;
  gap: 16px;
}

.guardian-portal-toolbar {
  padding: var(--card-padding);
}

.guardian-portal-toolbar__layout {
  margin-bottom: 0;
}

.guardian-portal-toolbar__selector {
  min-width: 280px;
}

.guardian-portal-status-card {
  align-content: start;
}

.guardian-portal-kpi--success {
  background: linear-gradient(180deg, rgba(31, 122, 85, 0.1), rgba(255, 252, 248, 0.94));
}

.guardian-portal-kpi--success::before {
  background: rgba(31, 122, 85, 0.58);
}

.guardian-portal-kpi--success strong {
  color: var(--positive);
}

.guardian-portal-kpi--warning {
  background: linear-gradient(180deg, rgba(138, 90, 17, 0.11), rgba(255, 252, 248, 0.94));
}

.guardian-portal-kpi--warning::before {
  background: rgba(138, 90, 17, 0.5);
}

.guardian-portal-kpi--warning strong {
  color: var(--warning);
}

.guardian-portal-kpi--danger {
  background: linear-gradient(180deg, rgba(156, 74, 45, 0.12), rgba(255, 247, 238, 0.96));
}

.guardian-portal-kpi--danger::before {
  background: rgba(156, 74, 45, 0.58);
}

.guardian-portal-kpi--danger strong {
  color: var(--negative);
}

.guardian-portal-kpi--neutral {
  background: linear-gradient(180deg, rgba(36, 54, 50, 0.08), rgba(255, 252, 248, 0.94));
}

.guardian-portal-kpi--neutral::before {
  background: rgba(36, 54, 50, 0.22);
}

.guardian-payment-notice-form-card .data-form {
  margin-bottom: 0;
}

.guardian-payment-notice-form__grid {
  align-items: start;
}

.payment-notice-action {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.payment-notice-status {
  display: grid;
  gap: 5px;
  align-items: start;
}

.payment-notice-status small {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.guardian-payment-notices__list {
  display: grid;
  gap: 10px;
}

.payment-notice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.payment-notices-review {
  display: grid;
  gap: 12px;
}

.payment-notices-review__list {
  display: grid;
  gap: 12px;
}

.payment-notice-review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 242, 236, 0.76)),
    var(--surface-strong);
}

.payment-notice-review-card__main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.payment-notice-review-card__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.payment-notice-review-card__meta span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-notice-review-card__meta strong {
  color: var(--text);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.payment-notice-review-card__comment {
  margin: 0;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: rgba(156, 74, 45, 0.08);
  color: var(--text);
  line-height: 1.45;
}

.payment-notice-review-card__side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.payment-notice-review-card__actions {
  justify-content: end;
}

.payment-notice-reject-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 2px 0 0;
  padding: 12px;
  border: 1px solid rgba(156, 74, 45, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
}

.payment-notice-reject-form__grid {
  align-items: start;
}

@media (max-width: 760px) {
  .guardian-payment-notice-form__grid,
  .payment-notice-card,
  .payment-notice-review-card,
  .payment-notice-review-card__meta,
  .payment-notice-reject-form__grid {
    grid-template-columns: 1fr;
  }

  .payment-notice-action,
  .payment-notice-action .button {
    width: 100%;
  }

  .payment-notice-action .button {
    justify-content: center;
  }

  .payment-notice-review-card__side,
  .payment-notice-review-card__actions,
  .payment-notice-review-card__actions .button {
    width: 100%;
    justify-items: stretch;
    justify-content: stretch;
  }

  .payment-notice-review-card__actions .button {
    justify-content: center;
  }
}

.public-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: var(--card-padding);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 236, 0.98)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.public-hero__aside {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-self: start;
}

.public-hero h1 {
  margin: 6px 0 8px;
  font-size: var(--title-size);
}

.public-hero__text {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.public-hero__meta {
  display: grid;
  align-self: start;
  min-width: 136px;
  padding: 12px 14px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(22, 56, 50, 0.08);
}

.public-hero__meta span {
  color: var(--muted);
}

.public-hero__meta strong {
  margin-top: 6px;
  font-size: 1.35rem;
}

.public-grid {
  grid-template-columns: 1fr 1fr;
}

.rendition-view {
  display: grid;
  gap: 16px;
}

.rendition-live-summary-card {
  padding: 10px 12px;
}

.rendition-live-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(520px, max-content);
  gap: 10px 14px;
  align-items: start;
  margin-bottom: 0;
}

.rendition-live-heading {
  display: grid;
  gap: 3px;
  max-width: 58ch;
  margin-bottom: 0;
}

.rendition-live-heading h2 {
  margin-bottom: 0;
  line-height: 1.12;
}

.rendition-live-heading p {
  max-width: 54ch;
  line-height: 1.3;
}

.rendition-live-actions {
  display: grid;
  gap: 6px;
  align-content: start;
  justify-items: end;
  justify-content: stretch;
}

.rendition-live-actions__primary,
.rendition-live-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
  justify-content: flex-end;
  width: 100%;
}

.rendition-live-actions__primary {
  min-height: 34px;
}

.rendition-live-actions__secondary {
  align-items: center;
  justify-content: flex-start;
}

.rendition-live-actions .button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 0.88rem;
  line-height: 1.15;
}

.rendition-live-actions .filter-inline {
  min-width: 138px;
  gap: 3px;
  font-size: 0.86rem;
}

.rendition-live-actions .filter-inline select {
  min-height: 32px;
  padding: 6px 8px;
}

.rendition-live-actions .export-actions {
  gap: 6px;
}

.rendition-kpis .dashboard-kpi--income::before {
  background: rgba(31, 122, 85, 0.58);
}

.rendition-kpis .dashboard-kpi--expenses::before {
  background: rgba(184, 92, 56, 0.5);
}

.rendition-live-branding {
  align-self: center;
  margin-left: 2px;
}

.rendition-live-branding .branding-cluster--report {
  justify-content: flex-end;
  gap: 6px;
  margin-top: 0;
}

.rendition-live-branding .branding-logo {
  padding: 5px;
  border-radius: 12px;
}

.rendition-live-branding .branding-logo--primary {
  width: 46px;
  height: 46px;
}

.rendition-live-branding .branding-logo--secondary {
  width: 36px;
  height: 36px;
}

.print-only {
  display: none !important;
}

.rendition-print-header {
  margin-top: -6px;
}

.print-report-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.print-report-meta h2 {
  margin: 8px 0 6px;
  font-size: 1.8rem;
}

.print-report-meta__side {
  min-width: 180px;
  text-align: right;
}

.print-report-meta__aside {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.print-report-meta__side span {
  display: block;
  color: var(--muted);
}

.print-report-meta__side strong {
  display: block;
  margin: 4px 0 10px;
}

.report-print-header {
  padding: 16px 18px;
}

.report-print-header__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.report-print-header__main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.report-print-header__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-print-header__title {
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.1;
}

.report-print-header__subtitle {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
}

.report-print-header__meta {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: end;
}

.report-print-header__branding {
  display: flex;
  justify-content: flex-end;
}

.report-print-header__facts {
  display: grid;
  gap: 6px;
  min-width: 148px;
  margin: 0;
}

.report-print-header__fact {
  display: grid;
  gap: 1px;
  text-align: right;
}

.report-print-header__fact dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.report-print-header__fact dd {
  margin: 0;
  font-weight: 700;
}

.branding-cluster--print-header {
  gap: 6px;
  justify-content: flex-end;
}

.branding-cluster--print-header .branding-logo {
  padding: 6px;
}

.branding-cluster--print-header .branding-logo--primary {
  width: 64px;
  height: 64px;
}

.branding-cluster--print-header .branding-logo--secondary {
  width: 48px;
  height: 48px;
}

@media (max-width: 1120px) {
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    min-height: 520px;
  }

  .landing-preview,
  .landing-login {
    width: 100%;
  }

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

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

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .first-steps-list,
  .first-step-item {
    grid-template-columns: 1fr;
  }

  .first-step-item__number {
    width: 30px;
    height: 30px;
  }

  .meeting-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 18px;
    padding-bottom: 18px;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .topbar,
  .page__header,
  .section-toolbar,
  .hero-card,
  .meeting-hero,
  .public-hero,
  .print-report-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero,
  .landing-split,
  .landing-trial,
  .landing-access,
  .video-section {
    grid-template-columns: 1fr;
  }

  .landing-access__intro {
    order: 2;
  }

  .landing-access .landing-login {
    order: 1;
    justify-self: stretch;
    width: 100%;
  }

  .landing-access .forgot-password-panel {
    order: 3;
  }

  .landing-access__chips,
  .landing-access-mockup,
  .landing-access__help {
    max-width: none;
  }

  .landing-commercial-cards {
    grid-template-columns: 1fr;
  }

  .landing-steps--compact,
  .landing-seo-guides__cards {
    grid-template-columns: 1fr;
  }

  .landing-quick-help {
    grid-template-columns: 1fr;
  }

  .landing-quick-help__actions {
    justify-content: flex-start;
  }

  .landing-faq__grid {
    grid-template-columns: 1fr;
  }

  .video-section--compact .local-video-card {
    max-width: none;
    justify-self: stretch;
  }

  .video-section__fallback {
    justify-self: start;
  }

  .landing-guide-summary__cards,
  .guide-summary,
  .public-info-contact {
    grid-template-columns: 1fr;
  }

  .workspace-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-preview,
  .landing-access__forms,
  .landing-login,
  .forgot-password-panel {
    grid-column: 1;
    justify-self: stretch;
  }

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

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

  .branding-settings-grid {
    grid-template-columns: 1fr;
  }

  .contact-log-panel__layout {
    grid-template-columns: 1fr;
  }

  .report-print-header__layout {
    grid-template-columns: 1fr;
  }

  .report-print-header__meta,
  .report-print-header__branding {
    justify-items: start;
    justify-content: start;
  }

  .report-print-header__fact {
    text-align: left;
  }

  .rendition-live-toolbar {
    grid-template-columns: 1fr;
  }

  .content {
    padding-top: 6px;
  }
}

@media (max-width: 640px) {
  .inline-field-action {
    grid-template-columns: 1fr;
  }

  .topbar,
  .content,
  .public-shell,
  .meeting-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sidebar {
    padding: 16px;
  }

  .metrics-grid,
  .metrics-grid--three,
  .metrics-grid--four {
    grid-template-columns: 1fr;
  }

  .movement-item,
  .summary-list li {
    flex-direction: column;
  }

  .movement-item__meta {
    text-align: left;
  }

  .hero-card__aside,
  .meeting-hero__aside,
  .public-hero__aside,
  .report-branding-row,
  .print-report-meta__aside {
    justify-items: start;
    justify-content: start;
  }

  .meeting-shell__toolbar {
    justify-content: start;
  }

  .landing-nav {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .landing-hero__actions {
    width: 100%;
  }

  .landing-nav__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .landing-nav__actions .button {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .landing-hero__actions .button {
    flex: 1 1 180px;
  }

  .landing-hero {
    padding: 28px;
  }

  .landing-preview {
    justify-self: stretch;
    max-width: none;
  }

  .landing-access {
    padding: 22px;
  }

  .landing-trial {
    padding: 22px;
  }

  .landing-guide-summary,
  .video-section,
  .guide-hero {
    padding: 20px;
  }

  .landing-quick-help__actions,
  .landing-quick-help__actions .button {
    width: 100%;
  }

  .landing-support-footer {
    justify-content: flex-start;
    padding-inline: 4px;
    text-align: left;
  }

  .public-footer {
    padding: 16px 16px 76px;
  }

  .public-footer__main {
    justify-content: center;
    text-align: center;
  }

  .public-footer__links {
    justify-content: center;
    text-align: center;
  }

  .public-footer__note {
    text-align: center;
  }

  .public-whatsapp-fab {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .public-whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }

  .landing-benefits {
    grid-template-columns: 1fr;
  }

  .ranking-list__item {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .contact-log-list__item {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  :root {
    --shadow: none;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .no-print,
  .flash,
  .button,
  .nav {
    display: none !important;
  }

  .shell,
  .shell__body {
    display: block;
    min-height: auto;
  }

  .content,
  .public-shell,
  .public-shell__content,
  .meeting-shell,
  .meeting-shell__content {
    padding: 0;
    width: 100%;
    max-width: none;
  }

  .page,
  .public-view,
  .meeting-view {
    gap: 12px;
  }

  .surface-card,
  .metric-card,
  .hero-card,
  .meeting-hero,
  .public-hero {
    box-shadow: none;
    background: #fff;
    border-color: rgba(0, 0, 0, 0.15);
  }

  .print-only {
    display: block !important;
  }

  .branding-logo {
    background: #fff;
  }

  .rendition-view {
    gap: 10px;
  }

  .rendition-view .metrics-grid {
    gap: 8px;
  }

  .report-print-header {
    padding: 10px 12px;
  }

  .report-print-header__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
  }

  .report-print-header__title {
    font-size: 1.24rem;
  }

  .report-print-header__subtitle {
    max-width: 44ch;
    font-size: 0.9rem;
  }

  .report-print-header__meta {
    gap: 6px;
  }

  .report-print-header__facts {
    gap: 4px;
    min-width: 128px;
  }

  .report-print-header__fact dt {
    font-size: 0.76rem;
  }

  .branding-cluster--print-header {
    gap: 5px;
  }

  .branding-cluster--print-header .branding-logo {
    padding: 4px;
  }

  .branding-cluster--print-header .branding-logo--primary {
    width: 56px;
    height: 56px;
  }

  .branding-cluster--print-header .branding-logo--secondary {
    width: 42px;
    height: 42px;
  }

  .data-table {
    min-width: 0;
  }

  .data-table th,
  .data-table td {
    padding: 10px 8px;
  }

  .rendition-view[data-print-mode="live"] .rendition-closures-section,
  .rendition-view[data-print-mode="live"] .rendition-closed-detail-section {
    display: none !important;
  }

  .rendition-view[data-print-mode="closed"] .rendition-live-section,
  .rendition-view[data-print-mode="closed"] .rendition-closures-section {
    display: none !important;
  }
}
/* ===== Ajuste fino desktop / notebook ===== */
@media (min-width: 1100px) {
  html {
    font-size: 12.2px !important;
  }

  :root {
    --font-base: 12.2px !important;
    --sidebar-width: 220px !important;
    --page-padding: 16px !important;
    --card-padding: 16px !important;
    --card-radius: 18px !important;
    --title-size: clamp(1.45rem, 1.8vw, 2rem) !important;
    --subtitle-size: clamp(0.95rem, 1.05vw, 1.05rem) !important;
    --radius-xl: 20px !important;
    --radius-lg: 16px !important;
    --radius-md: 12px !important;
    --radius-sm: 10px !important;
  }

  body {
    font-size: 1.02rem !important;
    line-height: 1.42 !important;
  }

  .shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr) !important;
  }

  .sidebar {
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    gap: 12px !important;
    padding: 14px 12px !important;
  }

  .brand {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .brand strong {
    font-size: 1rem !important;
  }

  .brand__eyebrow,
  .brand__meta,
  .topbar__eyebrow,
  .hero-card__eyebrow {
    font-size: 0.76rem !important;
  }

  .nav {
    gap: 5px !important;
  }

  .nav__link {
    padding: 8px 10px !important;
    border-radius: 9px !important;
    font-size: 0.95rem !important;
  }

  .topbar {
    gap: 12px !important;
    padding: 12px 16px 8px !important;
  }

  .topbar__title {
    font-size: clamp(1.5rem, 1.8vw, 2.05rem) !important;
    line-height: 1.06 !important;
    margin: 0 !important;
  }

  .topbar__status {
    min-width: 140px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
  }

  .topbar__status span,
  .topbar__status strong {
    font-size: 0.88rem !important;
  }

  .content {
    padding: 10px 16px 20px !important;
  }

  .page,
  .rendition-view,
  .public-view,
  .collection-summary-block,
  .landing-page {
    gap: 14px !important;
  }

  .page__header,
  .section-toolbar,
  .workspace-banner {
    gap: 10px !important;
    margin-bottom: 8px !important;
  }

  .workspace-banner {
    padding: 8px 10px !important;
    border-radius: 11px !important;
  }

  .hero-card,
  .surface-card,
  .metric-card,
  .form-card,
  .landing-card,
  .landing-panel,
  .landing-login,
  .landing-trial-form,
  .public-hero,
  .meeting-hero,
  .empty-state,
  .branding-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .hero-card,
  .public-hero,
  .meeting-hero {
    gap: 12px !important;
  }

  .hero-card h1,
  .hero-card h2,
  .public-hero h1,
  .meeting-hero__content h1 {
    font-size: clamp(1.45rem, 1.7vw, 1.95rem) !important;
    line-height: 1.06 !important;
    margin: 2px 0 4px !important;
  }

  .hero-card__text,
  .public-hero__text,
  .meeting-hero__text,
  .page__description {
    font-size: 0.96rem !important;
    line-height: 1.45 !important;
  }

  .metrics-grid,
  .metrics-grid--three,
  .metrics-grid--four,
  .dashboard-grid,
  .landing-benefits,
  .form-grid,
  .branding-settings-grid {
    gap: 12px !important;
  }

  .metrics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .metric-card {
    min-height: 0 !important;
    padding: 14px !important;
  }

  .metric-card span {
    font-size: 0.9rem !important;
  }

  .metric-card strong,
  .hero-card__badge strong {
    font-size: clamp(1.3rem, 1.6vw, 1.85rem) !important;
    line-height: 1.04 !important;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr) !important;
  }

  .section-heading {
    margin-bottom: 8px !important;
  }

  .section-heading h2,
  h2,
  .section-title {
    font-size: 1.04rem !important;
  }

  .button,
  button,
  input,
  select,
  textarea,
  .field__control {
    min-height: 36px !important;
    font-size: 0.95rem !important;
  }

  .button,
  button {
    padding: 7px 12px !important;
  }

  .field,
  .form-section,
  .toolbar-actions,
  .export-actions {
    gap: 8px !important;
  }

  .field label,
  .form-label,
  .landing-login label,
  .landing-trial-form label {
    font-size: 0.9rem !important;
  }

  .field small,
  .field__hint,
  .form-hint,
  .landing-login small,
  .landing-trial-form small,
  .landing-access p,
  .landing-trial p {
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
  }

  .data-table th,
  .data-table td {
    padding: 8px 9px !important;
    font-size: 0.92rem !important;
  }

  .table-shell,
  .table-card,
  .list-card {
    padding: 12px !important;
  }

  .public-shell {
    padding: 16px 24px 28px !important;
  }

  .public-shell__content,
  .landing-nav,
  .landing-hero,
  .landing-benefits,
  .landing-split,
  .landing-trial,
  .landing-access,
  .landing-guide-summary,
  .video-section {
    width: min(1160px, 100%) !important;
  }

  .landing-nav {
    gap: 10px !important;
    padding: 2px 0 0 !important;
  }

  .landing-brand {
    font-size: 1.02rem !important;
  }

  .landing-nav__actions,
  .landing-hero__actions {
    gap: 8px !important;
  }

  .landing-nav .button,
  .landing-nav button,
  .landing-nav a {
    padding: 10px 16px !important;
    font-size: 0.94rem !important;
    border-radius: 999px !important;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr) !important;
    min-height: clamp(360px, 50vh, 500px) !important;
    padding: 24px !important;
    gap: 22px !important;
    border-radius: 24px !important;
  }

  .landing-hero__content {
    gap: 12px !important;
  }

  .landing-hero h1 {
    max-width: 660px !important;
    font-size: clamp(2.7rem, 3.4vw, 4.3rem) !important;
    line-height: 0.97 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
  }

  .landing-hero p {
    max-width: 560px !important;
    font-size: 1rem !important;
    line-height: 1.48 !important;
  }

  .landing-preview {
    width: min(100%, 420px) !important;
    max-width: 420px !important;
  }

  .landing-preview__folder {
    gap: 10px !important;
    padding: 14px !important;
  }

  .landing-preview__tab {
    margin-top: -24px !important;
    padding: 8px 13px 9px !important;
  }

  .landing-preview__sheet {
    gap: 10px !important;
    padding: 12px !important;
  }

  .landing-preview__sheet-head b {
    font-size: clamp(1.5rem, 2.3vw, 1.9rem) !important;
  }

  .landing-preview__receipt,
  .landing-preview__ledger-row {
    padding: 9px 10px !important;
  }

  .landing-card {
    min-height: 104px !important;
    gap: 6px !important;
    padding: 14px !important;
  }

  .landing-card h3,
  .landing-card strong {
    font-size: 1rem !important;
  }

  .landing-card p {
    font-size: 0.94rem !important;
    line-height: 1.45 !important;
  }

  .landing-panel,
  .landing-login,
  .landing-trial-form {
    gap: 10px !important;
    padding: 16px !important;
  }

  .landing-panel h2,
  .landing-access h2,
  .landing-trial__intro h2,
  .landing-access__intro h2 {
    font-size: clamp(1.45rem, 1.9vw, 2.2rem) !important;
    line-height: 1.08 !important;
  }

  .landing-trial,
  .landing-access,
  .landing-guide-summary,
  .video-section {
    padding: 16px !important;
    gap: 14px !important;
  }

  .landing-login {
    width: min(100%, 380px) !important;
  }

  .landing-login .button,
  .landing-trial-form .button {
    min-height: 40px !important;
    font-size: 0.96rem !important;
  }
}

/* ===== Ajuste fino landing desktop / notebook ===== */
@media screen and (min-width: 1100px) {
  .public-shell {
    padding: 14px 24px 28px !important;
  }

  .public-shell__content,
  .landing-page {
    gap: 20px !important;
  }

  .landing-nav {
    align-items: center !important;
    margin-bottom: 2px !important;
    padding-top: 4px !important;
  }

  .landing-brand {
    gap: 12px !important;
    font-size: 1.3rem !important;
    letter-spacing: -0.02em !important;
  }

  .landing-brand span {
    font-size: 1.04em !important;
  }

  .landing-brand strong {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-size: 1.04em !important;
  }

  .landing-hero {
    min-height: clamp(330px, 44vh, 455px) !important;
    gap: 18px !important;
    padding: 20px 24px !important;
  }

  .landing-hero__content {
    gap: 10px !important;
  }

  .landing-hero h1 {
    margin-bottom: 0 !important;
  }

  .landing-hero p {
    line-height: 1.42 !important;
  }

  .landing-hero__actions {
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .landing-preview {
    width: min(100%, 430px) !important;
  }

  .landing-preview__folder {
    padding: 14px !important;
  }

  .landing-preview__sheet,
  .landing-preview__receipt,
  .landing-preview__ledger-row {
    padding: 9px 11px !important;
  }

  .landing-benefits,
  .landing-split,
  .landing-trial,
  .landing-access,
  .landing-guide-summary,
  .video-section {
    gap: 12px !important;
  }

  .landing-card {
    min-height: 94px !important;
    gap: 5px !important;
    padding: 13px 14px !important;
  }

  .landing-panel,
  .landing-login,
  .landing-trial-form {
    gap: 9px !important;
    padding: 14px !important;
  }

  .landing-panel h2,
  .landing-access h2,
  .landing-trial__intro h2,
  .landing-access__intro h2 {
    margin-bottom: 2px !important;
  }

  .landing-panel p,
  .landing-access p,
  .landing-trial p,
  .landing-login__note {
    line-height: 1.38 !important;
  }

  .landing-plan {
    min-height: 0 !important;
  }

  .landing-steps {
    gap: 8px !important;
  }

  .landing-steps li {
    min-height: 58px !important;
    gap: 9px !important;
    padding: 10px 12px !important;
  }

  .landing-steps span {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.95rem !important;
  }

  .landing-trial,
  .landing-access,
  .landing-guide-summary,
  .video-section {
    padding: 14px 16px !important;
  }

  .landing-trial__intro,
  .landing-access__intro {
    gap: 8px !important;
  }

  .landing-login {
    width: min(100%, 390px) !important;
  }

  .landing-access__forms {
    width: min(100%, 430px) !important;
  }

  .landing-login .form-card__header,
  .landing-trial-form .form-card__header {
    gap: 4px !important;
    margin-bottom: 0 !important;
  }

  .landing-login .form-grid,
  .landing-trial-form .form-grid {
    gap: 9px !important;
  }

  .landing-login .field,
  .landing-trial-form .field {
    gap: 4px !important;
  }

  .landing-login .field__label,
  .landing-trial-form .field__label {
    font-size: 0.93rem !important;
  }

  .landing-login .field__control,
  .landing-trial-form .field__control {
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .landing-login .field__hint,
  .landing-trial-form .field__hint {
    margin-top: 2px !important;
    font-size: 0.93rem !important;
    line-height: 1.35 !important;
  }

  .landing-trial-form__actions {
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .landing-trial-form__actions span {
    font-size: 0.93rem !important;
    line-height: 1.35 !important;
  }
}

@media screen and (max-width: 640px) {
  .guardian-portal-toolbar__selector,
  .guardian-portal-toolbar__selector select,
  .filter-inline--checkbox {
    width: 100%;
    min-width: 0;
  }

  .meeting-shell__toolbar,
  .guardian-portal-toolbar__layout {
    flex-wrap: wrap;
    gap: 10px;
  }

  .meeting-shell__toolbar .toolbar-actions,
  .guardian-portal-toolbar .toolbar-actions {
    width: 100%;
  }

  .table-actions .button {
    white-space: normal;
  }
}

/* ===== Responsive interno movil ===== */
@media screen and (max-width: 760px) {
  html,
  body,
  #app,
  .shell,
  .shell__body,
  .content,
  .page,
  .surface-card,
  .hero-card,
  .metric-card,
  .form-card,
  .empty-state,
  .public-shell,
  .public-shell__content,
  .guardian-portal-view,
  .rendition-view {
    max-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 10px 12px;
  }

  .brand strong,
  .brand__meta,
  .topbar__title,
  .page__description,
  .section-heading,
  .section-heading p,
  .table-detail,
  .table-note,
  .placeholder-note,
  .flash,
  .empty-state p {
    overflow-wrap: anywhere;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .nav__link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 9px 12px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .topbar {
    gap: 10px;
    padding: 14px 14px 6px;
  }

  .topbar__status {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .topbar-public-links {
    justify-content: flex-start;
    max-width: none;
  }

  .content {
    padding: 8px 12px 22px;
  }

  .page,
  .dashboard-grid,
  .rendition-view,
  .guardian-portal-view,
  .public-view,
  .collection-summary-block {
    gap: 12px;
  }

  .page__header,
  .section-toolbar,
  .hero-card,
  .public-hero,
  .meeting-hero,
  .bulk-selection-card__header,
  .import-summary__header,
  .import-summary__metrics {
    flex-direction: column;
    align-items: stretch;
  }

  .surface-card,
  .hero-card,
  .metric-card,
  .form-card,
  .empty-state,
  .bulk-selection-card,
  .import-summary,
  .payment-balance-card,
  .public-hero,
  .meeting-hero {
    padding: 12px;
    border-radius: 14px;
  }

  .hero-card h2,
  .public-hero h1,
  .meeting-hero__content h1,
  .topbar__title {
    line-height: 1.08;
  }

  .metrics-grid,
  .metrics-grid--three,
  .metrics-grid--four,
  .dashboard-grid,
  .public-grid,
  .branding-settings-grid,
  .contact-log-panel__layout,
  .form-grid,
  .form-grid--two {
    grid-template-columns: 1fr;
  }

  .metric-card strong,
  .hero-card__badge strong,
  .public-hero__meta strong {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .toolbar-actions,
  .toolbar-actions--wide,
  .export-actions,
  .form-actions,
  .empty-state__actions,
  .students-empty-actions,
  .demo-actions,
  .landing-trial-form__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
    justify-content: stretch;
  }

  .toolbar-actions .button,
  .toolbar-actions a.button,
  .export-actions .button,
  .form-actions .button,
  .form-actions a.button,
  .empty-state__actions .button,
  .empty-state__actions a.button,
  .students-empty-actions .button,
  .students-empty-actions a.button,
  .demo-actions .button,
  .landing-trial-form__actions .button {
    width: 100%;
    min-height: 42px;
  }

  .button,
  .field__control,
  .filter-inline select {
    min-height: 42px;
  }

  .button--small {
    min-height: 38px;
    padding: 7px 10px;
  }

  .filter-inline,
  .filter-inline--checkbox,
  .guardian-portal-toolbar__selector {
    width: 100%;
    min-width: 0;
  }

  .debtors-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .filter-inline--checkbox {
    justify-content: flex-start;
    border-radius: 12px;
  }

  .table-shell {
    max-width: 100%;
    margin-inline: -2px;
    padding: 0 2px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    border-radius: 12px;
  }

  .data-table {
    min-width: 720px;
  }

  .data-table--compact {
    min-width: 620px;
  }

  .data-table th,
  .data-table td {
    padding: 9px 8px;
    vertical-align: top;
  }

  .data-table td {
    overflow-wrap: anywhere;
  }

  .selection-cell {
    width: 44px;
    min-width: 44px;
  }

  .table-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 176px;
    gap: 7px;
  }

  .student-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .table-actions .button,
  .table-actions a.button {
    width: 100%;
    min-height: 36px;
    padding-inline: 8px;
    white-space: normal;
  }

  .income-actions {
    display: flex;
    grid-template-columns: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .income-actions .button,
  .income-actions a.button {
    flex: 0 1 auto;
    width: auto;
    min-height: 34px;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .summary-list,
  .movement-list,
  .ranking-list,
  .contact-log-list {
    gap: 10px;
  }

  .movement-item,
  .summary-list li,
  .ranking-list__item,
  .contact-log-list__item {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 11px 12px;
  }

  .movement-item__meta,
  .ranking-list__value,
  .print-report-meta__side {
    text-align: left;
  }

  .bulk-selection-card__note {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-hero__aside,
  .hero-card__aside,
  .meeting-hero__aside,
  .branding-cluster--hero,
  .branding-cluster--public,
  .report-branding-row {
    justify-items: start;
    justify-content: start;
  }

  .public-hero__meta,
  .hero-card__badge {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .guardian-portal-toolbar .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .guardian-portal-metrics .metric-card {
    min-height: 0;
  }

  .landing-access,
  .landing-trial,
  .landing-hero {
    padding: 18px;
  }

  .landing-login,
  .landing-trial-form,
  .landing-panel {
    width: 100%;
  }
}

@media screen and (max-width: 420px) {
  .content {
    padding-inline: 10px;
  }

  .surface-card,
  .hero-card,
  .metric-card,
  .form-card,
  .empty-state,
  .bulk-selection-card,
  .import-summary,
  .payment-balance-card,
  .public-hero {
    padding: 10px;
  }

  .table-actions {
    grid-template-columns: 1fr;
    min-width: 150px;
  }

  .data-table {
    min-width: 680px;
  }

  .data-table--compact {
    min-width: 560px;
  }
}

/* ===== Segunda pasada responsive movil: Samsung Galaxy S20 Ultra ===== */
.mobile-record-list {
  display: none;
}

.rendition-closed-reports-mobile {
  display: none;
}

.rendition-closed-report-actions {
  min-width: 0;
}

@media screen and (max-width: 760px) {
  .shell,
  .shell__body,
  .content,
  .page {
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px rgba(22, 56, 50, 0.16);
  }

  .brand {
    width: 100%;
    box-sizing: border-box;
    border-radius: 14px;
  }

  .nav {
    width: 100%;
    margin: 0;
    padding-bottom: 6px;
  }

  .nav__link {
    border-radius: 999px;
  }

  .topbar {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px 4px;
  }

  .topbar__status {
    border-radius: 14px;
  }

  .content {
    padding-top: 8px;
  }

  .page__header {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 250, 244, 0.72);
    border: 1px solid rgba(36, 54, 50, 0.08);
  }

  .page__header h1,
  .topbar__title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .desktop-table-shell--mobile-cards {
    display: none;
  }

  .mobile-record-list {
    display: grid;
    gap: 10px;
  }

  .rendition-closed-reports-table {
    display: none !important;
  }

  .rendition-closed-reports-mobile {
    display: grid;
    gap: 10px;
  }

  .rendition-closed-report-card {
    min-width: 0;
  }

  .rendition-closed-report-card .mobile-record-card__header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rendition-closed-report-card__title {
    display: -webkit-box;
    max-width: 100%;
    max-height: 2.4em;
    overflow: hidden;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .rendition-closed-report-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rendition-closed-report-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .rendition-closed-report-actions .button {
    min-width: 0;
    padding-inline: 8px;
  }

  .rendition-closed-report-actions .button:last-child {
    grid-column: 1 / -1;
  }

  .mobile-record-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(36, 54, 50, 0.1);
    border-radius: 16px;
    background: rgba(255, 252, 248, 0.92);
    box-shadow: 0 12px 30px rgba(36, 54, 50, 0.08);
  }

  .mobile-record-card--muted {
    opacity: 0.72;
  }

  .mobile-record-card__header {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
  }

  .mobile-record-card__header > div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-record-card__header strong,
  .mobile-record-card__header small,
  .mobile-record-card__status,
  .mobile-record-card__grid dd {
    overflow-wrap: anywhere;
  }

  .mobile-record-card__eyebrow {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-record-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .mobile-record-card__grid div {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
    background: rgba(244, 239, 230, 0.54);
  }

  .mobile-record-card__grid dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-record-card__grid dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
  }

  .mobile-record-card__status {
    display: grid;
    gap: 6px;
    color: var(--muted);
  }

  .mobile-record-card__selection {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
  }

  .mobile-record-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-record-card__actions .button {
    width: 100%;
    min-height: 40px;
    white-space: normal;
  }

  .mobile-record-card__actions.student-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .dashboard-grid .surface-card,
  .collection-summary-card,
  .rendition-closures-section,
  .guardian-portal-toolbar {
    padding: 10px;
  }

  .collection-summary-block,
  .summary-list,
  .movement-list,
  .ranking-list {
    gap: 8px;
  }

  .movement-item,
  .summary-list li,
  .ranking-list__item {
    padding: 9px 10px;
    gap: 6px;
  }

  .ranking-list__item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .ranking-list__value {
    grid-column: 2;
    font-weight: 700;
  }

  .ranking-list__position {
    width: 28px;
    height: 28px;
  }

  .metric-card {
    gap: 5px;
    padding: 10px;
  }

  .metric-card strong,
  .hero-card__badge strong,
  .public-hero__meta strong {
    font-size: 1.2rem;
  }

  .rendition-view {
    gap: 10px;
  }

  .rendition-view .metrics-grid--three,
  .guardian-portal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rendition-view .metrics-grid--three .metric-card:nth-child(3),
  .guardian-portal-status-card {
    grid-column: 1 / -1;
  }

  .rendition-closures-section .empty-state,
  .rendition-live-section.surface-card {
    padding: 10px;
  }

  .guardian-portal-view {
    gap: 10px;
  }

  .guardian-portal-metrics .metric-card {
    min-height: 0;
  }

  .guardian-portal-metrics .metric-card small {
    line-height: 1.25;
  }

  .landing-login .field__hint {
    margin-top: 4px;
  }
}

@media screen and (max-width: 430px) {
  .mobile-record-card {
    padding: 10px;
    border-radius: 14px;
  }

  .mobile-record-card__grid {
    gap: 7px;
  }

  .mobile-record-card__grid div {
    padding: 7px;
  }

  .mobile-record-card__actions {
    grid-template-columns: 1fr;
  }

  .rendition-view .metrics-grid--three,
  .guardian-portal-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .page__header {
    padding: 10px;
  }
}

/* ===== Tercera pasada responsive movil ===== */
.rut-split-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4.6rem;
  gap: 8px;
  align-items: center;
}

.rut-split-input__dash {
  color: var(--muted);
  font-weight: 800;
}

.rut-split-input__body,
.rut-split-input__dv {
  text-align: center;
  letter-spacing: 0.02em;
}

.rut-split-input__dv {
  text-transform: uppercase;
}

@media screen and (max-width: 760px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .shell,
  .shell__body,
  .content,
  .page,
  .page > *,
  .surface-card,
  .form-card,
  .section-toolbar,
  .table-shell,
  .toolbar-actions,
  .metrics-grid,
  .dashboard-grid,
  .rendition-view,
  .guardian-portal-view {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page {
    overflow-x: hidden;
  }

  .page__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-self: stretch;
    justify-self: stretch;
    width: 100% !important;
    max-width: none;
    margin-inline: 0;
  }

  .page__header > * {
    min-width: 0;
  }

  .section-toolbar {
    width: 100%;
  }

  .table-shell {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    contain: inline-size;
  }

  .data-table {
    width: max-content;
    min-width: min(640px, calc(100vw - 28px));
    max-width: none;
  }

  .data-table--compact {
    min-width: min(560px, calc(100vw - 28px));
  }

  .rut-split-input {
    grid-template-columns: minmax(0, 1fr) auto 3.8rem;
    gap: 7px;
  }

  .rut-split-input .field__control {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 1rem;
  }

  .dashboard-grid .surface-card {
    gap: 8px;
  }

  .dashboard-grid .section-heading {
    gap: 3px;
  }

  .dashboard-grid .section-heading h2 {
    font-size: 1.05rem;
  }

  .dashboard-grid .section-heading p {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .dashboard-grid .movement-list,
  .dashboard-grid .summary-list,
  .dashboard-grid .ranking-list {
    gap: 6px;
  }

  .dashboard-grid .movement-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: start;
    padding: 8px 9px;
  }

  .dashboard-grid .movement-item > div:first-child {
    min-width: 0;
  }

  .dashboard-grid .movement-item strong {
    font-size: 0.96rem;
  }

  .dashboard-grid .movement-item p {
    margin: 2px 0 0;
    font-size: 0.84rem;
    line-height: 1.25;
  }

  .dashboard-grid .movement-item__meta {
    display: grid;
    gap: 2px;
    justify-items: end;
    text-align: right;
    white-space: nowrap;
  }

  .dashboard-grid .movement-item__meta span {
    font-size: 0.78rem;
    color: var(--muted);
  }

  .dashboard-grid .movement-item__amount {
    margin: 0;
    font-size: 0.92rem;
  }

  .dashboard-grid .summary-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 9px;
  }

  .dashboard-grid .summary-list li span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-grid .summary-list li strong {
    white-space: nowrap;
  }

  .dashboard-grid .ranking-list__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 9px;
    align-items: center;
  }

  .dashboard-grid .ranking-list__position {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .dashboard-grid .ranking-list__content {
    min-width: 0;
    gap: 2px;
  }

  .dashboard-grid .ranking-list__content strong,
  .dashboard-grid .ranking-list__content span {
    overflow-wrap: anywhere;
  }

  .dashboard-grid .ranking-list__content span {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .dashboard-grid .ranking-list__value {
    grid-column: auto;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    font-size: 0.92rem;
  }

  .mobile-record-card {
    width: 100%;
    min-width: 0;
  }

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

  .mobile-record-card__actions .button {
    min-width: 0;
  }
}

@media screen and (max-width: 380px) {
  .content {
    padding-inline: 8px;
  }

  .page,
  .dashboard-grid,
  .guardian-portal-view,
  .rendition-view {
    gap: 9px;
  }

  .rut-split-input {
    grid-template-columns: minmax(0, 1fr) auto 3.4rem;
    gap: 5px;
  }

  .mobile-record-card__grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .movement-item,
  .dashboard-grid .summary-list li,
  .dashboard-grid .ranking-list__item {
    padding: 7px 8px;
  }

  .dashboard-grid .ranking-list__item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-grid .ranking-list__value {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

.beta-usage-section {
  display: grid;
  gap: 16px;
}

.beta-usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.beta-usage-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.beta-usage-card__header,
.beta-usage-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.beta-usage-card__header h3 {
  margin: 0;
}

.beta-usage-card__header p,
.beta-usage-card__owner span {
  margin: 0;
  color: var(--muted);
}

.beta-usage-card__badges,
.beta-usage-card__owner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.beta-usage-card__badges {
  justify-content: flex-end;
}

.beta-usage-card__owner {
  flex-direction: column;
}

.beta-usage-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.beta-usage-metrics div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(241, 239, 233, 0.78);
}

.beta-usage-metrics dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.beta-usage-metrics dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.payment-instructions-settings,
.payment-instructions-card {
  display: grid;
  gap: 16px;
}

.payment-instructions-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
}

.payment-instructions-list div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(241, 239, 233, 0.74);
}

.payment-instructions-list dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.payment-instructions-list dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
  user-select: text;
}

.expense-attachments-panel,
.guardian-expense-attachments {
  display: grid;
  gap: 14px;
}

.expense-attachments-list,
.guardian-expense-attachments__list {
  display: grid;
  gap: 10px;
}

.expense-attachment-card,
.guardian-expense-attachment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.expense-attachment-card .table-detail,
.guardian-expense-attachment-card .table-detail {
  min-width: 0;
}

.expense-attachment-card .table-actions,
.guardian-expense-attachment-card .table-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.guardian-expense-attachment-card__amount {
  grid-area: amount;
  justify-self: end;
  white-space: nowrap;
}

.guardian-expense-attachment-card {
  grid-template-areas: "details actions amount";
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px 12px;
  padding: 10px 12px;
}

.guardian-expense-attachment-card .table-detail {
  grid-area: details;
}

.guardian-expense-attachment-card .table-actions {
  grid-area: actions;
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
}

.guardian-expense-attachment-card .table-actions .button {
  width: auto;
  white-space: nowrap;
}

.guardian-expense-attachments__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.guardian-expense-attachments__header .section-heading {
  margin-bottom: 0;
}

.guardian-expense-attachments__toggle {
  flex: 0 0 auto;
  min-width: 132px;
}

.guardian-expense-attachments__summary,
.guardian-expense-attachments__results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.guardian-expense-attachments__summary strong,
.guardian-expense-attachments__results strong {
  color: var(--ink);
}

.guardian-expense-attachments__legal {
  margin: 0;
}

.guardian-expense-attachments__content {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 54, 50, 0.1);
}

.guardian-expense-filter {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 16px;
  background: rgba(241, 239, 233, 0.58);
}

.guardian-expense-filter__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.guardian-expense-attachments__empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(36, 54, 50, 0.18);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

@media screen and (max-width: 720px) {
  .beta-usage-grid {
    grid-template-columns: 1fr;
  }

  .beta-usage-card {
    padding: 12px;
    gap: 10px;
  }

  .beta-usage-card__header,
  .beta-usage-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .beta-usage-card__badges,
  .beta-usage-card__footer .table-actions {
    justify-content: flex-start;
  }

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

  .payment-instructions-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .payment-instructions-list div {
    padding: 9px;
    border-radius: 12px;
  }

  .payment-instructions-list div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .payment-instructions-list dt {
    margin-bottom: 2px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .payment-instructions-list dd {
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .expense-attachment-card {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .guardian-expense-attachment-card {
    grid-template-areas:
      "details amount"
      "actions actions";
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
  }

  .guardian-expense-attachment-card__amount {
    white-space: normal;
  }

  .guardian-expense-attachments__header {
    align-items: stretch;
    flex-direction: column;
  }

  .guardian-expense-attachments__toggle {
    width: 100%;
    min-height: 44px;
  }

}

@media screen and (max-width: 560px) {
  .guardian-expense-filter {
    grid-template-columns: 1fr;
  }

  .guardian-expense-filter__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guardian-expense-filter__actions .button {
    width: 100%;
    min-height: 44px;
  }
}

@media screen and (max-width: 760px) {
  .video-section {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .video-section__intro {
    gap: 8px;
  }

  .video-embed {
    border-radius: 16px;
  }

  .video-section__fallback,
  .first-steps-card__actions {
    justify-self: start;
    justify-content: start;
  }

  .local-video-card {
    border-radius: 16px;
  }

  .guide-page {
    gap: 9px;
  }

  .guide-hero {
    gap: 9px;
    padding: 14px;
  }

  .guide-hero__top {
    display: grid;
    gap: 9px;
  }

  .guide-hero__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    min-width: 0;
  }

  .guide-hero__actions .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 0.86rem;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
  }

  .guide-hero__content {
    gap: 8px;
  }

  .guide-hero__content h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .guide-page .video-section {
    gap: 12px;
    padding: 16px;
  }

  .video-section__points {
    padding: 9px 10px;
  }

  .video-section__points ul {
    font-size: 0.92rem;
  }

  .guide-page .local-video-card {
    max-width: none;
    justify-self: stretch;
  }

  .guide-summary .landing-card {
    padding: 14px;
  }

  .guide-accordion summary {
    padding: 11px 14px;
  }

  .guide-accordion__body {
    padding: 0 14px 13px;
  }

  .video-section__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .video-section__actions .button {
    width: 100%;
    min-height: 42px;
  }

  .students-video-tip {
    display: grid;
    gap: 10px;
  }

  .students-video-tip .button {
    width: 100%;
  }

  .first-steps-card__actions {
    width: 100%;
  }
}

/* ===== Optimizacion movil fase 2 ===== */
.mobile-app-menu,
.mobile-collapsible {
  display: none;
}

.mobile-quick-actions {
  display: none;
}

.mobile-quick-actions__grid .button {
  text-decoration: none;
}

.mobile-quick-actions__grid .button:hover,
.mobile-quick-actions__grid .button:focus-visible {
  text-decoration: none;
}

@media screen and (max-width: 640px) {
  :root {
    --page-padding: 10px;
    --card-padding: 11px;
    --title-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.75), transparent 26%),
      linear-gradient(135deg, #f6f0e7, #e4eee9);
  }

  .sidebar {
    padding: 8px 10px;
    border-radius: 0 0 16px 16px;
  }

  .sidebar > .brand,
  .sidebar > .nav {
    display: none;
  }

  .mobile-app-menu {
    display: block;
    width: 100%;
  }

  .mobile-app-menu__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    color: #fffaf4;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    list-style: none;
  }

  .mobile-app-menu__summary::-webkit-details-marker {
    display: none;
  }

  .mobile-app-menu__icon {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    min-height: 30px;
    padding: 4px 8px;
    color: #173a33;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 999px;
    background: #fffaf4;
  }

  .mobile-app-menu__brand {
    min-width: 0;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-menu__summary strong {
    min-width: 0;
    color: rgba(255, 250, 244, 0.9);
    font-size: 0.86rem;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-menu__panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(14, 40, 35, 0.86);
  }

  .mobile-app-menu__link {
    display: block;
    padding: 11px 12px;
    color: rgba(255, 250, 244, 0.88);
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-app-menu__link--active {
    color: #173a33;
    background: #fffaf4;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 8px 10px 2px;
  }

  .topbar__eyebrow {
    display: none;
  }

  .topbar__title {
    margin: 0;
    font-size: 1.18rem;
  }

  .topbar__status {
    padding: 8px 10px;
    box-shadow: none;
  }

  .topbar__status > strong {
    display: none;
  }

  .topbar-public-links {
    font-size: 0.74rem;
  }

  .content {
    padding: 8px 10px 22px;
  }

  .page {
    display: grid;
    gap: 10px;
  }

  .page > .metrics-grid {
    order: 1;
  }

  .page > .hero-card {
    order: 2;
  }

  .page:has(> .dashboard-hero-card) > .page__header {
    display: none !important;
  }

  .page > .first-steps-card {
    order: 3;
  }

  .page > .mobile-quick-actions {
    order: 4;
  }

  .hero-card {
    gap: 10px;
  }

  .hero-card__text,
  .page__description,
  .section-heading p {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .hero-card__aside {
    display: none;
  }

  .metrics-grid,
  .metrics-grid--three,
  .metrics-grid--four,
  .guardian-portal-metrics,
  .rendition-view .metrics-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metrics-grid > .metric-card:nth-child(1) {
    grid-column: 1 / -1;
  }

  .metric-card {
    min-height: 0;
    padding: 10px;
  }

  .metric-card span {
    font-size: 0.78rem;
  }

  .metric-card strong {
    font-size: 1.18rem;
  }

  .mobile-quick-actions {
    display: grid;
    gap: 10px;
  }

  .mobile-quick-actions__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-quick-actions__grid .button {
    width: 100%;
    min-height: 44px;
  }

  .first-steps-list {
    grid-template-columns: 1fr;
  }

  .first-step-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
  }

  .first-step-item .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .collection-summary-block .metrics-grid,
  .collection-summary-block .metrics-grid--three {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .surface-card {
    padding: 10px;
  }

  .dashboard-grid .surface-card .section-heading {
    margin-bottom: 8px;
  }

  .dashboard-grid .surface-card .section-heading p {
    display: none;
  }

  .desktop-table-shell--mobile-cards {
    display: none !important;
  }

  .mobile-record-list {
    display: grid;
    gap: 9px;
  }

  .mobile-record-card {
    padding: 10px;
    gap: 9px;
    border-radius: 15px;
  }

  .mobile-record-card__header {
    gap: 8px;
  }

  .mobile-record-card__header strong,
  .mobile-record-card__grid dd {
    font-size: 0.96rem;
  }

  .mobile-record-card__grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .mobile-record-card__grid div {
    padding: 7px;
  }

  .mobile-record-card__actions,
  .mobile-record-card__actions .table-actions,
  .expense-attachment-card .table-actions,
  .guardian-expense-attachment-card .table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    min-width: 0;
    width: 100%;
  }

  .mobile-record-card__actions .button,
  .mobile-record-card__actions a.button,
  .expense-attachment-card .button,
  .guardian-expense-attachment-card .button {
    width: 100%;
    min-height: 40px;
  }

  .form-grid,
  .form-grid--two,
  .contact-log-panel__layout,
  .branding-settings-grid,
  .beta-usage-metrics {
    grid-template-columns: 1fr !important;
  }

  .form-card__header {
    display: grid;
    gap: 8px;
  }

  .field__control {
    min-height: 44px;
    font-size: 1rem;
  }

  textarea.field__control,
  .field__control--textarea {
    min-height: 96px;
  }

  .form-actions,
  .toolbar-actions,
  .export-actions,
  .empty-state__actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .form-actions .button,
  .form-actions a.button,
  .toolbar-actions .button,
  .toolbar-actions a.button,
  .export-actions .button,
  .empty-state__actions .button,
  .empty-state__actions a.button {
    width: 100%;
    min-height: 43px;
  }

  .filter-inline,
  .filter-inline select,
  .field--compact,
  .field--compact .field__control {
    width: 100%;
    min-width: 0;
  }

  .mobile-collapsible {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid rgba(36, 54, 50, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
  }

  .mobile-collapsible summary {
    cursor: pointer;
    font-weight: 900;
  }

  .mobile-collapsible__body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }

  .mobile-collapsible__body p {
    margin: 0;
    color: var(--muted);
  }

  .students-template-note,
  .students-video-tip,
  .student-import-action {
    display: none !important;
  }

  .expense-attachments-panel {
    position: relative;
    width: 100%;
    padding: 10px;
  }

  .expense-attachment-card {
    grid-template-columns: 1fr;
  }

  .guardian-expense-attachment-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rendition-live-section .section-toolbar .toolbar-actions {
    gap: 8px;
  }

  .rendition-live-section .export-actions {
    padding: 9px;
    border: 1px solid rgba(36, 54, 50, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
  }

  .payment-instructions-card,
  .guardian-expense-attachments {
    gap: 10px;
  }

  .payment-instructions-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .payment-instructions-list div {
    padding: 9px;
    border-radius: 12px;
  }

  .payment-instructions-list div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .payment-instructions-list dt {
    margin-bottom: 2px;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .payment-instructions-list dd {
    font-size: 0.88rem;
    line-height: 1.18;
  }

  .landing-page {
    gap: 14px;
  }

  .landing-nav {
    gap: 10px;
    padding: 10px 12px;
  }

  .landing-nav__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .landing-nav__actions .button {
    min-height: 34px !important;
    padding: 7px 8px !important;
    font-size: 0.86rem !important;
  }

  .landing-hero,
  .landing-access,
  .landing-trial,
  .landing-panel,
  .landing-guide-summary {
    padding: 14px !important;
  }

  .landing-benefits {
    display: none;
  }

  .landing-preview {
    display: grid;
    width: 100%;
    max-width: none;
    justify-self: center;
  }

  .landing-preview--product {
    gap: 9px;
  }

  .landing-preview__device-frame {
    width: min(100%, 300px);
    max-height: 410px;
    padding: 9px;
    border-radius: 24px;
  }

  .landing-preview__screenshot {
    width: min(100%, 270px);
    max-height: 380px;
    border-radius: 18px;
  }

  .landing-preview__caption {
    max-width: 320px;
    font-size: 0.88rem;
  }

  .landing-preview__folder {
    gap: 9px;
    padding: 12px;
    border-radius: 16px;
  }

  .landing-preview__folder::after {
    display: none;
  }

  .landing-preview__tab {
    min-width: 0;
    margin: -20px 0 0 8px;
    padding: 8px 12px 9px;
  }

  .landing-preview__sheet {
    gap: 9px;
    padding: 10px;
  }

  .landing-preview__receipt,
  .landing-preview__ledger-row {
    padding: 9px !important;
  }

  .landing-hero h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .landing-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-hero__actions .landing-button--primary {
    grid-column: auto;
  }

  .landing-trial-form__actions {
    grid-template-columns: 1fr;
  }

  .landing-hero__actions .button,
  .landing-hero__actions .landing-link {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }
}

@media screen and (max-width: 420px) {
  .landing-hero {
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .landing-hero__content {
    gap: 10px !important;
  }

  .landing-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.25rem) !important;
    line-height: 1.05 !important;
  }

  .landing-hero p {
    font-size: 0.95rem !important;
    line-height: 1.42 !important;
  }

  .landing-preview__folder {
    padding: 10px;
  }

  .landing-preview__device-frame {
    width: min(100%, 246px);
    max-height: 316px;
    padding: 8px;
    border-radius: 22px;
  }

  .landing-preview__screenshot {
    width: min(100%, 222px);
    max-height: 292px;
  }

  .landing-preview__caption {
    display: none;
  }

  .landing-preview__stamps {
    display: none;
  }

  .landing-preview__sheet {
    padding: 9px;
  }

  .landing-preview__sheet-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .landing-preview__sheet-head b {
    font-size: 1.45rem;
  }

  .landing-preview__receipt {
    width: 100%;
  }

  .landing-preview__ledger {
    display: none;
  }

  .landing-preview__ledger-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .landing-preview__ledger-row b {
    justify-self: start;
    grid-column: 2;
  }
}

@media screen and (min-width: 641px) and (max-width: 900px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .sidebar {
    padding: 16px 12px;
  }

  .nav__link {
    padding: 8px 9px;
  }

  .dashboard-grid,
  .metrics-grid {
    gap: 10px;
  }

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

@media screen and (max-width: 380px) {
  .mobile-app-menu__summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mobile-app-menu__summary strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .mobile-record-card__grid,
  .metrics-grid,
  .metrics-grid--three,
  .metrics-grid--four,
  .guardian-portal-metrics,
  .rendition-view .metrics-grid--three {
    grid-template-columns: 1fr;
  }

  .metrics-grid > .metric-card:nth-child(1) {
    grid-column: auto;
  }
}

/* ===== Hotfix movil 1: navegacion, dashboard y alumnos ===== */
@media screen and (max-width: 768px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .shell {
    display: block;
    width: 100%;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .sidebar > .brand,
  .sidebar > .nav {
    display: none !important;
  }

  .mobile-app-menu {
    display: block;
    width: 100%;
  }

  .mobile-app-menu__bar {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding: 10px 16px;
    color: #fffaf4;
    text-align: left;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.13), transparent 28%),
      linear-gradient(135deg, #173a33, #0e2823);
    box-shadow: 0 8px 18px rgba(14, 40, 35, 0.18);
    cursor: pointer;
  }

  .mobile-app-menu__hamburger {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    font-size: 1.4rem;
    font-weight: 900;
    border: 1px solid rgba(255, 250, 244, 0.22);
    border-radius: 14px;
    background: rgba(255, 250, 244, 0.1);
  }

  .mobile-app-menu__bar-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .mobile-app-menu__bar-copy span {
    font-weight: 900;
    line-height: 1.1;
  }

  .mobile-app-menu__bar-copy strong {
    max-width: calc(100vw - 92px);
    color: rgba(255, 250, 244, 0.82);
    font-size: 0.88rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-menu__overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    border: 0;
    background: rgba(7, 18, 16, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .mobile-app-menu__drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    width: min(85vw, 340px);
    max-width: 340px;
    height: 100dvh;
    padding: 14px;
    color: #fffaf4;
    background:
      radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
      linear-gradient(180deg, #173a33, #0e2823);
    box-shadow: 16px 0 34px rgba(7, 18, 16, 0.26);
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .mobile-app-menu--open .mobile-app-menu__overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-app-menu--open .mobile-app-menu__drawer {
    transform: translateX(0);
  }

  .mobile-app-menu__drawer-header {
    display: grid;
    gap: 10px;
  }

  .mobile-app-menu__course-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 250, 244, 0.14);
    border-radius: 18px;
    background: rgba(255, 250, 244, 0.08);
  }

  .mobile-app-menu__course-card span {
    color: rgba(255, 250, 244, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-app-menu__course-card strong {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .mobile-app-menu__course-card small {
    color: rgba(255, 250, 244, 0.74);
  }

  .mobile-app-menu__close {
    justify-self: start;
    min-height: 38px;
    padding: 8px 12px;
    color: #173a33;
    font-weight: 900;
    border: 0;
    border-radius: 999px;
    background: #fffaf4;
    cursor: pointer;
  }

  .mobile-app-menu__nav {
    display: grid;
    gap: 7px;
    align-content: start;
  }

  .mobile-app-menu__link {
    display: block;
    padding: 13px 14px;
    color: rgba(255, 250, 244, 0.88);
    font-weight: 850;
    text-decoration: none;
    border: 1px solid rgba(255, 250, 244, 0.1);
    border-radius: 14px;
    background: rgba(255, 250, 244, 0.07);
  }

  .mobile-app-menu__link--active {
    color: #173a33;
    background: #fffaf4;
  }

  .mobile-app-menu__help {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 250, 244, 0.14);
  }

  .mobile-app-menu__help p {
    margin: 0;
    color: rgba(255, 250, 244, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-app-menu__help a {
    color: #fffaf4;
    font-weight: 800;
    text-decoration: none;
  }

  .shell__body {
    display: block;
    min-width: 0;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
    padding: 12px 16px 6px;
  }

  .topbar__eyebrow {
    display: none;
  }

  .topbar__title {
    margin: 0;
    color: #173a33;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
    line-height: 1.12;
  }

  .topbar__status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 8px 10px;
    text-align: left;
    border-radius: 14px;
    box-shadow: none;
  }

  .topbar__status > span:not(.status-badge) {
    min-width: 0;
    font-size: 0.84rem;
  }

  .topbar__status > strong {
    display: block !important;
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .topbar__status .status-badge {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 24px;
    padding: 3px 9px;
    font-size: 0.78rem;
  }

  .topbar__status .button {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
  }

  .topbar-public-links {
    display: none !important;
  }

  .content {
    width: 100%;
    max-width: 100%;
    padding: 10px 16px 24px;
  }

  .page {
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .page__header {
    order: 1;
  }

  .page > .hero-card {
    order: 2;
  }

  .page > .mobile-quick-actions {
    order: 5;
  }

  .page > .dashboard-kpis {
    order: 3;
  }

  .page > .collection-summary-block {
    order: 4;
  }

  .page > .first-steps-card {
    order: 6;
  }

  .page__description {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .hero-card {
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .hero-card h2 {
    margin-bottom: 6px;
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .hero-card__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .hero-card__aside {
    display: none !important;
  }

  .mobile-quick-actions {
    display: grid !important;
    gap: 8px;
    padding: 10px 11px;
    border-radius: 18px;
  }

  .mobile-quick-actions .section-heading {
    margin: 0;
  }

  .mobile-quick-actions .section-heading p {
    display: none;
  }

  .mobile-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .mobile-quick-actions__grid .button {
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    color: #fffaf4;
    border-color: transparent;
    background: #1f6b55;
  }

  .mobile-quick-actions__grid .button:nth-child(5) {
    grid-column: 1 / -1;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .dashboard-kpis .metric-card:nth-child(4) {
    display: none;
  }

  .dashboard-kpis .metric-card {
    min-height: 0;
    padding: 10px;
    border-radius: 16px;
  }

  .dashboard-kpis .metric-card:first-child {
    grid-column: 1 / -1;
  }

  .metric-card span {
    font-size: 0.78rem;
  }

  .metric-card strong {
    font-size: 1.18rem;
  }

  .first-steps-card {
    padding: 12px;
  }

  .first-steps-card__progress,
  .first-step-item p {
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .collection-summary-block,
  .dashboard-grid {
    gap: 9px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .surface-card {
    padding: 11px;
    border-radius: 18px;
  }

  .dashboard-grid .section-heading {
    margin-bottom: 8px;
  }

  .dashboard-grid .section-heading p {
    display: none;
  }

  .dashboard-grid .movement-item,
  .dashboard-grid .summary-list li,
  .dashboard-grid .ranking-list__item {
    padding: 8px 9px;
    gap: 7px;
    border-radius: 14px;
  }

  .dashboard-grid .movement-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dashboard-grid .movement-item__meta,
  .dashboard-grid .ranking-list__value {
    text-align: right;
    white-space: nowrap;
  }

  .dashboard-grid .summary-list {
    gap: 7px;
  }

  .desktop-table-shell--mobile-cards {
    display: none !important;
  }

  .mobile-record-list {
    display: grid !important;
    gap: 10px;
  }

  .mobile-record-card {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    gap: 10px;
    border-radius: 18px;
  }

  .mobile-record-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-record-card__grid div {
    min-width: 0;
    padding: 8px;
  }

  .mobile-record-card__grid dd,
  .mobile-record-card__header strong {
    overflow-wrap: anywhere;
  }

  .mobile-record-card__actions,
  .mobile-record-card__actions .table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
    min-width: 0;
  }

  .mobile-record-card__actions .button,
  .mobile-record-card__actions a.button {
    width: 100%;
    min-height: 42px;
  }

  .student-search-panel {
    margin: 10px 0;
    padding: 11px;
    border-radius: 16px;
  }

  .student-search-panel__field {
    max-width: none;
  }

  .student-search-panel__control {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .student-search-panel__control .button {
    width: 100%;
    min-height: 42px;
  }

  .student-search-panel .field__control {
    min-height: 44px;
  }

  .toolbar-actions--wide .student-import-action,
  .toolbar-actions--wide [data-action="download-student-template-csv"],
  .students-template-note,
  .students-video-tip {
    display: none !important;
  }

  .mobile-collapsible {
    display: block;
    margin: 10px 0 0;
    padding: 11px;
    border: 1px solid rgba(36, 54, 50, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
  }

  .mobile-collapsible summary {
    cursor: pointer;
    font-weight: 900;
  }

  .mobile-collapsible__body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }

  .mobile-collapsible__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .mobile-collapsible__body .form-actions,
  .toolbar-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .toolbar-actions .button,
  .toolbar-actions a.button,
  .form-actions .button,
  .form-actions a.button {
    width: 100%;
    min-height: 43px;
  }
}

@media screen and (max-width: 380px) {
  .dashboard-kpis,
  .mobile-record-card__grid {
    grid-template-columns: 1fr !important;
  }

  .dashboard-kpis .metric-card:first-child {
    grid-column: auto;
  }

  .content {
    padding-inline: 12px;
  }
}

/* ===== Hotfix movil 2: drawer real y dashboard compacto ===== */
@media screen and (max-width: 768px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  .shell {
    display: block !important;
    grid-template-columns: none !important;
  }

  .sidebar {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    gap: 0 !important;
    color: inherit;
    background: transparent !important;
    box-shadow: none !important;
  }

  .sidebar > .brand,
  .sidebar > .nav {
    display: none !important;
  }

  .mobile-app-menu {
    position: sticky;
    top: 0;
    z-index: 120;
    display: block !important;
  }

  .mobile-app-menu__bar {
    min-height: 58px;
    padding: 8px 16px;
  }

  .mobile-app-menu__hamburger {
    width: 38px;
    height: 38px;
  }

  .mobile-app-menu__overlay {
    visibility: hidden;
  }

  .mobile-app-menu__drawer {
    visibility: hidden;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: min(82vw, 320px);
    max-width: 320px;
  }

  .mobile-app-menu--open .mobile-app-menu__overlay,
  .mobile-app-menu--open .mobile-app-menu__drawer {
    visibility: visible;
  }

  .mobile-app-menu__link,
  .mobile-app-menu__help a {
    text-decoration: none !important;
  }

  .mobile-app-menu__account {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 250, 244, 0.14);
  }

  .mobile-app-menu__account p {
    margin: 0;
    color: rgba(255, 250, 244, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-app-menu__account-actions {
    display: grid;
    gap: 7px;
  }

  .mobile-app-menu__account-actions .button,
  .mobile-app-menu__account-actions a.button {
    width: 100%;
    min-height: 40px;
    color: #fffaf4;
    border-color: rgba(255, 250, 244, 0.16);
    background: rgba(255, 250, 244, 0.08);
  }

  .mobile-app-menu__account-actions .status-badge {
    justify-self: start;
    color: #173a33;
    background: #fffaf4;
  }

  .topbar {
    padding: 10px 16px 4px !important;
  }

  .topbar__status {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .topbar__status > span:not(.status-badge),
  .topbar__status .topbar-public-links,
  .topbar__status .button {
    display: none !important;
  }

  .topbar__status > strong {
    display: inline !important;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
  }

  .topbar__status .status-badge {
    display: inline-flex !important;
    grid-column: auto !important;
    min-height: 24px;
    padding: 3px 9px;
    font-size: 0.78rem;
  }

  .content {
    padding: 8px 16px 24px !important;
  }

  .page {
    gap: 10px !important;
  }

  .page__header {
    gap: 4px !important;
  }

  .page:has(> .dashboard-hero-card) > .page__header {
    display: none !important;
  }

  .page__description {
    display: none;
  }

  .page > .hero-card {
    order: 2;
  }

  .page > .mobile-quick-actions {
    order: 5;
  }

  .page > .dashboard-kpis {
    order: 3;
  }

  .page > .collection-summary-block {
    order: 4;
  }

  .page > .dashboard-grid {
    order: 6;
  }

  .page > .first-steps-card {
    order: 7;
  }

  .hero-card {
    padding: 11px 12px !important;
    gap: 4px !important;
  }

  .hero-card__eyebrow {
    margin: 0 0 3px;
    font-size: 0.78rem;
  }

  .hero-card h2 {
    margin: 0 !important;
    font-size: 1.2rem !important;
  }

  .hero-card__text,
  .hero-card__aside {
    display: none !important;
  }

  .mobile-quick-actions {
    padding: 9px 10px !important;
    gap: 7px !important;
  }

  .mobile-quick-actions h2,
  .collection-summary-block h2,
  .dashboard-grid h2 {
    font-size: 1rem;
  }

  .mobile-quick-actions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .mobile-quick-actions__grid .button {
    min-height: 38px !important;
    padding: 8px 9px !important;
    border-radius: 13px;
    font-size: 0.88rem;
    text-decoration: none !important;
  }

  .mobile-quick-actions__grid .button:nth-child(5) {
    grid-column: 1 / -1;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .dashboard-kpis .metric-card:first-child {
    grid-column: auto !important;
  }

  .dashboard-kpis .metric-card:nth-child(4) {
    display: none !important;
  }

  .dashboard-kpis .metric-card {
    min-height: 74px !important;
    padding: 9px 10px !important;
    gap: 4px !important;
  }

  .dashboard-kpis .metric-card span,
  .collection-summary-block .metric-card span {
    font-size: 0.75rem !important;
  }

  .dashboard-kpis .metric-card strong {
    font-size: 1.05rem !important;
    line-height: 1.15;
  }

  .collection-summary-block {
    padding: 11px !important;
  }

  .collection-summary-block .section-heading {
    margin-bottom: 8px !important;
  }

  .collection-summary-block .section-heading p {
    display: none !important;
  }

  .collection-summary-block .metrics-grid,
  .collection-summary-block .metrics-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .collection-summary-block .metric-card {
    min-height: 70px !important;
    padding: 9px !important;
    gap: 4px !important;
  }

  .collection-summary-block .metric-card:first-child {
    grid-column: auto !important;
  }

  .collection-summary-block .metric-card strong {
    font-size: 1rem !important;
    line-height: 1.15;
  }

  .dashboard-grid {
    gap: 9px !important;
  }

  .dashboard-grid .surface-card {
    padding: 11px !important;
  }

  .dashboard-grid .movement-list,
  .dashboard-grid .summary-list,
  .dashboard-grid .ranking-list {
    gap: 7px !important;
  }

  .dashboard-grid .movement-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px !important;
    padding: 9px 10px !important;
  }

  .dashboard-grid .movement-item > div:first-child {
    min-width: 0;
  }

  .dashboard-grid .movement-item strong,
  .dashboard-grid .movement-item p {
    overflow-wrap: anywhere;
  }

  .dashboard-grid .movement-item p {
    margin: 2px 0 0;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .dashboard-grid .movement-item__meta {
    display: grid;
    flex: 0 0 auto;
    gap: 2px;
    text-align: right !important;
    white-space: nowrap;
  }

  .dashboard-grid .movement-item__meta span {
    font-size: 0.78rem;
  }

  .dashboard-grid .movement-item__amount {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 339px) {
  .mobile-quick-actions__grid,
  .dashboard-kpis,
  .collection-summary-block .metrics-grid,
  .collection-summary-block .metrics-grid--four {
    grid-template-columns: 1fr !important;
  }

  .dashboard-secondary-grid > .collection-summary-block .metrics-grid,
  .dashboard-secondary-grid > .collection-summary-block .metrics-grid--four {
    grid-template-columns: 1fr !important;
  }
}

/* ===== Hotfix drawer movil: separar secciones y evitar solapamientos ===== */
@media screen and (max-width: 768px) {
  .mobile-app-menu__drawer {
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    height: 100vh;
    max-height: 100dvh;
    padding: 14px 14px max(24px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-app-menu__drawer-header {
    flex: 0 0 auto;
    margin-bottom: 12px;
  }

  .mobile-app-menu__nav,
  .mobile-app-menu__help,
  .mobile-app-menu__account,
  .mobile-app-menu__account-actions {
    min-width: 0;
  }

  .mobile-app-menu__nav {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px !important;
    align-content: stretch;
  }

  .mobile-app-menu__link,
  .mobile-app-menu__help a,
  .mobile-app-menu__account-actions .button,
  .mobile-app-menu__account-actions a.button {
    display: flex !important;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px !important;
    line-height: 1.2;
    white-space: normal;
    text-decoration: none !important;
    border: 1px solid rgba(255, 250, 244, 0.12);
    border-radius: 14px;
    background: rgba(255, 250, 244, 0.08);
  }

  .mobile-app-menu__link--active {
    border-color: transparent;
    background: #fffaf4;
  }

  .mobile-app-menu__help,
  .mobile-app-menu__account {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px !important;
    margin-top: 14px;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 250, 244, 0.16);
  }

  .mobile-app-menu__help p,
  .mobile-app-menu__account p {
    display: block;
    margin: 0 0 2px !important;
    padding: 0;
    line-height: 1.2;
  }

  .mobile-app-menu__account-actions {
    display: flex !important;
    flex-direction: column;
    gap: 8px !important;
  }

  .mobile-app-menu__account-actions .status-badge {
    display: inline-flex !important;
    align-self: flex-start;
    min-height: 30px;
    margin: 0 0 2px;
    padding: 5px 10px;
    line-height: 1.1;
  }
}

/* ===== Dashboard desktop/notebook compacto ===== */
@media screen and (min-width: 769px) {
  .shell__body:has(.dashboard-hero-card) .topbar {
    padding-top: 10px;
    padding-bottom: 2px;
  }

  .shell__body:has(.dashboard-hero-card) .topbar__title {
    margin-top: 0;
    line-height: 1.03;
  }

  .content:has(.dashboard-hero-card) {
    padding-top: 2px;
  }

  .page:has(> .dashboard-hero-card) {
    gap: 8px;
  }

  .page:has(> .dashboard-hero-card) .page__header {
    margin-bottom: -4px;
  }

  .page:has(> .dashboard-hero-card) .page__description {
    line-height: 1.26;
  }

  .dashboard-hero-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, max-content) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-height: 0;
  }

  .dashboard-hero-card__main {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
  }

  .dashboard-hero-card .hero-card__eyebrow {
    margin-right: 0;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .dashboard-hero-card h2 {
    margin: 2px 0 0;
    line-height: 1.08;
  }

  .dashboard-hero-card .hero-card__text {
    max-width: 42ch;
    font-size: 0.94rem;
    line-height: 1.28;
  }

  .dashboard-hero-card__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
    align-self: center;
    justify-self: center;
    padding: 5px;
    border: 1px solid rgba(36, 54, 50, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }

  .dashboard-hero-card__side {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    justify-self: end;
  }

  .dashboard-hero-card .branding-cluster--hero {
    gap: 7px;
    justify-content: flex-end;
  }

  .dashboard-hero-card .branding-logo {
    padding: 6px;
    border-radius: 13px;
  }

  .dashboard-hero-card .branding-logo--primary {
    width: 58px;
    height: 58px;
  }

  .dashboard-hero-card .branding-logo--secondary {
    width: 46px;
    height: 46px;
  }

  .dashboard-hero-card .hero-card__badge {
    min-width: 74px;
    padding: 7px 9px;
    border-radius: 13px;
  }

  .dashboard-hero-card .hero-card__badge strong {
    margin-top: 2px;
    font-size: 1.16rem;
    line-height: 1.05;
  }

  .dashboard-hero-card .button {
    min-height: 31px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .dashboard-kpis {
    margin-top: -4px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1080px) {
  .dashboard-hero-card {
    grid-template-columns: minmax(230px, 1fr) minmax(160px, auto) auto;
    gap: 10px;
  }

  .dashboard-hero-card__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(190px, 100%);
    padding: 5px;
  }

  .dashboard-hero-card__actions .button {
    width: 100%;
    min-height: 30px;
  }

  .dashboard-hero-card .branding-logo--primary {
    width: 52px;
    height: 52px;
  }

  .dashboard-hero-card .branding-logo--secondary {
    width: 42px;
    height: 42px;
  }
}

/* ===== KPI desktop/notebook: label sobre valor ===== */
@media screen and (min-width: 769px) {
  .dashboard-kpis .metric-card,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 0;
  }

  .dashboard-kpis .metric-card span,
  .dashboard-kpis .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    display: block;
  }

  .dashboard-kpis .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    margin-top: 0;
    line-height: 1.08;
  }
}

/* ===== Landing hero comercial ===== */
.landing-hero .landing-hero__support {
  max-width: 680px !important;
  color: #5a665f;
  font-size: 0.98rem !important;
  font-weight: 700;
  line-height: 1.4 !important;
}

.landing-hero__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 8px;
}

.landing-hero-benefit {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.landing-hero-benefit strong {
  color: #173a33;
  font-size: 0.96rem;
}

.landing-hero .landing-hero-benefit p {
  max-width: none !important;
  color: #56645f;
  font-size: 0.84rem !important;
  line-height: 1.32 !important;
}

@media screen and (max-width: 900px) {
  .landing-hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .landing-hero .landing-hero__support {
    display: none;
  }

  .landing-hero__benefits {
    display: none;
  }

  .landing-hero-benefit {
    padding: 10px 11px;
  }
}

/* ===== Portal apoderado desktop/notebook compacto ===== */
@media screen and (min-width: 769px) {
  .guardian-portal-view {
    gap: 10px;
  }

  .guardian-portal-toolbar {
    padding: 11px 14px;
  }

  .guardian-portal-toolbar__layout {
    align-items: center;
    gap: 14px;
  }

  .guardian-portal-toolbar .section-heading {
    margin-bottom: 0;
  }

  .guardian-portal-toolbar .section-heading h2 {
    margin-bottom: 4px;
  }

  .guardian-portal-toolbar .section-heading p {
    max-width: 56ch;
    line-height: 1.34;
  }

  .guardian-portal-toolbar .toolbar-actions {
    align-items: center;
  }

  .guardian-portal-toolbar__selector {
    min-width: 250px;
  }

  .guardian-portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    min-height: 0;
  }

  .guardian-portal-hero__main {
    display: grid;
    align-content: center;
    gap: 3px;
    min-width: 0;
  }

  .guardian-portal-hero .hero-card__eyebrow {
    margin-right: 0;
    font-size: 0.76rem;
    line-height: 1.15;
  }

  .guardian-portal-hero h1 {
    margin: 2px 0 0;
    line-height: 1.08;
  }

  .guardian-portal-hero .public-hero__text {
    max-width: 48ch;
    font-size: 0.94rem;
    line-height: 1.28;
  }

  .guardian-portal-hero__side {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
    justify-self: end;
  }

  .guardian-portal-hero .branding-cluster--public {
    gap: 7px;
    justify-content: flex-end;
  }

  .guardian-portal-hero .branding-logo {
    padding: 6px;
    border-radius: 13px;
  }

  .guardian-portal-hero .branding-logo--primary {
    width: 58px;
    height: 58px;
  }

  .guardian-portal-hero .branding-logo--secondary {
    width: 46px;
    height: 46px;
  }

  .guardian-portal-hero .public-hero__meta {
    min-width: 122px;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .guardian-portal-hero .public-hero__meta strong {
    margin-top: 3px;
    font-size: 1.08rem;
    line-height: 1.08;
  }

  .guardian-portal-hero .public-hero__meta small {
    margin-top: 2px;
  }

  .guardian-portal-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .guardian-portal-metrics .metric-card {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 0;
    padding: 12px;
  }

  .guardian-portal-metrics .metric-card span,
  .guardian-portal-metrics .metric-card strong,
  .guardian-portal-metrics .metric-card small {
    display: block;
  }

  .guardian-portal-metrics .metric-card strong {
    margin-top: 0;
    font-size: 1.34rem;
    line-height: 1.08;
  }

  .guardian-portal-metrics .metric-card small {
    color: var(--muted);
    line-height: 1.25;
  }

  .guardian-portal-status-card .status-badge {
    justify-self: start;
    margin-top: 2px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1080px) {
  .guardian-portal-hero {
    grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
    gap: 10px;
  }

  .guardian-portal-hero__side {
    gap: 7px;
  }

  .guardian-portal-hero .branding-logo--primary {
    width: 52px;
    height: 52px;
  }

  .guardian-portal-hero .branding-logo--secondary {
    width: 42px;
    height: 42px;
  }

  .guardian-portal-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .guardian-portal-metrics .metric-card {
    padding: 10px;
  }

  .guardian-portal-metrics .metric-card strong {
    font-size: 1.16rem;
  }
}

@media screen and (max-width: 768px) {
  .guardian-portal-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px !important;
    padding: 12px !important;
  }

  .guardian-portal-hero__main {
    gap: 3px;
    min-width: 0;
  }

  .guardian-portal-hero .hero-card__eyebrow {
    margin-right: 0;
    line-height: 1.15;
  }

  .guardian-portal-hero h1 {
    margin: 2px 0 0;
    line-height: 1.08;
  }

  .guardian-portal-hero .public-hero__text {
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .guardian-portal-hero__side {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    justify-self: stretch;
    padding: 7px 8px;
    border: 1px solid rgba(36, 54, 50, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
  }

  .guardian-portal-hero .branding-cluster--public {
    flex: 0 0 auto;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .guardian-portal-hero .branding-logo {
    flex: 0 0 auto;
    padding: 4px;
    border-radius: 10px;
  }

  .guardian-portal-hero .branding-logo--primary {
    width: 40px;
    height: 40px;
  }

  .guardian-portal-hero .branding-logo--secondary {
    width: 34px;
    height: 34px;
  }

  .guardian-portal-hero .public-hero__meta {
    flex: 1 1 auto;
    display: grid;
    min-width: 0;
    width: auto;
    padding: 0;
    text-align: left;
    border-radius: 0;
    background: transparent;
  }

  .guardian-portal-hero .public-hero__meta span,
  .guardian-portal-hero .public-hero__meta small,
  .guardian-portal-hero .public-hero__meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.12;
  }

  .guardian-portal-hero .public-hero__meta span,
  .guardian-portal-hero .public-hero__meta small {
    font-size: 0.73rem;
  }

  .guardian-portal-hero .public-hero__meta strong {
    margin-top: 1px;
    font-size: 0.98rem;
  }

  .guardian-portal-hero .public-hero__meta small {
    margin-top: 1px;
  }
}

/* ===== Rendicion movil: exportacion y resumen ===== */
.rendition-export-actions--mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .rendition-live-summary-card {
    padding: 12px !important;
  }

  .rendition-live-heading {
    gap: 4px;
  }

  .rendition-live-heading h2 {
    margin-bottom: 2px;
  }

  .rendition-live-heading p {
    max-width: none;
    line-height: 1.28;
  }

  .rendition-live-section .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .rendition-live-actions {
    width: 100%;
    justify-items: stretch;
  }

  .rendition-live-actions__secondary,
  .rendition-live-actions__primary {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .rendition-live-actions__secondary {
    order: 2;
  }

  .rendition-live-actions__primary {
    order: 1;
  }

  .rendition-live-actions .button {
    min-height: 42px;
    padding: 8px 12px;
    font-size: 0.95rem;
  }

  .rendition-period-filter {
    width: 100%;
  }

  .rendition-period-filter select {
    width: 100%;
  }

  .rendition-new-closure-action,
  .rendition-meeting-action {
    width: 100%;
  }

  .rendition-export-desktop-only {
    display: none !important;
  }

  .rendition-primary-export-action {
    width: 100%;
  }

  .rendition-export-actions--desktop {
    display: none !important;
  }

  .rendition-export-actions--mobile {
    display: grid !important;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid rgba(36, 54, 50, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
  }

  .rendition-live-branding {
    display: none !important;
  }

  .rendition-export-actions--mobile summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 800;
    line-height: 1.25;
  }

  .rendition-mobile-export-buttons {
    display: grid;
    gap: 8px;
    margin-top: 8px;
  }

  .rendition-mobile-export-buttons .button {
    width: 100%;
  }

  .rendition-view > .metrics-grid--three.rendition-live-section,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card {
    display: grid;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-height: 76px;
    padding: 12px !important;
  }

  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card {
    grid-column: auto !important;
  }

  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    display: block;
  }

  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    margin-top: 0;
    font-size: 1.25rem;
    line-height: 1.12;
  }
}
@media screen and (max-width: 760px) {
  .guide-hero__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-hero__top .landing-brand {
    justify-self: start;
  }

  .guide-hero__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: none;
    min-width: 0;
    align-items: stretch;
  }

  .guide-hero__actions .guide-hero__button {
    display: inline-flex !important;
    width: 100% !important;
    height: 38px;
    min-width: 0;
    max-width: none;
    min-height: 38px;
    padding: 7px 8px;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    font-size: 0.86rem;
    line-height: 1.1;
    overflow: hidden;
  }

  .guide-hero__label--desktop {
    display: none;
  }

  .guide-hero__label--mobile {
    display: inline;
  }
}

@media screen and (max-width: 380px) {
  .guide-hero__actions .guide-hero__button {
    padding-inline: 6px;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 760px) {
  .debtors-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    align-items: stretch;
  }
}

/* ===== Modo Reunion: encabezado compacto ===== */
.meeting-hero__aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.meeting-hero__aside .branding-cluster--meeting {
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.meeting-hero__aside .branding-logo {
  padding: 6px;
  border-radius: 13px;
  background: #fff;
}

.meeting-hero__aside .branding-logo--primary {
  width: 56px;
  height: 56px;
}

.meeting-hero__aside .branding-logo--secondary {
  width: 42px;
  height: 42px;
}

.meeting-hero__aside .hero-card__badge {
  width: auto;
  min-width: 72px;
  padding: 7px 9px;
  border-radius: 13px;
  text-align: center;
}

.meeting-hero__aside .hero-card__badge strong {
  margin-top: 2px;
  font-size: 1.14rem;
  line-height: 1.05;
}

@media screen and (min-width: 769px) {
  .meeting-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, max-content);
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
  }

  .meeting-hero__content h1 {
    margin: 4px 0 6px;
  }

  .meeting-hero__text {
    max-width: 54ch;
  }
}

@media screen and (max-width: 768px) {
  .meeting-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px !important;
    padding: 14px !important;
  }

  .meeting-hero__aside {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 9px;
  }

  .meeting-hero__aside .branding-cluster--meeting {
    justify-content: flex-start;
    flex-wrap: wrap;
    min-width: 0;
  }

  .meeting-hero__aside .branding-logo--primary {
    width: 50px;
    height: 50px;
  }

  .meeting-hero__aside .branding-logo--secondary {
    width: 38px;
    height: 38px;
  }

  .meeting-hero__aside .hero-card__badge {
    flex: 0 0 auto;
    width: auto;
    min-width: 70px;
    padding: 7px 8px;
  }
}

/* ===== Marca publica: tamano consistente con guias SEO ===== */
.landing-page .landing-brand,
.guide-page .landing-brand {
  align-items: center;
  gap: 8px !important;
  color: var(--sidebar);
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.landing-page .landing-brand span,
.guide-page .landing-brand span {
  font-size: 1em !important;
  font-weight: 800;
}

.landing-page .landing-brand strong,
.guide-page .landing-brand strong {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  color: #fff9f2;
  font-size: 1em !important;
  line-height: 1.1;
}

/* ===== Rendiciones cerradas: detalle compacto ===== */
.rendition-closed-detail-header {
  padding-block: 12px;
}

.rendition-closed-detail-header__toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rendition-closed-detail-header .section-heading {
  flex: 1 1 340px;
  gap: 5px;
}

.rendition-closed-detail-header .section-heading h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.45vw, 1.42rem);
  line-height: 1.16;
}

.rendition-closed-detail-header .section-heading p {
  max-width: 70ch;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.rendition-closed-detail-actions {
  flex: 0 1 430px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
}

.rendition-closed-detail-actions .button {
  min-height: 36px;
  padding: 7px 10px;
}

.rendition-closed-detail-branding {
  flex: 0 0 auto;
  align-self: flex-start;
  justify-content: flex-start;
  margin: 0;
}

.rendition-closed-detail-branding .branding-cluster--report {
  justify-content: flex-start;
  gap: 6px;
}

.rendition-closed-detail-branding .branding-logo {
  padding: 5px;
}

.rendition-closed-detail-branding .branding-logo--primary {
  width: 58px;
  height: 58px;
}

.rendition-closed-detail-branding .branding-logo--secondary {
  width: 44px;
  height: 44px;
}

@media screen and (max-width: 768px) {
  .rendition-closed-detail-header {
    padding: 12px;
  }

  .rendition-closed-detail-header__toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .rendition-closed-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .rendition-closed-detail-actions .button {
    width: 100%;
    min-height: 40px;
  }

  .rendition-closed-detail-branding {
    justify-content: flex-start;
  }
}

/* ===== Rendición: movimientos compactos ===== */
.rendition-movements-card {
  padding-block: 14px;
}

.rendition-movements-panel {
  display: grid;
  gap: 12px;
}

.rendition-movements-panel__toolbar {
  align-items: flex-start;
  gap: 12px;
}

.rendition-movements-panel__toolbar .section-heading {
  gap: 4px;
}

.rendition-movements-panel__toolbar .section-heading h2 {
  margin: 0;
}

.rendition-movements-panel__toolbar .section-heading p {
  max-width: 62ch;
  margin: 0;
}

.rendition-movements-panel__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.rendition-movements-panel__actions .button {
  min-height: 36px;
  padding: 7px 12px;
}

.rendition-movements-filters {
  display: grid;
  grid-template-columns: minmax(118px, 0.8fr) repeat(5, minmax(132px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: var(--radius-md);
  background: rgba(247, 244, 236, 0.62);
}

.rendition-movements-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rendition-movements-filters span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.rendition-movements-filters input,
.rendition-movements-filters select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(36, 54, 50, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.rendition-movements-panel__summary {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.rendition-movements-panel__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.rendition-movements-panel__pagination .button {
  min-height: 34px;
  padding: 7px 11px;
}

.rendition-movements-print {
  display: none;
}

@media screen and (max-width: 1100px) {
  .rendition-movements-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .rendition-movements-card {
    padding: 12px;
  }

  .rendition-movements-panel__toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rendition-movements-panel__actions {
    justify-content: flex-start;
  }

  .rendition-movements-panel__actions .button {
    width: 100%;
  }

  .rendition-movements-filters {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .rendition-movements-panel__pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rendition-movements-panel__pagination .button {
    width: 100%;
  }
}

@media print {
  .rendition-movements-card {
    padding: 10px 12px;
  }

  .rendition-movements-print {
    display: block !important;
  }
}

/* Landing commercial optimization */
@media screen {
  .landing-how-works,
  .landing-quick-help,
  .landing-commercial-faq {
    gap: 12px;
  }

  .landing-how-works .landing-guide-summary__intro h2,
  .landing-quick-help .landing-guide-summary__intro h2,
  .landing-commercial-faq .landing-guide-summary__intro h2,
  .video-section--compact .video-section__intro h2 {
    font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  }

  .video-section--compact {
    padding: 12px !important;
    gap: 12px !important;
  }

  .video-section--compact .video-section__intro {
    gap: 7px;
  }

  .video-section--compact .local-video-card {
    max-width: 430px;
  }

  .landing-access--compact {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 14px !important;
  }

  .landing-access--open {
    align-items: start !important;
  }

  .landing-access--compact .landing-access__intro {
    max-width: none !important;
  }

  .landing-access--open .landing-access-login-panel {
    width: min(100%, 500px) !important;
  }
}

@media screen and (min-width: 761px) {
  .landing-quick-help {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  .landing-quick-help__actions {
    justify-content: flex-end !important;
  }

  .landing-steps--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .video-section--compact {
    grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.62fr) !important;
  }

  .landing-access--compact.landing-access--open {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px) !important;
    column-gap: clamp(18px, 4vw, 56px) !important;
  }

  .landing-access--open .landing-access__intro {
    align-self: start !important;
    max-width: 560px !important;
    padding-top: 4px !important;
  }

  .landing-access--open .landing-access-login-panel {
    justify-self: end !important;
  }
}

@media screen and (max-width: 760px) {
  .landing-steps--compact,
  .video-section--compact,
  .landing-quick-help {
    grid-template-columns: 1fr !important;
  }

  .landing-quick-help__actions,
  .landing-quick-help__actions .button,
  .landing-faq__actions .button {
    width: 100%;
  }

  .video-section--compact .local-video-card {
    max-width: none !important;
    justify-self: stretch !important;
  }

  .video-section--compact .video-section__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .video-section--compact .video-section__actions .button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .landing-access-compact__actions,
  .landing-access-compact__actions .button,
  .landing-access-compact__actions .landing-link,
  .landing-access-login-panel {
    width: 100%;
  }

  .landing-access--compact.landing-access--open {
    grid-template-columns: 1fr !important;
  }

  .landing-access--compact .landing-access__intro {
    order: 0 !important;
  }

  .landing-access--compact .landing-access-login-panel {
    order: 1 !important;
  }

  .landing-access--open .landing-access-login-panel {
    justify-self: stretch !important;
  }
}

@media screen and (max-width: 760px) {
  .page:has(> .dashboard-hero-card) > .dashboard-kpis {
    order: 3 !important;
  }

  .page:has(> .dashboard-hero-card) > .dashboard-secondary-grid {
    order: 4 !important;
  }

  .page:has(> .dashboard-hero-card) > .mobile-quick-actions {
    order: 5 !important;
  }

  .page:has(> .dashboard-hero-card) > .dashboard-grid {
    order: 6 !important;
  }

  .dashboard-balance-detail-list li {
    align-items: center;
    padding: 7px 9px !important;
    line-height: 1.2;
  }
}

/* ===== Barra interna compacta ===== */
.shell__body {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.topbar {
  gap: 10px 14px;
  padding-top: 10px;
  padding-bottom: 4px;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar__title {
  line-height: 1.08;
}

.internal-session-bar.topbar__status {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
  min-width: min(640px, 100%);
  width: auto;
  max-width: 100%;
  padding: 6px 8px !important;
  text-align: left;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.74);
  box-shadow: 0 8px 22px rgba(24, 40, 36, 0.08);
}

.internal-session-bar__meta,
.internal-session-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.internal-session-bar__meta {
  gap: 5px 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.internal-session-bar__meta--summary {
  align-items: flex-start;
}

.internal-session-bar__meta span,
.internal-session-bar__meta strong {
  display: inline-flex !important;
  color: inherit;
  font-size: inherit;
  line-height: 1.15;
  white-space: nowrap;
}

.internal-session-bar__meta span::after {
  content: "·";
  margin-left: 8px;
  color: rgba(95, 110, 105, 0.62);
}

.internal-session-bar__actions {
  justify-content: flex-end;
  gap: 5px;
}

.settings-account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.internal-session-bar__actions .demo-actions {
  gap: 5px;
}

.topbar-quick-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-quick-links a,
.internal-footer__links a {
  color: #8f4027;
  font-weight: 800;
  text-decoration: none;
}

.topbar-quick-links a:hover,
.topbar-quick-links a:focus-visible,
.internal-footer__links a:hover,
.internal-footer__links a:focus-visible {
  text-decoration: underline;
}

.internal-session-bar .button,
.internal-session-bar__actions .button,
.guardian-auth-shell .toolbar-actions .button {
  display: inline-flex !important;
  width: auto !important;
  min-height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}

.internal-session-bar__actions .status-badge,
.guardian-auth-shell .toolbar-actions .status-badge {
  display: inline-flex !important;
  min-height: 24px;
  padding: 3px 9px;
  white-space: nowrap;
}

.content {
  padding-top: 6px;
}

.internal-footer {
  padding: 0 var(--page-padding) 14px;
}

.internal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 54, 50, 0.08);
  color: var(--muted);
  font-size: 0.78rem;
}

.guardian-auth-shell .meeting-shell__toolbar {
  align-items: center;
  gap: 10px;
  padding: 10px 16px 6px;
}

.guardian-session-heading {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.guardian-session-heading > strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.guardian-session-heading__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.guardian-session-heading__meta span {
  min-width: 0;
  line-height: 1.15;
}

.guardian-auth-shell .toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.guardian-auth-shell .guardian-session-actions {
  flex-wrap: nowrap;
  min-width: 0;
}

@media screen and (max-width: 900px) {
  .topbar {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    padding: 10px 16px 4px !important;
  }

  .internal-session-bar.topbar__status {
    justify-content: space-between;
    min-width: 0;
    width: 100%;
    border-radius: 16px;
  }

  .internal-session-bar__actions {
    justify-content: flex-start;
  }

  .internal-footer__links {
    justify-content: center;
  }
}

@media screen and (max-width: 640px) {
  .internal-session-bar.topbar__status {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px 8px !important;
  }

  .internal-session-bar__actions {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
  }

  .internal-session-bar__actions > *,
  .internal-session-bar__actions .demo-actions,
  .topbar-quick-links {
    flex: 0 0 auto;
  }

  .internal-session-bar .button,
  .internal-session-bar__actions .button,
  .guardian-auth-shell .toolbar-actions .button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .internal-footer {
    padding: 0 16px 14px;
  }

  .guardian-auth-shell .meeting-shell__toolbar,
  .guardian-auth-shell .toolbar-actions {
    align-items: stretch;
  }

  .guardian-auth-shell .meeting-shell__toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guardian-session-heading__meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 0.8rem;
  }

  .guardian-auth-shell .toolbar-actions {
    justify-content: flex-start;
  }

  .guardian-auth-shell .guardian-session-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .guardian-auth-shell .guardian-session-actions .button {
    justify-content: center;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }
}

.student-actions,
.debtors-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.student-action-button,
.debtors-action-button {
  display: inline-flex;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #7f412c;
  background: rgba(184, 92, 56, 0.08);
  border-color: rgba(184, 92, 56, 0.18);
}

.student-action-button:hover,
.student-action-button:focus-visible,
.debtors-action-button:hover,
.debtors-action-button:focus-visible {
  color: #65311f;
  background: rgba(184, 92, 56, 0.14);
  border-color: rgba(184, 92, 56, 0.28);
}

.student-action-button svg,
.debtors-action-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.student-action-button--whatsapp,
.debtors-action-button--whatsapp {
  color: #1f6f4f;
  background: rgba(31, 122, 85, 0.08);
  border-color: rgba(31, 122, 85, 0.18);
}

.student-action-button--whatsapp:hover,
.student-action-button--whatsapp:focus-visible,
.debtors-action-button--whatsapp:hover,
.debtors-action-button--whatsapp:focus-visible {
  color: #15583d;
  background: rgba(31, 122, 85, 0.14);
  border-color: rgba(31, 122, 85, 0.28);
}

.students-collection-cell,
.debtors-pending-cell {
  display: grid;
  gap: 5px;
  align-content: start;
}

.students-collection-cell__status,
.debtors-pending-cell__amount {
  display: block;
  line-height: 1.15;
}

.students-status-cell,
.students-collection-cell__status,
.debtors-pending-cell__status {
  display: flex;
  align-items: center;
  min-width: 0;
}

.students-status-cell,
.students-collection-cell__status,
.debtors-pending-cell__status,
.debtors-collection-cell__status {
  min-height: 28px;
}

.students-status-cell .status-badge,
.students-collection-cell__status .status-badge,
.debtors-pending-cell__status .status-badge,
.debtors-collection-cell__status .status-badge {
  align-self: center;
}

.debtors-pending-cell__note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.students-collection-cell__meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.students-collection-cell {
  gap: 3px;
  align-content: center;
  min-height: 28px;
}

.students-collection-cell__meta small {
  display: -webkit-box;
  max-width: 24ch;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.debtors-collection-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: start;
}

.debtors-collection-cell__status {
  display: flex;
  align-items: center;
  min-width: 0;
}

.debtors-collection-cell__meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.students-collection-cell__meta small,
.debtors-collection-cell__meta small {
  color: inherit;
}

.students-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.students-table th,
.students-table td {
  overflow: hidden;
  vertical-align: middle;
}

.students-table th:nth-child(1),
.students-table td:nth-child(1) {
  width: 16%;
}

.students-table th:nth-child(2),
.students-table td:nth-child(2) {
  width: 13%;
}

.students-table th:nth-child(3),
.students-table td:nth-child(3) {
  width: 17%;
}

.students-table th:nth-child(4),
.students-table td:nth-child(4),
.students-table th:nth-child(5),
.students-table td:nth-child(5) {
  width: 9%;
  white-space: nowrap;
}

.students-table th:nth-child(6),
.students-table td:nth-child(6) {
  width: 13%;
  padding-right: 14px;
}

.students-table th:nth-child(7),
.students-table td:nth-child(7) {
  width: 8%;
  padding-left: 10px;
}

.students-table th:nth-child(8),
.students-table td:nth-child(8) {
  width: 15%;
}

.students-contact-cell {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1.25;
}

.students-contact-cell__item {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.students-contact-cell__item--phone,
.students-contact-cell--empty {
  color: var(--muted);
}

.students-table .students-collection-cell {
  max-width: 100%;
}

.students-table .students-collection-cell__status,
.students-table .students-status-cell {
  min-height: 30px;
}

.students-table .students-collection-cell__status .status-badge,
.students-table .students-status-cell .status-badge {
  max-width: 100%;
  white-space: nowrap;
}

.students-table .student-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
}

.students-table .student-action-button {
  flex-basis: 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
}

.students-table .student-action-button svg {
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  inline-size: 20px;
  height: 20px;
  block-size: 20px;
  stroke-width: 2;
}

.students-table .students-collection-cell__meta small {
  max-width: 18ch;
}

@media screen and (max-width: 760px) {
  .table-actions.student-actions,
  .mobile-record-card__actions.student-actions,
  .table-actions.debtors-actions,
  .mobile-record-card__actions.debtors-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    min-width: 0;
  }

  .student-actions .student-action-button,
  .mobile-record-card__actions.student-actions .student-action-button,
  .debtors-actions .debtors-action-button,
  .mobile-record-card__actions.debtors-actions .debtors-action-button {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }
}

/* ===== Dashboard movil: orden estable sin depender de :has() ===== */
@media screen and (max-width: 760px) {
  .shell__body .content .page > .dashboard-hero-card {
    order: 1 !important;
  }

  .shell__body .content .page > .dashboard-kpis {
    order: 2 !important;
  }

  .shell__body .content .page > .mobile-quick-actions {
    order: 3 !important;
  }

  .shell__body .content .page > .dashboard-secondary-grid {
    order: 4 !important;
  }

  .shell__body .content .page > .dashboard-payment-notices-card {
    order: 5 !important;
  }

  .shell__body .content .page > .first-steps-card {
    order: 6 !important;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .dashboard-kpis .metric-card,
  .dashboard-kpis .metric-card:nth-child(4) {
    display: grid !important;
  }

  .dashboard-kpis .metric-card {
    align-content: start;
    gap: 4px;
    min-width: 0;
    min-height: 72px !important;
    padding: 9px 10px !important;
  }

  .dashboard-kpis .metric-card:first-child {
    grid-column: auto !important;
  }

  .dashboard-kpis .metric-card span,
  .dashboard-kpis .metric-card strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-kpis .metric-card span {
    font-size: 0.74rem !important;
    line-height: 1.15;
  }

  .dashboard-kpis .metric-card strong {
    margin-top: 0;
    font-size: clamp(0.98rem, 4.6vw, 1.12rem) !important;
    line-height: 1.12;
  }

  .dashboard-secondary-grid {
    grid-template-columns: 1fr !important;
  }
}

@media screen and (max-width: 640px) {
  .internal-session-bar.topbar__status {
    overflow: visible;
  }

  .internal-session-bar__meta {
    flex-wrap: wrap;
    gap: 4px 7px;
  }

  .internal-session-bar__meta span,
  .internal-session-bar__meta strong {
    white-space: normal;
  }

  .internal-session-bar__actions {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    gap: 6px;
    padding-bottom: 0;
  }

  .internal-session-bar__meta--summary + .internal-session-bar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .internal-session-bar__meta--summary + .internal-session-bar__actions .button {
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    white-space: nowrap;
  }

  .internal-session-bar__actions > *,
  .internal-session-bar__actions .demo-actions,
  .topbar-quick-links {
    flex: 0 1 auto;
    min-width: 0;
  }

  .topbar-quick-links {
    flex-wrap: wrap;
  }

  .internal-session-bar .button,
  .internal-session-bar__actions .button,
  .guardian-auth-shell .toolbar-actions .button {
    white-space: normal;
  }

  .internal-session-bar__meta--summary + .internal-session-bar__actions .button {
    white-space: nowrap;
  }
}

@media screen and (max-width: 330px) {
  .internal-session-bar__meta--summary + .internal-session-bar__actions {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 380px) {
  .dashboard-kpis {
    gap: 7px !important;
  }

  .dashboard-kpis .metric-card {
    min-height: 68px !important;
    padding: 8px !important;
    border-radius: 14px;
  }

  .dashboard-kpis .metric-card span {
    font-size: 0.7rem !important;
  }

  .dashboard-kpis .metric-card strong {
    font-size: clamp(0.9rem, 4.4vw, 1.02rem) !important;
  }
}

@media screen and (max-width: 340px) {
  .payment-instructions-list {
    grid-template-columns: 1fr;
  }

  .payment-instructions-list div:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* ===== Ingresos: acciones compactas en tabla y tarjetas ===== */
@media screen and (max-width: 760px) {
  .mobile-record-card__actions .income-actions,
  .mobile-record-card__actions .table-actions.income-actions {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
  }

  .mobile-record-card__actions .income-actions .button,
  .mobile-record-card__actions .table-actions.income-actions .button {
    flex: 0 1 auto;
    width: auto !important;
    min-height: 34px;
    padding: 7px 10px;
    white-space: nowrap;
  }
}

/* ===== KPIs compactas compartidas: Resumen y Rendicion ===== */
@media screen and (max-width: 768px) {
  .dashboard-kpis,
  .rendition-kpis.dashboard-kpis,
  .rendition-view > .metrics-grid--three.rendition-live-section,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .dashboard-kpis .metric-card,
  .dashboard-kpis .metric-card:nth-child(4),
  .rendition-kpis.dashboard-kpis .metric-card,
  .rendition-kpis.dashboard-kpis .metric-card:nth-child(4),
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card {
    display: grid !important;
    align-content: start;
    gap: 4px !important;
    width: 100%;
    min-width: 0;
    min-height: 72px !important;
    padding: 9px 10px !important;
    border-radius: 16px;
  }

  .dashboard-kpis .metric-card:first-child,
  .rendition-kpis.dashboard-kpis .metric-card:first-child,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card:first-child,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card:first-child {
    grid-column: auto !important;
  }

  .dashboard-kpis .metric-card span,
  .dashboard-kpis .metric-card strong,
  .rendition-kpis.dashboard-kpis .metric-card span,
  .rendition-kpis.dashboard-kpis .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-kpis .metric-card span,
  .rendition-kpis.dashboard-kpis .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card span {
    font-size: 0.74rem !important;
    line-height: 1.15;
  }

  .dashboard-kpis .metric-card strong,
  .rendition-kpis.dashboard-kpis .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    margin-top: 0;
    font-size: clamp(0.98rem, 4.6vw, 1.12rem) !important;
    line-height: 1.12;
  }
}

@media screen and (max-width: 380px) {
  .dashboard-kpis,
  .rendition-kpis.dashboard-kpis,
  .rendition-view > .metrics-grid--three.rendition-live-section,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section {
    gap: 7px !important;
  }

  .dashboard-kpis .metric-card,
  .dashboard-kpis .metric-card:nth-child(4),
  .rendition-kpis.dashboard-kpis .metric-card,
  .rendition-kpis.dashboard-kpis .metric-card:nth-child(4),
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card {
    min-height: 68px !important;
    padding: 8px !important;
    border-radius: 14px;
  }

  .dashboard-kpis .metric-card span,
  .rendition-kpis.dashboard-kpis .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card span,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card span {
    font-size: 0.7rem !important;
  }

  .dashboard-kpis .metric-card strong,
  .rendition-kpis.dashboard-kpis .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-live-section .metric-card strong,
  .rendition-view > .metrics-grid--three.rendition-closed-detail-section .metric-card strong {
    font-size: clamp(0.9rem, 4.4vw, 1.02rem) !important;
  }
}

/* ===== Landing alternativa interna v2 ===== */
.landing-v2 {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 44px;
  gap: clamp(22px, 4vw, 46px);
}

.landing-v2__nav {
  width: 100%;
  padding-top: 0;
}

.landing-v2 .button {
  border-radius: 10px;
}

.landing-v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(560px, 1.24fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: min(680px, calc(100vh - 110px));
  padding: clamp(22px, 5vw, 58px) 0 clamp(18px, 3vw, 34px);
  border-bottom: 1px solid rgba(36, 54, 50, 0.1);
}

.landing-v2-hero__copy {
  display: grid;
  gap: 18px;
  max-width: 720px;
}

.landing-v2-hero__copy h1,
.landing-v2-final h2 {
  margin: 0;
  color: var(--sidebar);
  font-size: clamp(2.45rem, 5.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-v2-hero__copy p {
  max-width: 620px;
  margin: 0;
  color: #42514c;
  font-size: clamp(1.02rem, 1.55vw, 1.32rem);
  line-height: 1.55;
}

.landing-v2-hero__actions,
.landing-v2-final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.landing-v2-hero__media {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(14px, 2vw, 22px) clamp(44px, 4vw, 64px) 40px clamp(14px, 2vw, 22px);
  border: 1px solid rgba(36, 54, 50, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.9), rgba(244, 239, 230, 0.84)),
    rgba(255, 253, 249, 0.86);
  box-shadow:
    0 28px 70px rgba(24, 40, 36, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.landing-v2-device {
  overflow: hidden;
  border: 1px solid rgba(36, 54, 50, 0.14);
  background: #fffdf9;
  box-shadow: 0 22px 48px rgba(24, 40, 36, 0.18);
}

.landing-v2-device--desktop {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
}

.landing-v2-device__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(36, 54, 50, 0.09);
  background: rgba(255, 250, 244, 0.92);
}

.landing-v2-device__bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(36, 54, 50, 0.28);
}

.landing-v2-device__bar span:first-child {
  background: rgba(184, 92, 56, 0.68);
}

.landing-v2-device__bar span:nth-child(2) {
  background: rgba(242, 189, 119, 0.82);
}

.landing-v2-device__bar span:nth-child(3) {
  background: rgba(31, 122, 85, 0.66);
}

.landing-v2-device--mobile {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 1.7vw, 22px);
  bottom: 10px;
  width: clamp(122px, 11.8vw, 164px);
  padding: 7px 6px 9px;
  border-radius: 28px;
  background: #173a33;
  box-shadow:
    0 26px 48px rgba(24, 40, 36, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.55);
}

.landing-v2-hero__desktop-shot,
.landing-v2-hero__mobile-shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.landing-v2-hero__desktop-shot {
  background: #f8f6ef;
}

.landing-v2-hero__mobile-shot {
  border-radius: 20px;
  background: #f8f6ef;
}

.landing-v2-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
  padding: clamp(24px, 4vw, 44px) 0;
  border-bottom: 1px solid rgba(36, 54, 50, 0.1);
}

.landing-v2-section__intro,
.landing-v2-audience__copy,
.landing-v2-transparency > div {
  display: grid;
  gap: 8px;
}

.landing-v2-section__intro span,
.landing-v2-audience__copy span,
.landing-v2-transparency span,
.landing-v2-price span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-v2-section h2,
.landing-v2-audience h2,
.landing-v2-transparency h2 {
  max-width: 720px;
  margin: 0;
  color: var(--sidebar);
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-v2-checklist,
.landing-v2-step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-v2-checklist li {
  padding: 13px 15px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.68);
  color: #30413d;
  font-size: 1rem;
  font-weight: 800;
}

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

.landing-v2-module {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 14px;
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.74);
}

.landing-v2-module span {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 0 5px rgba(31, 122, 85, 0.12);
}

.landing-v2-module strong {
  min-width: 0;
  color: var(--sidebar);
  font-size: 1rem;
  line-height: 1.2;
}

.landing-v2-screenshots {
  grid-template-columns: 1fr;
}

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

.landing-v2-shot {
  display: grid;
  grid-template-rows: 230px auto;
  overflow: hidden;
  border: 1px solid rgba(36, 54, 50, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: 0 16px 34px rgba(24, 40, 36, 0.09);
}

.landing-v2-shot img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: top center;
  background: #fffdf9;
}

.landing-v2-shot div {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.landing-v2-shot strong {
  color: var(--sidebar);
  font-size: 1.05rem;
}

.landing-v2-shot p,
.landing-v2-audience p,
.landing-v2-transparency p,
.landing-v2-price p {
  margin: 0;
  color: #42514c;
  font-size: 1rem;
  line-height: 1.5;
}

.landing-v2-audience {
  align-items: stretch;
}

.landing-v2-price {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 190px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(184, 92, 56, 0.18);
  border-radius: 8px;
  background: #fff7ea;
}

.landing-v2-price strong {
  color: var(--sidebar);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 1.08;
}

.landing-v2-step-list {
  counter-reset: landing-v2-step;
}

.landing-v2-step-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(36, 54, 50, 0.09);
}

.landing-v2-step-list li:last-child {
  border-bottom: 0;
}

.landing-v2-step-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fffaf4;
  border-radius: 50%;
  background: var(--sidebar);
  font-weight: 900;
}

.landing-v2-step-list strong {
  color: #30413d;
  font-size: 1.05rem;
}

.landing-v2-transparency {
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(36, 54, 50, 0.1);
  border-radius: 8px;
  background: rgba(223, 236, 231, 0.5);
}

.landing-v2-final {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 8px;
  background: var(--sidebar);
  color: #fffaf4;
}

.landing-v2-final h2 {
  max-width: 860px;
  color: #fffaf4;
  font-size: clamp(1.9rem, 4.4vw, 4.1rem);
}

.landing-v2-final .button--ghost {
  color: #fffaf4;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

@media screen and (max-width: 980px) {
  .landing-v2-hero,
  .landing-v2-section {
    grid-template-columns: 1fr;
  }

  .landing-v2-hero {
    min-height: auto;
  }

  .landing-v2-hero__media {
    justify-self: start;
    width: min(100%, 760px);
    padding-right: clamp(74px, 12vw, 112px);
  }

  .landing-v2-module-grid,
  .landing-v2-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .landing-v2 {
    width: min(100% - 20px, 1280px);
    padding-bottom: 28px;
  }

  .landing-v2__nav {
    align-items: flex-start;
  }

  .landing-v2__nav-actions {
    justify-content: flex-end;
  }

  .landing-v2__nav-actions .button {
    min-height: 36px;
    padding: 8px 10px;
  }

  .landing-v2-hero {
    gap: 20px;
    padding-top: 18px;
  }

  .landing-v2-hero__copy {
    gap: 14px;
  }

  .landing-v2-hero__copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .landing-v2-hero__copy p {
    font-size: 1rem;
  }

  .landing-v2-hero__actions,
  .landing-v2-final__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-v2-hero__actions .button,
  .landing-v2-final__actions .button {
    width: 100%;
  }

  .landing-v2-hero__media {
    display: grid;
    gap: 12px;
    justify-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 18px;
  }

  .landing-v2-device--mobile {
    position: static;
    order: 1;
    width: min(68%, 210px);
    padding: 6px 5px 8px;
    border-radius: 24px;
  }

  .landing-v2-device--desktop {
    order: 2;
    width: 100%;
    border-radius: 14px;
  }

  .landing-v2-device__bar {
    min-height: 22px;
    padding: 0 9px;
  }

  .landing-v2-device__bar span {
    width: 6px;
    height: 6px;
  }

  .landing-v2-hero__mobile-shot {
    border-radius: 17px;
  }

  .landing-v2-section {
    gap: 16px;
    padding: 24px 0;
  }

  .landing-v2-module-grid,
  .landing-v2-shot-grid {
    grid-template-columns: 1fr;
  }

  .landing-v2-shot {
    grid-template-rows: minmax(190px, 52vw) auto;
  }

  .landing-v2-transparency,
  .landing-v2-final {
    padding: 20px;
  }
}

@media screen and (max-width: 380px) {
  .landing-v2__nav {
    display: grid;
  }

  .landing-v2__nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .landing-v2__nav-actions .button {
    width: 100%;
  }

  .landing-v2-checklist li,
  .landing-v2-module,
  .landing-v2-shot div {
    padding: 12px;
  }
}

/* ===== Landing alternativa v2: composicion SaaS comercial ===== */
.landing-v2--commercial {
  width: min(1200px, calc(100% - 40px));
  gap: clamp(28px, 4.4vw, 56px);
  padding: 24px 0 42px;
}

.landing-v2--commercial .button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
}

.landing-v2-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.landing-v2-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--sidebar);
  text-decoration: none;
}

.landing-v2-brand img {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(24, 40, 36, 0.1);
}

.landing-v2-brand span {
  display: grid;
  gap: 0;
  line-height: 0.92;
  text-transform: uppercase;
}

.landing-v2-brand strong,
.landing-v2-brand b {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.landing-v2-brand b {
  color: var(--accent);
}

.landing-v2-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  justify-content: flex-end;
}

.landing-v2-nav-links a,
.landing-v2-footer__links a {
  color: #1f2d2a;
  font-weight: 800;
  text-decoration: none;
}

.landing-v2-nav-links a:hover,
.landing-v2-nav-links a:focus-visible,
.landing-v2-footer__links a:hover,
.landing-v2-footer__links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-v2-header__cta {
  padding-inline: 22px;
  background: var(--sidebar);
  box-shadow: 0 14px 28px rgba(24, 40, 36, 0.18);
}

.landing-v2--commercial .landing-v2-hero {
  grid-template-columns: minmax(330px, 0.68fr) minmax(660px, 1.32fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  min-height: min(660px, calc(100vh - 84px));
  margin: 0 calc(50% - 50vw);
  padding:
    clamp(34px, 5vw, 72px)
    max(40px, calc((100vw - 1200px) / 2))
    clamp(34px, 4vw, 58px);
  border-bottom: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.88) 32%, rgba(241, 232, 216, 0.72) 66%, rgba(235, 243, 238, 0.88) 100%),
    radial-gradient(circle at 78% 30%, rgba(242, 189, 119, 0.22), transparent 28%),
    radial-gradient(circle at 92% 58%, rgba(31, 122, 85, 0.18), transparent 30%);
}

.landing-v2--commercial .landing-v2-hero::before {
  content: "";
  position: absolute;
  inset: auto max(28px, calc((100vw - 1200px) / 2)) clamp(18px, 3vw, 42px) auto;
  width: min(58vw, 780px);
  height: min(24vw, 230px);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(174, 152, 118, 0.28), rgba(174, 152, 118, 0.1) 48%, transparent 72%);
  filter: blur(18px);
  transform: translateY(18px);
  pointer-events: none;
  z-index: -1;
}

.landing-v2--commercial .landing-v2-hero::after {
  content: "";
  position: absolute;
  top: clamp(52px, 9vw, 118px);
  right: max(20px, calc((100vw - 1260px) / 2));
  width: min(42vw, 640px);
  height: min(34vw, 430px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.88), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(224, 236, 230, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: -1;
}

.landing-v2--commercial .landing-v2-hero__copy {
  gap: 20px;
  position: relative;
  z-index: 2;
}

.landing-v2--commercial .landing-v2-hero__copy h1 {
  font-size: clamp(3.35rem, 5.7vw, 5.75rem);
  line-height: 0.96;
}

.landing-v2--commercial .landing-v2-hero__copy p {
  max-width: 540px;
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
}

.landing-v2--commercial .landing-v2-hero__actions {
  gap: 12px;
}

.landing-v2--commercial .landing-button--primary {
  padding-inline: 24px;
  background: linear-gradient(135deg, #0f4a43, #0b382f);
  box-shadow: 0 16px 32px rgba(15, 74, 67, 0.2);
}

.landing-v2--commercial .landing-v2-hero__proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin: 10px 0 0;
  padding: 0;
  color: #30413d;
  list-style: none;
}

.landing-v2-hero__proofs li {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.landing-v2-hero__proofs span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(31, 122, 85, 0.28);
  border-radius: 50%;
  background: rgba(31, 122, 85, 0.08);
}

.landing-v2-hero__proofs span::after {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 2px solid var(--positive);
  border-left: 2px solid var(--positive);
  transform: rotate(-45deg) translateY(-1px);
}

.landing-v2--commercial .landing-v2-hero__media {
  justify-self: stretch;
  width: min(100%, 760px);
  min-width: 0;
  padding: clamp(16px, 1.7vw, 22px) clamp(28px, 2.8vw, 44px) clamp(18px, 2vw, 30px) clamp(16px, 1.7vw, 22px);
  border-color: rgba(36, 54, 50, 0.08);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 244, 235, 0.7)),
    #fffdf9;
  box-shadow:
    0 34px 90px rgba(24, 40, 36, 0.2),
    0 12px 26px rgba(184, 92, 56, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.landing-v2--commercial .landing-v2-device--desktop {
  border-radius: 24px;
  box-shadow:
    0 24px 48px rgba(24, 40, 36, 0.24),
    0 3px 0 rgba(36, 54, 50, 0.08);
}

.landing-v2--commercial .landing-v2-device--mobile {
  right: clamp(2px, 0.9vw, 12px);
  bottom: clamp(18px, 2.6vw, 34px);
  width: clamp(118px, 10.5vw, 146px);
  border-radius: 28px;
  box-shadow:
    0 24px 42px rgba(24, 40, 36, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.62);
}

.landing-v2-block {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.landing-v2-block__intro {
  display: grid;
  justify-items: center;
  text-align: center;
}

.landing-v2-block h2,
.landing-v2-process h2,
.landing-v2-directives h2,
.landing-v2-price-strip h2,
.landing-v2-final h2 {
  margin: 0;
  color: var(--sidebar);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-v2-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.landing-v2-feature {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  min-width: 0;
  text-align: center;
}

.landing-v2-feature__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--positive);
  border-radius: 22px;
  background: rgba(31, 122, 85, 0.09);
  font-size: 1.3rem;
  font-weight: 900;
}

.landing-v2-feature h3 {
  margin: 0;
  color: var(--sidebar);
  font-size: 1rem;
}

.landing-v2-feature p {
  margin: 0;
  color: #42514c;
  font-size: 0.94rem;
  line-height: 1.5;
}

.landing-v2-process {
  display: grid;
  gap: 26px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(31, 122, 85, 0.08), transparent 32%),
    #f5faf7;
  text-align: center;
}

.landing-v2-process__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-v2-process__steps li {
  display: grid;
  gap: 10px;
  justify-items: center;
  align-content: start;
  min-width: 0;
  position: relative;
}

.landing-v2-process__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px;
  right: -20px;
  width: 28px;
  height: 2px;
  background: rgba(31, 122, 85, 0.32);
}

.landing-v2-process__number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #fffaf4;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a55, #0f4a43);
  box-shadow: 0 16px 28px rgba(15, 74, 67, 0.18);
  font-size: 1.35rem;
  font-weight: 900;
}

.landing-v2-process__steps strong {
  color: var(--sidebar);
  font-size: 1rem;
  line-height: 1.25;
}

.landing-v2-process__steps p {
  max-width: 180px;
  margin: 0;
  color: #42514c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-v2-directives {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: stretch;
}

.landing-v2-directives__copy,
.landing-v2-directives__panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 18px 42px rgba(24, 40, 36, 0.08);
}

.landing-v2-directives__copy {
  display: grid;
  gap: 20px;
}

.landing-v2-directives__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-v2-directives__list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #30413d;
  font-weight: 800;
}

.landing-v2-directives__list span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 122, 85, 0.12);
}

.landing-v2-directives__list span::after {
  content: "";
  width: 8px;
  height: 5px;
  border-bottom: 2px solid var(--positive);
  border-left: 2px solid var(--positive);
  transform: rotate(-45deg) translateY(-1px);
}

.landing-v2-directives__panel {
  display: grid;
  gap: 14px;
  align-content: center;
  background:
    radial-gradient(circle at top right, rgba(31, 122, 85, 0.1), transparent 32%),
    rgba(255, 253, 249, 0.86);
}

.landing-v2-directives__panel span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-v2-directives__panel strong {
  max-width: 480px;
  color: var(--sidebar);
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.12;
}

.landing-v2-directives__panel p {
  max-width: 520px;
  margin: 0;
  color: #42514c;
  font-size: 1rem;
  line-height: 1.55;
}

.landing-v2-price-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(36, 54, 50, 0.08);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 18px 42px rgba(24, 40, 36, 0.08);
}

.landing-v2-price-strip__icon {
  display: grid;
  place-items: center;
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  color: #fffaf4;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f7a55, #0f4a43);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
}

.landing-v2-price-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.landing-v2-price-strip p {
  margin: 6px 0 0;
  color: #42514c;
  font-weight: 800;
}

.landing-v2--commercial .landing-v2-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  justify-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #0f4a43, #062f29);
}

.landing-v2--commercial .landing-v2-final h2 {
  max-width: 760px;
  color: #fffaf4;
  font-size: clamp(1.55rem, 2.6vw, 2.5rem);
}

.landing-v2-final p {
  margin: 8px 0 0;
  color: rgba(255, 250, 244, 0.84);
  font-size: 1.05rem;
}

.landing-v2-final__button {
  padding-inline: clamp(24px, 4vw, 48px);
  color: var(--sidebar);
  background: #fffdf9;
}

.landing-v2-footer {
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(3, minmax(130px, 0.5fr));
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
  padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(36, 54, 50, 0.1);
}

.landing-v2-brand--footer {
  align-items: center;
}

.landing-v2-footer__brand {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.landing-v2-footer__brand p {
  max-width: 220px;
  margin: 0;
  color: #42514c;
  line-height: 1.45;
}

.landing-v2-footer__links {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.landing-v2-footer__links strong {
  color: var(--sidebar);
}

.landing-v2-footer__links a {
  color: #42514c;
  font-weight: 700;
}

@media screen and (max-width: 1080px) {
  .landing-v2-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .landing-v2-nav-links {
    grid-column: 1 / -1;
    justify-content: center;
    order: 3;
  }

  .landing-v2-feature-grid,
  .landing-v2-process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-v2-process__steps li::after {
    display: none;
  }
}

@media screen and (max-width: 760px) {
  .landing-v2--commercial {
    width: min(100% - 24px, 1200px);
    padding-top: 16px;
    gap: 34px;
  }

  .landing-v2-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-v2-brand {
    justify-self: start;
  }

  .landing-v2-header__cta {
    display: none;
  }

  .landing-v2-nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    justify-content: stretch;
  }

  .landing-v2-nav-links a {
    display: grid;
    place-items: center;
    min-height: 36px;
    padding: 7px 8px;
    border: 1px solid rgba(36, 54, 50, 0.09);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.76);
    font-size: 0.82rem;
    text-align: center;
  }

  .landing-v2--commercial .landing-v2-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 18px 0 4px;
  }

  .landing-v2--commercial .landing-v2-hero__copy {
    gap: 14px;
  }

  .landing-v2--commercial .landing-v2-hero__copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.35rem);
  }

  .landing-v2--commercial .landing-v2-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-v2--commercial .landing-v2-hero__proofs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-v2--commercial .landing-v2-hero__media {
    width: 100%;
    min-width: 0;
    padding: 12px;
  }

  .landing-v2--commercial .landing-v2-device--mobile {
    width: min(70%, 230px);
  }

  .landing-v2-feature-grid,
  .landing-v2-process__steps,
  .landing-v2-directives,
  .landing-v2-price-strip,
  .landing-v2--commercial .landing-v2-final,
  .landing-v2-footer {
    grid-template-columns: 1fr;
  }

  .landing-v2-feature {
    padding: 16px;
    border: 1px solid rgba(36, 54, 50, 0.08);
    border-radius: 18px;
    background: rgba(255, 253, 249, 0.72);
  }

  .landing-v2-process,
  .landing-v2-directives__copy,
  .landing-v2-directives__panel,
  .landing-v2-price-strip,
  .landing-v2--commercial .landing-v2-final {
    border-radius: 18px;
  }

  .landing-v2-process__steps {
    gap: 18px;
  }

  .landing-v2-price-strip .button,
  .landing-v2-final__button {
    width: 100%;
  }
}

@media screen and (max-width: 390px) {
  .landing-v2-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-v2--commercial .landing-v2-hero__copy h1 {
    font-size: clamp(2.2rem, 10.5vw, 2.95rem);
  }
}
