:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef4f2;
  --surface-soft: #fafbfc;
  --input-bg: #ffffff;
  --input-disabled-bg: #eef3f0;
  --input-focus-shadow: 0 0 0 3px rgba(36, 124, 90, 0.08);
  --text: #18211d;
  --muted: #65716b;
  --line: #dbe4df;
  --accent: #247c5a;
  --accent-strong: #185c43;
  --accent-soft: #dff1e7;
  --info: #23558f;
  --warn: #a85f16;
  --danger: #a53737;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(24, 33, 29, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.is-generating {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(36, 124, 90, 0.25);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(14px);
}

.brand,
.landing-brand,
.auth-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-book-mark,
.landing-book-mark {
  display: inline-block;
  flex: 0 0 auto;
  background-image: url("/static/app/aprendefacil-logo.a2d9fe945e6e.png");
  background-repeat: no-repeat;
  background-position: left center;
}

.brand-book-mark {
  width: 66px;
  height: 52px;
  background-size: auto 52px;
}

.brand-copy strong,
.brand-copy small,
.landing-brand strong,
.landing-brand small,
.auth-logo-link strong,
.auth-logo-link small {
  display: block;
}

.brand-copy strong {
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: var(--accent-strong);
  font-weight: 850;
  line-height: 1.1;
}

.landing-page .topbar {
  position: fixed;
  right: 0;
  left: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.landing-page.landing-header-visible .topbar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.landing-page {
  --landing-header-height: 99px;
  --landing-blue: #173b57;
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.88), rgba(247, 248, 251, 0.86) 48%, rgba(237, 246, 251, 0.9)),
    var(--bg);
}

.landing-page .shell {
  width: 100%;
  margin: 0 auto;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 650;
}

.nav a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.language-form select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  min-width: 0;
}

.auth-actions form {
  margin: 0;
}

.auth-actions a,
.auth-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.landing-page .auth-actions .header-cta {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.landing-page .auth-actions .header-cta:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.shell {
  width: min(1180px, calc(100% - 28px));
  margin: clamp(20px, 4vw, 34px) auto 64px;
}

.messages {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
}

.message {
  padding: 12px 14px;
  border: 1px solid #b8d9c8;
  border-radius: var(--radius);
  background: #eaf7ef;
  color: var(--accent-strong);
  box-shadow: var(--shadow);
}

.message.success {
  border-color: #b8d9c8;
  color: var(--accent-strong);
}

.message.error {
  border-color: #b8d9c8;
  color: var(--accent-strong);
}

.inline-loading {
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--accent-strong);
  font-weight: 800;
}

.inline-loading[hidden] {
  display: none;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #cfe6da;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.loading-spinner.large {
  width: 38px;
  height: 38px;
  border-width: 4px;
}

.generation-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 37, 33, 0.46);
  backdrop-filter: blur(4px);
}

.generation-modal[hidden] {
  display: none;
}

.generation-modal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  width: min(520px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 37, 33, 0.22);
}

.generation-modal-card p {
  margin: 8px 0 4px;
  color: var(--muted);
}

.generation-modal-card small {
  color: var(--accent-strong);
  font-weight: 750;
}

.generation-modal-card .progress-track {
  grid-column: 1 / -1;
}

.generation-steps {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin: 6px 0 2px;
  padding: 0;
  list-style: none;
}

.generation-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.generation-steps li::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #cfe6da;
  border-radius: 999px;
  background: var(--surface);
}

.generation-steps li.is-done,
.generation-steps li.is-active {
  color: var(--accent-strong);
}

.generation-steps li.is-done::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}

.generation-steps li.is-active::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 124, 90, 0.12);
  animation: pulse-step 1.2s ease-in-out infinite;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 37, 33, 0.46);
  backdrop-filter: blur(4px);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal-card {
  display: grid;
  gap: 18px;
  width: min(480px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(29, 37, 33, 0.22);
}

.confirm-modal-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-strong);
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--accent);
  animation: progress-slide 1.2s ease-in-out infinite;
}

.material-upload-progress {
  width: 0%;
  animation: none;
  transform: none;
  transition: width 0.2s ease;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(85%);
  }
  100% {
    transform: translateX(245%);
  }
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(24, 33, 29, 0.05);
}

.page-heading.compact {
  align-items: start;
}

.dashboard-page .page-heading {
  align-items: end;
  margin-bottom: clamp(18px, 4vw, 26px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.breadcrumb {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumb a {
  color: var(--accent-strong);
}

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

h1 {
  margin-bottom: 0;
  font-size: 32px;
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

.page-description {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.25;
}

.actions,
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: min(100%, 460px);
}

.search-form input {
  flex: 1 1 220px;
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  box-shadow: var(--input-focus-shadow);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.dashboard-classroom-search {
  min-width: 0;
}

.dashboard-classroom-search input {
  flex-basis: 180px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.15;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover {
  border-color: #b7cbc2;
  background: var(--surface-strong);
}

.button.cta-button {
  border-color: rgba(36, 124, 90, 0.26);
  background: linear-gradient(135deg, #2f996f 0%, #18724f 100%);
  box-shadow: 0 14px 30px rgba(36, 124, 90, 0.24);
}

.button.cta-button:hover {
  background: linear-gradient(135deg, #247c5a 0%, #14563e 100%);
  box-shadow: 0 18px 34px rgba(24, 92, 67, 0.28);
}

.button.danger {
  background: var(--danger);
  color: #ffffff;
}

.button.danger:hover {
  background: #842a2a;
}

.button.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat,
.panel,
.form-surface,
.table-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat {
  padding: clamp(16px, 4vw, 20px);
}

.stat span {
  display: block;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.stat p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.student-classroom-groups,
.student-classroom-stats {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.student-classroom-stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.student-classroom-group {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.student-classroom-group:last-child {
  border-bottom: 1px solid var(--line);
}

.student-classroom-section-title h2,
.student-classroom-group-head h3 {
  margin: 0;
}

.student-classroom-group-head {
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.student-classroom-group-head::-webkit-details-marker {
  display: none;
}

.student-classroom-group-head h3 {
  font-size: 19px;
}

.student-classroom-group-head h3 a {
  color: inherit;
  text-decoration: none;
}

.student-classroom-group-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.student-classroom-receiving-note {
  margin-top: 5px;
}

.student-classroom-opt-out-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e5b6b6;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  background: #fff;
  color: #743131;
}

.student-classroom-opt-out-message > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-classroom-opt-out-message strong {
  color: var(--danger);
  font-size: 13px;
}

.student-classroom-opt-out-message small {
  color: #743131;
  font-size: 12px;
  font-weight: 750;
}

.student-classroom-opt-out-message form {
  flex: 0 0 auto;
}

.student-classroom-stat {
  display: grid;
  gap: 12px;
  min-height: 188px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.student-classroom-stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.student-classroom-stat-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.student-classroom-body {
  display: grid;
  gap: 12px;
}

.student-classroom-toggle .when-closed,
.student-classroom-group[open] .student-classroom-toggle .when-open {
  display: inline;
}

.student-classroom-toggle .when-open,
.student-classroom-group[open] .student-classroom-toggle .when-closed {
  display: none;
}

.student-classroom-stat-head strong {
  font-size: 15px;
}

.student-classroom-stat-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.student-classroom-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-classroom-stat-grid .stat {
  min-height: 88px;
  padding: 10px;
}

.student-classroom-stat-grid .stat span {
  font-size: 22px;
}

.student-classroom-stat-grid .stat p {
  font-size: 12px;
}

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

.student-classroom-detail-grid .panel.wide {
  grid-column: 1 / -1;
}

.student-classroom-card {
  padding: 14px;
}

.student-attention-summary-inline {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  border: 1px solid #b9d9c9;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef9f1, #ffffff);
  box-shadow: 0 12px 24px rgba(24, 33, 29, 0.08);
}

.student-attention-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.student-attention-summary-head > span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-attention-summary-inline strong {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 900;
}

.student-attention-summary-inline small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.student-attention-summary-head .status {
  flex: 0 0 auto;
}

.student-attention-stat-grid .stat {
  border-color: #cfe2d8;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.student-classroom-card .panel-head {
  margin-bottom: 10px;
}

.student-classroom-card .panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.compact-list {
  gap: 8px;
}

.compact-list .row-link {
  min-height: 54px;
  padding: 10px 12px;
}

.stat.is-critical {
  border-color: #efc8c8;
  background: #fff4f4;
}

.stat.is-critical span {
  color: var(--danger);
}

.stat.is-warning {
  border-color: #f0d7b7;
  background: #fff7eb;
}

.stat.is-warning span {
  color: var(--warn);
}

.stat.is-critical,
.stat.is-warning {
  border-left-width: 4px;
}

.stat-link {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-link:hover {
  border-color: #b7cbc2;
  box-shadow: 0 16px 34px rgba(24, 33, 29, 0.1);
  transform: translateY(-2px);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel,
.form-surface {
  padding: clamp(16px, 4vw, 22px);
}

.panel > h2 {
  margin-bottom: 14px;
}

.panel.wide,
.result-panel {
  margin-top: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-head a,
.panel-head small {
  color: var(--muted);
  font-weight: 700;
}

.panel-head h2 + small {
  margin-top: 6px;
}

.panel-head > div {
  min-width: 0;
}

.daily-pulse-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 22px;
}

.daily-pulse-copy {
  min-width: 0;
}

.daily-pulse-summary {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 750;
  line-height: 1.32;
  text-wrap: balance;
}

.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}

.pulse-metric {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pulse-metric:hover {
  border-color: #bdd5ca;
  background: var(--surface-strong);
  box-shadow: 0 12px 24px rgba(24, 33, 29, 0.08);
  transform: translateY(-1px);
}

.pulse-metric strong {
  color: var(--text);
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.pulse-metric small {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 800;
}

.pulse-metric > span {
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.pulse-metric.is-critical {
  border-color: #efc8c8;
  background: #fff4f4;
}

.pulse-metric.is-critical strong,
.pulse-metric.is-critical small {
  color: var(--danger);
}

.pulse-metric.is-warning {
  border-color: #f0d7b7;
  background: #fff7eb;
}

.pulse-metric.is-warning strong,
.pulse-metric.is-warning small {
  color: var(--warn);
}

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

.compact-list {
  gap: 8px;
}

.row-link,
.table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.compact-list .row-link {
  min-height: 58px;
  padding-block: 10px;
}

.row-link:hover,
.table-row:hover {
  border-color: #bdd5ca;
  background: var(--surface-strong);
}

.row-link.static:hover {
  border-color: var(--line);
  background: var(--surface-soft);
}

.row-link span:first-child,
.table-row span:first-child {
  min-width: 0;
}

.row-link .actions,
.table-row .actions {
  justify-content: flex-end;
}

strong {
  overflow-wrap: anywhere;
}

.inline-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-title small {
  font-weight: 700;
}

small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.quiz-question-meta {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.quiz-result-card {
  align-items: flex-start;
}

.quiz-result-main {
  flex: 1;
  min-width: 0;
}

.quiz-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quiz-option-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.quiz-option-pill.correct {
  border-color: #b8d9c8;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.quiz-answer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quiz-answer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.quiz-answer-row > span:first-child {
  min-width: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
  opacity: 0.75;
}

.status-spinner[hidden] {
  display: none;
}

.status.ok {
  background: #dff1e7;
  color: var(--accent-strong);
}

.status.muted {
  background: #edf0ed;
}

.status-queued,
.status-pending {
  background: #e7f0ff;
  color: var(--info);
}

.status-processing {
  background: #fff1cc;
  color: #8a5a00;
}

.status-sent,
.status-success {
  background: #dff1e7;
  color: var(--accent-strong);
}

.status-failed {
  background: #f9dddd;
  color: var(--danger);
}

.status-ignored {
  background: #edf0ed;
  color: #5e6862;
}

.status-cancelled {
  background: #edf0ed;
  color: #5e6862;
}

.empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
}

.conversation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
  gap: 18px;
}

.conversation-panel {
  min-height: 420px;
}

.message-thread {
  display: grid;
  gap: 12px;
}

.chat-bubble {
  display: flex;
}

.chat-bubble.outbound {
  justify-content: flex-end;
}

.chat-bubble > div {
  width: min(78%, 620px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.chat-bubble.outbound > div {
  border-color: #bdddcf;
  background: var(--accent-soft);
}

.chat-bubble p {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.error-text {
  color: var(--danger);
}

.reply-form {
  position: sticky;
  top: 118px;
}

.reply-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reply-form textarea {
  width: 100%;
  min-height: 150px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  box-shadow: var(--input-focus-shadow);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 70px);
  width: 100%;
  margin: 0 auto;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  max-height: 100vh;
  max-height: 100svh;
  padding: clamp(24px, 7vh, 72px) max(14px, calc((100% - 1180px) / 2)) clamp(28px, 8vh, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.72), rgba(247, 248, 251, 0.78) 52%, rgba(237, 246, 251, 0.78)),
    var(--bg);
  text-align: left;
}

.landing-hero-copy {
  min-width: 0;
  max-width: 700px;
  max-height: 100%;
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.4vw, 46px);
  line-height: 1.06;
  margin: 0 0 17px;
}

.landing-brand {
  justify-content: flex-start;
  margin: 0 0 34px;
}

.landing-book-mark {
  width: 106px;
  height: 82px;
  background-size: auto 82px;
}

.landing-brand strong {
  color: var(--text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.landing-brand small {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
}

.landing-hero p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 26px;
}

.landing-actions .button {
  min-height: 50px;
  padding-inline: 20px;
  font-size: 15px;
}

.landing-actions .button.secondary {
  border-color: #bfd6cc;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(24, 33, 29, 0.08);
}

.landing-actions .button.subtle-button {
  border-color: rgba(24, 33, 29, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: #24312b;
  box-shadow: none;
}

.landing-actions .button.subtle-button:hover {
  border-color: rgba(36, 124, 90, 0.26);
  background: rgba(255, 255, 255, 0.82);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 20px;
}

.cta-highlights {
  margin: 12px 0 18px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #cfe2d8;
  border-radius: 999px;
  background: rgba(247, 251, 248, 0.68);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
}

.landing-hero-visual {
  min-width: 0;
  width: 100%;
}

.hero-product-preview {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  max-height: 100%;
  padding: clamp(16px, 2.8vh, 22px);
  border: 1px solid rgba(23, 59, 87, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 248, 0.9));
  box-shadow: 0 28px 70px rgba(23, 59, 87, 0.16);
}

.hero-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.hero-product-heading span {
  color: var(--landing-blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-product-heading strong {
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.15;
  text-align: right;
}

.hero-dashboard-preview {
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 16px;
  border: 1px solid #d5e4dc;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-dashboard-toolbar,
.hero-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.hero-dashboard-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-dashboard-toolbar strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.1;
}

.hero-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.hero-dashboard-summary span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #d4e5dc;
  border-radius: var(--radius);
  background: #f5fbf8;
}

.hero-dashboard-summary strong {
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.hero-dashboard-summary small,
.hero-difficulty-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.hero-difficulty-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #d4e5dc;
  border-radius: var(--radius);
  background: #f7fbf8;
}

.hero-difficulty-panel strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.hero-difficulty-bars {
  display: grid;
  gap: 7px;
}

.hero-difficulty-bars span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6f0eb;
}

.hero-difficulty-bars span::after {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--landing-blue));
  content: "";
}

.hero-alert-row {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #fff4d7;
  color: #6e4a0d;
  font-size: 13px;
  font-weight: 850;
}

.hero-alert-row mark {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: #6e4a0d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-phone-preview {
  position: absolute;
  right: clamp(-12px, -1.6vw, -4px);
  bottom: clamp(-24px, -3vw, -10px);
  display: grid;
  gap: 12px;
  width: min(238px, 46%);
  padding: 18px 13px 13px;
  border: 1px solid rgba(23, 59, 87, 0.16);
  border-radius: 24px;
  background: #edf8f1;
  box-shadow: 0 24px 54px rgba(23, 59, 87, 0.2);
}

.hero-phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: rgba(23, 59, 87, 0.18);
  transform: translateX(-50%);
}

.hero-preview-flow {
  display: grid;
  grid-template-columns: minmax(150px, 0.76fr) minmax(0, 1.24fr);
  align-items: stretch;
  gap: 12px;
}

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

.hero-preview-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: #ffffff;
}

.hero-student-preview,
.hero-teacher-preview {
  display: grid;
  gap: 10px;
}

.hero-student-preview {
  align-content: start;
  border-color: #b9d9c9;
  background: #eef9f1;
}

.hero-preview-stack .hero-student-preview {
  grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
}

.hero-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-dashboard-head span,
.hero-preview-title,
.hero-evidence-grid span,
.hero-lesson-preview {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-dashboard-head small,
.hero-preview-title small,
.hero-evidence-grid small,
.hero-lesson-preview small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-preview-title small {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-dashboard-head strong,
.hero-preview-title strong {
  color: var(--text);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.15;
}

.hero-dashboard-head mark {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.hero-phone-message {
  display: grid;
  gap: 9px;
  max-width: none;
  margin: 0;
  padding: 11px;
  border: 1px solid #cfe2d8;
  border-radius: 14px 14px 14px 4px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(24, 33, 29, 0.08);
}

.hero-phone-message > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.hero-message-lesson {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dceae3;
  border-radius: 10px;
  background: #f7fbf8;
}

.hero-message-lesson strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.hero-message-lesson small,
.hero-message-lesson span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.hero-message-lesson span {
  color: var(--accent-strong);
}

.hero-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-message-meta span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-message-meta mark {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.hero-lesson-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: #f7fbf8;
}

.hero-lesson-topic span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.hero-lesson-topic strong {
  display: grid;
  gap: 3px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
}

.hero-lesson-topic strong small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

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

.hero-evidence-grid span,
.hero-lesson-preview {
  padding: 12px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: #ffffff;
}

.hero-evidence-grid strong,
.hero-lesson-preview strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.hero-lesson-preview {
  background: #f1f8f4;
}

.hero-lesson-preview p {
  max-width: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-height: 720px) {
  .landing-hero {
    padding-block: 20px;
  }

  .landing-brand {
    margin-bottom: 16px;
  }

  .landing-book-mark {
    width: 76px;
    height: 58px;
    background-size: auto 58px;
  }

  .landing-hero h1 {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 12px;
  }

  .landing-hero p {
    font-size: 17px;
    line-height: 1.42;
  }

  .hero-highlights {
    margin-top: 12px;
  }

  .landing-actions {
    margin-top: 16px;
  }

  .hero-product-preview {
    gap: 9px;
    padding: 12px;
  }

  .hero-preview-flow {
    gap: 9px;
  }

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

  .hero-preview-panel {
    padding: 10px;
  }

  .hero-phone-message {
    gap: 7px;
    padding: 9px;
  }

  .hero-evidence-grid {
    display: none;
  }
}

@media (max-width: 720px) and (max-height: 760px) {
  .landing-hero-visual {
    display: none;
  }
}

.student-phone-preview,
.lesson-card-preview {
  animation: preview-rise 0.85s ease-out both;
}

.student-phone-preview,
.lesson-card-preview {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbf8;
}

.student-phone-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 14px;
  border-color: #c9e0d3;
  background: #EEF7F4;
  color: var(--text);
}

.preview-card-head {
  display: grid;
  gap: 7px;
}

.preview-card-head small,
.lesson-card-preview > small {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-card-head strong,
.lesson-card-preview > strong {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.preview-card-head p,
.lesson-card-preview > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.phone-chat {
  display: grid;
  gap: 14px;
}

.student-phone-preview .chat-bubble {
  display: block;
  margin: 0;
  width: fit-content;
  max-width: 94%;
  padding: 10px 11px;
  border-radius: 14px 14px 14px 4px;
  border: 1px solid #c7ddcf;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.student-phone-preview .chat-bubble span {
  display: block;
}

.student-phone-preview .chat-bubble span + span,
.student-phone-preview .chat-bubble strong + span {
  margin-top: 18px;
}

.student-phone-preview .chat-bubble strong {
  display: block;
  margin-top: 18px;
  border-radius: 10px;
  color: #075b40;
  font-size: 12px;
  line-height: 1.25;
}

.student-phone-preview .chat-bubble.outbound {
  min-width: 112px;
  padding: 9px 14px;
  border-radius: 999px;
  border-color: #128c7e;
  background: #128c7e;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 8px 16px rgba(18, 140, 126, 0.22);
}

.lesson-card-preview {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 15px;
}

.quiz-preview {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 11px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: var(--surface);
}

.quiz-preview span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-preview mark {
  display: block;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #b8d9c8;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.quiz-options-preview {
  display: grid;
  gap: 6px;
}

.quiz-options-preview span {
  display: block;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7fbf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(36, 124, 90, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  transform: translateX(-50%);
  box-shadow: 0 12px 26px rgba(24, 33, 29, 0.08);
}

.scroll-cue span:last-child {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  animation: scroll-cue-bounce 1.7s ease-in-out infinite;
}

@keyframes preview-float {
  0% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes preview-rise {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes workflow-next-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 5px);
  }
}

@keyframes pulse-step {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-phone-preview,
  .lesson-card-preview,
  .scroll-cue span:last-child,
  .workflow-next-step,
  .mockup-progress::after,
  .document-mockup small,
  .generation-mockup small,
  .phone-mockup .mockup-bubble,
  .panel-alert {
    animation: none;
  }

  .mockup-progress::after {
    transform: scaleX(1);
  }

  .document-mockup small,
  .generation-mockup small,
  .phone-mockup .mockup-bubble,
  .panel-alert {
    opacity: 1;
    transform: none;
  }
}

.landing-section {
  width: 100%;
  scroll-margin-top: var(--landing-header-height);
  padding: clamp(54px, 8vw, 96px) 0;
  background: var(--bg);
}

.landing-section:nth-of-type(odd) {
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.72), rgba(247, 248, 251, 0.78) 52%, rgba(237, 246, 251, 0.78)),
    var(--bg);
}

.landing-section-inner {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2,
.benefit-band h2,
.pricing-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

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

.price-card {
  min-width: 0;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.price-card:hover {
  border-color: #b7d5c7;
  box-shadow: 0 18px 42px rgba(24, 33, 29, 0.1);
  transform: translateY(-2px);
}

.price-card h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.price-card p,
.benefit-list p {
  margin: 0;
  color: var(--muted);
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.price-list li {
  display: flex;
  gap: 8px;
}

.price-list li::before {
  color: var(--accent);
  content: "\2713";
}

.benefit-band {
  background: var(--bg);
}

.benefit-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 54px);
}

.benefit-list {
  display: grid;
  gap: 12px;
}

.benefit-list p {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #cfddd5;
  color: var(--text);
  font-weight: 700;
}

.benefit-list p span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.benefit-list p:last-child {
  border-bottom: 0;
}

.workflow-strip {
  --workflow-mockup-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 28px);
}

.workflow-heading {
  max-width: 800px;
  margin-bottom: clamp(28px, 5vw, 42px);
}

.workflow-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  align-items: center;
  column-gap: clamp(18px, 4vw, 42px);
  row-gap: 12px;
  min-width: 0;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid #d9e7df;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  scroll-margin-top: var(--landing-header-height);
}

@media (min-width: 921px) {
  #como-funciona .workflow-strip {
    --workflow-mockup-height: clamp(360px, 54svh, 520px);
  }

  #como-funciona .workflow-step {
    min-height: calc(100svh - var(--landing-header-height));
    padding-bottom: clamp(54px, 6vw, 72px);
  }

  #como-funciona .workflow-next-step {
    display: inline-flex;
  }
}

.workflow-step > strong {
  align-self: end;
  margin-top: 0;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.25;
}

.workflow-step-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.workflow-step-number {
  display: inline-grid;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(36, 124, 90, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #247c5a, #1a8ba3);
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(36, 124, 90, 0.2);
}

.workflow-next-step {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(36, 124, 90, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
  box-shadow: 0 14px 30px rgba(24, 33, 29, 0.1);
  animation: workflow-next-bounce 1.6s ease-in-out infinite;
}

.workflow-next-step:hover {
  border-color: rgba(36, 124, 90, 0.34);
  background: var(--accent-soft);
}

.workflow-step > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.workflow-details {
  display: grid;
  align-self: start;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.workflow-details li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.workflow-details li::before {
  display: inline-flex;
  flex: 0 0 14px;
  justify-content: center;
  color: var(--accent);
  content: "\2713";
  line-height: 1.4;
}

.workflow-mockup {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  height: var(--workflow-mockup-height);
  padding: 16px;
  overflow: hidden;
  border: 1px solid #d7e6de;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.lesson-workflow-mockup,
.phone-workflow-mockup,
.prepare-mockup {
  display: block;
  padding: 0;
  background: transparent;
}

.lesson-workflow-mockup .lesson-card-preview,
.phone-workflow-mockup .student-phone-preview,
.prepare-mockup .prepare-card {
  height: 100%;
}

.prepare-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #c9e0d3;
  border-radius: var(--radius);
  background: #eef7f2;
  color: var(--text);
}

.material-preview-list {
  display: grid;
  gap: 8px;
}

.material-preview-list span {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid #c7ddcf;
  border-radius: var(--radius);
  background: #ffffff;
}

.material-preview-list strong {
  margin: 0;
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.2;
}

.material-preview-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

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

.sequence-settings span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: var(--surface);
}

.sequence-settings strong {
  margin: 0;
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1;
}

.sequence-settings small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.sequence-progress {
  display: block;
  min-height: 30px;
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #dff1e7;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
}

.mockup-body {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 0;
}

.mockup-label {
  display: block;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-mockup strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.workflow-mockup small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.18;
}

.mockup-bubble {
  display: block;
  border-radius: 999px;
  background: #dfeae5;
}

.mockup-progress {
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f1ec;
}

.mockup-progress::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f996f, #1a8ba3);
  content: "";
  transform-origin: left;
  transform: scaleX(0);
}

.document-mockup small,
.generation-mockup small {
  opacity: 0.35;
  transform: translateX(-5px);
}

.document-mockup small:nth-of-type(2) {
  animation-delay: 0.24s;
}

.document-mockup small:nth-of-type(3) {
  animation-delay: 0.4s;
}

.document-mockup small:nth-of-type(4) {
  animation-delay: 0.56s;
}

.document-mockup small:nth-of-type(5) {
  animation-delay: 0.72s;
}

.phone-mockup .mockup-bubble {
  width: 100%;
  max-width: 100%;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #dff1e7;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  opacity: 0.3;
  transform: translateY(6px);
}

.phone-mockup .mockup-bubble.muted {
  margin-left: 0;
  border-radius: 14px 14px 4px 14px;
  background: #edf0ed;
  color: var(--muted);
  animation-delay: 0.28s;
}

.phone-mockup .mockup-bubble:nth-of-type(3) {
  animation-delay: 0.46s;
}

.phone-mockup .mockup-bubble:nth-of-type(4) {
  animation-delay: 0.64s;
}

.panel-mockup .mockup-body {
  align-content: start;
  gap: 8px;
}

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

.panel-metrics span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 7px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: #f7fbf8;
}

.panel-metrics strong {
  margin: 0;
  color: var(--accent-strong);
  font-size: 19px;
  line-height: 1;
}

.panel-metrics small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
}

.panel-insights {
  display: grid;
  gap: 7px;
}

.panel-insights span {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #cfddd5;
  border-radius: var(--radius);
  background: #ffffff;
}

.panel-insights strong {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.1;
}

.panel-insights small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.panel-alert {
  display: block;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dff1e7;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  opacity: 0.3;
  transform: translateY(6px);
}

.panel-alert.muted {
  background: #edf0ed;
  color: var(--muted);
}

.workflow-strip.is-visible .mockup-progress::after {
  animation: workflow-progress 2s ease-out 0.15s both;
}

.workflow-strip.is-visible .document-mockup small,
.workflow-strip.is-visible .generation-mockup small {
  animation: workflow-line 1.2s ease-out both;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(2) {
  animation-delay: 0.34s;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(3) {
  animation-delay: 0.58s;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(4) {
  animation-delay: 0.82s;
}

.workflow-strip.is-visible .document-mockup small:nth-of-type(5) {
  animation-delay: 1.06s;
}

.workflow-strip.is-visible .generation-mockup small {
  animation-delay: 2.26s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(2) {
  animation-delay: 2.5s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(3) {
  animation-delay: 2.74s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(4) {
  animation-delay: 2.98s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(5) {
  animation-delay: 3.22s;
}

.workflow-strip.is-visible .generation-mockup small:nth-of-type(6) {
  animation-delay: 3.46s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble,
.workflow-strip.is-visible .panel-alert {
  animation: workflow-message 1.2s ease-out both;
  animation-delay: 4.66s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble:nth-of-type(2),
.workflow-strip.is-visible .panel-alert:nth-of-type(2) {
  animation-delay: 4.96s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble:nth-of-type(3) {
  animation-delay: 5.26s;
}

.workflow-strip.is-visible .phone-mockup .mockup-bubble:nth-of-type(4) {
  animation-delay: 5.56s;
}

@keyframes workflow-progress {
  0% {
    transform: scaleX(0);
  }
  54%,
  100% {
    transform: scaleX(1);
  }
}

@keyframes workflow-line {
  0%,
  22% {
    opacity: 0.35;
    transform: translateX(-5px);
  }
  48%,
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes workflow-message {
  0%,
  24% {
    opacity: 0.3;
    transform: translateY(6px);
  }
  48%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pricing-section {
  padding-bottom: clamp(54px, 8vw, 96px);
}

.price-card {
  display: grid;
  align-content: start;
  gap: 0;
  padding: clamp(20px, 3vw, 28px);
}

.price-card-header {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: clamp(22px, 3vw, 28px);
  border-bottom: 1px solid rgba(24, 33, 29, 0.09);
  text-align: center;
}

.price-card-content {
  display: grid;
  gap: 20px;
  padding-top: clamp(20px, 3vw, 26px);
}

.price-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 999px;
  background: #eef7f2;
  line-height: 1;
  font-size: clamp(31px, 4vw, 37px);
}

.price-card strong {
  display: block;
  margin: 4px 0 0;
  text-align: center;
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.price-card h3 {
  margin: 0;
  text-align: center;
  font-size: clamp(23px, 3vw, 27px);
  line-height: 1.15;
}

.price-description {
  font-size: 16px;
  line-height: 1.55;
}

.price-card.featured .price-icon {
  background: #dff1e7;
}

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

.contact-inner {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(22px, 6vw, 76px);
}

.contact-messages .message {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.contact-copy h2 {
  max-width: 500px;
  margin-top: 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
}

.contact-copy > p:not(.eyebrow) {
  max-width: 530px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .form-actions {
  margin-top: 4px;
}

.price-card.featured {
  border-color: #9dc8b5;
  background: #f2faf5;
}

.pricing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid rgba(11, 118, 73, 0.16);
}

.pricing-cta h2 {
  max-width: 760px;
  margin: 0;
}

.table-panel {
  display: grid;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(105px, auto)) auto;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.table-row:last-child {
  border-bottom-width: 0;
}

.classroom-table-row {
  grid-template-columns: minmax(180px, 1fr) auto minmax(120px, auto) minmax(260px, 1.4fr) auto;
  align-items: start;
}

.classroom-summary {
  display: grid;
  gap: 4px;
}

.classroom-students {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.student-chip {
  display: grid;
  gap: 4px;
  min-width: min(100%, 172px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.student-chip strong {
  font-size: 13px;
}

.student-chip small {
  font-size: 12px;
}

.student-chip .status {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.classroom-subscribers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.subscriber-chip {
  display: grid;
  gap: 4px;
  min-width: min(100%, 180px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.subscriber-chip strong {
  font-size: 13px;
}

.subscriber-chip .status {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.generation-card {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 4vw, 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.generation-card .panel-head h2 {
  margin-bottom: 6px;
}

.classroom-detail-page .panel.wide {
  margin-top: 16px;
}

.classroom-priority-grid .classroom-difficulty-panel {
  margin-top: 0;
}

.classroom-priority-panel {
  background: #fbfdfc;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.priority-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.priority-item:hover {
  border-color: #bdd5ca;
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.priority-item strong {
  grid-row: 1 / span 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
}

.priority-item span {
  min-width: 0;
  font-weight: 850;
}

.priority-item small {
  color: var(--muted);
  font-weight: 750;
}

.classroom-priority-grid,
.classroom-students-panel,
.classroom-lessons-panel {
  scroll-margin-top: 120px;
}

.classroom-lessons-panel,
.classroom-students-panel,
.classroom-materials-panel {
  padding: clamp(18px, 4vw, 24px);
}

.classroom-difficulty-panel,
.classroom-priority-panel,
.classroom-lessons-panel,
.classroom-students-panel,
.classroom-materials-panel {
  box-shadow: 0 12px 28px rgba(24, 33, 29, 0.055);
}

.classroom-materials-panel {
  background: #fcfdfd;
}

.classroom-generation-card {
  background: #fbfcfd;
}

.classroom-generation-card[open] {
  border-color: #c9ded4;
  background: var(--surface);
}

.classroom-generation-card[open] .generation-summary {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.classroom-generation-card.is-highlighted {
  border-color: #9dc8b5;
  background: #f2faf5;
  box-shadow: 0 0 0 3px rgba(36, 124, 90, 0.1), 0 14px 28px rgba(24, 33, 29, 0.08);
}

.lesson-day-list {
  display: grid;
  gap: 18px;
}

.lesson-day-section {
  display: grid;
  gap: 10px;
}

.lesson-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

.lesson-day-heading h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
}

.generation-collapse {
  gap: 0;
}

.generation-collapse[open] {
  gap: 18px;
}

.generation-collapse-content {
  margin-top: 10px;
}

.generation-summary-content {
  margin-top: 10px;
}

.generation-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

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

.generation-summary h2 {
  margin-bottom: 6px;
}

.generation-summary .actions {
  align-items: center;
}

.generation-toggle {
  min-width: 132px;
  justify-content: center;
}

.generation-toggle .when-open,
.classroom-generation-card[open] .generation-toggle .when-closed {
  display: none;
}

.classroom-generation-card[open] .generation-toggle .when-open {
  display: inline;
}

.status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.status-summary .status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.delivery-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.delivery-status-summary .status {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.lesson-metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lesson-metric-strip span {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}

.lesson-metric-strip strong {
  font-size: 12px;
  line-height: 1;
}

.lesson-metric-strip small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.lesson-metric-card {
  display: grid;
  gap: 4px;
  min-height: 108px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.lesson-metric-card strong {
  font-size: 28px;
  line-height: 1;
}

.lesson-metric-card span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.compact-concepts > span {
  max-height: none;
}

.generation-concepts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.generation-concepts > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.generation-concepts > span {
  gap: 4px;
}

.generation-concepts .related-lesson-more {
  min-height: 22px;
  padding-inline: 7px;
  font-size: 11px;
}

.compact-concepts .optional-chip {
  display: none;
}

.related-lesson-parts {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.related-lesson-parts > span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.related-lesson-link,
.related-lesson-more {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.related-lesson-link {
  display: inline-grid;
  gap: 1px;
  min-height: 34px;
  align-items: center;
  line-height: 1.15;
}

.related-lesson-link span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.related-lesson-link strong {
  max-width: 180px;
  overflow: hidden;
  color: var(--accent-strong);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-lesson-link:hover {
  border-color: #b8d9c8;
  background: var(--accent-soft);
}

.related-lesson-more {
  color: var(--muted);
}

.micro-lesson-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 0;
  padding-block: 10px;
}

.micro-lesson-row > span > small,
.micro-lesson-content {
  margin-top: 8px;
}

.micro-lesson-row > span > small:nth-of-type(2) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.micro-lesson-row .related-lesson-parts {
  margin-top: 8px;
}

.micro-lesson-row .related-lesson-parts > small {
  display: none;
}

.micro-lesson-content {
  max-width: 78ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  white-space: normal;
}

.classroom-lessons-panel .button.compact {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 13px;
}

.difficulty-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(128px, auto);
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.difficulty-row::before {
  position: absolute;
  inset: 10px auto 10px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #e7b1b1;
  content: "";
}

.difficulty-row:hover {
  border-color: #d7c3c3;
  background: #fffafa;
}

.difficulty-rank {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #f0f3f1;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.difficulty-main {
  min-width: 0;
}

.difficulty-score {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.difficulty-meter {
  position: relative;
  display: block;
  width: 104px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2e6e6;
}

.difficulty-meter span {
  position: absolute;
  inset: 0 auto 0 0;
  max-width: 100%;
  border-radius: inherit;
  background: var(--danger);
}

.difficulty-score .status-failed {
  min-height: 24px;
  padding-inline: 8px;
  background: #fff0f0;
  font-size: 11px;
}

.student-attention-table {
  display: grid;
  gap: 8px;
}

.student-attention-header,
.student-attention-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) repeat(4, minmax(82px, 0.5fr)) minmax(170px, 1fr) minmax(160px, 0.88fr);
  gap: 12px;
}

.student-attention-header {
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2f5f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.student-attention-header span {
  min-width: 0;
}

.student-attention-header span:nth-child(n + 2):nth-child(-n + 5) {
  text-align: center;
}

.student-attention-header span:last-child {
  text-align: right;
}

.student-attention-row {
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
}

.student-attention-row:hover {
  border-color: #bdd5ca;
  background: var(--surface-strong);
}

.opt-out-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #e5b6b6;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius);
  background: #fff4f4;
  color: #743131;
}

.opt-out-alert form {
  margin-top: 8px;
}

.opt-out-alert strong {
  color: var(--danger);
}

.opt-out-row {
  border-color: #e5b6b6;
  background: #fff8f8;
}

.opt-out-row:hover {
  border-color: #d79797;
  background: #fff2f2;
}

.student-attention-main,
.student-attention-metric,
.student-difficult-concepts,
.student-whatsapp-status {
  min-width: 0;
}

.student-attention-main .inline-title {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.student-attention-main .inline-title small {
  font-size: 12px;
}

.student-attention-metric {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.student-attention-metric strong {
  font-size: 16px;
  line-height: 1;
}

.student-attention-metric small,
.student-difficult-concepts small {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.student-attention-metric small {
  display: none;
}

.student-difficult-concepts {
  display: grid;
  gap: 6px;
}

.student-whatsapp-status {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.student-whatsapp-status small,
.opt-out-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  white-space: normal;
}

.student-whatsapp-status form {
  display: flex;
}

.student-difficult-concepts > span,
.student-attention-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.student-attention-badges {
  justify-content: flex-end;
}

.student-attention-badges .status {
  min-height: 24px;
  padding-inline: 8px;
  font-size: 11px;
}

.delivery-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.delivery-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.delivery-row .actions {
  align-items: center;
}

.delivery-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.delivery-signal {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.delivery-signal.ok {
  border-color: #b8d9c8;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.delivery-signal.pending {
  border-color: #e0d3bd;
  background: #fff6e8;
  color: var(--warn);
}

.delivery-signal.muted {
  color: var(--muted);
}

.material-choice-list {
  display: grid;
  gap: 8px;
}

.student-manager {
  display: grid;
  gap: 14px;
}

.inline-row.student-inline-row {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  align-items: start;
}

.student-name-field {
  position: relative;
  z-index: 2;
}

.inline-remove-button {
  align-self: start;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.inline-remove-button:hover,
.inline-remove-button:focus-visible {
  border-color: #e1b4b4;
  background: #fff1f1;
  color: var(--danger);
  outline: none;
}

.student-current-list {
  display: grid;
  gap: 8px;
}

.student-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #c8ded2;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.student-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.student-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.student-suggestions[hidden] {
  display: none;
}

.student-suggestion {
  display: flex;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.student-suggestion:last-child {
  border-bottom: 0;
}

.student-suggestion:hover,
.student-suggestion:focus-visible {
  background: #eef7f2;
  outline: none;
}

.student-suggestion > span,
.student-choice-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.student-suggestion small,
.student-choice-row small {
  color: var(--muted);
}

.student-phone-field {
  min-width: 0;
}

.student-phone-error {
  margin-top: -2px;
  font-size: 12px;
  line-height: 1.25;
}

.student-list-title {
  color: var(--text);
  font-size: 14px;
}

.subscriber-manager,
.subscriber-current-list {
  display: grid;
  gap: 10px;
}

.subscriber-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.subscriber-choice-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.subscriber-choice-row small {
  color: var(--muted);
}

.subscriber-add-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.subscriber-combobox {
  position: relative;
}

.subscriber-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.subscriber-option {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.subscriber-option:hover,
.subscriber-option.is-selected {
  background: var(--surface-soft);
}

.subscriber-option.empty {
  cursor: default;
  color: var(--muted);
}

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

.inline-create-panel {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.inline-create-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.inline-create-panel .inline-row {
  margin-top: 12px;
}

.inline-create-panel .button {
  margin-top: 10px;
}

.material-choice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.material-choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.material-choice-row strong {
  overflow-wrap: anywhere;
}

.delivery-error {
  margin-top: 4px;
  color: var(--danger);
}

.collapse-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.collapse-label::after {
  content: "Expandir";
}

.generation-collapse[open] .collapse-label::after {
  content: "Recolher";
}

.content-body {
  line-height: 1.65;
}

.lesson-part-preview-content {
  max-height: none;
  overflow: visible;
}

.content-source-note {
  display: grid;
  gap: 8px;
  margin: -4px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.content-source-note p,
.content-source-note ul {
  margin: 0;
}

.content-source-note ul {
  padding-left: 20px;
}

.content-source-note strong {
  display: inline;
  color: var(--text);
}

.form-surface {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.form-surface.generator {
  max-width: none;
}

.form-surface.classroom-form {
  max-width: none;
}

.auth-page {
  background:
    linear-gradient(135deg, rgba(223, 241, 231, 0.88), rgba(247, 248, 251, 0.86) 48%, rgba(237, 246, 251, 0.9)),
    var(--bg);
}

.auth-page .topbar {
  display: none;
}

.auth-page .shell {
  display: grid;
  align-items: center;
  min-height: 100vh;
  margin-block: 0;
  padding-block: clamp(26px, 5vw, 56px);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 7vw, 88px);
  width: 100%;
}

.auth-intro {
  max-width: 610px;
}

.auth-logo-link {
  margin-bottom: clamp(24px, 5vw, 42px);
}

.auth-logo-link strong {
  color: var(--text);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.auth-logo-link small {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 850;
}

.auth-intro h1 {
  max-width: 560px;
}

.auth-intro p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.auth-form {
  max-width: 520px;
  width: 100%;
  justify-self: end;
  padding: clamp(20px, 4vw, 30px);
  border-color: rgba(190, 211, 201, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 26px 70px rgba(24, 33, 29, 0.12);
  backdrop-filter: blur(10px);
}

.auth-form .form-actions {
  margin-top: 4px;
}

.auth-form .button {
  min-height: 48px;
}

.auth-social {
  margin-top: 14px;
}

.phone-verify-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.phone-verify-actions form {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}

.form-grid.three {
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 1fr) minmax(150px, 0.8fr);
}

.field,
.mini-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 94px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea,
.mini-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  box-shadow: var(--input-focus-shadow);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled,
.mini-field input:disabled {
  border-color: #d7e1db;
  background: var(--input-disabled-bg);
  color: #87958f;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.field input[aria-invalid="true"],
.mini-field input[aria-invalid="true"] {
  border-color: #d46a6a;
  box-shadow: 0 0 0 3px rgba(165, 55, 55, 0.08);
}

.phone-input {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}

.field .phone-input input,
.mini-field .phone-input input {
  min-width: 0;
}

.field .phone-input .phone-country-code,
.mini-field .phone-input .phone-country-code {
  display: grid;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  cursor: default;
  user-select: none;
}

.field textarea {
  resize: vertical;
}

.field ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
  background: var(--surface-soft);
}

.field li label,
.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  min-width: 0;
}

.field input[type="checkbox"],
.checkline input {
  width: 18px;
  min-height: 18px;
  box-shadow: none;
  accent-color: var(--accent);
}

.readonly-field {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.readonly-field strong {
  font-weight: 850;
}

.formatted-content-field {
  max-height: 360px;
  overflow: auto;
  line-height: 1.65;
  font-weight: 500;
}

.formatted-content-field h3,
.formatted-content-field h4,
.formatted-content-field h5 {
  margin: 18px 0 8px;
  line-height: 1.25;
}

.formatted-content-field h3:first-child,
.formatted-content-field h4:first-child,
.formatted-content-field h5:first-child {
  margin-top: 0;
}

.formatted-content-field p,
.formatted-content-field ul,
.formatted-content-field ol {
  margin: 0 0 12px;
}

.formatted-content-field ul,
.formatted-content-field ol {
  padding-left: 24px;
}

.formatted-content-field li {
  margin-bottom: 6px;
}

.lesson-table-wrap {
  max-width: 100%;
  margin: 16px 0 18px;
  overflow-x: auto;
  border: 1px solid #d6e4dc;
  border-radius: var(--radius);
  background: var(--surface);
}

.lesson-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94em;
  line-height: 1.45;
}

.lesson-table th,
.lesson-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2ece6;
  border-left: 1px solid #e2ece6;
  text-align: left;
  vertical-align: top;
}

.lesson-table th:first-child,
.lesson-table td:first-child {
  border-left: 0;
}

.lesson-table th {
  background: #f1f8f4;
  color: var(--accent-strong);
  font-weight: 900;
}

.lesson-table tbody tr:last-child td {
  border-bottom: 0;
}

.lesson-example-heading {
  margin: 18px 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-example-block {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
  padding: 14px 16px;
  border: 1px solid #cfe3d8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: #f5fbf7;
}

.lesson-example-block p {
  margin: 0;
}

.target-language-line {
  display: block;
  color: var(--text);
}

.target-language-line.target > span:last-child {
  font-size: 1.04em;
  font-weight: 800;
  line-height: 1.55;
}

.target-language-line.translation > span:last-child {
  color: var(--muted);
  font-size: 0.94em;
  font-weight: 600;
  line-height: 1.55;
}

.target-language-line.translation {
  margin-top: -3px;
}

.target-language-line.translation + .target-language-line.target {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #d8e9df;
}

.target-language-label {
  display: inline-block;
  min-width: 28px;
  margin-right: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.formatted-content-field p:last-child,
.formatted-content-field ul:last-child,
.formatted-content-field ol:last-child,
.formatted-content-field .lesson-table-wrap:last-child {
  margin-bottom: 0;
}

.public-lesson-page {
  padding-top: 48px;
  background:
    radial-gradient(circle at top left, rgba(223, 241, 231, 0.9), transparent 34%),
    linear-gradient(180deg, #eef7f2 0, #f7f8fb 300px),
    var(--bg);
}

.public-lesson {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(24px, 6vw, 52px) 0;
}

.public-lesson-header {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.public-lesson-brand {
  width: fit-content;
}

.public-lesson-header h1 {
  max-width: 680px;
  margin: 8px 0 0;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.05;
}

.public-lesson-header > p {
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #cfe3d8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.public-lesson-progress {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 14px max(14px, calc((100vw - 760px) / 2));
  border-bottom: 1px solid #cfe3d8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.public-lesson-progress .progress-track {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #d7e8df;
  overflow: hidden;
}

.public-lesson-progress .progress-fill {
  display: block;
  width: var(--lesson-progress, 0%);
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.16s ease;
}

.progress-step {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.progress-step.active {
  color: var(--accent-strong);
}

.progress-step.done {
  color: var(--text);
}

.progress-dot {
  width: 12px;
  height: 12px;
  border: 2px solid #b9d8c9;
  border-radius: 999px;
  background: var(--surface);
}

.progress-step.active .progress-dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(36, 124, 90, 0.12);
}

.progress-step.done .progress-dot {
  border-color: var(--accent);
  background: var(--accent);
}

.progress-line {
  height: 2px;
  border-radius: 999px;
  background: #cfe3d8;
}

.progress-line.done {
  background: var(--accent);
}

.public-lesson-card {
  padding: clamp(18px, 4vw, 28px);
}

.public-lesson-card + .public-lesson-card {
  margin-top: 16px;
}

.public-lesson-notice {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid #bdd9ca;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.public-lesson-notice.error {
  border-color: #e4b8b8;
  background: #f9dddd;
  color: var(--danger);
}

.public-lesson-content-card {
  border-color: #cfe1d8;
  background: rgba(255, 255, 255, 0.92);
}

.public-lesson-content-card .formatted-content-field {
  max-height: none;
  overflow: visible;
  color: #26322d;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.78;
}

.public-lesson-content-card .formatted-content-field h3,
.public-lesson-content-card .formatted-content-field h4,
.public-lesson-content-card .formatted-content-field h5 {
  color: var(--text);
  font-size: clamp(21px, 3vw, 26px);
}

.public-panel-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.public-panel-head .eyebrow {
  margin-bottom: 4px;
}

.public-panel-head h2 {
  margin: 0;
}

.public-quiz-form {
  display: grid;
  gap: 18px;
}

.quiz-question {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid #d4e3db;
  border-radius: var(--radius);
  background: #f9fcfa;
}

.quiz-question-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.quiz-question-head {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0 0 6px;
  color: var(--text);
}

.quiz-question-head span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-question-head h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 850;
  line-height: 1.25;
}

.quiz-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.quiz-option:hover {
  border-color: #b7d9c8;
  background: #f5fbf7;
}

.quiz-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.quiz-option input:checked + span {
  color: var(--accent-strong);
  font-weight: 850;
}

.quiz-option:has(input:checked) {
  border-color: #9bceb5;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(36, 124, 90, 0.08);
}

.quiz-question:has(.quiz-feedback.error) .quiz-option:has(input:checked) {
  border-color: #e4b8b8;
  background: #f9dddd;
  box-shadow: 0 0 0 3px rgba(165, 55, 55, 0.08);
}

.quiz-question:has(.quiz-feedback.error) .quiz-option:has(input:checked) span {
  color: var(--danger);
}

.quiz-option:has(input:disabled) {
  cursor: default;
}

.quiz-feedback {
  margin-top: 4px;
  padding: 12px;
  border-radius: var(--radius);
  background: #fff7e8;
  color: var(--warn);
}

.quiz-feedback.ok {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.quiz-feedback.error {
  background: #f9dddd;
  color: var(--danger);
}

.quiz-feedback p {
  margin: 4px 0 0;
  color: inherit;
}

.public-quiz-form > .button,
.public-completion-form .button {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
}

.public-completion-card {
  background: #eef7f2;
}

.public-completion-card .status {
  min-height: 44px;
  justify-content: center;
  width: 100%;
}

.error,
.form-errors {
  color: var(--danger);
}

.form-errors {
  padding: 12px;
  border: 1px solid #e4baba;
  border-radius: var(--radius);
  background: #fff6f6;
}

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

.inline-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.inline-rows {
  display: grid;
  gap: 10px;
}

.inline-panel-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.inline-upload-error {
  padding: 10px 12px;
  border: 1px solid #e4baba;
  border-radius: var(--radius);
  background: #fff6f6;
  color: var(--danger);
}

.inline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.material-inline-row {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}

.conflict-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.classroom-shortcuts {
  display: grid;
  gap: 10px;
}

.material-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.material-select-column {
  display: grid;
  place-items: center;
  min-height: 100%;
  cursor: pointer;
}

.material-select-column input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.material-row-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.material-range-list {
  display: grid;
  gap: 10px;
}

.material-range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 140px)) minmax(220px, 1fr);
  gap: 10px;
}

.material-instruction-field {
  min-width: 0;
}

.material-row .mini-field input:disabled {
  border-color: #d7e1db;
  background: #eef3f0;
  color: #87958f;
  cursor: not-allowed;
  opacity: 1;
}

.material-row .mini-field input:not(:disabled) {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(36, 124, 90, 0.08);
}

.material-range-actions {
  display: flex;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 920px) {
  .landing-hero,
  .benefit-inner,
  .contact-inner,
  .auth-layout,
  .conversation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: 100vh;
    max-height: 100svh;
    align-content: center;
    gap: clamp(14px, 3vh, 24px);
    text-align: center;
  }

  .landing-hero-copy,
  .hero-product-preview {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }

  .landing-hero h1,
  .landing-hero p {
    margin-right: auto;
    margin-left: auto;
  }

  .landing-brand,
  .landing-actions,
  .hero-highlights {
    justify-content: center;
  }

  .hero-phone-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 360px;
    margin: -8px auto 0;
  }

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

  .workflow-strip {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .workflow-mockup {
    grid-column: auto;
    grid-row: auto;
  }

  .workflow-step > p {
    min-height: 0;
  }

  .pricing-cta {
    display: grid;
  }

  .auth-form {
    justify-self: stretch;
    max-width: none;
  }

  .reply-form {
    position: static;
    max-width: none;
  }

  .form-grid.three,
  .material-inline-row,
  .student-classroom-detail-grid {
    grid-template-columns: 1fr;
  }

  .material-row-main,
  .material-range-row {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .classroom-table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .table-row .button {
    justify-self: start;
  }

  .daily-pulse-panel {
    grid-template-columns: 1fr;
  }

  .pulse-metrics {
    width: 100%;
  }

  .priority-strip {
    grid-template-columns: 1fr;
  }

  .student-attention-row {
    grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(74px, 0.6fr));
  }

  .student-attention-header {
    display: none;
  }

  .student-attention-metric small {
    display: block;
  }

  .student-difficult-concepts,
  .student-whatsapp-status,
  .student-attention-badges {
    grid-column: 1 / -1;
  }

  .student-attention-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .landing-page {
    --landing-header-height: 0px;
  }

  .lesson-metrics-panel {
    grid-template-columns: 1fr;
  }

  .landing-page .topbar,
  .landing-page.landing-header-visible .topbar {
    display: none;
  }

  .topbar,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    scroll-margin-top: 0;
    padding: clamp(38px, 8vw, 58px) 0;
  }

  .landing-hero {
    height: auto;
    min-height: min(94svh, 860px);
    max-height: none;
    align-content: start;
    gap: 18px;
    padding: 18px 10px 26px;
    overflow: visible;
  }

  .landing-hero-copy {
    display: contents;
  }

  .landing-brand {
    order: 1;
  }

  .landing-hero h1 {
    order: 2;
  }

  .landing-hero-copy > p {
    order: 3;
  }

  .hero-highlights {
    order: 4;
  }

  .hero-product-preview {
    order: 5;
  }

  .landing-actions {
    order: 6;
  }

  .landing-hero h1 {
    font-size: clamp(29px, 9vw, 36px);
    margin-bottom: 10px;
  }

  .landing-hero p {
    font-size: 15px;
    line-height: 1.45;
  }

  .landing-brand {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .landing-hero-visual {
    margin-top: 0;
  }

  .hero-product-preview {
    gap: 9px;
    max-width: 430px;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 16px 38px rgba(23, 59, 87, 0.12);
  }

  .hero-product-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-product-heading strong {
    text-align: left;
  }

  .hero-preview-flow {
    grid-template-columns: 1fr;
  }

  .hero-preview-stack .hero-student-preview {
    grid-template-columns: 1fr;
  }

  .hero-preview-panel {
    padding: 10px;
  }

  .hero-dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-dashboard-head mark {
    justify-self: start;
  }

  .hero-evidence-grid {
    grid-template-columns: 1fr;
  }

  .hero-dashboard-preview {
    min-height: auto;
    gap: 8px;
    padding: 10px;
  }

  .hero-dashboard-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .hero-dashboard-summary span {
    padding: 9px 6px;
  }

  .hero-dashboard-summary strong {
    font-size: 20px;
  }

  .hero-difficulty-panel,
  .hero-alert-row,
  .hero-phone-preview {
    display: none;
  }

  .landing-brand {
    margin-bottom: 16px;
  }

  .landing-book-mark {
    width: 68px;
    height: 52px;
    background-size: auto 52px;
  }

  .landing-brand strong {
    font-size: 26px;
  }

  .landing-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .hero-highlights {
    display: flex;
    gap: 7px;
    margin-top: 12px;
  }

  .hero-highlights span {
    justify-content: center;
    min-height: 28px;
    font-size: 11px;
  }

  .scroll-cue {
    position: static;
    justify-self: center;
    transform: none;
  }

  .landing-actions .button {
    width: 100%;
  }

  .landing-actions .button.subtle-button {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(36, 124, 90, 0.18);
  }

  .landing-actions .button.subtle-button:hover {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
  }

  .hero-more-button {
    display: none;
  }

  .section-heading h2,
  .benefit-band h2,
  .pricing-cta h2,
  .contact-copy h2 {
    font-size: clamp(24px, 8vw, 31px);
    line-height: 1.12;
  }

  .workflow-heading {
    margin-bottom: 18px;
  }

  .workflow-intro {
    font-size: 15px;
    line-height: 1.48;
  }

  .workflow-strip {
    --workflow-mockup-height: 230px;
    gap: 14px;
  }

  .workflow-step {
    gap: 10px;
    padding: 14px;
  }

  .workflow-step > strong {
    font-size: 17px;
  }

  .workflow-step-title {
    align-items: center;
    flex-direction: column;
    gap: 9px;
    justify-content: center;
    text-align: center;
  }

  .workflow-step-number {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .workflow-step > p,
  .workflow-details {
    font-size: 13px;
  }

  .workflow-mockup {
    width: 100%;
    box-sizing: border-box;
    border: 0;
    height: auto;
    margin-top: 2px;
    padding: 12px;
    overflow: visible;
    background: #eef7f2;
  }

  .lesson-workflow-mockup .lesson-card-preview,
  .phone-workflow-mockup .student-phone-preview,
  .prepare-mockup .prepare-card {
    height: auto;
  }

  .preview-card-head p,
  .lesson-card-preview > p,
  .student-phone-preview .preview-card-head p {
    display: none;
  }

  .prepare-card,
  .lesson-card-preview,
  .student-phone-preview {
    width: 100%;
    box-sizing: border-box;
    gap: 9px;
    padding: 12px;
    background: #eef7f2;
  }

  .panel-metrics,
  .sequence-settings {
    gap: 6px;
  }

  .panel-insights span:nth-child(2),
  .panel-alert.muted {
    display: none;
  }

  .benefit-inner,
  .contact-inner {
    gap: 18px;
  }

  .benefit-list {
    gap: 0;
  }

  .benefit-list p {
    padding: 12px 0;
    font-size: 14px;
  }

  .price-card {
    padding: 18px;
  }

  .price-card-header {
    gap: 8px;
    padding-bottom: 18px;
  }

  .price-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .price-card h3 {
    font-size: 21px;
  }

  .price-card strong {
    font-size: 20px;
  }

  .price-card-content {
    gap: 14px;
    padding-top: 16px;
  }

  .price-description,
  .contact-copy > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.5;
  }

  .pricing-cta {
    margin-top: 26px;
    padding-top: 24px;
  }

  .topbar {
    gap: 12px;
  }

  .auth-actions {
    justify-content: space-between;
  }

  .auth-actions span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-heading .actions,
  .panel-head .actions,
  .form-actions,
  .search-form {
    width: 100%;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-classroom-search {
    flex-direction: row;
    align-items: center;
  }

  .dashboard-classroom-search input {
    flex: 1 1 150px;
    min-width: 0;
    min-height: 36px;
    padding-block: 6px;
    font-size: 14px;
  }

  .dashboard-classroom-search .button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 10px;
  }

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

  .generation-modal {
    padding: 14px;
  }

  .generation-modal-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .inline-loading .progress-track {
    grid-column: 1 / -1;
  }

  .row-link,
  .table-row,
  .delivery-row,
  .quiz-answer-row,
  .generation-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .table-row {
    display: flex;
  }

  .micro-lesson-row {
    grid-template-columns: 1fr;
  }

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

  .difficulty-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .difficulty-score {
    grid-column: 2;
    justify-items: start;
  }

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

  .student-attention-main,
  .student-difficult-concepts,
  .student-attention-badges {
    grid-column: 1 / -1;
  }

  .row-link .actions,
  .table-row .actions,
  .delivery-row .actions,
  .generation-summary .actions {
    justify-content: flex-start;
  }

  .subscriber-add-grid,
  .subscriber-choice-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .subscriber-choice-row {
    display: grid;
  }

  .status {
    width: fit-content;
    max-width: 100%;
    white-space: normal;
  }

  .public-lesson-progress {
    gap: 6px;
    padding: 12px 14px;
  }

  .progress-step {
    font-size: 11px;
  }

}

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

  .auth-page .shell {
    width: min(100% - 24px, 1180px);
    padding-block: 20px;
  }

  .topbar {
    padding-inline: 10px;
  }

  .page-heading {
    padding: 14px;
  }

  .dashboard-page .page-heading {
    padding: 0;
  }

  .panel,
  .form-surface,
  .generation-card,
  .inline-panel {
    padding: 14px;
  }

  .actions .button,
  .actions form,
  .form-actions .button,
  .form-actions form,
  .phone-verify-actions .button,
  .phone-verify-actions form,
  .search-form .button,
  .auth-actions form,
  .auth-actions a,
  .auth-actions button {
    width: 100%;
  }

  .actions .dashboard-classroom-search {
    width: 100%;
  }

  .dashboard-classroom-search .button {
    width: auto;
  }

  .actions form .button,
  .form-actions form .button {
    width: 100%;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .inline-remove-button {
    justify-self: end;
    margin-top: 0;
  }

  .student-attention-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    min-height: 46px;
  }

  .button.compact {
    min-height: 42px;
  }

  .pulse-metrics {
    grid-template-columns: 1fr;
  }

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

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

  .student-classroom-opt-out-message {
    align-items: stretch;
    flex-direction: column;
  }

  .target-language-line {
    display: block;
  }

  .target-language-label {
    width: auto;
  }

  .public-lesson-content-card .lesson-example-heading {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 11px;
  }

  .public-lesson-content-card .lesson-example-block {
    gap: 8px;
    margin: 8px 0 16px;
    padding: 12px 14px;
    border-left-width: 3px;
  }

  .public-lesson-content-card .target-language-line.target > span:last-child {
    font-size: 0.96em;
    line-height: 1.5;
  }

  .public-lesson-content-card .target-language-line.translation > span:last-child {
    font-size: 0.9em;
    line-height: 1.5;
  }

  .public-lesson-content-card .target-language-line.translation {
    margin-top: -7px;
  }

  .public-lesson-content-card .target-language-line.translation + .target-language-line.target {
    margin-top: 2px;
    padding-top: 10px;
  }

  .public-lesson-content-card .target-language-label {
    display: none;
  }

  .public-lesson-progress {
    grid-template-columns: auto minmax(14px, 1fr) auto minmax(14px, 1fr) auto;
  }

  .progress-line {
    width: auto;
    height: 2px;
    margin-left: 0;
  }

  .progress-step {
    gap: 4px;
    font-size: 10px;
  }

  .progress-dot {
    width: 10px;
    height: 10px;
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 48px;
  }

  .stat span {
    font-size: 34px;
  }
}

@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
