:root {
  --ink: #1f2937;
  --muted: #64748b;
  --line: #d9e2ec;
  --soft: #f8fafc;
  --primary: #15803d;
  --primary-dark: #166534;
  --primary-soft: #dcfce7;
  --blue: #2563eb;
  --amber: #facc15;
  --danger: #dc2626;
  --white: #ffffff;
}

body {
  color: var(--ink);
  background: var(--soft);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), #0f766e);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-full {
  width: 260px;
  max-width: 34vw;
  height: 66px;
}

.brand-logo-sidebar {
  width: 225px;
  max-width: 100%;
  height: 62px;
}

.auth-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.profile-summary {
  display: grid;
  justify-items: center;
  gap: .6rem;
  text-align: center;
  padding: 1rem;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #0f766e);
  color: var(--white);
  font-size: 2rem;
  font-weight: 850;
  box-shadow: 0 14px 30px rgba(21, 128, 61, .22);
}

.profile-data {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-data div {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-data div:first-child {
  padding-top: 0;
}

.profile-data dt {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}

.profile-data dd {
  margin: 0;
  font-weight: 750;
}

.hero-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
}

.navbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  min-height: 86px;
}

.nav-link {
  color: var(--muted);
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: .45rem .7rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(21, 128, 61, .18);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 850;
}

.profile-menu {
  display: flex;
  align-items: center;
}

.profile-toggle {
  min-height: 46px;
  padding: .35rem .55rem .35rem .4rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.profile-toggle:hover,
.profile-toggle:focus {
  border-color: rgba(21, 128, 61, .35);
  color: var(--primary-dark);
}

.profile-dot {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 850;
}

.profile-label {
  display: grid;
  justify-items: start;
  line-height: 1.1;
  max-width: 150px;
}

.profile-label span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 800;
}

.profile-label small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.profile-dropdown {
  min-width: 260px;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.profile-dropdown-header {
  display: grid;
  gap: .15rem;
  padding: .7rem .8rem .85rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .35rem;
}

.profile-dropdown-header strong,
.profile-dropdown-header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-header span {
  color: var(--muted);
  font-size: .86rem;
}

.dropdown-item {
  border-radius: 6px;
  font-weight: 700;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 8px;
  font-weight: 750;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}

.btn.is-loading {
  cursor: wait;
}

.inline-spinner {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.hero {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, .96), rgba(248, 250, 252, .82)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero h1 {
  margin: .8rem 0 1rem;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: .95;
  font-weight: 850;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 680px;
  color: #405260;
  line-height: 1.65;
}

.surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 41, 55, .1);
}

.preview {
  padding: 1.2rem;
}

.preview-card {
  padding: 1rem;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 3rem 1rem;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, .9), rgba(239, 246, 255, .9)),
    url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.auth-card {
  width: min(100%, 440px);
  padding: 2rem;
}

.form-control,
.form-select {
  border-color: #cbd5e1;
  border-radius: 8px;
}

.form-label {
  color: #405260;
  font-weight: 720;
}

.app-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.sidebar {
  padding: 1.5rem 1.15rem;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.side-nav {
  display: grid;
  gap: .4rem;
  margin-top: 1.5rem;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .65rem .75rem;
  color: #566779;
  border-radius: 8px;
  font-weight: 730;
}

.side-nav a.active,
.side-nav a:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.workspace {
  min-width: 0;
  padding: 2rem;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.page-heading h1 {
  margin: .2rem 0 0;
  font-size: 2rem;
  font-weight: 830;
}

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

.metric-card {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
}

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

.metric-card strong {
  display: block;
  margin: .55rem 0;
  font-size: 2rem;
  line-height: 1;
}

.badge-soft {
  display: inline-flex;
  padding: .45rem .65rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
}

.credit-cost-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .9rem 1rem;
  background: #f0fdf4;
  border: 1px solid rgba(21, 128, 61, .2);
  border-radius: 8px;
}

.credit-cost-panel strong {
  color: var(--primary-dark);
  white-space: nowrap;
}

.credit-cost-panel span {
  color: #405260;
  line-height: 1.45;
}

.credit-cost-panel a {
  color: var(--primary-dark);
  font-weight: 850;
  white-space: nowrap;
}

.credit-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 1rem;
  align-items: center;
}

.credit-summary strong {
  display: block;
  margin: .25rem 0;
  color: var(--primary-dark);
  font-size: 2rem;
  line-height: 1;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.cost-card,
.cost-list span {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 8px;
}

.cost-card {
  display: grid;
  gap: .3rem;
  padding: .85rem;
}

.cost-card strong {
  color: var(--ink);
}

.cost-card span {
  color: var(--primary-dark);
  font-weight: 850;
}

.cost-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.cost-list span {
  display: inline-flex;
  padding: .35rem .55rem;
  color: var(--primary-dark);
  font-size: .82rem;
  font-weight: 800;
}

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

.price-card {
  padding: 1.5rem;
}

.price {
  font-size: 2rem;
  font-weight: 850;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}

.skill-head strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.skill-card h3 {
  margin: 0 0 .65rem;
  font-size: 1.1rem;
  font-weight: 820;
}

.skill-card p {
  color: var(--muted);
  line-height: 1.6;
}

.score,
.tag-row span,
.status {
  display: inline-flex;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 820;
}

.score {
  padding: .4rem .65rem;
}

.score.high {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.score.medium {
  color: #92400e;
  background: #fef3c7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag-row span {
  padding: .4rem .55rem;
  color: #405260;
  background: #eef2f7;
}

.status {
  padding: .35rem .6rem;
}

.status.success {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.status.warning {
  color: #92400e;
  background: #fef3c7;
}

.status.danger {
  color: #991b1b;
  background: #fee2e2;
}

.selectable-skill label,
.selected-skill {
  display: flex;
  gap: .8rem;
  cursor: pointer;
}

.selectable-skill input,
.selected-skill input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: .2rem;
  accent-color: var(--primary);
}

.selected-skill-list {
  display: grid;
  gap: .8rem;
}

.selected-skill {
  padding: .9rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-skill strong,
.selected-skill small {
  display: block;
}

.selected-skill strong {
  color: var(--primary-dark);
}

.selected-skill small {
  color: var(--muted);
  line-height: 1.45;
}

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
}

.lesson-document {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.generated-material-image {
  margin-bottom: 1.5rem;
}

.generated-material-image img {
  display: block;
  width: min(100%, 520px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-document h3 {
  margin: 1.25rem 0 .55rem;
  font-size: 1.08rem;
  font-weight: 820;
}

.lesson-document p,
.lesson-document li {
  color: #405260;
  line-height: 1.7;
  text-align: justify;
}

.question-with-options {
  margin-bottom: .9rem;
}

.question-with-options > span {
  display: block;
}

.question-option {
  margin-top: .25rem;
  padding-left: .75rem;
}

.support-text-subtitle {
  margin: 1rem 0 .35rem;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
}

.support-text-paragraph {
  margin: 0 0 .85rem;
  text-align: justify;
}

.support-text-index {
  margin: .35rem 0 1rem;
}

.support-text-index li {
  margin-bottom: .25rem;
}

.exam-explanation {
  padding: 1rem;
  margin-bottom: 1.2rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.exam-student-copy {
  padding: 1.1rem;
  background: #ffffff;
  border: 2px solid #d9e2ec;
  border-radius: 8px;
}

.exam-student-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .65rem 1rem;
  margin: .45rem 0 1rem;
  color: #405260;
  font-size: .92rem;
}

.exam-student-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1rem;
  margin: .35rem 0 1rem;
  color: #405260;
  font-size: .92rem;
}

.exam-question-list {
  padding-left: 1.25rem;
}

.exam-question-list > li {
  margin-bottom: 1rem;
}

.lesson-step {
  padding: .9rem;
  margin-bottom: .75rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson-step strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: .35rem;
}

.lesson-step p {
  margin: 0;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.lesson-meta span {
  display: inline-flex;
  padding: .4rem .6rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 820;
}

.lesson-aside {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.lesson-option-grid {
  display: grid;
  gap: .75rem;
}

.lesson-option-card {
  display: grid;
  gap: .55rem;
  padding: .9rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson-option-card strong,
.lesson-option-card small {
  display: block;
}

.lesson-option-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.lesson-option-card small {
  color: var(--muted);
  line-height: 1.35;
}

.lesson-task-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.lesson-task-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lesson-task-card:hover,
.lesson-task-card.is-active {
  border-color: rgba(21, 128, 61, .38);
  background: #f0fdf4;
}

.lesson-task-card strong,
.lesson-task-card small {
  display: block;
  overflow-wrap: anywhere;
}

.lesson-task-card strong {
  font-size: .98rem;
}

.lesson-task-card small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.3;
}

.task-check {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: var(--white);
}

.task-check.created {
  border-color: var(--primary);
  background: var(--primary);
}

.task-check.created::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.task-check.running {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.task-status {
  padding: .35rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.task-status.created {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.task-status.running {
  color: #1d4ed8;
  background: #dbeafe;
}

.task-status.pending {
  color: #92400e;
  background: #fef3c7;
}

.lesson-task-panels {
  display: grid;
}

.lesson-task-panel {
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(31, 41, 55, .1);
}

.lesson-task-panel[hidden] {
  display: none;
}

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

.task-panel-heading h2 {
  margin: .2rem 0 0;
  font-size: 1.35rem;
  font-weight: 850;
}

.task-empty-state,
.task-created-note {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task-empty-state strong,
.task-created-note strong,
.task-created-note span {
  display: block;
}

.task-empty-state p,
.task-created-note span {
  margin: .35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.task-document {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.task-material-form {
  width: 100%;
  max-width: none;
}

.task-material-form .task-assistant-fill {
  width: 100%;
  margin-bottom: 1rem;
}

.task-material-fields {
  --bs-gutter-x: 1rem;
}

.bncc-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.material-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.material-type-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  margin: 1.25rem 0;
}

.material-type-tabs a {
  display: grid;
  gap: .2rem;
  padding: .8rem;
  color: var(--ink);
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.material-type-tabs a.active {
  background: var(--primary-soft);
  border-color: rgba(21, 128, 61, .35);
  box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .15);
}

.material-type-tabs strong {
  font-size: .92rem;
  line-height: 1.2;
}

.material-type-tabs span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 750;
}

.material-form-stack {
  display: grid;
}

.material-specific-form {
  padding-top: .25rem;
}

.material-form-heading {
  display: grid;
  gap: .35rem;
  margin-bottom: 1rem;
}

.material-form-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 850;
}

.material-form-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.bncc-item {
  padding: .9rem;
  margin-top: .8rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bncc-item strong {
  display: block;
  color: var(--primary-dark);
}

.bncc-item span {
  display: inline-flex;
  margin: .45rem 0;
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 820;
}

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

.bncc-item small {
  display: block;
  margin-top: .55rem;
  color: #92400e;
  font-weight: 750;
}

.bncc-item-warning {
  border-color: rgba(250, 204, 21, .7);
  background: #fffbeb;
}

.bncc-table {
  min-width: 1040px;
}

.bncc-table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: .82rem;
  font-weight: 850;
}

.bncc-table td {
  color: #405260;
  line-height: 1.45;
}

.bncc-select-col {
  width: 96px;
}

.suggestion-note {
  display: grid;
  gap: .25rem;
  padding: .85rem;
  background: var(--primary-soft);
  border: 1px solid rgba(21, 128, 61, .18);
  border-radius: 8px;
}

.suggestion-note strong {
  color: var(--primary-dark);
  font-size: .88rem;
}

.suggestion-note span {
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.45;
}

.one-click-examples {
  display: grid;
  gap: .45rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.one-click-examples strong {
  color: var(--primary-dark);
}

.one-click-examples span {
  color: var(--muted);
  line-height: 1.45;
}

.form-loading-message {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.material-actions,
.saved-material-list,
.lesson-job-list {
  display: grid;
  gap: .65rem;
}

.processing-panel,
.lesson-processing-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 760px;
}

.processing-spinner {
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border: 5px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

.processing-message,
.lesson-processing-message {
  color: var(--muted);
  font-weight: 700;
}

.progress {
  width: min(100%, 520px);
  height: 12px;
  background: var(--primary-soft);
}

.progress-bar {
  background-color: var(--primary);
}

.progress-start {
  width: 35%;
}

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

.saved-material-list a {
  display: block;
  padding: .8rem;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.material-job-item,
.lesson-job-item {
  position: relative;
  display: grid;
  gap: .45rem;
  padding: .8rem;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}

.material-job-item::before,
.lesson-job-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0%, rgba(34, 197, 94, .12) 38%, rgba(59, 130, 246, .10) 50%, transparent 64%);
  transform: translateX(-120%);
  opacity: 0;
}

.material-job-item[data-status="pendente"],
.material-job-item[data-status="processando"],
.lesson-job-item[data-status="pendente"],
.lesson-job-item[data-status="processando"] {
  border-color: rgba(21, 128, 61, .28);
  box-shadow: 0 10px 30px rgba(21, 128, 61, .08);
  animation: processingCardPulse 1.8s ease-in-out infinite;
}

.material-job-item[data-status="pendente"]::before,
.material-job-item[data-status="processando"]::before,
.lesson-job-item[data-status="pendente"]::before,
.lesson-job-item[data-status="processando"]::before {
  opacity: 1;
  animation: processingCardSweep 1.7s ease-in-out infinite;
}

.material-job-item[data-status="pendente"] strong::after,
.material-job-item[data-status="processando"] strong::after,
.lesson-job-item[data-status="pendente"] strong::after,
.lesson-job-item[data-status="processando"] strong::after {
  content: "...";
  display: inline-block;
  width: 0;
  margin-left: .35rem;
  color: var(--primary);
  overflow: hidden;
  vertical-align: bottom;
  animation: processingDots 1.2s steps(4, end) infinite;
}

.material-job-item strong,
.material-job-item span,
.lesson-job-item strong,
.lesson-job-item span {
  display: block;
}

.material-job-item span,
.lesson-job-item span {
  color: var(--muted);
  font-size: .85rem;
}

.material-job-progress,
.lesson-job-progress {
  height: 8px;
  overflow: hidden;
  background: var(--primary-soft);
  border-radius: 999px;
}

.material-job-progress div,
.lesson-job-progress div {
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #22c55e, #60a5fa);
  border-radius: inherit;
  animation: progressPulse 1.2s ease-in-out infinite;
}

.material-job-item[data-status="falhou"],
.lesson-job-item[data-status="falhou"] {
  border-color: rgba(220, 38, 38, .35);
}

.material-job-item[data-status="falhou"] .material-job-progress div,
.lesson-job-item[data-status="falhou"] .lesson-job-progress div {
  width: 100%;
  background: var(--danger);
  animation: none;
}

.material-job-item[data-status="concluido"] .material-job-progress div,
.lesson-job-item[data-status="concluido"] .lesson-job-progress div {
  width: 100%;
  animation: none;
}

.slide-workspace {
  background: #eef5f0;
}

.slide-builder {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.slide-image-progress-panel {
  display: grid;
  gap: .75rem;
  margin: 0 0 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(21, 128, 61, .28);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(21, 128, 61, .10);
}

.slide-image-progress-panel[hidden] {
  display: none;
}

.slide-image-progress-copy {
  display: grid;
  gap: .2rem;
}

.slide-image-progress-copy strong {
  color: var(--primary-dark);
}

.slide-image-progress-copy span {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 650;
}

.slide-image-progress-bar {
  height: 10px;
  overflow: hidden;
  background: var(--primary-soft);
  border-radius: 999px;
}

.slide-image-progress-bar div {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #22c55e, #60a5fa);
  border-radius: inherit;
  animation: progressPulse 1.15s ease-in-out infinite;
}

.slide-controls {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.slide-editor-list {
  display: grid;
  gap: .75rem;
}

.slide-editor-item {
  padding: .85rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.slide-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

.slide-editor-actions {
  display: flex;
  gap: .25rem;
}

.slide-icon-button {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.slide-icon-button:hover,
.slide-icon-button:focus-visible {
  border-color: var(--line);
  background: var(--white);
  color: var(--primary);
}

.slide-icon-button.danger:hover,
.slide-icon-button.danger:focus-visible {
  color: #b42318;
}

.slide-icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slide-image-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .65rem;
}

.form-help {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.35;
}

.slide-stage-shell {
  min-width: 0;
  overflow: auto;
  padding: 0 0 1rem;
}

.slide-stage-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  max-width: 960px;
  margin: 0 0 .75rem;
  color: var(--muted);
}

.slide-stage-heading strong {
  color: var(--ink);
  font-size: .95rem;
}

.slide-deck {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.html-slide {
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  display: grid;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .12);
  page-break-inside: avoid;
  break-inside: avoid;
}

.ratio-standard .html-slide {
  aspect-ratio: 4 / 3;
}

.ratio-print .html-slide {
  aspect-ratio: 1.414 / 1;
}

.html-slide-inner {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6%;
}

.slide-kicker {
  margin-bottom: 1rem;
  color: currentColor;
  font-size: .9rem;
  font-weight: 850;
  text-transform: uppercase;
  opacity: .75;
}

.html-slide h2 {
  max-width: 820px;
  margin: 0 0 1.2rem;
  font-size: 3rem;
  line-height: 1.04;
  font-weight: 850;
}

.slide-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: .5rem;
  max-width: 780px;
  overflow: hidden;
}

.slide-body p {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 650;
}

.html-slide.has-image .html-slide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: center;
  column-gap: 2.2rem;
}

.html-slide.has-image .slide-kicker,
.html-slide.has-image h2 {
  grid-column: 1 / -1;
}

.html-slide.has-image .slide-body {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
}

.slide-image {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  align-self: stretch;
  justify-self: stretch;
  margin-top: 0;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.theme-classico .html-slide {
  color: #183b2a;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
  border-top: 10px solid var(--primary);
}

.theme-lousa .html-slide {
  color: #eefdf2;
  background: #173b2d;
  border: 10px solid #7c5f37;
}

.theme-claro .html-slide {
  color: #243142;
  background: #ffffff;
  border-left: 18px solid #2563eb;
}

.theme-contraste .html-slide {
  color: #ffffff;
  background: #111827;
  border-top: 10px solid #facc15;
}

.theme-infantil .html-slide {
  color: #17324d;
  background: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 55%, #dcfce7 100%);
  border: 8px solid #38bdf8;
}

.theme-infantil .html-slide h2 {
  color: #0f766e;
}

.theme-vetorial .html-slide {
  color: #111827;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96) 0%, rgba(239, 246, 255, .94) 100%),
    radial-gradient(circle at 88% 18%, rgba(20, 184, 166, .18), transparent 28%);
  border-left: 18px solid #14b8a6;
}

.theme-vetorial .html-slide h2 {
  color: #0f172a;
}

.theme-vetorial .slide-kicker {
  color: #0f766e;
}

.theme-minimalista .html-slide {
  color: #202124;
  background: #ffffff;
  border-top: 8px solid #111827;
}

.theme-minimalista .slide-kicker {
  color: #6b7280;
}

.theme-editorial .html-slide {
  color: #1f2937;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 64%, #fef3c7 64%, #fef3c7 100%);
  border-bottom: 10px solid #2563eb;
}

.theme-editorial .html-slide h2 {
  color: #1d4ed8;
}

.theme-geometrico .html-slide {
  color: #172554;
  background:
    linear-gradient(135deg, #f0f9ff 0%, #ecfeff 48%, #fff7ed 100%);
  border: 10px solid #38bdf8;
}

.theme-geometrico .slide-kicker {
  color: #c2410c;
}

.theme-academico .html-slide {
  color: #28323f;
  background: #f8fafc;
  border-left: 14px solid #64748b;
  border-bottom: 6px solid #cbd5e1;
}

.theme-academico .html-slide h2 {
  color: #334155;
}

.theme-noturno .html-slide {
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827 0%, #1e1b4b 52%, #0f172a 100%);
  border-top: 10px solid #22d3ee;
}

.theme-noturno .html-slide h2,
.theme-noturno .slide-body p {
  color: #f8fafc;
}

.theme-noturno .slide-kicker {
  color: #67e8f9;
}

.theme-laboratorio .html-slide {
  color: #12303a;
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 56%, #f0fdf4 100%);
  border-left: 16px solid #0891b2;
}

.theme-laboratorio .html-slide h2 {
  color: #155e75;
}

@keyframes progressPulse {
  0% {
    transform: translateX(-60%);
  }

  50% {
    transform: translateX(45%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes processingCardSweep {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

@keyframes processingCardPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-1px);
  }
}

@keyframes processingDots {
  0% {
    width: 0;
  }

  25% {
    width: .35rem;
  }

  50% {
    width: .7rem;
  }

  75%,
  100% {
    width: 1.05rem;
  }
}

.saved-material-list strong,
.saved-material-list span {
  display: block;
}

.saved-material-list span {
  color: var(--muted);
  font-size: .85rem;
}

.assistant-widget {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.assistant-launcher,
.assistant-panel {
  pointer-events: auto;
}

.assistant-launcher {
  min-height: 68px;
  padding: .55rem 1rem .55rem .55rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #0f3d2b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(236, 253, 245, .94)),
    linear-gradient(135deg, rgba(21, 128, 61, .16), rgba(37, 99, 235, .12));
  border: 1px solid rgba(21, 128, 61, .26);
  border-radius: 18px;
  box-shadow:
    0 18px 38px rgba(15, 23, 42, .18),
    0 8px 18px rgba(21, 128, 61, .14);
  font-weight: 850;
  backdrop-filter: blur(16px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.assistant-launcher:hover,
.assistant-launcher:focus {
  transform: translateY(-2px);
  border-color: rgba(21, 128, 61, .46);
  box-shadow:
    0 24px 48px rgba(15, 23, 42, .22),
    0 10px 24px rgba(21, 128, 61, .2);
}

.assistant-launcher-mark {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #e9fff4;
  border: 2px solid rgba(255, 255, 255, .95);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(21, 128, 61, .18);
}

.assistant-launcher-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.assistant-launcher-text {
  display: grid;
  gap: .05rem;
  justify-items: start;
  line-height: 1.05;
}

.assistant-launcher-text strong,
.assistant-launcher-text small {
  display: block;
  white-space: nowrap;
}

.assistant-launcher-text strong {
  color: #123f2e;
  font-size: .98rem;
}

.assistant-launcher-text small {
  color: var(--primary-dark);
  font-size: .74rem;
  font-weight: 820;
}

.assistant-panel {
  width: min(420px, calc(100vw - 2rem));
  max-height: min(720px, calc(100vh - 7rem));
  margin-bottom: .75rem;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .95rem 1rem;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 128, 61, .98), rgba(15, 118, 110, .98));
}

.assistant-header > div {
  min-width: 0;
  flex: 1;
}

.assistant-header-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.assistant-header strong,
.assistant-header span {
  display: block;
}

.assistant-header strong {
  font-size: 1rem;
}

.assistant-header span {
  opacity: .88;
  font-size: .85rem;
}

.assistant-icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
}

.assistant-step {
  padding: .7rem 1rem;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-bottom: 1px solid rgba(21, 128, 61, .16);
  font-size: .86rem;
  font-weight: 850;
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: .65rem;
  padding: 1rem;
  overflow: auto;
  background: #f8fafc;
}

.assistant-thinking {
  display: grid;
  gap: .5rem;
  padding: .8rem 1rem;
  color: #405260;
  background:
    linear-gradient(110deg, rgba(240, 253, 244, .92), rgba(239, 246, 255, .96)),
    #f8fafc;
  border-top: 1px solid rgba(21, 128, 61, .16);
  border-bottom: 1px solid rgba(21, 128, 61, .16);
}

.assistant-thinking[hidden] {
  display: none;
}

.assistant-thinking > div:first-child {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.assistant-thinking strong {
  color: var(--primary-dark);
  font-size: .9rem;
}

.assistant-thinking span {
  font-size: .86rem;
  line-height: 1.35;
}

.assistant-thinking-dot {
  width: .65rem;
  height: .65rem;
  flex: 0 0 auto;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(21, 128, 61, .28);
  animation: assistantThinkingDot 1.1s ease-in-out infinite;
}

.assistant-thinking-bar {
  height: 7px;
  overflow: hidden;
  background: rgba(21, 128, 61, .13);
  border-radius: 999px;
}

.assistant-thinking-bar i {
  display: block;
  width: 46%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #22c55e, #60a5fa);
  border-radius: inherit;
  animation: assistantThinkingBar 1.15s ease-in-out infinite;
}

.assistant-message {
  max-width: 88%;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.45;
  font-size: .94rem;
  white-space: pre-wrap;
}

.assistant-message-bot {
  justify-self: start;
  color: #405260;
  background: var(--white);
}

.assistant-message-user {
  justify-self: end;
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.assistant-suggestion {
  display: grid;
  gap: .55rem;
  padding: .85rem 1rem;
  background: #f0fdf4;
  border-top: 1px solid rgba(21, 128, 61, .16);
}

.assistant-suggestion[hidden] {
  display: none;
}

.assistant-suggestion strong {
  color: var(--primary-dark);
  font-size: .9rem;
}

.assistant-suggestion span {
  color: #405260;
  font-size: .9rem;
  line-height: 1.4;
}

.assistant-suggestion div {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.assistant-suggestion button {
  min-height: 36px;
  padding: .42rem .65rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 820;
}

.assistant-suggestion button:first-child {
  color: var(--white);
  background: var(--primary);
  border: 1px solid var(--primary);
}

.assistant-suggestion button:last-child {
  color: var(--primary-dark);
  background: var(--white);
  border: 1px solid rgba(21, 128, 61, .25);
}

.assistant-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  padding: .85rem 1rem 1rem;
  background: var(--white);
}

.assistant-input input {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: .65rem .75rem;
}

.assistant-input button {
  padding: .65rem .85rem;
  color: var(--white);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 820;
}

.assistant-busy .assistant-launcher-mark {
  animation: assistantPulse 1s ease-in-out infinite;
}

.assistant-busy .assistant-panel {
  border-color: rgba(21, 128, 61, .35);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, .24),
    0 0 0 3px rgba(21, 128, 61, .08);
}

.assistant-busy .assistant-header-avatar {
  animation: assistantThinkingAvatar 1.1s ease-in-out infinite;
}

.assistant-busy .assistant-header span::after {
  content: "...";
  display: inline-block;
  width: 0;
  margin-left: .2rem;
  overflow: hidden;
  vertical-align: bottom;
  animation: processingDots 1.2s steps(4, end) infinite;
}

.assistant-busy .assistant-message-bot:last-child {
  animation: assistantMessageGlow 1.2s ease-in-out infinite;
}

.assistant-busy .assistant-input button,
.assistant-busy .assistant-suggestion button {
  opacity: .72;
  cursor: wait;
}

.assistant-launcher-attention {
  animation: assistantNudge 1.8s ease-in-out infinite;
}

@keyframes assistantPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes assistantThinkingDot {
  0%,
  100% {
    transform: scale(.9);
    box-shadow: 0 0 0 0 rgba(21, 128, 61, .26);
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(21, 128, 61, 0);
  }
}

@keyframes assistantThinkingBar {
  0% {
    transform: translateX(-105%);
  }

  50% {
    transform: translateX(55%);
  }

  100% {
    transform: translateX(225%);
  }
}

@keyframes assistantThinkingAvatar {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(1.04);
  }
}

@keyframes assistantMessageGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(21, 128, 61, 0);
  }

  50% {
    box-shadow: 0 8px 18px rgba(21, 128, 61, .10);
  }
}

@keyframes assistantNudge {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  .app-layout,
  .metric-grid,
  .pricing-grid,
  .cost-grid,
  .credit-summary,
  .skill-grid,
  .material-type-tabs,
  .lesson-grid,
  .lesson-task-list,
  .bncc-compact-grid,
  .material-builder,
  .slide-builder {
    grid-template-columns: 1fr;
  }

  .slide-controls {
    position: static;
    max-height: none;
  }

  .html-slide.has-image .html-slide-inner {
    display: flex;
  }

  .slide-image {
    height: auto;
    max-height: 220px;
  }

  .html-slide h2 {
    font-size: 2rem;
  }

  .slide-body p {
    font-size: 1rem;
  }

  .credit-cost-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    padding: 1.25rem;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo-full {
    width: 210px;
    max-width: 70vw;
    height: 54px;
  }

  .profile-toggle {
    width: 100%;
    justify-content: flex-start;
    margin-top: .4rem;
  }

  .profile-label {
    max-width: none;
  }

  .profile-dropdown {
    width: 100%;
  }

  .profile-data div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .assistant-widget {
    right: .75rem;
    bottom: .75rem;
  }

  .assistant-panel {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 5.5rem);
  }

  .assistant-launcher {
    min-height: 58px;
    padding: .45rem;
    border-radius: 18px;
  }

  .assistant-launcher-mark {
    width: 48px;
    height: 48px;
  }

  .assistant-launcher-text {
    display: none;
  }

  .exam-student-header {
    grid-template-columns: 1fr;
  }

  .exam-student-fields {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 8mm;
  }

  body * {
    visibility: hidden !important;
  }

  .navbar,
  .sidebar,
  .page-heading,
  .slide-controls,
  .slide-stage-heading {
    display: none !important;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background: #ffffff;
  }

  .workspace,
  .slide-workspace,
  .app-layout,
  .slide-builder,
  .slide-stage-shell {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    background: #ffffff !important;
  }

  .slide-stage-shell {
    position: static !important;
    overflow: visible;
  }

  .slide-stage-shell,
  .slide-stage-shell * {
    visibility: visible !important;
  }

  .slide-deck {
    display: block;
    gap: 0;
  }

  .html-slide {
    width: calc(100vw - 16mm);
    height: calc(100vh - 16mm);
    aspect-ratio: auto;
    display: grid;
    margin: 0 auto;
    page-break-after: always;
    break-after: page;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #d7ded8;
  }

  .html-slide-inner {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .html-slide.has-image .html-slide-inner {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 36%);
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: stretch;
  }

  .slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .html-slide:last-child {
    page-break-after: auto;
    break-after: auto;
  }
}
